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
{{ message }}
Repository navigation
sv: four-state and string actuals of class parameters #1964
For a class value parameter without a declared type, such as class C #(parameter V = 0), the parameter takes the type of its actual (IEEE 1800-2023 6.20.2), and a specialization is identified by its values and types (8.25). The specialization key spells the actual as a literal of its width and signedness only, so C#(bit'(1)) and C#(logic'(1)) share one specialization although the two actuals have a two-state and a four-state type.
The analyzer's expression typing (ExprType) records width and signedness but not whether an expression is four-state, so the key cannot tell them apart yet.
Expected
Track the two-/four-state kind of constant expressions and include it in the key of an untyped value parameter.
The value is not an integer, and the scope's parameter literals that hold it are not part of the context a specialization's actuals are bound in. Pass the retained literals there and substitute them before deciding that an actual is not constant.
changed the title [-]sv: tell two-state and four-state actuals of untyped class parameters apart[/-][+]sv: four-state and string actuals of class parameters[/+]on Oct 25, 2026
Activity
[-]sv: tell two-state and four-state actuals of untyped class parameters apart[/-][+]sv: four-state and string actuals of class parameters[/+]fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs
fix(sv): bind handles declared with class-scoped typedefs