Skip to content

Commit

Permalink
adding pragmas at various places in code
Browse files Browse the repository at this point in the history
  • Loading branch information
xtofalex committed Oct 19, 2024
1 parent 33e3845 commit 5dc5d39
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/VerilogParser.yy
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ port_declaration: port_type_io range.opt identifier {
$$ = Port($3, $1, $2);
}

internal_ports_declaration: port_type_io range.opt list_of_identifiers {
internal_ports_declaration: list_of_attribute_instance.opt port_type_io range.opt list_of_identifiers {
constructor->setCurrentLocation(@$.begin.line, @$.begin.column);
for (auto portIdentifier: $3) {
constructor->internalModuleImplementationPort(Port(portIdentifier, $1, $2));
for (auto portIdentifier: $4) {
constructor->internalModuleImplementationPort(Port(portIdentifier, $2, $3));
}
}

Expand Down Expand Up @@ -297,10 +297,10 @@ list_of_net_assignments: net_assignment | list_of_net_assignments ',' net_assign
continuous_assign: ASSIGN_KW list_of_net_assignments ';'

module_or_generate_item:
module_or_generate_item_declaration
| module_instantiation
| parameter_override
| continuous_assign
list_of_attribute_instance.opt module_or_generate_item_declaration
| list_of_attribute_instance.opt module_instantiation
| list_of_attribute_instance.opt parameter_override
| list_of_attribute_instance.opt continuous_assign
;

module_or_generate_item_declaration: net_declaration;
Expand Down Expand Up @@ -513,4 +513,4 @@ void naja::verilog::VerilogParser::error(
<< " begin at line " << l.begin.line << " col " << l.begin.column << '\n'
<< " end at line " << l.end.line << " col " << l.end.column << "\n";
throw VerilogException(reason.str());
}
}

0 comments on commit 5dc5d39

Please sign in to comment.