Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 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

    When you start vsim, try to use the "-gui" option, like "vsim -gui"

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

    --- Quote Start ---

    When you start vsim, try to use the "-gui" option, like "vsim -gui"

    --- Quote End ---

    That is indeed the solution for me, thanks.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I just tried this under Windows 7 with Quartus 15.0 Modelsim 10.3d. I started a NIOS II IDE shell first, used 'which vsim' to confirm I was going to run the correct version of Modelsim, and then ran 'vsim', without the -gui option. The Modelsim GUI console output was:

    
    ModelSim> puts "Hello!"
    ModelSim> echo "Hello!"#  Hello!
    

    The first "Hello!" was printed on the NIOS II IDE shell command-line.

    Adding the -gui option redirects the output to the GUI console.

    Thanks for posting your solution, it works great! :)

    Cheers,

    Dave