3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-11 03:33:36 +00:00

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

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