mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-12 16:28:17 +00:00
examples: Fix use of SVA value change expressions
The $stable value change expression cannot be true for a non-x signal in the initial state. This is now correctly handled by the verific import, so the dpmem example needs to start assuming `$stable` only after leaving the initial state.
This commit is contained in:
parent
832888f0f0
commit
fedfae0e9c
|
@ -47,9 +47,9 @@ module top (
|
||||||
(* gclk *) reg gclk;
|
(* gclk *) reg gclk;
|
||||||
|
|
||||||
always @(posedge gclk) begin
|
always @(posedge gclk) begin
|
||||||
assume ($stable(rc) || $stable(wc));
|
|
||||||
|
|
||||||
if (!init) begin
|
if (!init) begin
|
||||||
|
assume ($stable(rc) || $stable(wc));
|
||||||
|
|
||||||
if ($rose(rc) && shadow_valid && shadow_addr == $past(ra)) begin
|
if ($rose(rc) && shadow_valid && shadow_addr == $past(ra)) begin
|
||||||
assert (shadow_data == rd);
|
assert (shadow_data == rd);
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue