read_ilang: improve error message for overly long wires.

Fixes #1838.
This commit is contained in:
whitequark 2020-04-06 10:32:50 +00:00
parent ca70a1049f
commit d22888ce74
1 changed files with 3 additions and 0 deletions

View File

@ -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;
} |