mirror of
https://github.com/YosysHQ/sby.git
synced 2025-11-01 21:37:52 +00:00
Refactor tests
Organize tests into subdirectories and use a new makefile that scans .sby files and allows selecting tests by mode, engine, solver and/or subdirectory. Automatically skips tests that use engines/solvers that are not found in the PATH. See `cd tests; make help` for a description of supported make targets.
This commit is contained in:
parent
6daa434d85
commit
8da6f07cb3
60 changed files with 328 additions and 101 deletions
17
tests/unsorted/mixed.v
Normal file
17
tests/unsorted/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