mirror of https://github.com/YosysHQ/yosys.git
Improved setundef random number generator
This commit is contained in:
parent
091d9abc3e
commit
839af272ad
|
@ -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…
Reference in New Issue