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

Fix a couple of Verilator warnings #2093

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

rswarbrick
Copy link
Contributor

This waives/fixes a couple of warnings that appear with recent versions of Verilator. See the commit messages for details.

Fixes #2091.

@rswarbrick rswarbrick requested a review from GregAC October 3, 2023 13:22
@rswarbrick rswarbrick force-pushed the verilator-warnings branch 2 times, most recently from 1a67fbc to 45d60ca Compare October 3, 2023 16:56
rtl/ibex_tracer.sv Outdated Show resolved Hide resolved
@rswarbrick rswarbrick force-pushed the verilator-warnings branch 2 times, most recently from cb7e723 to c49f39b Compare October 4, 2023 09:10
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.
@rswarbrick rswarbrick added this pull request to the merge queue Nov 22, 2023
Merged via the queue into lowRISC:master with commit fe84d64 Nov 22, 2023
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.

Building Simulation error
2 participants