parser: Fix UDP registered output syntax

The parser currently expects `reg output` for UDP registered output. But
the correct syntax is `output reg`. Fix this to accept the correct syntax.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
Lars-Peter Clausen 2022-03-14 09:50:09 +01:00
parent 59b3e220ad
commit aaffceff42
1 changed files with 1 additions and 1 deletions

View File

@ -7007,7 +7007,7 @@ udp_port_decl
$$ = tmp;
delete[]$2;
}
| K_reg K_output IDENTIFIER ';'
| K_output K_reg IDENTIFIER ';'
{ perm_string pname = lex_strings.make($3);
PWire*pp = new PWire(pname, NetNet::REG, NetNet::POUTPUT, IVL_VT_LOGIC);
vector<PWire*>*tmp = new std::vector<PWire*>(1);