mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
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:
parent
e178d0367a
commit
f965b3fa54
2 changed files with 63 additions and 18 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue