How to pass arguments from cmd to tcl script of ModelSim

In reply to saritr:

I’ve had some success with something like:

vsim -c -do “do top_script.tcl option1 option2”

You’d have to package that into your os.system() command and escape the quotes.