Getting StartedwithModelSim PEVHDL, Verilog, and Mixed-HDL Simulationfor PCs Running Windows 95 & Windows NTVersion 4.7
10 - Table of Contents Getting Started with ModelSim PE
Debugging a VHDL design100 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEOn the VSIM tab, change the Default Run Length to 1000. Do no
Debugging a VHDL designGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 101Step 22. Under the Assertions tab, change the selection for B
Debugging a VHDL design102 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 24. Next, click RUN on the tool bar. Notice that the arr
Debugging a VHDL designGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 103Step 28. Select Restart from the File menu. Restart resets th
Debugging a VHDL design104 - Tutorial: Using ModelSim PE Getting Started with ModelSim PENote that since you used the list -decimal command, the a, b,
Basic Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 105Basic Verilog simulationThe goals for this lesson are:• com
Basic Verilog simulation106 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 2. Move inside the examples folder by double-clicking t
Basic Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 107Note: If this tutorial has already been run on your system,
Basic Verilog simulation108 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEThe example design we'll be using consists of two Veril
Basic Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 109Now select any Verilog source file and click Compile. When y
Getting Started with ModelSim PE Introduction - 111 - IntroductionChapter contentsSoftware versions . . . . . . . .
Basic Verilog simulation110 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEEither action brings up the Simulate a Design dialog box. Th
Basic Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 111The order of the windows may be different on your machine bu
Basic Verilog simulation112 - Tutorial: Using ModelSim PE Getting Started with ModelSim PENotice how this window describes the hierarchical structure
Basic Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 113This causes the List window to display the signals clk, rst
Basic Verilog simulation114 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEInstead of clicking the RUN button you could also type the r
Basic Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 115Your windows won't look exactly like the illustration b
Basic Verilog simulation116 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 21. ModelSim includes an extensive breakpoint feature.
Basic Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 117Step 22. Select CONT from the toolbar to resume execution of
Basic Verilog simulation118 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 24. Pull down Options > Edit Breakpoints from the ma
Basic Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 119Step 26. Click OVER on the toolbar. This causes the simulato
Standards supported12 - Introduction Getting Started with ModelSim PEStandards supportedModelSim VHDL supports both the IEEE 1076-1987 and 1076-1993 V
Mixed VHDL/Verilog simulation120 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEMixed VHDL/Verilog simulationYou must be using ModelSim
Mixed VHDL/Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 121Note:A project file will already exist if someone has d
Mixed VHDL/Verilog simulation122 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 7. From the menu bar select the Window > Restor
Mixed VHDL/Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 123Let’s take another look at the design. Step 10. Click o
Mixed VHDL/Verilog simulation124 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 11. Click on the line "s0:cache_set(only)&quo
Mixed VHDL/Verilog simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 125Step 12. Try experimenting with some of the toolbar com
Mixed VHDL/Verilog simulation126 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEpositions. The selected cursor is drawn as a solid line
Learning more about ModelSim’s windowsGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 127Learning more about ModelSim’s windowsThe more
Learning more about ModelSim’s windows128 - Tutorial: Using ModelSim PE Getting Started with ModelSim PESource window practice• Selecting the source
Continuing with ModelSim PEGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 129Continuing with ModelSim PEMore information on ModelSim c
AssumptionsGetting Started with ModelSim PE Introduction - 13AssumptionsWe assume that you are familiar with the use of your operating system. If you
130 - Tutorial: Using ModelSim PE Getting Started with ModelSim PE
Getting Started with ModelSim PE Help, Updates, and Licensing - 131A - Help, Updates, and Licensing HelpTechnical Support for Mentor Graphics Customer
Updates132 - Help, Updates, and Licensing Getting Started with ModelSim PE• Lucent Technologies Bell Labs Design Automationemail: [email protected]
ModelSim PE LicensingGetting Started with ModelSim PE Help, Updates, and Licensing - 133expiration date. The key code permits the use of any ModelSim
ModelSim PE Licensing134 - Help, Updates, and Licensing Getting Started with ModelSim PEGetting helpThe best thing is to email us a test case. Our ema
Getting Started with ModelSim PE Resources - 135B - ResourcesAppendix contentsBooks . . . . . . . . . . .
Books136 - Resources Getting Started with ModelSim PEPractical Programming in Tcl and Tk Brent Welch, Prentice Hall, Englewood Cliffs, New Jersey 0763
OrganizationsGetting Started with ModelSim PE Resources - 137OrganizationsIEEE The Institute of Electrical and Electronics Engineers, Inc., 345 East
Corporations & Consultants138 - Resources Getting Started with ModelSim PECorporations & ConsultantsAutomata Publishing Company 1072 South Sar
Corporations & ConsultantsGetting Started with ModelSim PE Resources - 139Hardi Electronics AB Box 966, S220 09 Lund, Sweden. Phone: (46) 11-77-90
Text conventions14 - Introduction Getting Started with ModelSim PEText conventionsText conventions used in this manual include:HDL and HDL item define
Corporations & Consultants140 - Resources Getting Started with ModelSim PESeva Technologies Inc.200 Brown Road, Suite 103, Fremont, CA 94539 USA.
Online resourcesGetting Started with ModelSim PE Resources - 141Willamettte HDL, Inc. 14314 SW Allen Blvd. Suite 625, Beaverton, OR 97005 USA. Phone:
142 - Resources Getting Started with ModelSim PE
Getting Started with ModelSim PE Index - 143IndexAAdding signals or nets to windows 51Application window 22Authorization codes 19entering your permane
144 - Index Getting Started with ModelSim PEdefined 14Home pageModel Technology’s home-page URL 16IInitialization file, see Project fileKKeyboard shor
Getting Started with ModelSim PE Index - 145Simulationchanging default run length 99error correction 102mixed VHDL/Verilog 120restart 101Verilog 109VH
146 - Index Getting Started with ModelSim PE
Where to find our documentationGetting Started with ModelSim PE Introduction - 15Where to find our documentationModel Technology’s documentation is av
Comments16 - Introduction Getting Started with ModelSim PECommentsComments and questions about this manual and ModelSim software are welcome. Call, wr
Getting Started with ModelSim PE ModelSim PE Installation - 172 - ModelSim PE InstallationChapter contentsCurrent customers information . . .
Current customers information18 - ModelSim PE Installation Getting Started with ModelSim PECurrent customers informationIf you are using V-System PC v
Installation procedureGetting Started with ModelSim PE ModelSim PE Installation - 19Installation procedureInstall ModelSim on Your Hard Drive - From C
2ModelSim /VHDL, ModelSim /PLUS, and ModelSim /VLOG are produced by Model Technology Incorporated. Unauthorized copying, duplication, or other reprodu
To Run from the CD-ROM20 - ModelSim PE Installation Getting Started with ModelSim PEAuthorization Codes: updatesIf you receive a new programmable key
Getting Started with ModelSim PE ModelSim PE Graphic Interface - 213 - ModelSim PE Graphic InterfaceChapter contentsModelSim application window .
ModelSim application window22 - ModelSim PE Graphic Interface Getting Started with ModelSim PEModelSim application windowThe ModelSim application wind
ModelSim application windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 23In addition to the Transcript window, the ModelSim appli
ModelSim application window24 - ModelSim PE Graphic Interface Getting Started with ModelSim PEModelSim menu barThe menu bar at the top of the applicat
ModelSim application windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 25ProjectRunSignalsOptionsNew create a new modelsim.ini pr
ModelSim application window26 - ModelSim PE Graphic Interface Getting Started with ModelSim PEWindowHelpEdit Breakpoints modify or delete source code
ModelSim application windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 27ModelSim tool barIn addition to the functions accessed t
The Simulate a Design dialog box28 - ModelSim PE Graphic Interface Getting Started with ModelSim PEThe Simulate a Design dialog boxWhen you first invo
Tree windowsGetting Started with ModelSim PE ModelSim PE Graphic Interface - 29Tree windowsIn many windows, ModelSim provides a hierarchical or “tree
3Software License AgreementThis is a legal agreement between you, the end user, and Model Technology Incorporated (MTI). By opening the sealed package
Tree windows30 - ModelSim PE Graphic Interface Getting Started with ModelSim PEWhen you see this view, you can use the mouse to collapse and expand le
Window overviewGetting Started with ModelSim PE ModelSim PE Graphic Interface - 31Window overviewOnce you invoke VSIM nine windows become available fo
Transcript window32 - ModelSim PE Graphic Interface Getting Started with ModelSim PETranscript windowThe Transcript window is the first window to appe
Transcript windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 33• the number of the top line visible in the Transcript window and
Transcript window34 - ModelSim PE Graphic Interface Getting Started with ModelSim PETranscript window command line shortcutsOn the Transcript window c
Dataflow windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 35Dataflow windowThe Dataflow window provides a graphic view of HDL it
Dataflow window36 - ModelSim PE Graphic Interface Getting Started with ModelSim PETo put a particular process in the Dataflow window, just click on th
List windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 37List windowTwo windows in ModelSim provide views of your simulation run.
List window38 - ModelSim PE Graphic Interface Getting Started with ModelSim PEList window menu barThe following commands are available from the List w
List windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 39List window status barThe List window status bar is illustrated below.On
44. PERMISSION TO COPY LICENSED SOFTWARE. You may copy the SOFTWARE only as reasonably necessary to support an authorized use. Except as permitted by
List window40 - ModelSim PE Graphic Interface Getting Started with ModelSim PESelecting HDL items to listYou can select the items to list with the men
List windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 41Use the OK button when you’ve finished selecting your trigger options.Fo
List window42 - ModelSim PE Graphic Interface Getting Started with ModelSim PEspecified HDL item. The label may be either just the item name (Short Na
List windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 43• RadixChange the radix for the selected signal; overrides the radix de
List window44 - ModelSim PE Graphic Interface Getting Started with ModelSim PERestoring a List window configurationUse the ModelSim menu bar command F
Process windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 45Process windowThe Process window displays a list of processes that ar
Process window46 - ModelSim PE Graphic Interface Getting Started with ModelSim PEYou can debug your design (or explore someone else’s) by using the Pr
Signals windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 47Signals windowThe Signals window shows the names and values of HDL it
Signals window48 - ModelSim PE Graphic Interface Getting Started with ModelSim PESignals window mouse actionsIn the Signals window, you can use the mo
Signals windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 49The names of any VHDL composite types (arrays and record types) are s
5Important NoticeAny provision of Model Technology Incorporated SOFTWARE to the U.S. Government is with "Restricted Rights" as follows: Use,
Signals window50 - ModelSim PE Graphic Interface Getting Started with ModelSim PE• Value:Initially displays the current value, which can be changed b
Signals windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 51Freeze is the default for Verilog nets and unresolved VHDL signals an
Source window52 - ModelSim PE Graphic Interface Getting Started with ModelSim PESource windowThe Source window allows you to view your VHDL or Verilog
Source windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 53Source window status barThe Source window status bar is illustrated be
Source window54 - ModelSim PE Graphic Interface Getting Started with ModelSim PEEditing breakpointsYou can double-click anywhere in a line to set or r
Source windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 55This dialog box sets the context of the information shown in the Sourc
Structure window56 - ModelSim PE Graphic Interface Getting Started with ModelSim PEStructure windowThe Structure window provides a hierarchical view o
Structure windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 57Within the Structure window, VHDL items are indicated by a box and
Structure window58 - ModelSim PE Graphic Interface Getting Started with ModelSim PEStructure window status barThe Structure window status bar is illus
Variables windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 59Variables windowThe Variables window lists the names of HDL items w
6 - Table of Contents Getting Started with ModelSim PETable of ContentsSoftware License Agreement . . . . . . . . . . . . .
Variables window60 - ModelSim PE Graphic Interface Getting Started with ModelSim PEVariables window status barThe Variables window status bar uses two
Wave windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 61Wave windowThe Wave window — like the List window — is another look into
Wave window62 - ModelSim PE Graphic Interface Getting Started with ModelSim PEThe data in the item values windowpane is very similar to the Signals wi
Wave windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 63Zoom Cursor Options Wave window status barThe Wave window status bar sho
Wave window64 - ModelSim PE Graphic Interface Getting Started with ModelSim PEIn the right windowpane:In the left windowpane:To resize the windowpanes
Wave windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 65Adding HDL items to the Wave windowTo add HDL items to the window, enter
Wave window66 - ModelSim PE Graphic Interface Getting Started with ModelSim PE• Max Signal NameSets the HDL item name width. This is especially usefu
Wave windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 67• Signal:Shows the current HDL item name.• ColorThis command button ex
Wave window68 - ModelSim PE Graphic Interface Getting Started with ModelSim PEAnalog formatting• AnalogInteger and floating point HDL items can be fo
Wave windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 69• octal• decimal• hexadecimal.See vector in the illustration for an e
Getting Started with ModelSim PE Table of Contents - 7The Simulate a Design dialog box . . . . . . . . . . . . . . . .
Wave window70 - ModelSim PE Graphic Interface Getting Started with ModelSim PEAnother method of zooming is with the function keys:For additional Model
Wave windowGetting Started with ModelSim PE ModelSim PE Graphic Interface - 71When you add a cursor, it is drawn in the middle of the display. Once yo
Customizing ModelSim windows72 - ModelSim PE Graphic Interface Getting Started with ModelSim PEUse the Waveform Postscript dialog box to change paper
Customizing ModelSim windowsGetting Started with ModelSim PE ModelSim PE Graphic Interface - 73Changing window colorsThe Window > Colors menu bar c
Customizing ModelSim windows74 - ModelSim PE Graphic Interface Getting Started with ModelSim PEIn the Font dialog box, first you select the ModelSim w
Customizing ModelSim windowsGetting Started with ModelSim PE ModelSim PE Graphic Interface - 75Depending on the task you were performing with ModelSim
Keyboard shortcuts76 - ModelSim PE Graphic Interface Getting Started with ModelSim PEKeyboard shortcuts The following keyboard shortcuts are available
Getting Started with ModelSim PE Tutorial: Using ModelSim PE - 774 - Tutorial: Using ModelSim PE Chapter contentsAfter you complete the "Tutorial
Tutorial setup78 - Tutorial: Using ModelSim PE Getting Started with ModelSim PETutorial setupBefore we turn you loose with ModelSim, let’s set up your
Basic VHDL simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 79Basic VHDL simulationThe goals for the first lesson are:• creat
8 - Table of Contents Getting Started with ModelSim PEVariables window . . . . . . . . . . . . . . . . . . . .
Basic VHDL simulation80 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEIf you click Cancel, the dialog box is closed and you remain in
Basic VHDL simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 81This creates a VHDL library named work under the current directo
Basic VHDL simulation82 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 6. Next, compile the VHDL source file named counter.vhd. To
Basic VHDL simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 83Step 8. After the VHDL source file is compiled, close the dialog
Basic VHDL simulation84 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEarrangement if the tutorial has already been used. For now, sele
Basic VHDL simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 85Notice that no matter which ModelSim window is active, anything
Basic VHDL simulation86 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 14. Use the Window > Settings menu sequence to be sure a
Basic VHDL simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 87This force command means:• Force clk to the value “1” at 50 ns
Basic VHDL simulation88 - Tutorial: Using ModelSim PE Getting Started with ModelSim PErun @ <timestep>Use the run command with @ to run to time
Basic VHDL simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 89Step 23. Next, set a breakpoint on line 35, which has a call to
Getting Started with ModelSim PE Table of Contents - 9Updates . . . . . . . . . . . . . . . . . . . . . .
Basic VHDL simulation90 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 25. Examine the current value of the signal count by enteri
Basic VHDL simulationGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 91Step 30. On your own, try setting and deleting breakpoints at di
Basic VHDL simulation92 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEAt this point you can confirm the action with the Yes button. If
Debugging a VHDL designGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 93Debugging a VHDL designThe goals for this lesson are:• use a
Debugging a VHDL design94 - Tutorial: Using ModelSim PE Getting Started with ModelSim PENote:If this tutorial has already been run on your system, a m
Debugging a VHDL designGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 95In this case, type in work for the library name and lib2 for t
Debugging a VHDL design96 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEAnd four, you could compile multiple files using a single vcom
Debugging a VHDL designGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 97Step 10. You can confirm that these design units have been com
Debugging a VHDL design98 - Tutorial: Using ModelSim PE Getting Started with ModelSim PEStep 13. Select the Design tab and perform the following steps
Debugging a VHDL designGetting Started with ModelSim PE Tutorial: Using ModelSim PE - 99The plus sign means other levels exist below it. The minus sig
Comments to this Manuals