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:
parent
90d8329f64
commit
b24f737759
11 changed files with 110 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue