mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-08 12:53:12 +02:00
apply reordering in generate blocks
This commit is contained in:
@@ -2,4 +2,15 @@ module top;
|
||||
assign arr[0][0] = 1;
|
||||
logic [1:0][2:0] arr;
|
||||
initial $display("%b", arr);
|
||||
parameter YES = 1;
|
||||
if (YES) begin : blk
|
||||
assign brr[0][0] = 1;
|
||||
logic [2:0][3:0] brr;
|
||||
initial $display("%b", brr);
|
||||
if (YES) begin : blk2
|
||||
assign crr[0][0] = 1;
|
||||
logic [3:0][4:0] crr;
|
||||
initial $display("%b", crr);
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
|
||||
@@ -2,4 +2,17 @@ module top;
|
||||
wire [5:0] arr;
|
||||
assign arr[0] = 1;
|
||||
initial $display("%b", arr);
|
||||
parameter YES = 1;
|
||||
generate
|
||||
if (YES) begin : blk
|
||||
wire [11:0] brr;
|
||||
assign brr[0] = 1;
|
||||
initial $display("%b", brr);
|
||||
if (YES) begin : blk2
|
||||
assign crr[0] = 1;
|
||||
wire [19:0] crr;
|
||||
initial $display("%b", crr);
|
||||
end
|
||||
end
|
||||
endgenerate
|
||||
endmodule
|
||||
|
||||
Reference in New Issue
Block a user