class
Pipe[T <: Data] extends Module
Instance Constructors
-
new
Pipe(gen: T, latency: Int = 1)(implicit compileOptions: CompileOptions)
Type Members
-
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
IO[T <: Data](iodef: T): T
-
def
_bindIoInPlace(iodef: Data): Unit
-
-
def
_compatAutoWrapPorts(): Unit
-
def
_compatIoPortBound(): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
circuitName: String
-
final
val
clock: Clock
-
def
clone(): AnyRef
-
-
def
computeName(defaultPrefix: Option[String], defaultSeed: Option[String]): Option[String]
-
def
desiredName: String
-
-
-
def
finalize(): Unit
-
val
gen: T
-
final
def
getClass(): Class[_]
-
def
getCommands: Seq[Command]
-
def
getIds: Seq[HasId]
-
def
getModulePorts: Seq[Data]
-
lazy val
getPorts: Seq[Port]
-
-
def
hashCode(): Int
-
def
instanceName: String
-
-
final
def
isInstanceOf[T0]: Boolean
-
val
latency: Int
-
final
lazy val
name: String
-
def
nameIds(rootClass: Class[_]): HashMap[HasId, String]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
var
override_reset: Option[Bool]
-
def
parentModName: String
-
def
parentPathName: String
-
def
pathName: String
-
def
portsContains(elem: Data): Boolean
-
def
portsSize: Int
-
final
val
reset: Reset
-
def
suggestName(seed: ⇒ String): Pipe.this.type
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
toAbsoluteTarget: IsModule
-
-
def
toString(): String
-
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Pipeline module generator parameterized by data type and latency.
This defines a module with one input,
enq
, and one output,deq
. The input and output are Valid interfaces that wrap some Chisel type, e.g., a UInt or a Bundle. This generator will then chain together a number of pipeline stages that all advance when the input Validenq
fires. The outputdeq
Valid will fire only when valid data has made it all the way through the pipeline.As an example, to construct a 4-stage pipe of 8-bit UInts and connect it to a producer and consumer, you can use the following:
If you already have the Valid input or the components of a Valid interface, it may be simpler to use the Pipe factory companion object. This, which Pipe internally utilizes, will automatically connect the input for you.
The ShiftRegister factory to generate a pipe without a Valid interface
Queue and the Queue factory for actual queues
Valid interface
Pipe factory for an alternative API