noview wave
add wave dut_clk
configure wave -signalnamewidth 1
wm geometry .wave [winfo screenwidth .]x330+0-20
and I get the error:
# bad window path name ".wave"
Should the window not named .wave in the TK path?
Back in older, simpler times (ModelSim 5.6???) it *was*.
Today, though, its name is something like
..main_pane.mdi.interior.cs.vm.paneset.cli_0.wf.clip.cs.pw.wf
And no, you're not supposed to KNOW that. You get the
wave window's name from the result of the command
view wave
But you're then trying to manipulate the window using
[wm], which means that it's essential to undock the window.
And then you need to discover the name of the wave window's
toplevel container window, so you can use [wm] on it.
So here's a version of your script that is nearer to working:
noview wave
add wave dut_clk
configure wave -signalnamewidth 1
set waveWinName [view wave -undock]
set waveTopLevel [winfo toplevel $waveWinName]
wm geometry $waveTopLevel [winfo screenwidth .]x330+0-20
It's all a LOT more complicated in the fast-moving, high-flying
world of ModelSim version 6 dockable windows
--
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
(e-mail address removed)
http://www.MYCOMPANY.com
The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.