mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Improved setundef random number generator
This commit is contained in:
		
							parent
							
								
									091d9abc3e
								
							
						
					
					
						commit
						839af272ad
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -40,7 +40,7 @@ static RTLIL::State next_bit()
 | 
			
		|||
	next_bit_state ^= next_bit_state << 5;
 | 
			
		||||
	log_assert(next_bit_state != 0);
 | 
			
		||||
 | 
			
		||||
	return ((next_bit_state >> (next_bit_state & 15)) & 1) ? RTLIL::State::S0 : RTLIL::State::S1;
 | 
			
		||||
	return ((next_bit_state >> (next_bit_state & 15)) & 16) ? RTLIL::State::S0 : RTLIL::State::S1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
struct SetundefWorker
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue