mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-11-04 06:39:11 +00:00 
			
		
		
		
	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.
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			456 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			456 B
		
	
	
	
		
			Text
		
	
	
	
	
	
[tasks]
 | 
						|
pass
 | 
						|
fail
 | 
						|
preunsat
 | 
						|
 | 
						|
[options]
 | 
						|
mode bmc
 | 
						|
depth 1
 | 
						|
 | 
						|
pass: expect pass
 | 
						|
fail: expect fail
 | 
						|
preunsat: expect error
 | 
						|
 | 
						|
[engines]
 | 
						|
smtbmc boolector
 | 
						|
 | 
						|
[script]
 | 
						|
fail: read -define FAIL
 | 
						|
preunsat: read -define PREUNSAT
 | 
						|
read -sv test.sv
 | 
						|
prep -top top
 | 
						|
 | 
						|
[file test.sv]
 | 
						|
module test(input foo);
 | 
						|
always @* assert(foo);
 | 
						|
`ifdef FAIL
 | 
						|
always @* assert(!foo);
 | 
						|
`endif
 | 
						|
`ifdef PREUNSAT
 | 
						|
always @* assume(!foo);
 | 
						|
`endif
 | 
						|
endmodule
 | 
						|
 | 
						|
module top();
 | 
						|
test test_i (
 | 
						|
.foo(1'b1)
 | 
						|
);
 | 
						|
endmodule
 |