Weston Braun
10/12/2020, 9:12 AMPatrick Van Oosterwijck
10/12/2020, 9:14 PMStefan Schippers
10/12/2020, 11:19 PMm
and mult
must both be given. The '`m=` is the actual subcircuit multiplier (and the pfet is wrapped in a subcircuit), the '`mult=`' gets the same value as m=
, this is only to make the 'mult' variable accessible to be used in equations inside the subcircuit. (the 'm' factor gets resolved by spice parser and no more 'visible' from within the subckt).Stefan Schippers
10/13/2020, 1:51 AMXM1 net1 G1v8 S B sky130_fd_pr__nfet_01v8_lvt W=1 L=0.15 ad='W * 0.29' pd='2 * (W + 0.29)' as='W * 0.29'
+ ps='2 * (W + 0.29)' nrd='0.29 / W' nrs='0.29 / W' sa=0 sb=0 sd=0 nf=1 mult=1 m=1
Tim Edwards
10/13/2020, 1:52 AMWeston Braun
10/13/2020, 1:53 AMStefan Schippers
10/13/2020, 1:53 AMXM1 net1 G1v8 S B sky130_fd_pr__nfet_01v8_lvt W=1 L=0.15 ad='W * 0.29' pd='2 * (W + 0.29)' as='W * 0.29'
+ ps='2 * (W + 0.29)' nrd='0.29 / W' nrs='0.29 / W' sa=0 sb=0 sd=0 nf=1 mult=2 m=2
Stefan Schippers
10/13/2020, 1:54 AMWeston Braun
10/13/2020, 1:54 AMWeston Braun
10/13/2020, 1:54 AMTim Edwards
10/13/2020, 1:54 AMStefan Schippers
10/13/2020, 1:55 AMWeston Braun
10/13/2020, 1:55 AMTim Edwards
10/13/2020, 1:56 AMTim Edwards
10/13/2020, 1:58 AMon branch pre-master:
.options wnflag = 0|1 added
wnflag = 0|1 added to BSIM 4.7 as an instance parameter.
Other BSIM will follow.
Holger
Tim Edwards
10/13/2020, 1:58 AMTim Edwards
10/13/2020, 2:00 AMMy suggestion is:
Add a flag '.option wnflag=0/1'.
0 denotes that w is chosen,
1 denotes that w/nf is chosen for model selection.
In ngspice mode (and Spectre mode?) the option defaults to 0.
In HSPICE mode the option defaults to 1 (according to HSPICE manual).
The .option line will override the default settings.
The proposed changes will only influence the selection of a model
during the binning process. There will be no change to the model itself.
This fix will serve Tim's needs.
For HSPICE compatibility we might also add wnflag as a device instance
flag for BSIM4. The instance flag would overrule the .option flag or the
default setting (only for the specific instance). But we also might decide
to skip this extra feature right now, because it requires some additions
to each model.
I will catch a Spectre manual to figure out what they offer here.
Holger
Stefan Schippers
10/13/2020, 2:00 AMTim Edwards
10/13/2020, 2:01 AMWeston Braun
10/13/2020, 2:02 AMStefan Schippers
10/13/2020, 2:02 AMTim Edwards
10/13/2020, 2:02 AMStefan Schippers
10/13/2020, 2:03 AMTim Edwards
10/13/2020, 2:04 AMWeston Braun
10/13/2020, 2:04 AMStefan Schippers
10/13/2020, 2:05 AMWeston Braun
10/13/2020, 2:06 AMWeston Braun
10/13/2020, 2:07 AMStefan Schippers
10/13/2020, 2:08 AMWeston Braun
10/13/2020, 2:12 AM