override predefined model parameter?

C

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.
 
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.
 
On 21 Mar 2006 15:59:18 -0800, "cyseok" <sck236@gmail.com> wrote:

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.
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top