Home

ModelSim 5.8 Quick Guide

image

Contents

1. sdfnowarn Disable SDF warnings t lt mult gt lt unit gt Time resolution version Returns vsim version view lt filename gt Log file for VSIM to view wif lt filename gt Log file to create lt libname gt lt config gt Configuration Module or lt module gt Entity Arch to simulate lt entity gt lt arch gt Examples vsim top vsim lib mywork top do commands do Files modelsim ini System Initialization or Project file stores library locations simulator resolution paths etc modelsim tc Window sizes positions colors etc user Tcl Tk code Startup do Default name of macro executed after design is loaded See startup line in modelsim ini transcript Default filename that ModelSim transcript window activity is saved to vsim wif Default name of simulation log file saved by VSIM modelsim ini Copy modelsim ini to current directory Execute vmap c Loading order stops after finding first file 1 MODELSIM environment variable 2 Current directory if MODELSIM is not set 3 In lt install_dir gt modeltech lt platform gt directory 4 In lt install_dir gt modeltech directory For Detailed Information see ModelSim User s Manual ModelSim Variables modelsim tcl Loading order Always loads lt install_dir gt modeltech tcl vsim pref tcl Loads the first found from 1 MODELSIM_TCL if it exists separated list all files in list are loaded 2 Current directory modelsim t
2. work lt libname gt Specify work library lt filename s gt VHDL file s to be compiled Examples vcom MyDesign vhd vcom 93 work lib mylib util vhd vcom refresh sccom Key Arguments use help for full list link Links source code required CPP option C compiler option Fal Compile with debugging info nonamebind Disables automatic name binding sev Includes SystemC verification library lt filename s gt SystemC files to be compiled Examples sccom g example cpp sccom link example sccom l home systemc include g a cpp b cpp Code Coverage Key Arguments to vcom vlog cover bcesx Key Arguments to vsim coverage Enables statistics collection Specifies coverage type s Email ModelSim 5 8 Quick Guide Wave Window add wave lt item gt lt item gt Wave specific signals nets add wave Wave signals nets in scope add wave r Wave all signals nets in design add wave label lt name gt lt item gt Wave and rename a signal net add wave abus 31 15 Wave a slice of a bus view wave Display wave window view wave new Display additional wave window write wave Print wave window to file lt left mouse button gt lt middle mouse button gt Zoom options lt right mouse button gt Context Menu lt ctrl f gt Find next item lt tab gt go right Search forward for next edge lt shift tab gt go left Search backward for next edge ior 0 or Zoom in Zoom out fl Zoom full Zoom Last Selec
3. add M V Compare signals configure M V Configure List or Wave window attributes delete V Remove HDL item from List or Wave window do M V Execute a file of commands e g do macro do drivers V Display current and future value of signal or net drivers dumplog64 Sh Dump the contents of the vsim wlf file in a readable form echo M V Display message e g echo Time is now ns edit M V Invoke editor specified by the EDITOR env variable environment M V Display or change current region signal environment examine M V Examine one or more HDL items e g exa top clk find V Display pathnames of matching HDL items force V Force signals or nets e g force clk 1 10 0 20 r 100 history M V List previous commands noforce V Release signals or nets from force commands notepad M V Simple text editor printenv M V Display names and values of environment variables profile on M V Turn on Performance Analyzer property V Change List or Wave signal attributes color radix etc pwd M V Display current path in Main transcript window radix M V Change the default radix in all windows report M V returns all control or state variable values restart V Restart the simulator restore M V Restore the simulation state from a previous checkpoint resume M V Resume macro execution after a pause command right left V Search in wave window for next transition or expr run V Advance simulation time e g run 1000 search next V Search
4. TH Optional Search path for do files EDITOR Optional Specifies editor for edit cmd MODELSIM Optional Pathname of modelsim ini file MODELSIM_TCL Optional List of modelsim tc files MODEL_TECH_TCL Optional Pathname to Tcl Tk libraries MODEL_TECH Don t Set Used internally by ModelSim MGC_LOCATION_MAP Optional Used as soft path to find files PLIOBJS Optional Used to load PLI object files TMPDIR Optional Used by VSIM for temp space PATH Environment Variable Unix Add lt install_dir gt modeltech lt platform gt to path or lt install_dir gt modeltech bin to path PC PATH will be updated automatically during installation Starting the License Server Unix Copy license datfile to lt install_dir gt modeltech lt platform gt Run lt install_dir gt modeltech lt platform gt START_SERVER PC Run lt install_dir gt modeltech win32 mtools exe Use Config Services and Start tabs to configure and start server Licensing Diagnostics Unix Run lt install_dir gt modeltech lt platform gt imstat a or Imdiag PC Run lt install_dir gt modeltech win32 mutil Imstat a or Imutil Imdiag Or PC Start gt Programs gt ModelSim gt Licensing Wizard Invoking ModelSim Unix Run lt install_dir gt modeltech lt platform gt vsim or lt install_dir gt modeltech bin vsim PC Start gt Programs gt ModelSim gt ModelSim Or PC Double click on lt install_dir gt modeltech win32 mode
5. Web www model com ModelSim 5 8 Quick Guide vlog Key Arguments use help for full list vlog95compat Disable Verilog 2001 keywords compat Disable event order optimizations f lt filename gt Pass in arguments from file fast Optimize design see Performance below 05 Maximum optimization hazards Enable run time hazard checking help Display viog syntax help nodebug Hide internal variables amp structure quiet Disable loading messages R lt simargs gt invoke VSIM after compile refresh Regenerate lib to current version sv Enables SystemVerilog keywords version Returns vlog version v lt library_file gt Specify Verilog source library work lt libname gt Specify work library lt filename s gt Verilog file s to be compiled Examples vlog top v vlog work mylib refresh vcom Key Arguments use help for full list 2000 93 87 Choose VHDL 2000 1993 or 1987 check_synthesis Turn on synthesis checker debugVA Print VITAL opt status 05 Maximum optimization explicit Resolve ambiguous overloads help Display vcom syntax help f lt filename gt Pass in arguments from file norangecheck Disable run time range checks nodebug Strip internal names novitalcheck Disable VITAL95 checking nowarn lt gt Disable individual warning msg 00 Disable optimization quiet Disable loading messages refresh Regenerate library image version Returns vcom version
6. cl 3 SHOME modelsim tcl Managing Breakpoints bp Sets a breakpoint without arg shows all bps bd Deletes a breakpoint disablebp Turn off all breakpoints enablebp Turns all breakpoints on onbreak Define what to do when a breakpoint is hit during a macro e g onbreak resume when Perform actions under certain conditions Performance Key arguments to vlog fast Optimize design opt Optimize previously compiled design acc lt spec gt lt module gt Enable design object visibility nocheckALL Increase fast optimizations Key arguments to vsim elab Create elaboration file load_elab Simulate elaboration file Signal Spy init_signal_driver Drive hierarchical signal init_signal_spy Read hierarchical signal signal_force Force hierarchical signal signal_release Release hierarchical signal More Iinfo PDFs see docs paf sub directory Installation Guide se_install pdf or pe_install pdf User s Manual se_man paf or pe_man pdf Command Reference se_cmds paf or pe_cmds pdf ModelSim Tutorial se_tutor pdf or pe_tutor pdf FLI Reference fli pdf Technical Notes www model com support default asp See lt install_dir gt modeltech docs technotes Company Periodical ModelUser req via modeluser model com ModelSim Help Pulldown Help gt Release Notes Help gt Tcl Man Pages Training www model com training default asp Email Notification of New Versions www model com products informant asp Support Model T
7. echnology Customers www model com support default asp Model Technology Customers in Europe www model com contact_us default asp Mentor Graphics Customers support_net mentor com 1 800 547 4303 Mentor Graphics Customers outside North America www mentor com supportnet support_offices html Model Technology A MENTOR GRAPHICS COMPANY 8005 SW Boeckman Road Wilsonville OR 97070 Phone 503 685 0820 M Toll free 877 744 6699 G Fax 503 685 0910 rd Copyright 2003 Mentor Graphics Corporation 219710 DOCS1003 REPRODUCTION PERMITTED AND ENCOURAGED
8. lsim exe ModelSim Products www model com products default asp Quick Guide Notes Find this document at www model com support documentation SE pdf qk guide pdf Commands in bold are typed at the ModelSim gt or VSIM gt prompts M Light blue highlight denotes SE only features delSim Web www model com ModelSim 5 8 Quick Guide Email support model com ModelSim 5 8 Quick Guide Phone 503 685 0820 ModelSim 5 8 Quick Guide Key ModelSim Commands Commands may be used in the following locations Sh ell M odelSim gt prompt or V SIM gt prompt See Command Reference for complete command list and syntax vcom Sh M V VHDL Compiler see below vdel Sh M V Deletes a design unit from a specific library vdir Sh M V Lists the contents of a library vlib Sh M V Creates a design library vlog Sh M V Verilog Compiler see below sccom Sh M V SystemC Compiler see below vmap Sh M V Defines or displays library mappings vsim Sh M V VHDL and or Verilog Simulator see below add list wave V Add signals to the List or Wave windows add log V Log signals to vsim wlf file for analysis later alias M V Create a user defined alias e g alias h history bp bd V Set Clear a breakpoint see Managing Breakpoints below cd Sh M V Change directory change V Modify a VHDL variable or Verilog register checkpoint V Save the state of you simulation see restore compare
9. specified window for next item matching pattern seetime V Scroll List or Wave window to time e g seetime wave 500 ved2wif Sh Translate VCD file into WLF file veddumpports M V Create a VCD file vcover merge Sh M V Merges coverage reports vgencomp Sh Create VHDL component from compiled Verilog module view M V Open a ModelSim window and pop it to the top vmake Sh Print a makefile for a library vsource V Display HDL source file in Source window when M V Perform action on condition e g when clk 1 echo cik where M V Display info about the environment write M V Records names window contents and preferences to a file Wn M V Repeat last command Repeat nth command labc M V Repeat cmd starting abc abc xyz M V Replace abc in previous command with xyz vsim Key Arguments use help for full list c Run in cmd line mode coverage Invoke Code Coverage do cmd lt file gt Run cmd or file at startup elab Create elaboration file f lt filename gt Pass in args from file glG lt name value gt Set VHDL Generic values hazards Enable hazard checking help Display vsim syntax help _ lt logfile gt Save transcript to log file load_elab Simulate an elaboration file notimingchecks Disable timing checks quiet Disable loading messages restore lt filename gt Restore a simulation sdf minltyp max Apply SDF timing data e g lt region gt lt sdffile gt sdfmin top MySDF txt
10. t signal Place cursor Tcl Tk Environment Variable MODELSIM_TCL Online Documentation Help gt Tcl Help Help gt Tcl Syntax Help gt Tcl Man Pages Help gt Technotes gt MTI_Widgets Language Syntax command arg1 arg2 args Language Syntax Command set lt var gt lt value gt expr lt math expression gt exec lt ShellCommand gt info lt option gt lt procedure name gt winfo lt option gt lt window name gt Language Syntax Procedures proc name arglist body proc diag a b set c expr sqrt a a b return c Language Syntax Conditionals if boolean bodytrue else bodyfalse if Snow lt 10000 echo now Language Syntax Loops while boolean body foreach oopVar valuelist cmdBody for initial test final body Poking around in ModelSim Tcl Tk info Get info on a Tcl construct info xx Find out the args to info winfo Get info on Tk widgets winfo xx Find out args to winfo winfo children Return the sub widgets to ModelSim Light blue highlight denotes SE only features support model com Quick Guide ModelSim 5 8 Installation Environment Licensing Documentation Installation instructions www model com support installation default asp FlexLM www macrovision com Web Download the Latest Release www model com downloads default asp Environment Variables see ModelSim cmd printenv LM_LICENSE_FILE Required Pathname of license dat file or port host DOPA

Download Pdf Manuals

image

Related Search

Related Contents

Rollei Pictureline 9100  COLORado Batten Quad-9 Tour Quick Reference Guide Rev. 3 Multi  Franke POX 211  PEBBLE 3 - ACIA Informatique  Blanco 513-611 User's Manual  Manuel d`instructions  STATE OF COLORADO    User Guide Heater Extension Cable (A80)  Onkyo DV-SP303 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file