Andrew Wright
08/31/2023, 1:51 PMTim Edwards
08/31/2023, 2:42 PMMitch Bailey
08/31/2023, 3:01 PM1u/0.5u
, in xschem, you’d enter the SGDGS as nf=2 mult=1 W=1 L=0.5
.
The 2x SGD would be nf=1 mult=2 W=0.5 L=0.5
.
The xcshem model has the following calculations.
ad="'int((nf+1)/2) * W/nf * 0.29'"
pd="'2*int((nf+1)/2) * (W/nf + 0.29)'"
as="'int((nf+2)/2) * W/nf * 0.29'"
ps="'2*int((nf+2)/2) * (W/nf + 0.29)'"
nrd="'0.29 / W'" nrs="'0.29 / W'"
For SGDGS,
ad=int(3/2)*1/2*0.29=1*0.5*0.29=0.145
pd=2*int(3/2)*(1/2+0.29)=2*1*0.79=1.58
as=int(4/2)*1/2*0.29=2*0.5*0.29=0.29
ps=2*int(4/2)*(1/2+0.29)=2*2*0.79=3.16
nrd=0.29/1=0.29
nrs=0.29/1=0.29
For 2x SGD, the values for 1 transistor are
ad=int(2/2)*0.5/1*0.29=1*0.5*0.29=0.145
pd=2*int(2/2)*(0.5/1+0.29)=2*1*0.79=1.58
as=int(3/2)*0.5/1*0.29=1*0.5*0.29=0.145
ps=2*int(3/2)*(0.5/1+0.29)=2*1*0.79=1.58
nrd=0.29/1=0.29
nrs=0.29/1=0.29
Since mult=2, these values are effectively doubled.
ad=0.29 double SGDGS
pd=3.16 double SGDGS
as=0.29 same as SGDGS
ps=3.16 same as SGDGS
which is what is expected, I think.Harald Pretl
08/31/2023, 3:49 PMHarald Pretl
08/31/2023, 3:51 PMStefan Schippers
08/31/2023, 9:27 PMint( (nf + 1) / 2)
and int( (nf + 2) / 2)
expressions in the xschem calculations for drain and source parameters respectively.
Needless to say these calculations are bare estimations considering minimum design rules. Custom layouts may have completely different difusion shapes and areas/perimeters. You can always override xschem expressions by giving actual numbers for AD/AS/PD/PS instance attributes.Tim Edwards
09/01/2023, 2:16 AMint()
corrections in the expressions.Andrew Wright
09/05/2023, 4:02 PM