FibonacciLFSR

chisel3.util.random.FibonacciLFSR
See theFibonacciLFSR companion class
object FibonacciLFSR

Utility for generating a pseudorandom UInt from a FibonacciLFSR.

For example, to generate a pseudorandom 8-bit UInt that changes every cycle, you can use:

val pseudoRandomNumber = FibonacciLFSR.maxPeriod(8)

Attributes

Companion
class
Source
FibonacciLFSR.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(width: Int, taps: Set[Int], increment: Bool = ..., seed: Option[BigInt] = ..., reduction: LFSRReduce = ...): UInt

Return a pseudorandom UInt generated from a FibonacciLFSR.

Return a pseudorandom UInt generated from a FibonacciLFSR.

Value parameters

increment

when asserted, a new random value will be generated

reduction

the reduction operation (either XOR or XNOR)

seed

an initial value for internal LFSR state

taps

a set of tap points to use when constructing the LFSR

width

of pseudorandom output

Attributes

Source
FibonacciLFSR.scala
def maxPeriod(width: Int, increment: Bool = ..., seed: Option[BigInt] = ..., reduction: LFSRReduce = ...): UInt

Return a pseudorandom UInt generated using a maximal period FibonacciLFSR

Return a pseudorandom UInt generated using a maximal period FibonacciLFSR

Value parameters

increment

when asserted, a new random value will be generated

reduction

the reduction operation (either XOR or XNOR)

seed

an initial value for internal LFSR state

width

of pseudorandom output

Attributes

Source
FibonacciLFSR.scala