-
Notifications
You must be signed in to change notification settings - Fork 48
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
RTL gen pass fail to catch all System Verilog keyword #270
Comments
Hmmm ... "const" is on the keyword list here: So I think we would catch if you name a signal |
This is likely the case. My guess is the |
Would make a great fix for a pull request if you are interested! |
It is intended that we do not check for Verilog keywords when making a new pymtl3/pymtl3/datatypes/bitstructs.py Lines 744 to 747 in 4b3bc18
I think it would be more appropriate to check if the field names are Verilog keywords in the translation pass. |
Right ... I think our point was we currently have a list of verilog keywords that get checked at translation although currently it looks like we don't check if bitstruct fields are verilog keywords at translation ... |
VerilogTranslationPass
fail with the following example.When running
verilator --lint-only ./test__t_aType__a_4__b_6__const_32__pickled.v
will give the following error.Fixing is easy as I can just not name things with the System Verilog key. But I will still report it as you have checks in place to prevent this, and the check fails to detect it.
The text was updated successfully, but these errors were encountered: