Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

target/riscv: write SB address using batch #1099

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

en-sc
Copy link
Collaborator

@en-sc en-sc commented Jul 3, 2024

Reduces the number of JTAG queue flushes.

Requires #1081, #1082

@en-sc en-sc self-assigned this Jul 3, 2024
@en-sc en-sc force-pushed the en-sc/sb-addr-batch branch from a5c076a to d4029f5 Compare July 3, 2024 10:22
@en-sc en-sc force-pushed the en-sc/sb-addr-batch branch from d4029f5 to 8e39aa3 Compare July 4, 2024 09:23
Copy link
Collaborator

@MarekVCodasip MarekVCodasip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch. This is a nice improvement. I have a few suggestions, please take a look.

Also a small question, did you consider also using the improvement in sample_memory_bus_v1()? Or do you plan to implement it in a separate patch?

src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
@en-sc en-sc force-pushed the en-sc/sb-addr-batch branch from 8e39aa3 to 544400e Compare July 9, 2024 12:05
@en-sc en-sc requested a review from MarekVCodasip July 9, 2024 12:08
Copy link
Collaborator

@MarekVCodasip MarekVCodasip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you leaving the sample_memory_bus_v1() for later patch then?

@en-sc
Copy link
Collaborator Author

en-sc commented Jul 9, 2024

Are you leaving the sample_memory_bus_v1() for later patch then?

AFAIU, sample_memory_bus_v1 is a bit different -- there is no need to override the whole address, it's enough to touch sbaddr0 to trigger the next read, so sb_write_address shouldn't be used there.

@en-sc en-sc requested a review from MarekVCodasip July 9, 2024 13:10
@MarekVCodasip
Copy link
Collaborator

Are you leaving the sample_memory_bus_v1() for later patch then?

AFAIU, sample_memory_bus_v1 is a bit different -- there is no need to override the whole address, it's enough to touch sbaddr0 to trigger the next read, so sb_write_address shouldn't be used there.

Yes, you are correct. Approving.

MarekVCodasip
MarekVCodasip previously approved these changes Jul 9, 2024
Copy link
Collaborator

@JanMatCodasip JanMatCodasip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one detail that I came across, otherwise this PR looks fine.

src/target/riscv/riscv-013.c Outdated Show resolved Hide resolved
Reduces the number of JTAG queue flushes.

Change-Id: Id103f5da1a3ea3177447046711e0e62a22c98c75
Signed-off-by: Evgeniy Naydanov <[email protected]>
@en-sc en-sc merged commit 87c581a into riscv-collab:riscv Jul 12, 2024
4 checks passed
@en-sc en-sc deleted the en-sc/sb-addr-batch branch July 12, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants