Technical data

Basic VHDL simulation
Getting Started with ModelSim PE Tutorial: Using ModelSim PE
-
81
This creates a VHDL library named work under the current directory. Even though this
command creates a DOS directory called
work
, it is important to realize that it is more than just
a directory. You must use only the
Library > New
option or a
vlib
Model
Sim
command to
create a new Model
Sim
library. Do not use the DOS mkdir command or Microsoft Windows
to create the directory!
Note:
If this tutorial has already been run on your system, a message will report that the
work
subdirectory already exists in the current directory. You can ignore the message and proceed.
Step 4.
Now you need to create a new project file in your current working directory. This project file
will remember things about your environment (such as window sizes and positions, etc.), so
that next time you work in this directory, Model
Sim
will automatically reload your
environment for you. To create a new project, select
Project > New
. Type in
modelsim.ini,
which is the name Model
Sim
expects to find when you come back to this project later.
Note:
A project file will already exist if someone has done this exercise before. Again, Model
Sim
will
just give you a message that you can safely ignore.
Step 5.
Pull down the
Project
menu again and notice that the file
/examples/modelsim.ini
is checked,
indicating that Model
Sim
is using that project file. If you wanted, you could change back to the
original project file by simply selecting it from the menu, which would move the check mark
to it - but don’t do that.