I add one function in '.simrc', but when export out hspice netlist, I get such error:

Discussion in 'Cadence' started by tech11, Aug 13, 2007.

  1. tech11

    tech11 Guest

    Hello everyone,

    I defined one function in '.simrc', but when I export out hspice netlist, I
    get such error:

    Running netlist
    Begin Incremental Netlisting Aug 12 22:27:10 2007
    *Error* eval: undefined function - HNLPrintPnpElement
    End netlisting Aug 12 22:27:11 2007
    "Netlister: There were errors, no netlist was produced."

    Below is my function defination:

    procedure( HNLPrintPnpElement()
    hnlPrintString("q") hnlPrintString(hnlMapInstName(hnlCurrentInstName))
    hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("C" 0)))
    hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("B" 0)))
    hnlPrintString(" ") hnlPrintString(hnlMapNetName(hnlNetNameOnTerm("E" 0)))
    hnlHspicePrintInstPropVal('("modelType"))
    ;if( hnlCurrentType == "pnp" then
    ;hnlPrintString("pnp")
    ;)
    ;hnlHspicePrintInstPropEqVal('("area" "m"))
    hnlPrintString("\n")
    )

    What's the question?

    B.R.

    Joffre
     
    tech11, Aug 13, 2007
    #1
  2. On Mon, 13 Aug 2007 10:33:48 +0800, tech11 wrote:

    IMHO you cannot define functions in .simrc

    you probably want to define them in .cdsinit


    rds
     
    Guenther Sohler, Aug 13, 2007
    #2
  3. tech11

    tech11 Guest

    In openbook 'ossref/chap5.html', I find some info about 'Formatting
    Functions for Hierarchical Netlisting' and there're some examples. So it
    seems that it's permitted to define functions in .simrc.
     
    tech11, Aug 13, 2007
    #3
  4. tech11

    noopster Guest

    you could try ading your procedure to "CDS_INST_DIR/tools/dfII/
    local/.simrc" and see if that finds it.


    CDS_INST_DIR
     
    noopster, Aug 13, 2007
    #4
  5. tech11

    tech11 Guest

    Surely it's found, because when I modify some errors, the program will check
    out and prompt me.
     
    tech11, Aug 14, 2007
    #5
  6. tech11

    noopster Guest

    Is there not a log file in the simulation directory that yields some
    related information?
     
    noopster, Aug 14, 2007
    #6
  7. tech11

    tech11 Guest

    The log file is the error info:
    Running netlist
    Begin Incremental Netlisting Aug 12 22:27:10 2007
    *Error* eval: undefined function - HNLPrintPnpElement
    End netlisting Aug 12 22:27:11 2007
    "Netlister: There were errors, no netlist was produced."
     
    tech11, Aug 15, 2007
    #7
  8. tech11

    noopster Guest

    after you initialize the simulator you could type "netlist()" in the
    CIW to see if that yield more information.
    Then if the function is still undefined, you could try a manual load
    of .simrc and then try again.
     
    noopster, Aug 15, 2007
    #8
  9. tech11

    tech11 Guest

    The question is resolved. Thanks for all of your help!

    Since there're some if command, maybe met some errors and the function codes
    mayn't get effect. I put them in one file and load again, I may get the
    netlist generation.

    B.R.

    Joffre
     
    tech11, Aug 16, 2007
    #9
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.