mirror of https://github.com/YosysHQ/yosys.git
22 lines
255 B
Plaintext
22 lines
255 B
Plaintext
|
read_verilog -sv <<EOF
|
||
|
module top;
|
||
|
logic x;
|
||
|
logic z;
|
||
|
assign z = 1'b1;
|
||
|
always_comb begin
|
||
|
logic y;
|
||
|
case (x)
|
||
|
1'b0:
|
||
|
y = 1;
|
||
|
default:
|
||
|
y = 0;
|
||
|
endcase
|
||
|
if (z)
|
||
|
x = y;
|
||
|
else
|
||
|
x = 1'b0;
|
||
|
end
|
||
|
endmodule
|
||
|
EOF
|
||
|
proc
|