Skip to content

fix width mismatch in counter overflow calculation (#197) - #198

Merged
amykyta3 merged 1 commit into
SystemRDL:mainfrom
mxsparks:main
Mar 20, 2026
Merged

amykyta3 merged 1 commit into
SystemRDL:mainfrom
mxsparks:main

Conversation

@mxsparks

Copy link
Copy Markdown
Contributor

Description of change

This fixes a Verilator error when generating counter registers. I have not run the unit test suite due to not being able to install Questa locally, but VCS and Verilator simulate correctly.

Checklist

  • I have reviewed this project's contribution guidelines
  • This change has been tested and does not break any of the existing unit tests. (if unable to run the tests, let us know)
  • If this change adds new features, I have added new unit tests that cover them.

@amykyta3

Copy link
Copy Markdown
Member

Looks good! Technically not an error since SystemVerilog is very clear about how it handles width expansion in the LRM, but its an easy enough change to get Verilator to stop complaining that i'm ok with it!

Thanks!

@amykyta3
amykyta3 merged commit 2109d02 into SystemRDL:main Mar 20, 2026
13 checks passed
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.

2 participants