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

Add support for module parameters #108

Merged
merged 1 commit into from
Oct 19, 2020
Merged

Conversation

alexforencich
Copy link
Contributor

Add support for passing module parameters to the simulator. This PR only adds support for icarus verilog and verilator. For both of these simulators, the parameters are handled during compilation, so setting force_compile is recommended.

@themperek
Copy link
Owner

Back in the day, it was called GENERICS in cocotb cocotb/cocotb#692 I have no strong opinion on naming.

@themperek
Copy link
Owner

Would be great to add some simple test for this. I can also add later.

@alexforencich
Copy link
Contributor Author

Hmm, interesting that it was removed from cocotb. Seems like at least supporting them at the top-level in a standard way would be a reasonable compromise, anything more advanced can then be done manually.

@themperek themperek merged commit 3af8f00 into themperek:master Oct 19, 2020
@themperek
Copy link
Owner

Thank you.

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.

None yet

2 participants