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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UM-230 8 - WLF files (datasets) <strong>and</strong> virtuals<br />

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

view:/top/alu/out<br />

golden:.top.alu.out<br />

Dataset prefixes are not required unless more than one dataset is open, <strong>and</strong> you want to refer<br />

to something outside the active dataset. When more than one dataset is open, <strong>ModelSim</strong><br />

will automatically prefix names in the Wave <strong>and</strong> List windows with the dataset name. You<br />

can change this default by selecting Tools > Window Preferences (Wave <strong>and</strong> List<br />

windows).<br />

<strong>ModelSim</strong> also remembers a "current context" within each open dataset. You can toggle<br />

between the current context of each dataset using the environment comm<strong>and</strong> (CR-161),<br />

specifying the dataset without a path. For example:<br />

env foo:<br />

sets the active dataset to foo <strong>and</strong> the current context to the context last specified for foo.<br />

The context is then applied to any unlocked windows.<br />

The current context of the current dataset (usually referred to as just "current context") is<br />

used for finding objects specified without a path.<br />

The Objects pane can be locked to a specific context of a dataset. Being locked to a dataset<br />

means that the pane will update only when the content of that dataset changes. If locked to<br />

both a dataset <strong>and</strong> a context (e.g., test: /top/foo), the pane will update only when that<br />

specific context changes. You specify the dataset to which the pane is locked by selecting<br />

File > Environment.<br />

Restricting the dataset prefix display<br />

The default for dataset prefix viewing is set with a variable in pref.tcl,<br />

PrefMain(DisplayDatasetPrefix). Setting the variable to 1 will display the prefix, setting<br />

it to 0 will not. It is set to 1 by default. Either edit the pref.tcl file directly or use the Tools<br />

> Edit Preferences comm<strong>and</strong> to change the variable value.<br />

Additionally, you can restrict display of the dataset prefix if you use the environment<br />

-nodataset comm<strong>and</strong> to view a dataset. To display the prefix use the environment<br />

comm<strong>and</strong> (CR-161) with the -dataset option (you won’t need to specify this option if the<br />

variable noted above is set to 1). The environment comm<strong>and</strong> line switches override the<br />

pref.tcl variable.

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

Saved successfully!

Ooh no, something went wrong!