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.

E - <strong>ModelSim</strong> shortcuts<br />

Appendix contents<br />

Comm<strong>and</strong> shortcuts . . . . . . . . . . . . . UM-603<br />

Comm<strong>and</strong> history shortcuts . . . . . . . . . . . UM-603<br />

Main <strong>and</strong> Source window mouse <strong>and</strong> keyboard shortcuts . . . . UM-605<br />

List window keyboard shortcuts . . . . . . . . . . UM-608<br />

Wave window mouse <strong>and</strong> keyboard shortcuts . . . . . . . UM-609<br />

Comm<strong>and</strong> shortcuts<br />

This appendix is a collection of the keyboard <strong>and</strong> comm<strong>and</strong> shortcuts available in the<br />

<strong>ModelSim</strong> GUI.<br />

You may abbreviate comm<strong>and</strong> syntax, but there’s a catch — the minimum number of<br />

characters required to execute a comm<strong>and</strong> are those that make it unique. Remember, as<br />

we add new comm<strong>and</strong>s some of the old shortcuts may not work. For this reason<br />

<strong>ModelSim</strong> does not allow comm<strong>and</strong> name abbreviations in macro files. This minimizes<br />

your need to update macro files as new comm<strong>and</strong>s are added.<br />

Multiple comm<strong>and</strong>s may be entered on one line if they are separated by semi-colons (;).<br />

For example:<br />

<strong>ModelSim</strong>> vlog -nodebug=ports level3.v level2.v ; vlog -nodebug top.v<br />

The return value of the last function executed is the only one printed to the transcript.<br />

This may cause some unexpected behavior in certain circumstances. Consider this<br />

example:<br />

vsim -c -do "run 20 ; simstats ; quit -f" top<br />

You probably expect the simstats results to display in the Transcript window, but they<br />

will not, because the last comm<strong>and</strong> is quit -f. To see the return values of intermediate<br />

comm<strong>and</strong>s, you must explicitly print the results. For example:<br />

Comm<strong>and</strong> history shortcuts<br />

vsim -do "run 20 ; echo [simstats]; quit -f" -c top<br />

The simulator comm<strong>and</strong> history may be reviewed, or comm<strong>and</strong>s may be reused, with these<br />

shortcuts at the <strong>ModelSim</strong>/VSIM prompt:<br />

Shortcut Description<br />

!! repeats the last comm<strong>and</strong><br />

UM-603<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!