1
0
mirror of synced 2026-01-12 00:42:47 +00:00

Test empty switches

This commit is contained in:
Krystine Sherwin 2026-01-07 13:21:23 +13:00
parent c0e29ef57c
commit 9a09758f56
No known key found for this signature in database
3 changed files with 35 additions and 0 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:*

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