3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-12-09 14:53:25 +00:00

add tests directory with additional tests

This commit is contained in:
N. Engelhardt 2020-07-24 13:50:02 +02:00
parent 7bae1b8bba
commit 8c5b65cf97
21 changed files with 3453 additions and 3 deletions

17
tests/mixed.v Normal file
View file

@ -0,0 +1,17 @@
module test (input CP, CN, CX, input A, B, output reg XP, XN, YP, YN);
always @* begin
assume (A || B);
assume (!A || !B);
assert (A != B);
cover (A);
cover (B);
end
always @(posedge CP)
XP <= A;
always @(negedge CN)
XN <= B;
always @(posedge CX)
YP <= A;
always @(negedge CX)
YN <= B;
endmodule