Amro Tork
06/01/2021, 3:18 PMXM6 Vout net2 VDD VDD sky130_fd_pr__pfet_g5v0d10v5 L=0.5 W=20 nf=1 ad='int((nf+1)/2) * W/nf * 0.29' as='int((nf+2)/2) * W/nf * 0.29'
+ pd='2*int((nf+1)/2) * (W/nf + 0.29)' ps='2*int((nf+2)/2) * (W/nf + 0.29)' nrd='0.29 / W' nrs='0.29 / W'
+ sa=0 sb=0 sd=0 mult=20 m=20
nf = 1, mult=20 and m = 20. I'm a little bit confused because I'm not sure if the model will take source/drain sharing correctly in that case? Nor does it takes the LOD effects.Tim Edwards
06/01/2021, 3:26 PMAmro Tork
06/01/2021, 3:27 PMTim Edwards
06/01/2021, 3:32 PMAmro Tork
06/01/2021, 3:33 PMTim Edwards
06/01/2021, 3:36 PMXM6
from your example above to be properly represented in xschem, you would want to set W=20
nf=20
m=1
mult=1
.Amro Tork
06/01/2021, 3:38 PMEslam Morsie
06/01/2021, 3:41 PMTim Edwards
06/01/2021, 3:41 PMW
is the total width of all fingers.Amro Tork
06/01/2021, 3:41 PMTim Edwards
06/01/2021, 3:42 PMspinit
file that is distributed with open_pdks and sets the right behavior for correctly interpreting W
, nf
, and M
.Amro Tork
06/01/2021, 3:43 PMTim Edwards
06/01/2021, 3:44 PMW=400
. I was not sure of the intent of the example.sky130A/libs.tech/xschem/spinit
. The ngspice documentation claims that the file can be either spinit
or .spiceinit
, but I could only make it work by copying it to my local (simulation) directory as .spiceinit
.sky130A/libs.tech/ngspice/spinit
.set ngbehavior=hsa
set ng_nomodcheck
It's the ngbehavior
that makes the BSIM handling correct.Amro Tork
06/01/2021, 3:52 PM