File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
regression/verilog/modules Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change
1
+ CORE
2
+ endmodule_identifier.sv
3
+ --show-modules
4
+ .*Name:.* some_module$
5
+ ^EXIT=0$
6
+ ^SIGNAL=0$
7
+ --
Original file line number Diff line number Diff line change
1
+ module some_module ;
2
+ // endmodule identifiers are a SystemVerilog feature
3
+ endmodule : some_module
4
+
Original file line number Diff line number Diff line change @@ -641,7 +641,7 @@ module_ansi_header:
641
641
;
642
642
643
643
module_declaration :
644
- module_nonansi_header module_item_brace TOK_ENDMODULE module_identifier_opt
644
+ module_nonansi_header module_item_brace TOK_ENDMODULE endmodule_identifier_opt
645
645
{
646
646
PARSER.parse_tree.create_module(
647
647
stack_expr ($1 ).operands()[0],
@@ -654,7 +654,7 @@ module_declaration:
654
654
// close the module scope
655
655
pop_scope ();
656
656
}
657
- | module_ansi_header module_item_brace TOK_ENDMODULE module_identifier_opt
657
+ | module_ansi_header module_item_brace TOK_ENDMODULE endmodule_identifier_opt
658
658
{
659
659
PARSER.parse_tree.create_module(
660
660
stack_expr ($1 ).operands()[0],
@@ -3677,9 +3677,9 @@ interface_identifier:
3677
3677
3678
3678
module_identifier: TOK_NON_TYPE_IDENTIFIER;
3679
3679
3680
- module_identifier_opt :
3680
+ endmodule_identifier_opt :
3681
3681
/* Optional */
3682
- | module_identifier
3682
+ | TOK_COLON module_identifier
3683
3683
;
3684
3684
3685
3685
net_identifier: identifier;
You can’t perform that action at this time.
0 commit comments