mirror of https://github.com/YosysHQ/yosys.git
12 lines
135 B
Verilog
12 lines
135 B
Verilog
|
module top(
|
||
|
input wire x,
|
||
|
output reg y
|
||
|
);
|
||
|
always @* begin
|
||
|
case (top.x)
|
||
|
1: top.y = 0;
|
||
|
0: top.y = 1;
|
||
|
endcase
|
||
|
end
|
||
|
endmodule
|