StreamIn

StreamIn defines a hardware bus used to receive streaming data from outside of the FPGA. StreamIns may not be written to. For streaming outputs, use StreamOut. StreamIns are specified using a Bits - based type and a target Bus.

In Spatial, StreamIns are specified outside the Accel block, in host code.


Static methods

object StreamIn
def apply[T:Type:Bits](bus: Bus): StreamIn[T]
Creates a StreamIn of type T connected to the specified bus pins.

Infix methods

class StreamIn[T]
def value: T
Returns the current value of this StreamIn.
Equivalent in hardware to connecting a wire to the StreamIn’s bus.

Implicit methods

def readStream[T](stream: StreamIn[T]): T
Implicitly creates a wire connecting to the StreamIn’s bus.