Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


Preparing the simulation

This lesson will use an example design that contains lower level VHDL blocks in the files control.vhd, retrieve.vhd, and store.vhd; and top level block, test bench and configuration files - ringrtl.vhd, testring.vhd, and config_rtl.vhd.

  1. Start by creating a new working directory, making it the current directory, and copying the files from \modeltech\examples\profiler into it.

  2. Use the vlib command to create a work library in the current directory.

  3. 
    vlib work 
    
    

(MENU: Design > Create a New Library)

  1. Use the vmap command to map the work library to a physical directory. A modelsim.ini file will be written into the work directory.

  2. 
    vmap work work 
    
    
  3. Compile the lower level blocks of the design.

  4. 
    vcom control.vhd retrieve.vhd store.vhd 
    
    

    (MENU: Design > Compile)

  5. Compile the top level block, test bench and configuration files.

  6. 
    vcom ringrtl.vhd testring.vhd config_rtl.vhd 
    
    

    (MENU: Design > Compile)

  7. Use the vsim command to load the design configuration.

  8. 
    vsim work.test_bench_rtl 
    
    

    (MENU: Design > Load Design)


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