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:
parent
f60bbe64ac
commit
ab112b9b6b
12 changed files with 121 additions and 9 deletions
36
tests/various/json_sbvector.ys
Normal file
36
tests/various/json_sbvector.ys
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue