Repository navigation
Fix APU tracer clock and reset connections - #1087
Merged
MikeOpenHWGroup merged 1 commit intoOct 29, 2026
Merged
Conversation
MPEZZIN
self-requested a review
October 29, 2026 06:46
MPEZZIN
approved these changes
Oct 29, 2026
MPEZZIN
left a comment
There was a problem hiding this comment.
looks good to me.
OK for merge to dev branch
MikeOpenHWGroup
approved these changes
Oct 29, 2026
MikeOpenHWGroup
approved these changes
Oct 29, 2026
Contributor
|
Good catch @jinchuntan. The reason this latent bug was never caught is that nobody uses the APU tracer! The verification environment is managed in the This is yet another example of why ifdefs should be avoided. You can find a discussion of that in one of the CVA6 wikis. In the meantime, I'll merge this in. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The APU tracer has its clock and reset connections swapped in
cv32e40p_tb_wrapper. It opens its log on a clock edge and then waits for reset transitions to sample results. A normal FPU program therefore completes with no APU trace entries.Connect the tracer to the core clock and active-low reset, matching the execution tracer.
Tested on the actual core and FPU with F latencies 0 and 2 and Zfinx latency 1. The final memory result is correct in all three runs and every trace destination and value matches. Unmodified dev produces only the trace header. FPU-disabled elaboration, the repository formatter and
git diff --checkalso pass. The simulation retains baseline nonfatal warnings and the existing CSR array waiver.Reproduction and before/after logs are attached below.
cv32e40p-apu-tracer-validation.zip