mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	formalff -setundef: Fix handling for has_srst FFs
The `has_srst`` case was checking `sig_ce` instead of `sig_srst` due to a copy and paste error. This would crash when `has_ce` was false and could incorrectly determine that an initial value is unused when `has_ce` and `has_srst` are both set.
This commit is contained in:
		
							parent
							
								
									7bb2746208
								
							
						
					
					
						commit
						2bd889a59a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -237,7 +237,7 @@ struct InitValWorker | ||||||
| 					return true; | 					return true; | ||||||
| 				if (ff.has_ce && initconst(ff.sig_ce.as_bit()) == (ff.pol_ce ? State::S0 : State::S1)) | 				if (ff.has_ce && initconst(ff.sig_ce.as_bit()) == (ff.pol_ce ? State::S0 : State::S1)) | ||||||
| 					continue; | 					continue; | ||||||
| 				if (ff.has_srst && initconst(ff.sig_ce.as_bit()) == (ff.pol_srst ? State::S1 : State::S0)) | 				if (ff.has_srst && initconst(ff.sig_srst.as_bit()) == (ff.pol_srst ? State::S1 : State::S0)) | ||||||
| 					continue; | 					continue; | ||||||
| 
 | 
 | ||||||
| 				return true; | 				return true; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue