Modelsim Quick Guide
Modelsim Quick Guide
4
ModelSim 6.4 SUPPORT Quick Guide
Key Command Arguments 2. Optimized designs simulate faster, while non-optimized designs provide -coverage Enables statistics collection
object visibility for debugging.
Use <command> -help for a full list. Key Arguments to vopt
3. Use +acc with vopt or vsim -voptargs with +acc for selective design object
-cover bcefsx Specifies coverage type(s)
visibility during debugging.
-nocover Disable coverage on all source files
QVERILOG 4. Read “Optimizing Designs with vopt” in the User’s Manual for additional
information.
The qverilog command compiles, optimizes, and simulates Verilog and
SystemVerilog designs in a single step.
Quick Guide Wave Window
Key arguments to vopt
1. automatic work library creation -o <name> Optimized design name add wave <item> Wave specific signals/nets
2. support for all standard vlog arguments <design> Top-level design unit add wave * Wave signals/nets in scope
3. support for C/C++ files via the SystemVerilog DPI [+acc=[<spec>]+[<module>]] Enable design object visibility add wave -r /* Wave all signals/nets in design
4. implicit “run -all; quit” unless using -i, -gui, -do (see -R below) -cover bcefsx Specifies coverage type(s) add wave abus(31:15) Wave a slice of a bus
5. vopt performance invoked (see the vopt section of this guide) -nocover Disable coverage on all source files view wave Display wave window
Key arguments to qverilog
<filename> Verilog source code file to compile, one is
-g
-G Questa SV/AFV 6.3
Assigns a value to generics and parameters with no value
Forces value assignment for generics and parameters
view wave -new
write wave
Display additional wave window
Print wave window to file
required Key arguments to vsim <left mouse button> Select signal / Place cursor
[-R <sim_options>] vsim command options applied to simulation [-vopt] Run vopt if not automatically invoked <middle mouse button> Zoom options
[-voptargs=”<args>”] Arguments passed to vopt, use +acc args for <right mouse button> Context Menu
SCCOM design visibility <ctrl-f> Find next item
<tab> (go right) Search forward for next edge
-link Links source code, required modelsim.ini variable <shift-tab> (go left) Search backward for next edge
[CPP option] C++ compiler option VoptFlow = 1 Set vopt optimized flow as default i or + | o or - Zoom in | Zoom out
[-g] Compile with debugging info VoptFlow = 0 Set non-optimized flow as default f | l Zoom full | Zoom Last
-vv Echo subprocess invocations on stdout
[-scv] Includes SystemC verification library Key modelsim.ini variables
VSIM
<filename(s)> SystemC files to be compiled WLF* Waveform management variables
WLFCacheSize Change default or disable WLF file cache
[-c ] Run in cmd line mode
VCOM
[-coverage] Invoke Code Coverage RED text = ModelSim SE only.
[-2002] [-93] [-87] Choose VHDL 2002,1993, or 1987 [-do “cmd” | <file>] Run cmd or file at startup
[-check_synthesis] Turn on synthesis checker [-elab] Create elaboration file
[-debugVA] Print VITAL opt status [-f <filename>] Pass in args from file
[-explicit] Resolve ambiguous overloads [-g|G<name=value>] Set VHDL Generic values
[-help] Display vcom syntax help [-hazards] Enable hazard checking
[-f <filename>] Pass in arguments from file [-help] Display vsim syntax help
[-norangecheck] Disable run time range checks [-l <logfile>] Save transcript to log file
[-nodebug] Hide internal variables & structure [-load_elab] Simulate an elaboration file
[-novitalcheck] Disable VITAL95 checking [+notimingchecks] Disable timing checks
[-nowarn <#>] Disable individual warning msg [-quiet] Disable loading messages
[-quiet] Disable loading messages [-restore <filename>] Restore a simulation
[-refresh] Regenerate library image [-sdf{min|typ|max} <region>=<sdffile>] Apply SDF timing data e.g.,
[-version] Returns vcom version sdfmin /top=MySDF.txt
[-work <libname>] Specify work library [-sdfnowarn] Disable SDF warnings
<filename(s)> VHDL file(s) to be compiled [-t [<mult>]<unit>] Time resolution
[-vcdstim [<instance>=]<filename>] Stimulate the top-level design or
VLOG instances from an Extended VCD file
[-vlog95compat] Disable Verilog 2001 keywords [-version] Returns vsim version
[-compat] Disable event order optimizations [-vopt] Run vopt automatically
[-f <filename>] Pass in arguments from file [-novopt] Disables automatic vopt run
[-hazards] Enable run-time hazard checking [-voptargs=”<args>”] Arguments to pass to vopt
[-help] Display vlog syntax help [-view <filename>] Log file for VSIM to view
[-nodebug] Hide internal variables & structure [-wlf <filename>] Log file to create
[-quiet] Disable loading messages [<libname>.<design_unit> Configuration, Module, Entity/Arch, or
[-R <simargs>] Invoke VSIM after compile optimized design to simulate
[-refresh] Regenerate lib to current version [-wlfcachesize] Specify WLF reader cache size (per WLF file.)
[-sv] Enables SystemVerilog keywords [-wlfslim <size>] Specify the number of Megabytes to be saved in
[-version] Returns vlog version event log file
[-v <library_file>] Specify Verilog source library [-wlftlim <duration>] Specify the duration of time to be saved in
[-work <libname>] Specify work library event log file
<filename(s)> Verilog file(s) to be compiled 8005 SW Boeckman Road
Code Coverage Wilsonville, OR 97070
VOPT Phone: 503.685.0820
Key Arguments to vcom/vlog
Design optimization options -cover bcefsx Specifies coverage type(s) Toll free: 877.744.6699
1. The VoptFlow modelsim.ini variable (below) sets the default design Fax: 503.685.0910
Key Arguments to vsim
optimization on (1) or off (0). Copyright © 2008 Mentor Graphics Corporation 1026660