|
|
const state_type_t & | state () const noexcept |
| | Gets the state.
|
| |
|
template<typename UL = unsigned long, typename std::enable_if<(sizeof(UL) *CHAR_BIT >=64), std::nullptr_t >::type = nullptr> |
| uint64_t | value () const |
| | Gets the state value.
|
| |
|
template<typename UL = unsigned long, typename std::enable_if<(sizeof(UL) *CHAR_BIT< 64), std::nullptr_t >::type = nullptr> |
| uint64_t | value () const |
| |
|
bool | step () noexcept |
| | Shift 1 step (Left). Returns output bit (MSB before shift)
|
| |
|
uint64_t | step (const uint32_t nbits) noexcept |
| | Shift nbits steps and pack outputs LSB-first.
|
| |
|
|
| FibonacciLFSR_Left (const uint64_t seed) noexcept |
| |
|
| FibonacciLFSR_Left (const state_type_t s) noexcept |
| |
|
|
uint16_t | next16 () noexcept |
| |
|
uint32_t | next32 () noexcept |
| |
|
uint64_t | next64 () noexcept |
| |
template<uint32_t N, uint32_t... Taps>
class m5::utility::FibonacciLFSR_Left< N, Taps >
Fibonacci LFSR (left-shift version)
- Template Parameters
-
| N | Value bit width (1..64) |
| Taps | Tap bit indexes |
- Note
- Output bit = MSB, feedback is inserted to LSB (left shift).