aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorStefan Biereigel <stefan@biereigel.de>2020-02-03 21:29:40 +0100
committerStefan Biereigel <stefan@biereigel.de>2020-02-03 21:29:40 +0100
commitb844b078db0c8b61758c562fbb8324bd5013bfa1 (patch)
tree800d3de125e0b2197799852931dce54a6cb919b0 /frontends
parent60876ce183ee5f3980c378e190d996453d59a780 (diff)
downloadyosys-b844b078db0c8b61758c562fbb8324bd5013bfa1.tar.gz
yosys-b844b078db0c8b61758c562fbb8324bd5013bfa1.tar.bz2
yosys-b844b078db0c8b61758c562fbb8324bd5013bfa1.zip
correct wire declaration grammar for #1614
Diffstat (limited to 'frontends')
-rw-r--r--frontends/verilog/verilog_parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/verilog/verilog_parser.y b/frontends/verilog/verilog_parser.y
index a30935e0a..96f2faaa1 100644
--- a/frontends/verilog/verilog_parser.y
+++ b/frontends/verilog/verilog_parser.y
@@ -476,7 +476,7 @@ wire_type:
astbuf3 = new AstNode(AST_WIRE);
current_wire_rand = false;
current_wire_const = false;
- } wire_type_token_list delay {
+ } wire_type_token_list {
$$ = astbuf3;
};
@@ -1240,7 +1240,7 @@ wire_decl:
}
if (astbuf2 && astbuf2->children.size() != 2)
frontend_verilog_yyerror("wire/reg/logic packed dimension must be of the form: [<expr>:<expr>], [<expr>+:<expr>], or [<expr>-:<expr>]");
- } wire_name_list {
+ } delay wire_name_list {
delete astbuf1;
if (astbuf2 != NULL)
delete astbuf2;