mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-06 01:24:10 +00:00
19 lines
275 B
Verilog
19 lines
275 B
Verilog
module loop_prefix_case_top(
|
|
input wire x,
|
|
output reg y
|
|
);
|
|
localparam I = 1;
|
|
genvar i;
|
|
generate
|
|
for (i = 0; i < 1; i = i + 1) begin : blk
|
|
wire [i:i] z = x;
|
|
end
|
|
endgenerate
|
|
always @* begin
|
|
case (blk[I - 1].z)
|
|
1: y = 0;
|
|
0: y = 1;
|
|
endcase
|
|
end
|
|
endmodule
|