12.07.2015 Views

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

Simulator Configuration Guide for Synopsys Models

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.

<strong>Simulator</strong> <strong>Configuration</strong> <strong>Guide</strong>Appendix A: Using LMTV with <strong>Synopsys</strong> <strong>Models</strong>ExamplesThe following example enables SmartModel Windows <strong>for</strong> all windows in instance“U1”, then reads from the predefined window element IENA. Notice that you mustenable SmartModel Windows be<strong>for</strong>e attempting to read from the window element.// somewhere in the testbench ...// enable access to all windows in instance U1$lm_monitor_enable( U1 );// display contents of window element IENA$display("Value of register IENA is %h", $IENA);The following example disables the window explicitly <strong>for</strong> the register IENA.% $lm_monitor_disable( U1, "IENA" );The following example disables all windows in instance U1.% $lm_monitor_disable( U1 );The following example does not read the register IENA, because SmartModel Windowswas not enabled.// somewhere in the testbench ...$display("Value of register IENA is %h", $IENA);October 6, 2003 <strong>Synopsys</strong>, Inc. 277

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

Saved successfully!

Ooh no, something went wrong!