mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
opt_demorgan: add test for zero width cell
This commit is contained in:
parent
58af70624f
commit
e105cae4a9
15
tests/opt/bug4610.ys
Normal file
15
tests/opt/bug4610.ys
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
read_ilang <<EOT
|
||||||
|
autoidx 1
|
||||||
|
module \top
|
||||||
|
wire output 1 \Y
|
||||||
|
cell $reduce_or $reduce_or$rtl.v:29$20
|
||||||
|
parameter \A_SIGNED 0
|
||||||
|
parameter \A_WIDTH 0
|
||||||
|
parameter \Y_WIDTH 1
|
||||||
|
connect \A { }
|
||||||
|
connect \Y \Y
|
||||||
|
end
|
||||||
|
end
|
||||||
|
EOT
|
||||||
|
|
||||||
|
equiv_opt -assert opt_demorgan
|
Loading…
Reference in a new issue