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.

SmartModel Windows<br />

VHDL SmartModel interface UM-623<br />

Some models in the SmartModel library provide access to internal registers with a feature<br />

called SmartModel Windows. Refer to Logic Modeling’s SmartModel library<br />

documentation (available on Synopsys’ web site) for details on this feature. The simulator<br />

interface to this feature is described below.<br />

Window names that are not valid VHDL or Verilog identifiers are converted to VHDL<br />

extended identifiers. For example, with a window named z1I10.GSR.OR, <strong>ModelSim</strong> will<br />

treat the name as \z1I10.GSR.OR\ (for all comm<strong>and</strong>s including lmcwin, add wave, <strong>and</strong><br />

examine). You must then use that name in all comm<strong>and</strong>s. For example,<br />

add wave /top/swift_model/\z1I10.GSR.OR\<br />

Extended identifiers are case sensitive.<br />

ReportStatus<br />

The ReportStatus comm<strong>and</strong> displays model information, including the names of window<br />

registers. For example,<br />

lmc /top/u1 ReportStatus<br />

SmartModel Windows description:<br />

WA "Read-Only (Read Only)"<br />

WB "1-bit"<br />

WC "64-bit"<br />

This model contains window registers named wa, wb, <strong>and</strong> wc. These names can be used in<br />

subsequent window (lmcwin) comm<strong>and</strong>s.<br />

SmartModel lmcwin comm<strong>and</strong>s<br />

The following window comm<strong>and</strong>s are supported:<br />

lmcwin read [-]<br />

lmcwin write <br />

lmcwin enable <br />

lmcwin disable <br />

lmcwin release <br />

Each comm<strong>and</strong> requires a window instance argument that identifies a specific model<br />

instance <strong>and</strong> window name. For example, /top/u1/wa refers to window wa in model<br />

instance /top/u1.<br />

lmcwin read<br />

The lmcwin read comm<strong>and</strong> displays the current value of a window. The optional radix<br />

argument is -binary, -decimal, or -hexadecimal (these names can be abbreviated). The<br />

default is to display the value using the std_logic characters. For example, the following<br />

comm<strong>and</strong> displays the 64-bit window wc in hexadecimal:<br />

lmcwin read /top/u1/wc -h<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!