Ken Kundert wrote on Dec 18th, 2006, 11:53am:Or you can make the subcircuit an inline subcircuit, in which case you would get the operating point information for the inlined component.
The subcircuit definition is probably in the library file, which I think would mean the user can't modify it. Don't you need to specify the "inline" as part of the definition? Or can you force spectre to treat it as inline even though it's defined otherwise?
David -
In your netlist, you have something like:
M0 (d g s b) nmos w=1u l=1u
Now, usually, one would then find in the library file the corresponding definition:
model nmos bsim3v3 version=3.24 vth=0.7 ...
Instead, in your case, the "nmos" is defined as a subckt, which might look like this:
subckt nmos (d g s b) w=10u l=10u
rd d di 0.5
rs s si 0.5
m1 (di g si b) nmos_mod w=$w l=$l
ends
and then "nmod_mod" is defined with a "model card" to be a bsim3v3 device. The subckt "nmos" doesn't have a "gm" -- it's the mos device inside the subckt that has the operating point info.