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-486 20 - Tcl <strong>and</strong> macros (DO files)<br />

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

}<br />

}<br />

}<br />

## Provide file root argument <strong>and</strong> load_wave restores all saved windows.<br />

## Default file root is "wave".<br />

proc load_wave {{fileroot "wave"}} {<br />

foreach f [lsort [glob -nocomplain $fileroot\[1-9\].do]] {<br />

echo "Loading: $f"<br />

view -new wave<br />

do $f<br />

}<br />

if {[file exists windowSet_$fileroot.do]} {<br />

do windowSet_$fileroot.do<br />

}<br />

}<br />

...<br />

This next example specifies the compiler arguments <strong>and</strong> lets you compile any number of<br />

files.<br />

set Files [list]<br />

set nbrArgs $argc<br />

for {set x 1} {$x 0} {<br />

eval vlog $vFiles<br />

}

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

Saved successfully!

Ooh no, something went wrong!