You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are many cases that parameter values need to be restricted to positive value.
For example, bit width, FIFO depth.
I think integer type restricted to positive value is useful for these cases so I'd like veryl to suuprt such type.
SystemVerilog does not have such type so following code needs to be inserted to generated SV code.
generateif (W<0) begin:g_veryl_check_W$error("parameter W should be positive value");
endendgenerate
There are many cases that parameter values need to be restricted to positive value.
For example, bit width, FIFO depth.
I think integer type restricted to positive value is useful for these cases so I'd like veryl to suuprt such type.
SystemVerilog does not have such type so following code needs to be inserted to generated SV code.
In addition, Pkl has a feature to add constraints to the given value.
I'd like Veryl to support such feature.
https://pkl-lang.org/main/current/language-reference/index.html#type-constraints
The text was updated successfully, but these errors were encountered: