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.

Enabling the statistical sampling profiler<br />

Getting started UM-321<br />

To enable the profiler’s statistical sampling profiler prior to a simulation run, do any one of<br />

the following:<br />

select Tools > Profile > Performance<br />

use the profile on comm<strong>and</strong> (CR-228)<br />

click the Performance Profiling icon<br />

Collecting memory allocation <strong>and</strong> performance data<br />

Both memory allocation profiling <strong>and</strong> statistical sampling occur during the execution of a<br />

<strong>ModelSim</strong> run comm<strong>and</strong>. With profiling enabled, all subsequent run comm<strong>and</strong>s will<br />

collect memory allocation data <strong>and</strong> performance statistics. Profiling results are cumulative<br />

– each run comm<strong>and</strong> performed with profiling enabled will add new information to the<br />

data already gathered. To clear this data, select Tools > Profile > Clear Profile Data or<br />

use the profile clear comm<strong>and</strong> (CR-225).<br />

With the profiler enabled <strong>and</strong> a run comm<strong>and</strong> initiated, the simulator will provide a<br />

"Profiling" message in the transcript to indicate that profiling has started.<br />

If the statistical sampling profiler <strong>and</strong> the memory allocation profiler are on, the status bar<br />

will display the number of Profile Samples collected <strong>and</strong> the amount of memory allocated,<br />

as shown below. Each profile sample will become a data point in the simulation’s<br />

performance profile.<br />

Turning profiling off<br />

You can turn off the statistical sampling profiler or the memory allocation profiler by doing<br />

any one of the following:<br />

deselect the Performance <strong>and</strong>/or Memory options in the Tools > Profile menu<br />

deselect the Performance Profiling <strong>and</strong> Memory Profiling icons in the toolbar<br />

use the profile off comm<strong>and</strong> (CR-227) with the -p or -m arguments.<br />

Any <strong>ModelSim</strong> run comm<strong>and</strong>s that follow will not be profiled.<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!