Download MMAV User`s Guide

Transcript
Example
denaliMemInstance inst;
inst = new("ddr0");
Methods
Name
Description
getId()
Gets the Id.
getInstName()
Gets the instance name.
setCbTaskName()
Sets the DPI callback task name.
getCbTaskName()
Gets the DPI callback task name.
setCallback()
Sets callbacks on memory accesses.
write()
Writes the memory contents.
read()
Returns the memory contents.
tclEval()
Executes a Tcl command using the embedded the Tcl interpreter.
ReadCbT()
This task is called whenever a read callback occurs.
WriteCbT()
This task is called whenever a write callback occurs.
DefaultCbT()
This task is called when any enabled callback occurs.
LoadCbT()
This task is called when a load callback occurs.
LoadDoneCbT()
This task is called when a load done callback occurs.
ResetCbT()
This task is called when a reset callback occurs.
CompCbT()
This task is called when a compare callback occurs.
CompDoneCbT()
This task is called when a compare done callback occurs.
ReadEiCbT()
This task is called when an error is being injected in the current memory read operation.
getId()
Gets the id that can be used to access Denali memory.
Syntax
virtual function integer getId()
Arguments
None
Returned Value
This function returns the id.
Example
MMAV User’s Guide
7/7/08
143