Skip to content

Commit ae0d258

Browse files
committed
gen block binding
1 parent 06cfd11 commit ae0d258

9 files changed

Lines changed: 1835 additions & 4 deletions

File tree

tests/GenScopeShadow/GenScopeShadow.log

Lines changed: 855 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-parse -d uhdm -d coveruhdm -elabuhdm -d ast dut.sv -nobuiltin

tests/GenScopeShadow/dut.sv

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
`default_nettype none
2+
3+
module gate(out);
4+
wire [3:0] x;
5+
for (genvar x = 0; x < 2; x++) begin : blk
6+
localparam w = x;
7+
if (x == 0) begin : sub
8+
wire [w:0] x;
9+
end
10+
end
11+
//assign x = 2;
12+
assign blk[0].sub.x = '1;
13+
//output wire [9:0] out;
14+
//assign out = {1'bx, x, blk[0].sub.x};
15+
endmodule
16+

tests/GenVarRef/GenVarRef.log

Lines changed: 943 additions & 0 deletions
Large diffs are not rendered by default.

tests/GenVarRef/GenVarRef.sl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-parse -d uhdm -d coveruhdm -elabuhdm -d ast dut.sv -nobuiltin

tests/GenVarRef/dut.sv

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
`default_nettype none
2+
3+
module gate(a);
4+
for (genvar i = 0; i < 2; i++)
5+
wire [i:0] x = '1;
6+
7+
output wire [32:0] a;
8+
assign a = {1'b0, genblk1[0].x, 1'b0, genblk1[1].x, 1'b0};
9+
endmodule

tests/ImplicitGenBlock/ImplicitGenBlock.log

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,8 @@ design: (work@top)
797797
|vpiParent:
798798
\_hier_path: (genblk1.foo.x1), line:67:16, endln:67:30
799799
|vpiName:x1
800+
|vpiActual:
801+
\_logic_net: (work@top.genblk1.foo.x1), line:38:38, endln:38:40
800802
|vpiName:genblk1.foo.x1
801803
|vpiContAssign:
802804
\_cont_assign: , line:68:16, endln:68:29
@@ -902,6 +904,8 @@ design: (work@top)
902904
|vpiParent:
903905
\_hier_path: (bar2.baz.x3), line:71:16, endln:71:27
904906
|vpiName:x3
907+
|vpiActual:
908+
\_logic_net: (work@top.bar2.baz.x3), line:58:38, endln:58:40
905909
|vpiName:bar2.baz.x3
906910
|vpiContAssign:
907911
\_cont_assign: , line:72:16, endln:72:31
@@ -932,6 +936,8 @@ design: (work@top)
932936
|vpiParent:
933937
\_hier_path: (bar2.baz.z3), line:72:16, endln:72:27
934938
|vpiName:z3
939+
|vpiActual:
940+
\_logic_net: (work@top.bar2.baz.z3), line:59:37, endln:59:39
935941
|vpiName:bar2.baz.z3
936942
\_weaklyReferenced:
937943
\_logic_typespec: , line:35:25, endln:35:29

third_party/tests/CoresSweRVMP/CoresSweRVMP.log

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ Running: cd ${SURELOG_DIR}/build/regression/CoresSweRVMP/slpp_all/mp_preprocess;
6767
[ 6%] Generating 10_lsu_bus_intf.sv
6868
[ 12%] Generating 11_ifu_bp_ctl.sv
6969
[ 18%] Generating 12_beh_lib.sv
70-
[ 25%] Generating 13_ifu_mem_ctl.sv
71-
[ 31%] Generating 14_mem_lib.sv
70+
[ 25%] Generating 14_mem_lib.sv
71+
[ 31%] Generating 13_ifu_mem_ctl.sv
7272
[ 37%] Generating 15_exu.sv
73-
[ 43%] Generating 16_dec_decode_ctl.sv
73+
[ 50%] Generating 16_dec_decode_ctl.sv
7474
[ 50%] Generating 1_lsu_stbuf.sv
7575
[ 56%] Generating 2_ahb_to_axi4.sv
7676
[ 62%] Generating 3_rvjtag_tap.sv

0 commit comments

Comments
 (0)