mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-29 01:24:25 +02:00
genrtlil: add width detection for AST_PREFIX nodes
This commit is contained in:
committed by
Zachary Snow
parent
87ef1dd805
commit
4fec3a85cd
@@ -0,0 +1,18 @@
|
||||
module 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
|
||||
Reference in New Issue
Block a user