-
Notifications
You must be signed in to change notification settings - Fork 99
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 Verilator Warnings in bsg_mem and bsg_misc #693
base: master
Are you sure you want to change the base?
Conversation
The Verilator warnings are an interesting case. I am not sure about casting the values to ints since they are 32-bit signed. |
ChatGPT:
|
I'm thinking the clearest way to do this will be to apply the EDIT: using |
6c66e67
to
368c3ac
Compare
…s address-checking
Use localparams instead of macros
The latest changes are in line with your suggestions, but I worry a bit about the safety of shrinking |
Non-functional changes in bsg_mem and bsg_misc to fix Verilator lint warnings and 1 syntax error.
bsg_mem/bsg_mem_multiport_latch_write_banked_bypassing.sv
: Fix syntax error due to mismatchedend
. Looks like it should have been commented out with the rest of the block above it.bsg_misc/bsg_mul.sv
: Fix incorrect port name. Fixes VerilatorPINMISSING
warning.bsg_mem/bsg_mem_2rw_sync.sv
: Fix misleading indentation ofassert ... else
blocks. Fixes VerilatorMISINDENT
warnings.bsg_mem/bsg_mem_1r1w.sv
: Cast parameter to appropriate length before comparison with logic. Fixes VerilatorWIDTHEXPAND
warning. Also disable verilatorUNSIGNED
warning on this comparison.bsg_misc/bsg_counter_overflow_en.sv
: Cast parameter to appropriate length before comparison with logic. Fixes VerilatorWIDTHEXPAND
warning.