mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-20 02:00:23 +00:00
Add some simple SVA test cases for future Verific work
This commit is contained in:
parent
2785aaffeb
commit
024ba310ec
4 changed files with 45 additions and 0 deletions
16
tests/sva/basic02.sv
Normal file
16
tests/sva/basic02.sv
Normal file
|
@ -0,0 +1,16 @@
|
|||
module top (input logic clock, ctrl);
|
||||
logic read = 0, write = 0, ready = 0;
|
||||
|
||||
always @(posedge clock) begin
|
||||
read <= !ctrl;
|
||||
write <= ctrl;
|
||||
ready <= write;
|
||||
end
|
||||
endmodule
|
||||
|
||||
module top_properties (input logic clock, read, write, ready);
|
||||
a_rw: assert property ( @(posedge clock) !(read && write) );
|
||||
a_wr: assert property ( @(posedge clock) write |-> ready );
|
||||
endmodule
|
||||
|
||||
bind top top_properties inst (.*);
|
Loading…
Add table
Add a link
Reference in a new issue