rtlil: Disallow 0-width chunks in SigSpec.
Among other problems, this also fixes equality comparisons between SigSpec by enforcing a canonical form. Also fix another minor issue with possible non-canonical SigSpec. Fixes #2623.
This commit is contained in:
14
tests/opt/bug2623.ys
Normal file
14
tests/opt/bug2623.ys
Normal file
@@ -0,0 +1,14 @@
|
||||
read_rtlil << EOT
|
||||
|
||||
module \top
|
||||
wire output 1 \a
|
||||
wire width 0 $dummy
|
||||
cell \abc \abc
|
||||
connect \a \a
|
||||
connect \b $dummy
|
||||
end
|
||||
end
|
||||
|
||||
EOT
|
||||
|
||||
opt_clean
|
||||
Reference in New Issue
Block a user