Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


Simulating the structural version

  1. Start by creating a new working directory, making it the current directory, and copying the files from \modeltech\examples\datasets 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 structural version of the counter.

  4. 
    vlog cntr_struct.v 
    
    

    (MENU: Design > Compile)

  5. Load the design and save the simulation to a WLF file named struct.wlf.

  6. 
    vsim -wlf struct.wlf work.cntr_struct 
    
    
  7. Now you will run a DO file that applies stimulus to the design, runs the simulation, and adds waves to the Wave window.

  8. 
    do stimulus.do 
    
    

(MENU: Macro > Execute Macro)

The waves that appear in the Wave window are saved automatically into the struct.wlf file.

  1. Quit the simulation.

  2. 
    quit -sim 
    
    

(MENU: Design > End Simulation)


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