# \#pass-argument-to-script

**URL:** https://verificationacademy.com/forums/tag/pass-argument-to-script/6072.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [How to pass arguments from cmd to tcl script of ModelSim](https://verificationacademy.com/forums/t/how-to-pass-arguments-from-cmd-to-tcl-script-of-modelsim/32981)

<div class="topic-metadata">

**Author:** [@saritr](https://verificationacademy.com/forums/u/saritr)\
**Replies:** 3\
**Last updated:** [March 22, 2017, 1:12pm UTC](https://verificationacademy.com/forums/t/how-to-pass-arguments-from-cmd-to-tcl-script-of-modelsim/32981 "2017-03-22T13:12:51Z")

</div>

I run Modelsim in the cmd from a python program. I use the following code which call a tcl script which run the modelsim: os.system("vsim -c -do top\_tb\_simulate\_reg.tcl " ) The tcl script contain the following: vsim -…
