File tree Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Expand file tree Collapse file tree 2 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ module test_port0
2
+ (/* AUTOARG*/ );
3
+ output [31 : 0 ] d[2 ];
4
+ endmodule // test_port
5
+
6
+ module test_port1
7
+ (/* AUTOARG*/ );
8
+ input [31 : 0 ] dd[2 ];
9
+ endmodule // test_port1
10
+
11
+ module top ()
12
+ /* AUTOWIRE*/
13
+
14
+ /*
15
+ test_port0 AUTO_TEMPLATE
16
+ (
17
+ .d\(.*\) ('{d_1\1[],d_2\1[]}),
18
+ );
19
+ */
20
+ test_port0
21
+ u0(/* AUTOINST*/ );
22
+
23
+ /*
24
+ test_port1 AUTO_TEMPLATE
25
+ (
26
+ .d\(.*\) ('{d_1\1[],d_2\1[]}),
27
+ );
28
+ */
29
+
30
+ test_port1
31
+ u1 (/* AUTOINST*/ );
32
+ endmodule // top
33
+
34
+
Original file line number Diff line number Diff line change
1
+ module test_port0
2
+ (/* AUTOARG*/
3
+ // Outputs
4
+ d
5
+ );
6
+ output [31 : 0 ] d[2 ];
7
+ endmodule // test_port
8
+
9
+ module test_port1
10
+ (/* AUTOARG*/
11
+ // Inputs
12
+ dd
13
+ );
14
+ input [31 : 0 ] dd[2 ];
15
+ endmodule // test_port1
16
+
17
+ module top ()
18
+ /* AUTOWIRE*/
19
+ // Beginning of automatic wires (for undeclared instantiated-module outputs)
20
+ wire [31 : 0 ] d_1; // From u0 of test_port0.v
21
+ wire [31 : 0 ] d_2; // From u0 of test_port0.v
22
+ // End of automatics
23
+
24
+ /*
25
+ test_port0 AUTO_TEMPLATE
26
+ (
27
+ .d\(.*\) ('{d_1\1[],d_2\1[]}),
28
+ );
29
+ */
30
+ test_port0
31
+ u0 (/* AUTOINST*/
32
+ // Outputs
33
+ .d ('{ d_1[31 : 0 ],d_2[31 : 0 ]} )); // Templated
34
+
35
+ /*
36
+ test_port1 AUTO_TEMPLATE
37
+ (
38
+ .d\(.*\) ('{d_1\1[],d_2\1[]}),
39
+ );
40
+ */
41
+
42
+ test_port1
43
+ u1 (/* AUTOINST*/
44
+ // Inputs
45
+ .dd ('{ d_1d[31 : 0 ],d_2d[31 : 0 ]} )); // Templated
46
+ endmodule // top
47
+
48
+
You can’t perform that action at this time.
0 commit comments