DOC PREVIEW
UCSB ECE 152A - ModelSim Tutorial

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

ModelSim TutorialStarting the toolß Start ‡ All Programs ‡ ModelSim XE II 5.7c ‡ Licensing Wizardo No changes need to be made here, but this must be run to configure thelicense.o When the program starts click Continue, then OK, then Yes and finally OK.ß Start ‡ All Programs ‡ ModelSim XE II 5.7c ‡ ModelSimUsing the toolß Click on File ‡ New Project to create a new projectß You will now be asked to select the new project’s locationo This should be a location on the Z driveß Then choose a name for your project. When you are finished, click OK.ß The next window you can Close.ß You will now be in the main ModelSim window.ß To add a source file go to File ‡ New ‡ Source ‡ Verilog. Type in yourverilog code and then save the file as a *.v file. When asked if you would liketo “add the file to the current project,” select Yes. You will then see the fileadded to your work space.ß This last step can be repeated a number of times depending on how youwould like to break up your code into different files. This must also be donefor your testbench verilog code.ß Once all your verilog code is in the work space compile it using Compile ‡Compile All.ß Now to simulate click Simulate ‡ Simulate. When the window pops up, openup “work” ( the default library) and select your testbench file and click OK.This will move you from the Project tab to the sim tab in the bottom leftcorner.ß To see what is happening in the simulation, select View ‡ Signals and View‡ Waveform. In the Signals window select Add ‡ Wave ‡ Signals inDesign. This will place signals in your wave window.ß In the wave window click the icon with the page and the down arrow (Run) toadvance the simulation one step. You can also advance the simulation fromthe prompt in the main window by typing “run”.ß If you change the source code after running the simulation, you mustrecompile (Compile ‡ Compile All) and then reload the design (Simulate‡Simulate and select your testbench to load from the work


View Full Document

UCSB ECE 152A - ModelSim Tutorial

Download ModelSim Tutorial
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view ModelSim Tutorial and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view ModelSim Tutorial 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?