File tree Expand file tree Collapse file tree 10 files changed +89
-0
lines changed Expand file tree Collapse file tree 10 files changed +89
-0
lines changed Original file line number Diff line number Diff line change
1
+ CORE
2
+ implicit1.sv
3
+ --bound 0
4
+ ^file .* line 4: implicit wire main\.O$
5
+ ^file .* line 4: implicit wire main\.A$
6
+ ^file .* line 4: implicit wire main\.B$
7
+ ^EXIT=0$
8
+ ^SIGNAL=0$
9
+ --
10
+ ^warning: ignoring
Original file line number Diff line number Diff line change
1
+ module main ;
2
+
3
+ // implicit nets are allowed in the port connection list of a module
4
+ and (O , A , B );
5
+
6
+ always assert final (O == (A && B ));
7
+
8
+ endmodule
Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ implicit2.sv
3
+ --bound 0
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ --
9
+ The width of the implicit net is set incorrectly.
Original file line number Diff line number Diff line change
1
+ module main ;
2
+
3
+ // implicit nets are allowed in the port connection list of a module
4
+ and [3 : 0 ] (O , A , B );
5
+
6
+ always assert final (O == (A & B ));
7
+ always assert final ($bits (O ) == 4 );
8
+
9
+ endmodule
Original file line number Diff line number Diff line change
1
+ CORE
2
+ implicit3.sv
3
+ --bound 0
4
+ ^file .* line 6: implicit wire main\.O$
5
+ ^EXIT=0$
6
+ ^SIGNAL=0$
7
+ --
8
+ ^warning: ignoring
Original file line number Diff line number Diff line change
1
+ module main ;
2
+
3
+ wire A , B ;
4
+
5
+ // implicit nets are allowed on the LHS of a continuous assignment
6
+ assign O = A & B ;
7
+
8
+ always assert final (O == (A && B ));
9
+
10
+ endmodule
Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ implicit4.sv
3
+ --bound 0
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ --
9
+ The width of the implicit net is set incorrectly.
Original file line number Diff line number Diff line change
1
+ module main ;
2
+
3
+ wire [3 : 0 ] A , B ;
4
+
5
+ // implicit nets are allowed on the LHS of a continuous assignment
6
+ assign O = A & B ;
7
+
8
+ always assert final (O == (A & B ));
9
+ always assert final ($bits (O ) == 4 );
10
+
11
+ endmodule
Original file line number Diff line number Diff line change
1
+ KNOWNBUG
2
+ implicit5.sv
3
+ --bound 0
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ --
7
+ ^warning: ignoring
8
+ --
9
+ This case should be errored.
Original file line number Diff line number Diff line change
1
+ module main ;
2
+
3
+ // implicit nets are not allowed on the RHS of a continuous assignment
4
+ assign O = A & B ;
5
+
6
+ endmodule
You can’t perform that action at this time.
0 commit comments