Skip to content

Commit 3ea0b0d

Browse files
authored
Merge pull request #825 from diffblue/must_be_integral
Verilog: add checks for operators that require integral types
2 parents 423de3f + 820b050 commit 3ea0b0d

13 files changed

+128
-41
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
KNOWNBUG
1+
CORE
22
concatenation5.v
33
--bound 0
4-
^EXIT=0$
4+
^file .* line 4: operand 1.1 must be integral$
5+
^EXIT=2$
56
^SIGNAL=0$
67
--
78
^warning: ignoring
89
--
9-
This should be errored.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
KNOWNBUG
1+
CORE
22
equality3.v
33
--bound 0
4-
^EXIT=0$
4+
^EXIT=2$
55
^SIGNAL=0$
66
--
77
^warning: ignoring
88
--
9-
This should be errored.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
KNOWNBUG
1+
CORE
22
mod2.v
33
--bound 0
4-
^EXIT=0$
4+
^file .* line 4: operand 1\.1 must be integral$
5+
^EXIT=2$
56
^SIGNAL=0$
67
--
78
^warning: ignoring
89
--
9-
This should be errored.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
reduction2.v
3+
--bound 0
4+
^file .* line 4: operand 1\.1 must be integral$
5+
^EXIT=2$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
9+
--
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module main;
2+
3+
// reduction operators only take integral types
4+
wire x = &1.1;
5+
6+
endmodule
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
replication3.v
3+
--bound 0
4+
^file .* line 3: operand 1\.1 must be integral$
5+
^EXIT=2$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
9+
--
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module main;
2+
3+
wire [31:0] x = {4{1.1}};
4+
5+
endmodule
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
KNOWNBUG
1+
CORE
22
shr2.v
33
--bound 0
4-
^EXIT=0$
4+
^file .* line 4: operand 1\.1 must be integral$
5+
^EXIT=2$
56
^SIGNAL=0$
67
--
78
^warning: ignoring
89
--
9-
This should be errored.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
streaming_concatenation2.sv
3+
--bound 0
4+
^file .* line 4: operand 1\.1 must be integral$
5+
^EXIT=2$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
9+
--
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module main;
2+
3+
// operand must be integral
4+
wire x = {<<{1.1}};
5+
6+
endmodule

0 commit comments

Comments
 (0)