Enno
03/29/2023, 5:47 PMStefan Schippers
03/30/2023, 9:51 PMTim Edwards
03/30/2023, 10:18 PMStefan Schippers
03/31/2023, 9:11 AMsky130.lib.spice
includes (for example in the tt corner) corners/tt.spice
, which in turn includes ../all.spice
which includes the npn transistors:
.include "../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__npn_05v5_W1p00L1p00.model.spice"
.include "../../libs.ref/sky130_fd_pr/spice/sky130_fd_pr__npn_05v5_W1p00L2p00.model.spice"
However these models are "cornerized", there is a s
,f
,t
corner, so my suggestion is to include
sky130_fd_pr__npn_05v5__t.corner.spice
directly from corners/tt.spice and remove npn inclusion from all.spice
.
Same thing for the s and f corners.
The sky130_fd_pr__npn_05v5__t.corner.spice
defines some needed parameters before including the npn model:
.param
+ dkisnpn1x1=8.7913e-01 dkbfnpn1x1=9.8501e-01
+ dkisnpn1x2=9.0950e-01 dkbfnpn1x2=9.6759e-01
+ dkisnpnpolyhv=1.0 dkbfnpnpolyhv=1.0
.include "sky130_fd_pr__npn_05v5_W1p00L1p00.model.spice"
.include "sky130_fd_pr__npn_05v5_W1p00L2p00.model.spice"
.include "sky130_fd_pr__npn_11v0_W1p00L1p00.model.spice"
Not sure what is the best way to relate NPN t, s, f
corners to cmos tt, sf, fs, ff, ss
corners, may be there is no clear correlation of cmos corners vs bipolar corners...Stefan Schippers
03/31/2023, 9:15 AMt
corner):
.param
+ dkisnpn1x1=8.7913e-01 dkbfnpn1x1=9.8501e-01
+ dkisnpn1x2=9.0950e-01 dkbfnpn1x2=9.6759e-01
+ dkisnpnpolyhv=1.0 dkbfnpnpolyhv=1.0
Enno
03/31/2023, 12:16 PM