aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sva/sva_value_change_rose.sv
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sva/sva_value_change_rose.sv')
-rw-r--r--tests/sva/sva_value_change_rose.sv20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/sva/sva_value_change_rose.sv b/tests/sva/sva_value_change_rose.sv
new file mode 100644
index 000000000..d1c5290f1
--- /dev/null
+++ b/tests/sva/sva_value_change_rose.sv
@@ -0,0 +1,20 @@
+module top (
+ input clk,
+ input a, b
+);
+ default clocking @(posedge clk); endclocking
+
+ wire a_copy;
+ assign a_copy = a;
+
+ assert property (
+ $rose(a) |-> b
+ );
+
+`ifndef FAIL
+ assume property (
+ $rose(a_copy) |-> b
+ );
+`endif
+
+endmodule