mirror of https://github.com/zachjs/sv2v.git
49 lines
1.4 KiB
Verilog
49 lines
1.4 KiB
Verilog
module top;
|
|
parameter WIDTH = 1;
|
|
if (1) begin : a
|
|
if (1) begin : c
|
|
reg [WIDTH*2*3-1:0] x;
|
|
end
|
|
end
|
|
if (1) begin : b
|
|
if (1) begin : d
|
|
reg [WIDTH*5*7-1:0] x;
|
|
end
|
|
end
|
|
reg [WIDTH*2*3:0] a_c_x;
|
|
reg [WIDTH*5*7:0] b_d_x;
|
|
if (1) begin : e
|
|
if (1) begin : f
|
|
reg [WIDTH*11*13-1:0] x;
|
|
reg [WIDTH*2*3:0] a_c_x;
|
|
reg [WIDTH*5*7:0] b_d_x;
|
|
initial begin
|
|
a_c_x = 1;
|
|
b_d_x = 1;
|
|
$display("B a.c.x %b", a.c.x);
|
|
$display("B a_c_x %b", a_c_x);
|
|
$display("B b.d.x %b", b.d.x);
|
|
$display("B b_d_x %b", b_d_x);
|
|
end
|
|
end
|
|
end
|
|
reg [WIDTH*11*13:0] e_f_x;
|
|
reg [WIDTH*2*3+1:0] e_f_a_c_x;
|
|
reg [WIDTH*5*7+1:0] e_f_b_d_x;
|
|
initial begin
|
|
e_f_x = 1'sb1;
|
|
e_f_a_c_x = 1'sbx;
|
|
e_f_b_d_x = 1'sbz;
|
|
$display("A a.c.x %b", a.c.x);
|
|
$display("A a_c_x %b", a_c_x);
|
|
$display("A b.d.x %b", b.d.x);
|
|
$display("A b_d_x %b", b_d_x);
|
|
$display("A e.f.x %b", e.f.x);
|
|
$display("A e_f_x %b", e_f_x);
|
|
$display("A e.f.a_c_x %b", e.f.a_c_x);
|
|
$display("A e_f_a_c_x %b", e_f_a_c_x);
|
|
$display("A e.f.b_d_x %b", e.f.b_d_x);
|
|
$display("A e_f_b_d_x %b", e_f_b_d_x);
|
|
end
|
|
endmodule
|