-
Notifications
You must be signed in to change notification settings - Fork 548
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
Getting a module parameter using scope resolution operator #4890
Comments
Makes sense, the code isn't checking it's a parameter when resolving. Might you be willing to make a pull request with the fix, test case, and .out file to check the new error message? |
Yes, I would like to do this. Are there any deadlines? |
When you get a chance. We release every 2 months or so. |
(We won't wait for it, just saying in case you want it out there.) |
Ok, thanks! I'll take it on and open a PR when I have something to show. |
Something else. If you specify the top module verilator --binary -j 0 -top tb tb.sv , then we get an internal error %Error: Internal Error: tb.sv:3:8: ../V3LinkDot.cpp:422: Module/etc never assigned a symbol entry?
3 | module my_module #(
| ^~~~~~~~~
... See the manual at https://verilator.org/verilator_doc.html for more assistance. |
Hello!
By using the scope resolution operator (
::
) we can access the default parameters from the module definition, which, as far as I understand, is not allowed.IEEE 1800-2017:
Run example on
VCS
:Run example on
Xcelium
:Output:
Verilator 5.021 devel rev v5.020-101-gcbc76a781
Yes, this is git master.
Ubuntu 22.04.3 (GitHub Codespaces: Verilator Devcontainer)
The text was updated successfully, but these errors were encountered: