Skip to content

Commit 0e20c25

Browse files
authored
Merge pull request #812 from diffblue/concatenation4
KNOWNBUG test for concatenation with unsized constant
2 parents 5bdb60e + aafdf1d commit 0e20c25

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
concatenation4.v
3+
--bound 0
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This should yield an error.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module main;
2+
3+
// 1800-2017 11.4.12
4+
// "Unsized constant numbers shall not be allowed in concatenations"
5+
wire [31:0] x = { 'b1010 };
6+
7+
endmodule
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
replication2.v
3+
--bound 0
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This should yield an error.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module main;
2+
3+
// The section 11.4.12.1 in 1800-2017 is contained in 11.4.12,
4+
// which suggests that the rules there apply to replication operators.
5+
// Hence, replications must not use unsized constants.
6+
wire [31:0] x = {4{'b1010}};
7+
8+
endmodule

0 commit comments

Comments
 (0)