10-07-2019 04:07 AM
What TCL commands are available in ModelSim/Questa?
I've found the following commands do not work for me:
What's the replacement for the commands? Where can I see available TCL commands for Questa?
10-07-2019 04:29 AM
10-07-2019 05:31 AM
10-07-2019 06:18 AM
grep and which are not tcl commands, they are linux system commands. In TCL, any command it doesnt understand is passed back to the OS, so if you're on windows they wont work.
puts is a tcl command, and should work fine - what happens when you try?
10-07-2019 07:11 AM
"if you're on windows they wont work" - no, I'm in Linux, but 'puts' and 'which' do not work for me in Questa shell (Transcript window)
"puts is a tcl command, and should work fine - what happens when you try?" - nothing happens... When I enter for example puts "ABC", I'm getting a blank line back. When I enter echo "ABC", it returns ABC as expected:
%> puts "ABC" %> %> echo "ABC" %> ABC
Actually the puts command has the following format:
puts [-newline] [channelID] <string>
Probably I'm a wrong channel? How to know/modify the channelID?
10-07-2019 07:18 AM - edited 10-07-2019 07:19 AM
I get the feeling the transcript window doesnt natively to tcl commands. Echo is a system command so it is returning what the OS does. Try writing a .tcl file and then writing
10-07-2019 07:28 AM
OK, I've created a try.tcl file, which contains a single command "puts ABC", ran it with 'do try.tcl', the command doesn't work...
Actually I write a lot of TCL scripts with procs, aliases, etc, they works, but some commands like 'puts' do not... I really wolder to know why these commands do not work ...
10-09-2020 04:06 PM
In Questa, "puts" outputs to the OS shell window not the transcript window. "echo" prints a string to the transcript window.
I don't know why either.