override predefined model parameter?

Discussion in 'Cadence' started by cyseok, Mar 21, 2006.

  1. cyseok

    cyseok Guest

    I am using spectre.
    I want to override model parameters pre-defined in model files.

    My Model library file included in ADE is as follows.
    ===============
    simulator lang=spectre
    library a
    section NN
    include "model.lib"
    parameters cor_sw=1
    endsection
    endlibrary
    ================

    Spectre issues the error that parameter cor_sw is previously defined.
    cor_sw is defined in "model.lib" but I want to override it with another
    value.

    Thanks in advance.
     
    cyseok, Mar 21, 2006
    #1
  2. cyseok

    JD Guest

    Based on my experience, you have to either modify in model.lib or
    remove the cor_sw definition in model.lib and define cor_sw in your
    netlist.
     
    JD, Mar 23, 2006
    #2
  3. Unfortunately you can't define a variable both in ADE and in the model file. I
    filed a PCR a while back asking for a mechanism to do this, but it's not been
    implemented yet (it was specifically asking for some means of checking whether a
    variable was defined or not).

    Andrew.
     
    Andrew Beckett, Mar 31, 2006
    #3
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.