Skip to content

Commit 6d8cff0

Browse files
authored
Merge pull request #404 from diffblue/ansi_port_declaration
Verilog: ansi_port_declaration
2 parents d0f0b95 + 4ee5964 commit 6d8cff0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/verilog/parser.y

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -789,15 +789,15 @@ parameter_port_list_opt:
789789
list_of_ports: '(' port_brace ')' { $$ = $2; }
790790
;
791791

792-
port_declaration_brace:
793-
module_port_declaration
792+
ansi_port_declaration_brace:
793+
ansi_port_declaration
794794
{ init($$); mts($$, $1); }
795-
| port_declaration_brace ',' module_port_declaration
795+
| ansi_port_declaration_brace ',' ansi_port_declaration
796796
{ $$=$1; mts($$, $3); }
797797

798798
// append to last one -- required to make
799799
// the grammar LR1
800-
| port_declaration_brace ',' port_identifier
800+
| ansi_port_declaration_brace ',' port_identifier
801801
{ $$=$1;
802802
exprt decl(ID_decl);
803803
decl.add_to_operands(std::move(stack_expr($3)));
@@ -815,7 +815,7 @@ port_declaration:
815815
| attribute_instance_brace output_declaration { $$=$2; }
816816
;
817817

818-
module_port_declaration:
818+
ansi_port_declaration:
819819
attribute_instance_brace module_port_inout_declaration { $$=$2; }
820820
| attribute_instance_brace module_port_input_declaration { $$=$2; }
821821
| attribute_instance_brace module_port_output_declaration { $$=$2; }
@@ -2463,7 +2463,7 @@ output_or_level_symbol:;
24632463

24642464
next_state:;
24652465

2466-
list_of_port_declarations: '(' port_declaration_brace ')' { $$=$2; }
2466+
list_of_port_declarations: '(' ansi_port_declaration_brace ')' { $$=$2; }
24672467
;
24682468

24692469
list_of_ports_opt:

0 commit comments

Comments
 (0)