Download Public Interface

Transcript
task connect(rvm_channel_class downstream)
Connect the output of this channel instance to the input of the
specified channel instance. The connection is performed with a
blocking model (see section Example: Simple Blocking Interface
on page A-34) to communicate the status of the downstream
channel to the producer interface of the upstream channel.
Flushing this channel will cause the connected channel to be
flushed as well. However, flushing the downstream channel will
not flush this channel.
The effective full and empty level of the combined channel is
equal to the sum of their respective levels minus one. However,
the detailed blocking behavior of the various interface methods
will differ from using a single channel with an equivalent
configuration. Additional zero-delay simulation cycles will be
required while transaction descriptors are transferred from the
upstream channel to the downstream channel.
Connected channels need not be of the same type but must carry
compatible polymorphic data.
The connection of a channel into another one can be dynamically
modified and broken by connection to a null reference. However,
modifying the connection while there is data flowing through the
channel may yield unpredictable behavior.
function class_name for_each(bit reset = 0)
Iterate over all of the transaction descriptors currently in the
channel. The content of the active slot, if non-empty, is not
included in the iteration. If the reset argument is TRUE, a
reference to the first transaction descriptor in the channel is
returned. Otherwise, a reference to the next transaction
descriptor in the channel is returned. Returns null when the last
transaction descriptor in the channel has been returned. It will
keep returning null unless reset.
Class Reference: Transaction Interface Class - rvm_channel
A-31