Skip to content

Commit e3bc203

Browse files
authored
Merge pull request #645 from diffblue/non_port_module_item
Verilog: non_port_module_item grammar rule
2 parents 5fd4feb + e0b31a6 commit e3bc203

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/verilog/parser.y

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -905,24 +905,15 @@ module_or_generate_item_declaration:
905905
;
906906

907907
non_port_module_item:
908-
attribute_instance_brace generate_region
909-
{ add_attributes($2, $1); $$=$2; }
908+
generate_region
910909
| module_or_generate_item
911910
| attribute_instance_brace specparam_declaration
912911
{ add_attributes($2, $1); $$=$2; }
913-
| attribute_instance_brace specify_block
914-
{ add_attributes($2, $1); $$=$2; }
912+
| program_declaration
913+
| module_declaration
914+
| interface_declaration
915915
;
916916

917-
/*
918-
module_or_generate_item
919-
| attribute_instance_brace parameter_declaration
920-
// { add_attributes($2, $1); $$=$2; }
921-
// | attribute_instance_brace local_parameter_declaration
922-
// { add_attributes($2, $1); $$=$2; }
923-
;
924-
*/
925-
926917
// System Verilog standard 1800-2017
927918
// A.1.5 Configuration source text
928919

0 commit comments

Comments
 (0)