Deadok
New Member
Offline
Posts: 3
|
Hello!
I have a trouble in passing parameters from the modelcard to the Verilog-A description of my device when I use Cadence. To keep it simple let's have a look at the simplest resistor. There is a single parameter there: parameter real r=10 from [0:inf);
I create a modelcard for this resistor which looks like this:
simulator lang=spectre insensitive=yes
ahdl_include "resistor_tst.va"
subckt resist ( p n ) resist ( p n ) rr ends resist
model rr resistor_tst + r = 100
This model card (resist.scs) is included into ADE Model libraries. The resistor is represented in my schematics by a symbol with the view name "spectre". The new component parameter was added in the CDF base layer:
Name: model; Prompt: resistor_tst; type: string; Parse as CEL: yes;
In the simulation in formation for spectre I specified termOrder = p n. The "otherParameters" = model.
That is the description of my setup. Afterwards I run a DC analysis, but get a warning from spectre: resist.scs" 13: rr: `r' is not a valid parameter for an instance of `resistor_tst'. Ignored.
What would you recommend me to do? I would like to use modelcards as as soon my problem is solved I will use the same solution for a simulation of a MOSFET.
Thanks for support!
|