From d22888ce746b7e1afef9b797cf2aeef1542247cb Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 6 Apr 2020 10:32:50 +0000 Subject: [PATCH] read_ilang: improve error message for overly long wires. Fixes #1838. --- frontends/ilang/ilang_parser.y | 3 +++ 1 file changed, 3 insertions(+) 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; } | -- 2.30.2