-
Notifications
You must be signed in to change notification settings - Fork 265
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
test: Prefix top-level TB parameters #152
Conversation
Just in case you didn’t know |
Are you sure? The help message says "Specify generic/parameter default value". |
Have been using the |
Pretty sure, yes. I think that is just an unfortunate naming of the help option. But basically that is what you want to achieve, (re-)setting the default parameter. I have no experience with the option and recursive instantiations :-) |
Was using recursiveness with the |
Alright, let's find out and solve this once and for all. Here's a simple experiment to determine the proper way of setting a parameter in the top-level module without affecting parameters with the same name in other modules:
|
As there is no way to set the value of a parameter only for the top-level module in `vsim` (see #152), we have to prefix all top-level parameters to prevent collisions with parameters in lower hierarchy levels.
`-g` sets the default value of a parameter, while `-G` overrides the value of the parameter even when it would be assigned a different value at instantiation. See #152 for a detailed discussion.
b19dca6
to
9b09ea2
Compare
As there is no way to set the value of a parameter only for the top-level module in `vsim` (see #152), we have to prefix all top-level parameters to prevent collisions with parameters in lower hierarchy levels.
`-g` sets the default value of a parameter, while `-G` overrides the value of the parameter even when it would be assigned a different value at instantiation. See #152 for a detailed discussion.
9b09ea2
to
9d272cc
Compare
As there is no way to set the value of a parameter only for the top-level module in `vsim` (see #152), we have to prefix all top-level parameters to prevent collisions with parameters in lower hierarchy levels.
`-g` sets the default value of a parameter, while `-G` overrides the value of the parameter even when it would be assigned a different value at instantiation. See #152 for a detailed discussion.
9d272cc
to
bf97ada
Compare
We use the
-G
simulator option to define the value of the top-level TBparameters, and this option apparently overwrites the value of all
parameters in the hierarchy of the TB. To prevent collisions with
parameters below the top-level TB, we now prefix all top-level TB
parameters with
Tb
orTB_
.