mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user