3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-24 12:07:53 +00:00

rtlil: enable single-bit vector wires

This commit is contained in:
Emil J. Tywoniak 2025-05-06 12:02:00 +02:00
parent f60bbe64ac
commit ab112b9b6b
12 changed files with 121 additions and 9 deletions

View file

@ -0,0 +1,36 @@
read_verilog <<EOT
module buffer(
output o,
input i
);
assign o = i;
endmodule
EOT
write_json json_sbvector_no.out
! ! grep -qF 'sbvector' json_sbvector_no.out
design -reset
read_verilog <<EOT
module buffer(
output o,
input [0:0] i
);
assign o = i;
endmodule
EOT
write_json json_sbvector_yes.out
! grep -qF 'sbvector' json_sbvector_yes.out
design -reset
read_json json_sbvector_yes.out
logger -expect log "wire width 1 input 2 \\i" 1
dump
logger -check-expected
design -reset
read_json json_sbvector_no.out
logger -expect log "wire input 2 \\i" 1
dump
logger -check-expected