questa -f <filename>.tcl -> from a batch file

Status
Not open for further replies.

ivlsi

Advanced Member level 3
Joined
Feb 17, 2012
Messages
883
Helped
17
Reputation
32
Reaction score
16
Trophy points
1,298
Activity points
6,868
Hi All,

How could I invoke the QuestaSim and run a *.tcl file from a batch file?

I'd like to do something like this (part of the batch file):
questa -f <filename>.tcl

where <filename>.tcl would contain projects definitions, etc.

Thank you!
 

You need to know the full file path of the program. You'll likely find it by right clik at the program icon on your desktop and select Properties.

So your bat fil will contain a line like this:
Code:
c:\program files\. . . \questa.exe -f c:\filename.tcl
 
Reactions: ivlsi

    ivlsi

    Points: 2
    Helpful Answer Positive Rating
OK, I've put the following in the filename.tcl:
puts "123"
and have ran the following from the command line:
c:\program files\. . . \questa.exe -f c:\filename.tcl
As the result, after the QuestaSim has open, the following was ran:
vsim -gui puts 123
Why? I don't want that the "vsim -gui" command will be ran, I want QuestaSim will just open and execute commands in the filename.tcl
 

Hi. I just provided a generic way to open a file in any program with that file name.

How the different commands works is unknown for me because I've never used that program.

What is your complete command (the whole line in your bat file)?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…