From: whitequark Date: Mon, 6 Apr 2020 10:32:50 +0000 (+0000) Subject: read_ilang: improve error message for overly long wires. X-Git-Tag: working-ls180~677^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d22888ce746b7e1afef9b797cf2aeef1542247cb;p=yosys.git read_ilang: improve error message for overly long wires. Fixes #1838. --- diff --git a/frontends/ilang/ilang_parser.y b/frontends/ilang/ilang_parser.y index 4e0b62edd..91adc0cc9 100644 --- a/frontends/ilang/ilang_parser.y +++ b/frontends/ilang/ilang_parser.y @@ -179,6 +179,9 @@ wire_options: wire_options TOK_WIDTH TOK_INT { current_wire->width = $3; } | + wire_options TOK_WIDTH TOK_INVALID { + rtlil_frontend_ilang_yyerror("ilang error: invalid wire width"); + } | wire_options TOK_UPTO { current_wire->upto = true; } |