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.

Compiling <strong>and</strong> simulating with accelerated VITAL packages UM-95<br />

Compiling <strong>and</strong> simulating with accelerated VITAL packages<br />

vcom (CR-311) automatically recognizes that a VITAL function is being referenced from<br />

the ieee library <strong>and</strong> generates code to call the optimized built-in routines.<br />

Optimization occurs on two levels:<br />

VITAL Level-0 optimization<br />

This is a function-by-function optimization. It applies to all level-0 architectures, <strong>and</strong> any<br />

level-1 architectures that failed level-1 optimization.<br />

VITAL Level-1 optimization<br />

Performs global optimization on a VITAL 3.0 level-1 architecture that passes the VITAL<br />

compliance checker. This is the default behavior. Note that your models will run faster<br />

but at the cost of not being able to see the internal workings of the models.<br />

Compiler options for VITAL optimization<br />

Several vcom (CR-311) options control <strong>and</strong> provide feedback on VITAL optimization:<br />

-novital<br />

Causes vcom to use VHDL code for VITAL procedures rather than the accelerated <strong>and</strong><br />

optimized timing <strong>and</strong> primitive packages. Allows breakpoints to be set in the VITAL<br />

behavior process <strong>and</strong> permits single stepping through the VITAL procedures to debug<br />

your model. Also, all of the VITAL data can be viewed in the Locals or Objects pane.<br />

-O0 | -O4<br />

Lowers the optimization to a minimum with -O0 (capital oh zero). Optional. Use this to<br />

work around bugs, increase your debugging visibility on a specific cell, or when you<br />

want to place breakpoints on source lines that have been optimized out.<br />

Enable optimizations with -O4 (default).<br />

-debugVA<br />

Prints a confirmation if a VITAL cell was optimized, or an explanation of why it was not,<br />

during VITAL level-1 acceleration.<br />

<strong>ModelSim</strong> VITAL built-ins will be updated in step with new releases of the VITAL<br />

packages.<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!