Skip to content

Commit cbc268e

Browse files
authored
Merge pull request #376 from diffblue/enum_base_type2
Verilog: KNOWNBUG test for enum base type that depends on parameter
2 parents a3573b5 + b238b33 commit cbc268e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
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.
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)