File tree Expand file tree Collapse file tree 5 files changed +18
-13
lines changed Expand file tree Collapse file tree 5 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -1606,11 +1606,11 @@ sub expand_all_macros {
1606
1606
$self -> expand_macro(' FORINST' , \&expand_forinst);
1607
1607
$self -> expand_macro(' AUTOTOSTRING' , \&expand_autotostring);
1608
1608
$self -> expand_macro(' AUTOINC' , \&expand_includes);
1609
+ $self -> expand_macro(' AUTONC' , \&expand_autonc);
1609
1610
# note: AUTOINTERFACE must expand before AUTONET, as it will change
1610
1611
# AUTONET's behavior.
1611
1612
$self -> expand_macro(' AUTOINTERFACE' , \&expand_autointerface);
1612
1613
$self -> expand_macro(' AUTONET' , \&expand_autonet);
1613
- $self -> expand_macro(' AUTONC' , \&expand_autonc);
1614
1614
$self -> expand_macro(' TIEOUTPUTSTOZERO' , \&expand_tieoutputs);
1615
1615
}
1616
1616
}
Original file line number Diff line number Diff line change @@ -6,19 +6,18 @@ module inst_of_unpacked (
6
6
output [7:0] fee [0:10-1],
7
7
/**AUTOINTERFACE**/
8
8
/*PPSTART*/
9
- output wire [7:0] another_output,
10
- output wire [7:0] bar,
11
- input wire fee_en[0:5],
12
- input wire [7:0] fie[0:5],
13
- input wire fie_en[0:5],
14
- input wire [7:0] foo[0:5],
15
- input wire foo_en[0:5]
9
+ input wire fee_en[0:5],
10
+ input wire [7:0] fie[0:5],
11
+ input wire fie_en[0:5]
16
12
/*PPSTOP*/
17
13
);
18
14
19
15
/**AUTONET --init **/
20
16
/*PPSTART*/
21
-
17
+ wire [7:0] another_output;
18
+ wire [7:0] bar;
19
+ wire [7:0] foo[0:5];
20
+ wire foo_en[0:5];
22
21
/*PPSTOP*/
23
22
24
23
/**AUTONC
@@ -29,7 +28,13 @@ module inst_of_unpacked (
29
28
/^foo/
30
29
**/
31
30
/*PPSTART*/
31
+ assign foo = '0;
32
+ assign foo_en = '0;
32
33
34
+ logic lint_unused_signals;
35
+ assign lint_unused_signals =
36
+ (another_output == '0) ||
37
+ (bar == '0);
33
38
/*PPSTOP*/
34
39
35
40
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ module inst_of_unpacked (
13
13
/*PPSTART*/
14
14
wire [7:0] another_output;
15
15
wire [7:0] bar;
16
- reg [7:0] foo[0:5] = '{default: '0} ;
17
- reg foo_en[0:5] = '{default: '0} ;
16
+ wire [7:0] foo[0:5];
17
+ wire foo_en[0:5];
18
18
/*PPSTOP*/
19
19
20
20
/**AUTONC
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module inst_of_unpacked (
13
13
/*PPSTART*/
14
14
wire [7:0] another_output;
15
15
wire [7:0] bar;
16
- reg [7:0] foo[0:5] = '{default: '0} ;
16
+ wire [7:0] foo[0:5];
17
17
wire foo_en[0:5];
18
18
/*PPSTOP*/
19
19
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module inst_of_unpacked (
14
14
wire [7:0] another_output;
15
15
wire [7:0] bar;
16
16
wire derived;
17
- reg [7:0] foo[0:5] = '{default: '0} ;
17
+ wire [7:0] foo[0:5];
18
18
wire foo_en[0:5];
19
19
/*PPSTOP*/
20
20
You can’t perform that action at this time.
0 commit comments