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 <[email protected]>
This commit is contained in:
Lars-Peter Clausen
2022-03-19 12:59:20 +01:00
parent 59b3e220ad
commit aaffceff42
+1 -1
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);