Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Tcl input to ncsim 

Last post Wed, Aug 8 2007 10:55 PM by archive. 6 replies.
Started by archive 08 Aug 2007 10:55 PM. Topic has 6 replies and 6062 views
Page 1 of 1 (7 items)
Sort Posts:
  • Wed, Aug 8 2007 10:55 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Tcl input to ncsim Reply

    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
    • Post Points: 0
  • Thu, Aug 9 2007 8:21 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Tcl input to ncsim Reply

    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
    • Post Points: 0
  • Thu, Aug 9 2007 10:38 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Tcl input to ncsim Reply

    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
    • Post Points: 0
  • Fri, Aug 10 2007 8:47 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Tcl input to ncsim Reply

    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
    • Post Points: 0
  • Mon, Aug 20 2007 2:58 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Tcl input to ncsim Reply

    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
    • Post Points: 0
  • Mon, Aug 20 2007 3:01 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Tcl input to ncsim Reply

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


    Originally posted in cdnusers.org by hemanth
    • Post Points: 0
  • Mon, Aug 20 2007 3:54 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Tcl input to ncsim Reply

    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
    • Post Points: 0
Page 1 of 1 (7 items)
Sort Posts:
Started by archive at 08 Aug 2007 10:55 PM. Topic has 6 replies.