mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-10-30 20:42:30 +00:00 
			
		
		
		
	examples: Fix use of SVA value change expressions
The $stable value change expression cannot be true for a non-x signal in the initial state. This is now correctly handled by the verific import, so the dpmem example needs to start assuming `$stable` only after leaving the initial state.
This commit is contained in:
		
							parent
							
								
									832888f0f0
								
							
						
					
					
						commit
						fedfae0e9c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -47,9 +47,9 @@ module top ( | |||
| 	(* gclk *) reg gclk; | ||||
| 
 | ||||
| 	always @(posedge gclk) begin | ||||
| 		assume ($stable(rc) || $stable(wc)); | ||||
| 
 | ||||
| 		if (!init) begin | ||||
| 			assume ($stable(rc) || $stable(wc)); | ||||
| 
 | ||||
| 			if ($rose(rc) && shadow_valid && shadow_addr == $past(ra)) begin | ||||
| 				assert (shadow_data == rd); | ||||
| 			end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue