3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-27 21:48:58 +00:00

Improve SVA tests, add Makefile and scripts

This commit is contained in:
Clifford Wolf 2017-07-27 11:42:05 +02:00
parent 90d8329f64
commit b24f737759
11 changed files with 110 additions and 9 deletions

View file

@ -2,6 +2,11 @@ module top (input clk, reset, antecedent, output reg consequent);
always @(posedge clk)
consequent <= reset ? 0 : antecedent;
`ifdef FAIL
test_assert: assert property ( @(posedge clk) disable iff (reset) antecedent |-> consequent )
else $error("Failed with consequent = ", $sampled(consequent));
`else
test_assert: assert property ( @(posedge clk) disable iff (reset) antecedent |=> consequent )
else $error("Failed with consequent = ", $sampled(consequent));
`endif
endmodule