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:
parent
7bae1b8bba
commit
8c5b65cf97
21 changed files with 3453 additions and 3 deletions
17
tests/mixed.v
Normal file
17
tests/mixed.v
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue