I am using a .do file which is used by GUI and by .tcl in command line (vsim -c) for simulating in Modelsim 10.3c
exec vsim -c -do DoFile.do
What I need is:
If an error happens, modelsim should be quit and return to the .tcl
. Otherwise it should simulate the project.
If I put the line onerror { quit -f }
in my .do
file the GUI is quit at the first error. So, this is not comfortable.
I didn't manage to use onerror
(warning: onerror command for use within macro
) or $error
(unknown variable) inside tcl