Download ModelSim SE Reference Manual

Transcript
AVM Encyclopedia
tlm_master_if
tlm_master_if
#(type REQ=int, type RSP=int)
The master interface is a bidirectional interface. It enables a master to put requests and get or
peek responses. It contains both blocking and nonblocking methods.
file
tlm/tlm_ifs.svh
virtual
yes
parameters
type REQ = int
Type of transactions to be handled on the put side.
type RSP = int
Type of transactions to be handled on the get/peek side.
members
<none>
methods
Pure virtual methods must have an implementation specified in a subclass.
pure virtual function bit can_get()
Returns 1 if a callee can supply a response transaction and 0 otherwise. If no time
elapses and nothing else happens to modify the state of the underlying component,
then a subsequent call to get(), try_get(), peek(), or try_peek() is guaranteed
to succeed.
pure virtual function bit can_peek()
Returns 1 if a callee can supply a response transaction and 0 otherwise. If no time
elapses and nothing else happens to modify the state of the underlying component,
then a subsequent call to get(), try_get(), peek(), or try_peek() is guaranteed
to succeed.
pure virtual function bit can_put()
Returns 1 if the callee can accept a request and 0 otherwise. If no time elapses and
nothing else happens to modify the state of the underlying component, then a
subsequent call to put() is guaranteed to succeed.
pure virtual task get(output RSP rsp)
Blocks until the callee is able to supply a response transaction, rsp. This is a
consuming method, so subsequent calls to get() return a different transaction (or a
new copy of the same transaction).
ModelSim SE Reference Manual, v6.4a
679