3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-23 23:52:32 +00:00

Merge branch 'YosysHQ:main' into main

This commit is contained in:
Akash Levy 2026-01-12 22:52:03 -08:00 committed by GitHub
commit 58192ad8a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 430 additions and 116 deletions

19
tests/proc/bug5572.ys Normal file
View file

@ -0,0 +1,19 @@
read_rtlil << EOT
attribute \top 1
module \top
wire width 1 \sig
wire width 1 \val
process $2
switch \sig [0]
case 1'0
case 1'1
case
assign \val [0] 1'1
end
end
end
EOT
proc_rmdead
proc_clean
select -assert-none p:*

24
tests/techmap/lut2bmux.ys Normal file
View file

@ -0,0 +1,24 @@
read_rtlil << EOT
module \top
wire width 4 input 0 \A
wire output 1 \Y
cell $lut $0
parameter \WIDTH 4
parameter \LUT 16'0110100110010110
connect \A \A
connect \Y \Y
end
end
EOT
hierarchy -auto-top
equiv_opt -assert lut2bmux
lut2bmux
select -assert-count 0 t:$lut
select -assert-count 1 t:$bmux r:WIDTH=1 r:S_WIDTH=4 %i

View file

@ -1,3 +1,4 @@
/bug5572.v
/const_arst.v
/const_sr.v
/doubleslash.v

15
tests/verilog/bug5572.ys Normal file
View file

@ -0,0 +1,15 @@
read_rtlil << EOT
module \top
wire \sig
wire \val
process $2
attribute \full_case 1
switch \sig
end
end
end
EOT
write_verilog bug5572.v
design -reset
read_verilog bug5572.v