3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-18 17:22:17 +00:00

Add some simple SVA test cases for future Verific work

This commit is contained in:
Clifford Wolf 2017-07-22 12:31:08 +02:00
parent 2785aaffeb
commit 024ba310ec
4 changed files with 45 additions and 0 deletions

12
tests/sva/basic01.sv Normal file
View file

@ -0,0 +1,12 @@
module top (input logic clock, ctrl);
logic read = 0, write = 0, ready = 0;
always @(posedge clock) begin
read <= !ctrl;
write <= ctrl;
ready <= write;
end
a_rw: assert property ( @(posedge clock) !(read && write) );
a_wr: assert property ( @(posedge clock) write |-> ready );
endmodule