summaryrefslogtreecommitdiff
path: root/passes
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-01-18 02:56:36 +0100
committerClifford Wolf <clifford@clifford.at>2014-01-18 02:56:36 +0100
commit839af272adeb6e15c0b1fd1c35249db4a9da9f4d (patch)
tree4c98ec4b6d0057efab1ea42d4b91f9778714e351 /passes
parent091d9abc3e7a92329211d32f17ad6a49d5339fc5 (diff)
Improved setundef random number generator
Diffstat (limited to 'passes')
-rw-r--r--passes/cmds/setundef.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/cmds/setundef.cc b/passes/cmds/setundef.cc
index 394834a3..9d59834c 100644
--- a/passes/cmds/setundef.cc
+++ b/passes/cmds/setundef.cc
@@ -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