Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

ivlsi

Advanced Member level 3
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
 
  • Like
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top