Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SJulianS committed Dec 5, 2019
1 parent 6921a64 commit d6bc17e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hdl_parser/hdl_parser_verilog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,15 @@ bool hdl_parser_verilog::parse_instance(entity& e)
{
port_str.consume(".", true);

auto generic_lhs = port_str.extract_until("(", token_stream::END_OF_STREAM, true, true);
auto port_lhs = port_str.extract_until("(", token_stream::END_OF_STREAM, true, true);

port_str.consume("(", true);

auto generic_rhs = port_str.extract_until(")", token_stream::END_OF_STREAM, true, true);
auto port_rhs = port_str.extract_until(")", token_stream::END_OF_STREAM, true, true);

port_str.consume(")", true);

inst.port_streams.emplace_back(generic_lhs, generic_rhs);
inst.port_streams.emplace_back(port_lhs, port_rhs);

port_str.consume(",", port_str.remaining() > 0);
}
Expand Down

0 comments on commit d6bc17e

Please sign in to comment.