wwfhm2002
Member level 5
how to run tcl script modelsim
I have a Tcl script to run simulation on modelsim as below (test.tcl):
# Setting library directory, 1
vlib work
# Loading configuration
set vlogdumpon 0
foreach arg $argv {
switch -regexp -- $arg {
-TC {set vsimtc 1}
}
}
if {$vsimtc == 1} {
vsim work.mpx2_tb
} else {
vsim work.mpx2_tb +notimingchecks
}
# Run
run -all
Now in Win2000 modelsim command window, I run: source test.tcl -TC
The modelsim give me: # wrong # args: should be "source fileName"
How can I run test.tcl with argument, or other equivalent solution?
I have a Tcl script to run simulation on modelsim as below (test.tcl):
# Setting library directory, 1
vlib work
# Loading configuration
set vlogdumpon 0
foreach arg $argv {
switch -regexp -- $arg {
-TC {set vsimtc 1}
}
}
if {$vsimtc == 1} {
vsim work.mpx2_tb
} else {
vsim work.mpx2_tb +notimingchecks
}
# Run
run -all
Now in Win2000 modelsim command window, I run: source test.tcl -TC
The modelsim give me: # wrong # args: should be "source fileName"
How can I run test.tcl with argument, or other equivalent solution?