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

[rv_dm,dv] Avoid a fast JTAG clock #23363

Merged
merged 2 commits into from
May 30, 2024

Conversation

rswarbrick
Copy link
Contributor

If the JTAG clock runs much faster than the system clock then things can get a bit out of sync for DMI accesses. This is tracked in an issue in the pulp-dbg module that we vendor.

Tightening the constraint slightly like this should avoid the issue that led to the problem in the first place (where the system clock was at 25MHz and the JTAG tck ran at about 100MHz).

The pulp-dbg issue is pulp-platform/riscv-dbg#163.

@rswarbrick rswarbrick added Component:DV DV issue: testbench, test case, etc. IP:rv_dm labels May 29, 2024
@rswarbrick rswarbrick requested a review from a team as a code owner May 29, 2024 10:59
@rswarbrick rswarbrick requested review from eshapira and removed request for a team May 29, 2024 10:59
Honestly, this timeout mechanism doesn't make a huge amount of sense,
but this workaround should sort things out at the rv_dm level.

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
If the JTAG clock runs much faster than the system clock then things
can get a bit out of sync for DMI accesses. This is tracked in an
issue in the pulp-dbg module that we vendor.

Tightening the constraint slightly like this should avoid the issue
that led to the problem in the first place (where the system clock was
at 25MHz and the JTAG tck ran at about 100MHz).

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
@rswarbrick rswarbrick force-pushed the rv-dm-slower-jtag branch from a8bfa7d to d425a26 Compare May 29, 2024 12:57
@rswarbrick rswarbrick merged commit b93340e into lowRISC:master May 30, 2024
30 of 32 checks passed
@rswarbrick rswarbrick deleted the rv-dm-slower-jtag branch May 30, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:DV DV issue: testbench, test case, etc. IP:rv_dm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants