@@ -822,23 +822,26 @@ ansi_port_declaration:
822
822
;
823
823
824
824
module_port_input_declaration :
825
- TOK_INPUT net_port_type port_identifier
825
+ TOK_INPUT net_port_type port_identifier unpacked_dimension_brace
826
826
{ init($$ , ID_decl);
827
827
stack_expr ($$).set(ID_class, ID_input);
828
- addswap ($$, ID_type, $2 );
828
+ add_as_subtype (stack_type($4 ), stack_type($2 ));
829
+ addswap ($$, ID_type, $4 );
829
830
mto ($$, $3 ); }
830
831
;
831
832
832
833
module_port_output_declaration :
833
- TOK_OUTPUT net_port_type port_identifier
834
+ TOK_OUTPUT net_port_type port_identifier unpacked_dimension_brace
834
835
{ init($$ , ID_decl);
835
836
stack_expr ($$).set(ID_class, ID_output);
836
- addswap ($$, ID_type, $2 );
837
+ add_as_subtype (stack_type($4 ), stack_type($2 ));
838
+ addswap ($$, ID_type, $4 );
837
839
mto ($$, $3 ); }
838
- | TOK_OUTPUT data_type port_identifier
840
+ | TOK_OUTPUT data_type port_identifier unpacked_dimension_brace
839
841
{ init($$ , ID_decl);
840
842
stack_expr ($$).set(ID_class, ID_output_register);
841
- addswap ($$, ID_type, $2 );
843
+ add_as_subtype (stack_type($4 ), stack_type($2 ));
844
+ addswap ($$, ID_type, $4 );
842
845
mto ($$, $3 ); }
843
846
;
844
847
@@ -1092,10 +1095,11 @@ specparam_declaration:
1092
1095
// A.2.1.2 Port declarations
1093
1096
1094
1097
module_port_inout_declaration :
1095
- TOK_INOUT net_port_type port_identifier
1098
+ TOK_INOUT net_port_type port_identifier unpacked_dimension_brace
1096
1099
{ init($$ , ID_decl);
1097
1100
stack_expr ($$).set(ID_class, ID_inout);
1098
- addswap ($$, ID_type, $2 );
1101
+ add_as_subtype (stack_type($4 ), stack_type($2 ));
1102
+ addswap ($$, ID_type, $4 );
1099
1103
mto ($$, $3 ); }
1100
1104
;
1101
1105
0 commit comments