Skip to content

Commit b238b33

Browse files
committed
Verilog: KNOWNBUG test for enum base type that depends on parameter
1 parent 9e2e50e commit b238b33

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
enum_base_type2.sv
3+
--bound 0
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^\[.*\] always 8 == 8: PROVED up to bound 0$
7+
--
8+
--
9+
The base type of an enum may depend on an elaboration-time constant.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module main;
2+
3+
// The base type of an enum may depend on an elaboration-time constant.
4+
typedef enum bit [p:1] { A } enum_t;
5+
6+
parameter p = 8;
7+
8+
// expected to pass
9+
p1: assert property ($bits(A) == p);
10+
11+
endmodule

0 commit comments

Comments
 (0)