Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


Initial setup


Important: These steps must be completed before running the Tcl examples.

  1. Create, and change to a new working directory for the Tcl/Tk exercises. Copy the lesson files in the following directory (include all subdirectories and files) to your new directory:

  2. 
    <install_dir>\modeltech\examples\tcl_tutorial 
    
    
  3. Make the new directory the current directory, then invoke ModelSim:

for UNIX

vsim 

for Windows (from a shortcut or Start > Run, etc.)

modelsim.exe 
  1. At the ModelSim prompt, create a work library in the /vhdl directory:

  2. 
    vlib vhdl/work 
    
    
  3. Map the work library.

  4. 
    vmap work vhdl/work 
    
    
  5. Compile the VHDL example files with these commands (or the Compile dialog box):

  6. 
    vcom vhdl/traffic.vhd 
    vcom vhdl/queue.vhd 
    vcom vhdl/tb_traffic.vhd 
    
    

Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim