0% found this document useful (0 votes)
58 views1 page

QuestsSim On Linux Simulation Tutorial

This document provides instructions for using QuestaSim simulation software on a Linux system to simulate a 4-bit ALU design. It describes creating a top-level run script called run.src to compile the design and testbench files, run a simulation, and view the results. The run script executes a do file run.do which loads the testbench, launches the simulator, loads a wave file, and runs the simulation for 100 microseconds.

Uploaded by

bearunagiri
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views1 page

QuestsSim On Linux Simulation Tutorial

This document provides instructions for using QuestaSim simulation software on a Linux system to simulate a 4-bit ALU design. It describes creating a top-level run script called run.src to compile the design and testbench files, run a simulation, and view the results. The run script executes a do file run.do which loads the testbench, launches the simulator, loads a wave file, and runs the simulation for 100 microseconds.

Uploaded by

bearunagiri
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Advanced Verification Methodology

Dr. Greg Tumbush, [email protected]

Department of Electrical and Computer Engineering University of Colorado at Colorado Springs "Engineering for the Future"

QuestaSimonLinuxSimulationTutorial
1. ToinvokeQuestaSiminLinuxbycreatingaprojectdothefollowing: a. AccesstheLinuxserver,LATS2,byfollowingthedirectionsat http://eas.uccs.edu/it/EAS_linux_hpC.shtml b. IntheLinuxdesktoprightclickandselectOpeninTerminal c. Intheterminalwindowtypesetquesta d. Intheterminalwindowtypevsim. e. Continueasdetailedin http://www.uccs.edu/~gtumbush/misc/ModelSim_Simulation_Tutorial.pdf 2. ToinvokeQuestaSiminLinuxusingthecommandlineandscriptsdothefollowing: a. Followinstructions1.a,1.b,and1.c. 3. Createatoplevelrunscript,forexample,callitrun.srcandtypethefollowinglinesinto thefile.ThisrunscriptwillcompiletheALU_4_bit.vDUTandthetestbench, ALU_4_bit_tb.svandexecutethedofile,run.do #!/bin/csh \rmrfwork vlibwork vmapworkwork vlogALU_4_bit.v vlogALU_4_bit_tb.sv vsimnovoptdorun.do 4. ForatopleveltestbenchcalledALU_4_bit_tbcreateadofile,forexample,callitrun.do andtypethefollowinglinesintothefile. vsimALU_4_bit_tb viewwave dowave.do run100us 5. Executetherunscriptbytypingintheterminalwindow,./run.src.Youmightneedto changethepermissionsoftherunscriptbytypingchmod755run.src.Youwillgetan errorbecausethewave.dofilehasnotbeencreatedyet.Createit!

Page1of1QuestaSimonLinuxSimulationTutorialVersion1.3

You might also like