Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
KNOWNBUG
parameter_ports4.sv
type_parameter_port1.sv

^EXIT=0$
^SIGNAL=0$
Expand Down
7 changes: 6 additions & 1 deletion src/verilog/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,8 @@ list_of_variable_identifiers:
parameter_port_declaration:
TOK_PARAMETER data_type_or_implicit param_assignment
{ $$ = $3; }
| TOK_PARAMETER TOK_TYPE type_assignment
{ $$ = $3; }
| TOK_LOCALPARAM data_type_or_implicit param_assignment
{ $$ = $3; }
| data_type param_assignment
Expand Down Expand Up @@ -3161,7 +3163,10 @@ named_parameter_assignment_brace:
;

ordered_parameter_assignment:
expression;
expression
| data_type
{ init($$, ID_type); stack_expr($$).type() = stack_type($1); }
;

named_parameter_assignment:
'.' parameter_identifier '(' expression_opt ')'
Expand Down
Loading