ShadowFactory

chisel3.util.Queue.ShadowFactory

A factory for creating shadow queues. This is created using the withShadow method.

Attributes

Source
Queue.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply[A <: Data](data: A, layer: Layer): Valid[A]

Create a "shadow" Queue in a specific layer that will be queued and dequeued in lockstep with an original Queue. Connections are made using BoringUtils.tapAndRead which allows this method to be called anywhere in the hierarchy.

Create a "shadow" Queue in a specific layer that will be queued and dequeued in lockstep with an original Queue. Connections are made using BoringUtils.tapAndRead which allows this method to be called anywhere in the hierarchy.

An intended use case of this is as a building block of a "shadow" design verification datapath which augments an existing design datapath with additional information. E.g., a shadow datapath that tracks transations in an interconnect.

Value parameters

data

a hardware data that should be enqueued together with the original Queue's data

layer

the Layer in which this queue should be created

Attributes

Returns

a layer-colored Valid interface of probe type

Source
Queue.scala