Technical data
Logic Modeling Hardware Modeler
ModelSim EE/PLUS Reference Manual Logic Modeling Library and Hardware Modeler
-
511
just like any other Verilog modules in Model
Sim
Verilog. Details on the Verilog
shells are in the
SmartModel Library Simulator Interface Manual
(see "LMTV
usage documentation" (p510)). The command line plus options and LMTV
system tasks described in that document also apply to Model
Sim
.
Chan
g
in
g
the default time precision
After you have compiled your design you are ready to simulate. The default time
precision for SmartModels is 100ps, so you must invoke
vsim
(p91) with the
-t
100ps
option (VSIM
defaults to 1ns resolution).
Note:
On sun4 you must run
vsim.swift
instead of
vsim
. Also, be sure to add
$LMC_HOME/lib/
sun4SunOS.lib
to your LD_LIBRARY_PATH environment variable.
Logic Modeling Hardware Modeler
Model
Sim
/PLUS also supports Logic Modeling’s hardware modeler.
Before you can instantiate a hardware model in your design, you must first create
a VHDL entity with the HM_ENTITY tool. HM_ENTITY takes a shell software
filename as its only argument and writes a VHDL entity and foreign architecture
to stdout. The Logic Modeling environment variables LM_DIR and LM_LIB
must be set before running HM_ENTITY. Documentation on these environment
variables, shell software files, and the hardware modeler are supplied by Logic
Modeling.
Model
Sim
’s interface to the hardware modeler is specified in the
modelsim.ini
file
(see "System Initialization/Project File" (p413)):
[lmc]
libsm = $MODEL_TECH/libsm.sl
The
.ini
file also specifies the Logic Modeling SFI software location for each
platform:
; Logic Modeling's hardware modeler SFI software (HP 9000 Series 700)
; libsfi = <sfi_dir>/lib/hp700/libsfi.sl
; Logic Modeling's hardware modeler SFI software (IBM RISC System/6000)
; libsfi = <sfi_dir>/lib/rs6000/libsfi.a
; Logic Modeling's hardware modeler SFI software (Sun4 Solaris)
; libsfi = <sfi_dir>/lib/sun4.solaris/libsfi.so
; Logic Modeling's hardware modeler SFI software (Sun4 SunOS)
; libsfi = <sfi_dir>/lib/sun4.sunos/libsfi.so