• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Hardware/Software Co-Development, Verification…
  3. Tcl input to ncsim

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 48
  • Views 19607
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Tcl input to ncsim

archive
archive over 18 years ago

Hi,
I am using a tcl input file for running the ncsim after doing VAP in Palladium TBA. All of the commands and comments, literally evrything in the input.tcl file is echoed to the ncsim prompt which is very annoying. Tcl itself doesnt do this so is there a switch to turn this off?

Thanks,
Hemanth


Originally posted in cdnusers.org by hemanth
  • Cancel
  • archive
    archive over 18 years ago

    Instead of passing the tcl commands as a file of commands that get executed just as if you typed them in, pass the commands in via a source command.

    Example:

    % ncsim -input "@source file.tcl"

    You can get more information under "Providing Interactive Commands from a File" in the "Cadence NC-Verilog Simulator Help" document near the end of Ch 9.

    Tim


    Originally posted in cdnusers.org by tpylant
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Hi Tim,
    That wont work as my commands in the script are for palladium and not for ncverilog.


    Originally posted in cdnusers.org by hemanth
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    If you are calling ncsim (as opposed to calling saDebug) to do your run then Tim's method does work.

    If using the .ncsim.csh example script that VAP produces you will have some difficulty due to shell variable handling, but you can execute it once with the -echo option and modify the resulting output as Tim describes to get your desired result.

    Note that output before the "@source" will not be suppressed.

    David


    Originally posted in cdnusers.org by dcross
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Hi,
    I tried it but for some reason the simulation hangs or doesnt progress or whatever. The put all the qt commands in a tcl file and source it in the script which ncsim runs. In the tcl file I have all qt related commands like loading memory and memory dump etc. I also do the 'run' from the tcl file and exit but it gets stuck with no simulation having run and I have to kill it.


    Regards,
    Hemanth


    Originally posted in cdnusers.org by hemanth
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    I also have some conditional if-else statements in the tcl file.


    Originally posted in cdnusers.org by hemanth
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Sorry, It works I was muddle headed and was running an entirely different test and looking for non-existent results.

    thanks guys,
    Hemanth


    Originally posted in cdnusers.org by hemanth
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information