We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cca195 commit 55303bcCopy full SHA for 55303bc
regression/verilog/structs/structs4.desc
@@ -0,0 +1,7 @@
1
+CORE
2
+structs4.sv
3
+--bound 0
4
+^\[main\.p0\] always main\.w == 'h173: PROVED up to bound 0$
5
+^EXIT=0$
6
+^SIGNAL=0$
7
+--
regression/verilog/structs/structs4.sv
@@ -0,0 +1,21 @@
+module main;
+
+ // The first field is the most-significant bit.
+ struct packed {
+ bit field1, field2;
+ bit [6:0] field3;
+ } s;
8
9
+ initial begin
10
+ s.field1 = 1;
11
+ s.field2 = 0;
12
+ s.field3 = 'b1110011;
13
+ end
14
15
+ // structs can be converted without cast to bit-vectors
16
+ wire [8:0] w = s;
17
18
+ // Expected to pass.
19
+ p0: assert property (w == 'b1_0_1110011);
20
21
+endmodule
0 commit comments