Skip to content

Commit f48e9b2

Browse files
authored
Merge pull request #577 from diffblue/immediate1-1
Verilog: add test for conditional immediate assertion
2 parents 756dfeb + 1ca0d63 commit f48e9b2

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
immediate1.sv
3+
--bound 20
4+
^\[main\.assert\.1\] always \(main\.x == 11 \|-> main\.x & 1\): PROVED up to bound 20$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
9+
--

regression/verilog/SVA/immediate1.sv

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module main(input clk);
2+
3+
reg [31:0] x;
4+
5+
initial x=0;
6+
7+
always @(posedge clk) begin
8+
if(x == 11)
9+
assert(x & 1); // holds
10+
11+
x<=x+1;
12+
end
13+
14+
endmodule

0 commit comments

Comments
 (0)