-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[verilator] Slight refactor in ibex_tracer to avoid BLKSEQ warning
The existing code wanted to open file_handle as a trace file if necessary and then use it on that clock cycle. So it (sensibly) used a blocking assignment. Verilator now warns about blocking assignments to globals in "sequential logic processes" (the always_ff that is driving everything). This is sort of easy to fix: just use an "always" block! This commit looks slightly more involved because I've changed things to pass the file handle to printbuffer_dumpline as an argument. It makes the state update (where we open the file handle) a little easier to follow.
- Loading branch information
1 parent
2018301
commit fe84d64
Showing
1 changed file
with
32 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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