mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-11-03 22:29:12 +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.
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			382 B
		
	
	
	
		
			Text
		
	
	
	
	
	
[options]
 | 
						|
mode cover
 | 
						|
depth 5
 | 
						|
expect pass,fail
 | 
						|
 | 
						|
[engines]
 | 
						|
smtbmc boolector
 | 
						|
 | 
						|
[script]
 | 
						|
read -sv test.v
 | 
						|
prep -top test
 | 
						|
 | 
						|
[file test.v]
 | 
						|
module test(
 | 
						|
input clk,
 | 
						|
input rst,
 | 
						|
output reg [3:0] count
 | 
						|
);
 | 
						|
 | 
						|
initial assume (rst == 1'b1);
 | 
						|
 | 
						|
always @(posedge clk) begin
 | 
						|
if (rst)
 | 
						|
  count <= 4'b0;
 | 
						|
else
 | 
						|
  count <= count + 1'b1;
 | 
						|
 | 
						|
cover (count == 0 && !rst);
 | 
						|
cover (count == 4'd11 && !rst);
 | 
						|
end
 | 
						|
endmodule
 |