BufferedOutΒΆ

BufferedOut defines an addressable output stream from the accelerator, implemented in hardware as an SRAM buffer which is asynchronously (and implicitly) used to drive a set of output pins.

BufferedOut is similar in functionality to StreamOut, but allows address and frame-based writing. This is useful, for example, in video processing, when video needs to be processed on a frame-by-frame basis rather than a pixel-by-pixel basis.

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


Static methods

object BufferedOut
def apply[T:Type:Bits](bus: Bus): BufferedOut[T]
Creates a BufferedOut of type T connected to the specified bus.
The size of the buffer is currently fixed at 240 x 320 elements.

Infix methods

class BufferedOut[T]
def update(row: Index, col: Index, data: T): Unit
Write data to the given two dimensional address.