mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-10-31 04:52:30 +00:00 
			
		
		
		
	Remove asserts during cover mode
This commit is contained in:
		
							parent
							
								
									b47d2829f9
								
							
						
					
					
						commit
						81873292c9
					
				
					 3 changed files with 5 additions and 2 deletions
				
			
		|  | @ -1020,7 +1020,7 @@ class SbyTask(SbyConfig): | ||||||
|                     if self.opt_mode in ["bmc", "prove"]: |                     if self.opt_mode in ["bmc", "prove"]: | ||||||
|                         print("chformal -live -fair -cover -remove", file=f) |                         print("chformal -live -fair -cover -remove", file=f) | ||||||
|                     if self.opt_mode == "cover": |                     if self.opt_mode == "cover": | ||||||
|                         print("chformal -live -fair -remove", file=f) |                         print("chformal -live -fair -assert -remove", file=f) | ||||||
|                     if self.opt_mode == "live": |                     if self.opt_mode == "live": | ||||||
|                         print("chformal -assert2assume", file=f) |                         print("chformal -assert2assume", file=f) | ||||||
|                         print("chformal -cover -remove", file=f) |                         print("chformal -cover -remove", file=f) | ||||||
|  |  | ||||||
|  | @ -8,6 +8,9 @@ cover: mode cover | ||||||
| bmc: mode bmc | bmc: mode bmc | ||||||
| bmc: depth 1 | bmc: depth 1 | ||||||
| 
 | 
 | ||||||
|  | cover: expect pass | ||||||
|  | ~cover: expect fail | ||||||
|  | 
 | ||||||
| [engines] | [engines] | ||||||
| cover: btor btormc | cover: btor btormc | ||||||
| btormc: btor btormc | btormc: btor btormc | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ module test (input CP, CN, input A, B, output reg XP, XN); | ||||||
| 	always @* begin | 	always @* begin | ||||||
| 		assume (A || B); | 		assume (A || B); | ||||||
| 		assume (!A || !B); | 		assume (!A || !B); | ||||||
| 		assert (A != B); | 		assert (A == B); | ||||||
| 		cover (counter == 3 && A); | 		cover (counter == 3 && A); | ||||||
| 		cover (counter == 3 && B); | 		cover (counter == 3 && B); | ||||||
| 	end | 	end | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue