Download ModelSim SE Reference Manual

Transcript
AVM Encyclopedia
avm_*_imp
avm_*_imp
#(type T=int, type IMP=int)
extends avm_port_base #(tlm_*_if #(T))
avm_*_imp provides a tlm_*_if to ports and exports that require it. The actual implementation
of the methods that comprise tlm_*_if are defined in an object of type IMP (e.g., tlm_fifo
#(T)) which is passed in to the constructor.
file
tlm/avm_imps.svh
virtual
no
parameters
type T = int
Type of transactions to be communicated across the underlying interface.
type IMP = int
Type of the parent of this implementation.
internal members
local tlm_*_if #(T) m_if
Handle back to avm_*_imp.
local IMP m_imp
Handle to the component that implements the methods conveyed in the tlm_*_if
description.
methods
function new(string name, IMP imp)
name is the normal first argument to
an AVM 3.0 constructor. imp is a slightly
different form for the second argument to the AVM 3.0 constructor, which is of type
IMP and defines the type of the parent.
Since it is the purpose of an “imp” class to provide an implementation of a set of
interface tasks and functions, the particular set of tasks and functions available for
each avm_*_imp class is dependent on the type of the interface it implements, i.e.,
the particular TLM interface it extends.
Table 3-3 lists all the avm_*_imp classes and the interfaces each implements. The set
of tasks and functions implemented is listed in the description of the interface
classes.
632
ModelSim SE Reference Manual, v6.4a