mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-12 02:04:44 +00:00
rtlil: enable single-bit vector wires
This commit is contained in:
parent
f60bbe64ac
commit
ab112b9b6b
12 changed files with 121 additions and 9 deletions
|
@ -188,6 +188,9 @@ wire_stmt:
|
|||
wire_options:
|
||||
wire_options TOK_WIDTH TOK_INT {
|
||||
current_wire->width = $3;
|
||||
// Width 1 specified -> single-bit vector rather than scalar
|
||||
if (current_wire->width == 1)
|
||||
current_wire->sbvector = true;
|
||||
} |
|
||||
wire_options TOK_WIDTH TOK_INVALID {
|
||||
rtlil_frontend_yyerror("RTLIL error: invalid wire width");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue