Download FlexModel User`s Manual

Transcript
v
FlexModel User’s Manual
Chapter 3: FlexModel Command Modes
VERA Files in the LMC_HOME Tree
Table 1 describes the VERA files installed in your LMC_HOME tree.
Table 1: VERA Files in the LMC_HOME Directory
File Name
Location
Description
lstmodel.vrh
$LMC_HOME/sim/vera/src
External class declaration for LstModel class.
swiftmodel.vrh
$LMC_HOME/sim/vera/src
External class declaration for SwiftModel class.
flexmodel_pkg.vrh
$LMC_HOME/sim/vera/src
External class declaration for the Flex class.
model_pkg.vrh
$LMC_HOME/models/model_fx/mo External class declaration for the model-specific
del_fxversion/src/vera
ModelFx class.
lstmodel.vr
$LMC_HOME/sim/vera/src
Source file for the LstModel class.
swiftmodel.vr
$LMC_HOME/sim/vera/src
Source file for the SwiftModel class.
flexmodel_pkg.vr
$LMC_HOME/sim/vera/src
Source file for the Flex class.
model_pkg.vr
$LMC_HOME/models/model_fx/mo VERA source file for the model-specific ModelFx
del_fxversion/src/vera
class.
The ModelFx Class Constructor
The constructor for a ModelFx class expects two string arguments, the FlexModel
instance name and the clock signal.
The first argument, the FlexModel instance name, is the string instance name given to
the FlexModel in the top-level Verilog or VHDL testbench. The constructor uses this
argument to get an instance handle for the FlexModel. If the instance name passed is
invalid, the model issues an error and sets a flag in the class indicating the severity of the
error. (For information on accessing the error status, see “Accessing the Current Error
Status” on page 51.)
The second argument is the full path to the clock signal to be used in FlexModel
commands. This clock signal is used within commands that have associated wait
behavior. VERA creates a dynamic bind to this clock signal within the constructor using
VERA’s signal_connect feature.
Because you are using VERA’s signal_connect function, you must use the -x switch
with Verilog-XL at runtime, or use -P $VERA_HOME/lib/vera_pli_dyn.tab for VCS at
runtime. For more information about the signal_connect function, refer to the Vera
Verification System User’s Manual.
August 28, 2001
Synopsys, Inc.
49