Skip to content

Commit e5aab85

Browse files
authored
Merge pull request #826 from diffblue/concatenation6
Verilog: test for concatenation that contains an enum
2 parents 3ea0b0d + f340d83 commit e5aab85

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
concatenation6.sv
3+
--bound 0
4+
^\[.*\] always main\.x == \{ 0, 1 \}: PROVED up to bound 0$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module main;
2+
3+
typedef enum { RED, YELLOW1, GREEN, YELLOW2 } my_enum;
4+
5+
// enums are allowed in concatenations
6+
wire [63:0] x = { RED, YELLOW1 };
7+
8+
assert final (x == {32'd0, 32'd1});
9+
10+
endmodule

0 commit comments

Comments
 (0)