2023-08-11 00:52:05 -05:00
|
|
|
read_rtlil <<EOT
|
|
|
|
|
2023-08-11 01:34:00 -05:00
|
|
|
module \a
|
2023-08-11 00:52:05 -05:00
|
|
|
wire width 1 \w
|
|
|
|
process $p
|
|
|
|
switch 3'001
|
|
|
|
case 3'--1
|
|
|
|
assign \w 3'001
|
|
|
|
case 3'-1-
|
|
|
|
assign \w 3'010
|
|
|
|
case 3'1--
|
|
|
|
assign \w 3'100
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-08-11 01:34:00 -05:00
|
|
|
module \b
|
|
|
|
wire width 1 \w
|
|
|
|
process $p
|
|
|
|
switch 3'--1
|
|
|
|
case 3'001
|
|
|
|
assign \w 3'001
|
|
|
|
case 3'010
|
|
|
|
assign \w 3'010
|
|
|
|
case 3'100
|
|
|
|
assign \w 3'100
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-08-11 00:52:05 -05:00
|
|
|
EOT
|
|
|
|
|
|
|
|
proc_clean # Bug: removes the cases.
|
|
|
|
proc_clean # Removes the now-empty switch and its containing process.
|
|
|
|
|
2023-08-11 01:34:00 -05:00
|
|
|
select -assert-count 1 a/p:*
|
|
|
|
select -assert-count 1 b/p:*
|