mirror of https://github.com/YosysHQ/yosys.git
13 lines
282 B
Plaintext
13 lines
282 B
Plaintext
|
|
read_verilog -sv <<EOF
|
||
|
|
module top( input[2:0] a );
|
||
|
|
always_comb begin
|
||
|
|
// example from 1800-2012 12.4.2
|
||
|
|
unique if ((a==0) || (a==1)) $display("0 or 1");
|
||
|
|
else begin
|
||
|
|
unique if (a == 2) $display("2");
|
||
|
|
else if (a == 4) $display("4");
|
||
|
|
end
|
||
|
|
end
|
||
|
|
endmodule
|
||
|
|
EOF
|