opt_demorgan: add test for zero width cell

This commit is contained in:
George Rennie 2024-09-25 16:10:16 +01:00
parent 58af70624f
commit e105cae4a9
1 changed files with 15 additions and 0 deletions

15
tests/opt/bug4610.ys Normal file
View 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