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

Enum Parameter Overrides #1187

Open
georgerennie opened this issue Dec 9, 2024 · 1 comment
Open

Enum Parameter Overrides #1187

georgerennie opened this issue Dec 9, 2024 · 1 comment

Comments

@georgerennie
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Some designs (e.g. ibex top level) can be parameterised at the top level by enums, but the -G option to set top level parameters currently does not seem to support setting these parameters to enum values, as in the following example:

package my_pkg;
typedef enum integer {
	Case0 = 0,
	Case1 = 1
} param_e;
endpackage

module top import my_pkg::*; #(parameter param_e param = Case0);
endmodule

slang test.sv -G param=my_pkg::Case1

This errors with 'param=my_pkg::Case1' is not a valid form of parameter override.

Describe the solution you'd like
The -G param=my_pkg::Case1 syntax (or equivalent) to be supported to set top level parameters.

@MikePopoloski
Copy link
Owner

Sure, that seems reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants