ShiftRegister

chisel3.util.ShiftRegister
object ShiftRegister

Attributes

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

Members list

Value members

Inherited methods

def apply[T <: Data](in: T, n: Int, resetData: T, en: Bool)(using SourceInfo): T

Returns the n-cycle delayed version of the input signal with reset initialization.

Returns the n-cycle delayed version of the input signal with reset initialization.

Value parameters

en

enable the shift

in

input to delay

n

number of cycles to delay

resetData

reset value for each register in the shift

Attributes

Example
val regDelayTwoReset = ShiftRegister(nextVal, 2, 0.U, ena)
Inherited from:
ShiftRegisterIntf (hidden)
Source
RegIntf.scala
def apply[T <: Data](in: T, n: Int)(using SourceInfo): T

Returns the n-cycle delayed version of the input signal.

Returns the n-cycle delayed version of the input signal.

Enable is assumed to be true.

Value parameters

in

input to delay

n

number of cycles to delay

Attributes

Example
val regDelayTwo = ShiftRegister(nextVal, 2)
Inherited from:
ShiftRegisterIntf (hidden)
Source
RegIntf.scala
def apply[T <: Data](in: T, n: Int, en: Bool = ...)(using SourceInfo): T

Returns the n-cycle delayed version of the input signal.

Returns the n-cycle delayed version of the input signal.

Value parameters

en

enable the shift

in

input to delay

n

number of cycles to delay

Attributes

Example
val regDelayTwo = ShiftRegister(nextVal, 2, ena)
Inherited from:
ShiftRegisterIntf (hidden)
Source
RegIntf.scala
def mem[T <: Data](in: T, n: Int, en: Bool, useDualPortSram: Boolean, name: Option[String])(using SourceInfo): T

Returns the n-cycle delayed version of the input signal (SyncReadMem-based ShiftRegister implementation).

Returns the n-cycle delayed version of the input signal (SyncReadMem-based ShiftRegister implementation).

Value parameters

en

enable the shift

in

input to delay

n

number of cycles to delay

name

name of SyncReadMem object

useDualPortSram

dual port or single port SRAM based implementation

Attributes

Inherited from:
ShiftRegisterIntf (hidden)
Source
RegIntf.scala