mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	In sat: 'x' in init attr should not override constant
This commit is contained in:
		
							parent
							
								
									c50d68653d
								
							
						
					
					
						commit
						51ffb093b5
					
				
					 3 changed files with 7 additions and 1 deletions
				
			
		|  | @ -268,6 +268,8 @@ struct SatHelper | |||
| 				RTLIL::SigSpec removed_bits; | ||||
| 				for (int i = 0; i < lhs.size(); i++) { | ||||
| 					RTLIL::SigSpec bit = lhs.extract(i, 1); | ||||
| 					if (bit.is_fully_const() && rhs[i] == State::Sx) | ||||
| 						rhs[i] = bit; | ||||
| 					if (!satgen.initial_state.check_all(bit)) { | ||||
| 						removed_bits.append(bit); | ||||
| 						lhs.remove(i, 1); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue