File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change
1
+ CORE
2
+ const1.sv
3
+
4
+ ^no properties$
5
+ ^EXIT=10$
6
+ ^SIGNAL=0$
7
+ --
8
+ ^warning: ignoring
Original file line number Diff line number Diff line change
1
+ module main ;
2
+ const bit my_true2 = 1 ;
3
+ const var my_true3 = 1 ;
4
+ const logic my_true4 = 1 ;
5
+ endmodule
Original file line number Diff line number Diff line change @@ -1110,20 +1110,25 @@ part_select:
1110
1110
// TOK_VAR is optional, but footnote 10 in IEEE 1800-2017 requires it
1111
1111
// when the data_type is omitted. We split the rule in the standard into two.
1112
1112
data_declaration :
1113
- TOK_VAR lifetime_opt data_type_or_implicit list_of_variable_decl_assignments ' ;'
1113
+ const_opt TOK_VAR lifetime_opt data_type_or_implicit list_of_variable_decl_assignments ' ;'
1114
1114
{ init($$ , ID_decl);
1115
1115
stack_expr ($$).set(ID_class, ID_var);
1116
- addswap ($$, ID_type, $3 );
1117
- swapop ($$, $4 ); }
1118
- | lifetime_opt data_type list_of_variable_decl_assignments ' ;'
1116
+ addswap ($$, ID_type, $4 );
1117
+ swapop ($$, $5 ); }
1118
+ | const_opt lifetime_opt data_type list_of_variable_decl_assignments ' ;'
1119
1119
{ init($$ , ID_decl);
1120
1120
stack_expr ($$).set(ID_class, ID_reg);
1121
- addswap ($$, ID_type, $2 );
1122
- swapop ($$, $3 ); }
1121
+ addswap ($$, ID_type, $3 );
1122
+ swapop ($$, $4 ); }
1123
1123
| type_declaration
1124
1124
| package_import_declaration
1125
1125
;
1126
1126
1127
+ const_opt :
1128
+ /* Optional */
1129
+ | TOK_CONST
1130
+ ;
1131
+
1127
1132
package_import_declaration_brace :
1128
1133
/* Optional */
1129
1134
{ init($$ ); }
You can’t perform that action at this time.
0 commit comments