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-108 4 - VHDL simulation<br />

Affecting performance by cancelling scheduled events<br />

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

Performance will suffer if events are scheduled far into the future but then cancelled before<br />

they take effect. This situation will act like a memory leak <strong>and</strong> slow down simulation.<br />

In VHDL this situation can occur several ways. The most common are waits with time-out<br />

clauses <strong>and</strong> projected waveforms in signal assignments.<br />

The following code shows a wait with a time-out:<br />

signals synch : bit := '0';<br />

...<br />

p: process<br />

begin<br />

wait for 10 ms until synch = 1;<br />

end process;<br />

synch

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

Saved successfully!

Ooh no, something went wrong!