Technical data
Basic VHDL simulation
2-22   ModelSim EE/SE Tutorial
In the Create a New Library dialog 
box select Create: a new library 
and a logical mapping to it. Make 
sure Library: indicates work, then 
select OK. This creates a 
subdirectory named work - your 
design library - within the current 
directory. This subdirectory 
contains a special file named _info. 
(Do not create these using UNIX or 
Windows commands—always use 
the Library menu or the vlib 
command from either the 
ModelSim or UNIX/DOS prompt.)
(PROMPT: vlib work
vmap work work)
4 Compile the file counter.vhd into the new library by selecting the Compile button on 
the toolbar:
(PROMPT: vcom counter.vhd)
This opens the Compile HDL Source Files dialog box. (You won’t see this dialog 
box if you invoke vcom from the command line.)










