Technical data
Basic VHDL simulation
94
-
ModelSim EE Lessons ModelSim EE Tutorial
Basic VHDL simulation
The goals for the first lesson are:
• create a library
• compile a VHDL file
• start the simulator
• understand the basic VSIM windows, mouse, and menu conventions
• run VSIM using the
run
command
• list some signals
• use the waveform display
• force the value of a signal
• single-step through a simulation run
• set a breakpoint
• use the Wave window
1
You’ll start out by creating a new directory for this exercise (in case other users will
be working these lesson). Create the directory, then copy all of the VHDL (.vhd) files
from the
/<install_dir>/<modelsim_dir>/examples
to the new directory.
Make sure the new directory is the current directory.
2
Start Model
Sim
with one of the following:
for UNIX at the shell prompt:
vsim -gui
for Windows - your option - DOS prompt, shortcut, or Start menu:
modelsim.exe
This opens the Model
Sim
Main window without loading a design.