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.

UM-330 12 - Profiling performance <strong>and</strong> memory use<br />

Analyzing C code performance<br />

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

You can include C code in your design via SystemC, the Verilog PLI/VPI, or the <strong>ModelSim</strong><br />

FLI. The profiler can be used to determine the impact of these C modules on simulator<br />

performance. Factors that can affect simulator performance when a design includes C code<br />

are as follows:<br />

PLI/FLI applications with large sensitivity lists<br />

Calling operating system functions from C code<br />

Calling the simulator’s comm<strong>and</strong> interpreter from C code<br />

Inefficient C code<br />

In addition, the Verilog PLI/VPI requires maintenance of the simulator’s internal data<br />

structures as well as the PLI/VPI data structures for portability. (VHDL does not have this<br />

problem in <strong>ModelSim</strong> because the FLI gets information directly from the simulator.)

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

Saved successfully!

Ooh no, something went wrong!