Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

tcl commands in Altera Modelsim

Hi all!

I am using Altera Modelsim, which is tcl-based. I use the GUI.

In the console, when I type the command puts "a" I get not output:

ModelSim> set a 1

# 1

ModelSim> echo $a

# 1

ModelSim> puts $a

ModelSim> puts "a"

ModelSim>

Can anyone explain that?

Thx

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    correct.

    Is there a way to redirect the host OS's console into ModelSim's console?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    puts will put messages into the host OS's console window (i see this on linux). i'm not sure where they'd go if you are using Windows.

    echo prints to the ModelSim transcript window as you've seen.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    on the other hand, each time a "set" command is executed, there is a trace in the console with the value

    Why is that?