mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Ignore all 1'bx in (* init *)
This commit is contained in:
		
							parent
							
								
									00387f3927
								
							
						
					
					
						commit
						28133432be
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -268,9 +268,7 @@ struct SatHelper | ||||||
| 				RTLIL::SigSpec removed_bits; | 				RTLIL::SigSpec removed_bits; | ||||||
| 				for (int i = 0; i < lhs.size(); i++) { | 				for (int i = 0; i < lhs.size(); i++) { | ||||||
| 					RTLIL::SigSpec bit = lhs.extract(i, 1); | 					RTLIL::SigSpec bit = lhs.extract(i, 1); | ||||||
| 					if (bit.is_fully_const() && rhs[i] == State::Sx) | 					if (rhs[i] == State::Sx || !satgen.initial_state.check_all(bit)) { | ||||||
| 						rhs[i] = bit; |  | ||||||
| 					if (!satgen.initial_state.check_all(bit)) { |  | ||||||
| 						removed_bits.append(bit); | 						removed_bits.append(bit); | ||||||
| 						lhs.remove(i, 1); | 						lhs.remove(i, 1); | ||||||
| 						rhs.remove(i, 1); | 						rhs.remove(i, 1); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue