24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example<br />

Simulating with an elaboration file UM-141<br />

Upon first simulating the design, use vsim -elab <br />

to create an elaboration file that will be used in subsequent<br />

simulations.<br />

In subsequent simulations you simply load the elaboration file (rather than the design) with<br />

vsim -load_elab .<br />

To change the stimulus without recoding, recompiling, <strong>and</strong> reloading the entire design,<br />

Modelsim allows you to map the stimulus file (or files) of the original design unit to an<br />

alternate file (or files) with the -filemap_elab switch. For example, the VHDL code for<br />

initiating stimulus might be:<br />

FILE vector_file : text IS IN "vectors";<br />

where vectors is the stimulus file.<br />

If the alternate stimulus file is named, say, alt_vectors, then the correct syntax for changing<br />

the stimulus without recoding, recompiling, <strong>and</strong> reloading the entire design is as follows:<br />

vsim -load_elab -filemap_elab vectors=alt_vectors<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!