Wednesday, October 23, 2019

Cadence Virtuoso CMOS Analog Design Basics: an schematic for generating a reference current ( e.g. 10uA ) in a new techno ( e.g. TSMC 22nm ) using “Constant gm bias circuit” with start-up

Cadence Virtuoso CMOS Analog Design Basics: an schematic for generating a reference current ( e.g. 10uA ) in a new techno ( e.g. TSMC 22nm ) using “Constant gm bias circuit”  with start-up



This is where we left off in the previous blog post and now we are going to add a startup circuit:


In any self-biased  circuit there are two  possible operating points:  wanted one
( in our case the self-biased  circuit will generate 10uA current) and the  unwanted one
where no current flows in the  circuit. 
Note*: Equations presented in the previous blog entry gave us a hint about the existence of
these two possible operating points in this circuit:

And after division of both sides of the equation with Iref under assumption that Iref is not equal to 0:

But equation:

is also true when Iref=0 meaning that the circuit will have two possible states ( stable points ) 
after power up and one of them is an undesirable state where Iref=0.


In our schematic when Iref=0 (an undesired state  of the circuit) NMOS transistors M4 and M5 are not
conducting so it is safe to say that gates voltage of NMOS transistors M4 and M5 are VG4=VG5 is
approx. 0V. 
On the other hand again Iref=0 (an undesired state  of the circuit) because of the effect of
forward biased diode of transistor M6,  it is also safe to say that gate voltage of PMOS transistors
M7 and M6,VG6=VG7 is approx. VDD=2.5V.


  • So to be sure that our self-biased circuit never get “stuck” into undesirable state resulting in
Iref=0 we need to add a circuit ( a “start-up” circuit ) that will put/”leak” some current into the
drain of NMOS transistor M5 in the case that VG4=VG5 approx. 0V and  VG6=VG7 approx.
VDD=2.5V a consequence of undesirable but stable state anyway of the self-biased circuit
with Iref=0.
    • We also need that “start-up” circuit  to stop “leaking” the current into the drain of NMOS
transistor M5 when mission of “start-up” is accomplished in other words when our
self-biased circuit move from a stable state where Iref=0 to other stable state where
Iref=10uA.
Exact way of thinking that led to schematic of the start-up circuit is very well explained by
prof. Jacob Baker in his class lectures available online, but here I would start with a simple topology
that use an unreasonable big resistor( for example 100M ) and two transistors:
  •  NMOS M9 used as switch ( a hint: small L ) and provider of “leakage” current to drain of
NMOS transistor M5 when there is the stable state of self-bias circuit resulting in  Iref=0 and
cutting the current “leakage” when there is the stable state of self-bias circuit
resulting in Iref=10uA.


  • NMOS transistor M10 is biasing to ON transistor M9 when there is the stable state of
self-bias circuit resulting in  Iref=0 and M10 is biassing to OFF transistor M9 when there is
the stable state of self-bias circuit resulting in Iref=10uA.
  • NMOS transistor M10 shares the same VGS with NMOS transistor M5 in
a current mirror configuration and  M10 and M5 are the same size W/L.



A transient simulation shows that transistor M9 is providing a lot of current at the beginning of
simulation when  ID5=Iref=0 and when the circuit settles in the desired stable state when
ID5=Iref=10uA, transistor M9 is “leaking” into drain of M5 only approx. 0.8uA:
  
Note*: in order to get the transient simulation as presented in the waveform above it is necessary to
setup initial conditions on two nets in Cadence Virtuoso Spectre like this:
ADE->Simulation->Convergence Aids->Initial Condition
The initial condition  of gate voltage of NMOS transistors M4 and M5 is VG4=VG5 =0V and the
second initial condition is on gate voltage of NMOS transistors M6 and M7 and it is
VG6=VG7 approx. VDD=2.5V.


It is not practical to have unreasonable big resistor in a circuit, so in a final schematic resistor
R=100M is replaced with two diode connected transistors M11 and M12 sized with smallest
W=1um and largest L=500um:
  Or another better version of the same circuit:
© 2011 ASIC Stoic. All rights reserved.

Wednesday, October 16, 2019

Cadence Virtuoso CMOS Analog Design Basics: an example of adding a schematic for generating a reference current ( e.g. 10uA ) in a new techno ( e.g. TSMC 22nm )

Cadence Virtuoso CMOS Analog Design Basics: an example of adding a schematic for generating a reference current ( e.g. 10uA )  in a new techno ( e.g. TSMC 22nm ) 

Hi,


In this blog entry I will finish the previous design by adding schematic for generation 10uA current source. The topology chosen here is something called:
“Constant gm bias circuit” or “Beta-multiplier reference circuit”.

Note*: a MOSFET implementation of a Constant gm bias circuit is very well explained by prof. Jacob Baker in his book “CMOS Circuit Design, Layout, and  Simulation” or
in his university lectures available online. 
  • Here is a quick explanation of the basic idea of the MOSFET implementation of a Constant gm bias circuit 

    • Let’s start with this schematic:



Note*: I covered some transistors sizing W and L information ( covered L’s and W’s that might not be
Wmin and Lmin any more in the final schematic ) in order to explain step by step how I got these
 transistor sizes. The same applies for the resistor value R0.
  
Now let’s say I am able to force ( somehow) the same Iref=10uA current through both transistors.
  • Obviously in this case width W of transistor M5 and width  W of transistor M4 are not the same so let’s assume : W(of transistor M5)= k*W(of transistor M4)

    • Note* For the moment I am choosing lengths L of both transistors to be the same




In order to force 10uA  current through M5 ( and M4 ) let’s add a pmos current mirror on the top, designed in such a way to give as the 10uA  current through M5 and M4.

  • A friendly reminder: as in previous blog entry these are  TSMC 22nm process RF NMOS and PMOS transistors that I have chosen to use for the schematic :


  • Please tell me if I am wrong but I concluded that need alim of VDD = 2.5V to use this techno/transistors.


Next I need to  size the four MOSFET transistors ( NMOS: M4, M5 and PMOS: M6, M7 ) and choose a value for resistor R to achieve my goal of having Iref = 10uA.
  • As a starting point I have chosen default minimum size:  Lmin, Wmin and NRmin( finger number) for all TSMC 22nm RF NMOS PMOS transistors

  • except M4 that we know has to have its W four times the W of the transistor M5:

In the next step I “sweeped” resistance R while observing ID5 t get ID5=10uA and  found that I need R=28K.
  • So here is a final schematic of “Constant gm bias circuit” producing the reference current of  Iref=10uA i

  • mplemented with minimum sizes of TSMC 22nm RF NMOS PMOStransistors and R=28K:

As a last step I will connect this Iref source circuit where I needed it in the schematic of the previous blog entry:


And here is a final schematic with the last adjustment in L of NMOS transistor M1 ( old L=350nm and the new one L=500nm )
to get as close as possible to its desired current of 400uA ( to be precise it is achieved ID1=397uA ).:








© 2011 ASIC Stoic. All rights reserved.

Tuesday, October 15, 2019

Cadence Virtuoso CMOS Analog Design Basics: an example of transistor sizing when using the first time new techno ( e.g. TSMC 22nm ) and we need NMOS transistor in saturation with ID=400uAV

Cadence Virtuoso CMOS Analog Design Basics: an example of transistor sizing when using the first time new techno ( e.g. TSMC 22nm ) and we need NMOS transistor in saturation with ID=400uAV

Hi,


I just got into new TSMC 22nm techno  and I wanted to bias one of its NMOS RF transistors using 10uA current source , to get ID=400uA.


This is an TSMC 22nm  RF NMOS and PMOS transistors that I have chosen to use for the task:


Please tell me if I am wrong but I concluded that need alim of VDD = 2.5V to use this techno/transistors.


In a first step  setup a schematic ( like this one bellow)  and after VGS voltage DC sweep ( observing transistor ID current )
I got that, for VDD=2.5V as constant, for VGS=875mV I am getting desired Id approx. 400uA ( or to be exact .403.3uA ).


Note*: for TSMC 22nm  RF NMOS transistor I kept for the moment a default minimum size:  Lmin, Wmin and NRmin( finger number):




Next step is to bias M1 transistor with VGS1=875mV. 
Here is a topology used to get biasing of M1 transistor and as a friendly reminder I assume that I have on my disposal a current of 10uA and I want that M1  ID=400uA.


Note*: I covered some transistors sizing W and L information ( covered L’s and W’s are not Wmin and Lmin any more in the final schematic ! ) in order to explain step by step how I got these  transistor sizes.


 As a first step I did a quick experiment where I put all transistors on their default sizes but in DC simulation  I got M1 ID too high: 1.589mV related to my desired 400uA 
  • This is because VGS1 = VDS of  a transistor M0 is to high 1.82V related to desired  VGS1 = 0.872mV




Since this is the transistor equation used for the sizing calculation:


in the next step I tried to increase M0 transistor W in order reduce its VDS=VGS1 and consequently to reduce ID of transistor M1.


Unfortunately even if I used maximum M0 transistor W = 10uA ( still keeping Lmin and NRmin , finger numbers ) 
ID of transistor M1 was better than before but still too high: 1.16mA ( a friendly reminder: the desired value is 400uA )


In the next step I kept maximum M0 transistor W = 10uA but I did a sweep NR( finger number maximum 32 ) and for NR=22 I got the desired current of M23 ID approx. 400uA:



But this “brute force” solution is using too big M0 transistor that is burning a lot of power:, transistor M0 ID0 = 480uA.


Let’s try another approach, I will keep transistor M0 Wmax=10uA ( still keeping Lmin and NRmin)  but I will increase L of PMOS transistor to Lmax=500nm.
  • This approach should  increase voltage VDS=VGS of transistor M2 and as result decrease VGS1 and transistor M1 ID current (  a new value of M1 ID current = 757uA while burning ID0 = 111uA of transistor M0 )




 In the last step, to reduce transistor M1 ID1 current from 757uA to desired 400uA, I did a parameter sweep of transistor M1 L ( while observing  M1 ID1 current ) and
for the value transistor M1 L=350nm => transistor M1 ID1 became approx. 400uA ( to be exact: transistor M1 ID1=407.9uA ):




© 2011 ASIC Stoic. All rights reserved.

Monday, October 14, 2019

Part #3: CMOS Analog Design Basics: an example of transistor sizing when using the first time new techno ( e.g. 1um ) and we need NMOS transistor in saturation with ID=400uA and VGS bias is 1.5V

Part #3: CMOS Analog Design Basics: an example of

transistor sizing  when using the first time new techno

( e.g. 1um ) and we need NMOS transistor in saturation

with ID=400uA and VGS bias is 1.5V



Hi, 


As a friendly reminder in the first document of the series: “CMOS Analog Design Basics: an example
of transistor sizing  when using the first time new techno ( e.g. 1um ) and we need NMOS transistor
in saturation with ID=400uA and VGS bias is 1.5V” as a title said our goal was to use these input data:
  •  1μ techo ( here is a Spice models of CMOS transistors ):
  • Alim. of Vdd =5V
  • Assuming bias VGS=1.5V


To achieve ID=400μA .


And in the past,  for this purpose I have chosen the following schematic:


 For the schematic I calculated and adjusted in simulation  the NMOS transistor sizing W/L=17 and
LTspice simulation showed: IDS = approx.  398 μA and VDSsat= approx. 711mV.


 And in the second document of the series: “PART#2: CMOS Analog Design Basics: an example of
transistor sizing  when using the first time new techno ( e.g. 1um ) and we need NMOS transistor in
saturation with ID=400uA and VGS bias is 1.5V” I replaced R1 with a diode connected PMOS
( and calculated it’s sizing W/L ):


Now I would like to bias transistor M1 with a necessary bias of VGS1=1.5V and for that
I am assuming that I have on my disposal  a current source of 20uA.


Here is a schematic ( “topology”) I am planning to use:




The basic idea of achieving transistor M1 biasing with VGS1=1.5V is to choose VSG4 of PMOS
transistor  M4 in such a way that VDD - VSG4 = 1.5V 


This is transistor equations ( a MOSFET transistor in saturation ) used for the sizing calculation:




Note*: As in previous schematics I decided to keep all MOSFET transistor length to one fixed
value: L=2um.


Also I need to take care that M3 stays in saturation when VGS1=1.5 V because VGS1= VDS3sat and
to do this I need to provide that VDS3sat > VGS3 -VTO(nmos). 
  • Since from Spice model of my NMOS transistor I know that


 => 1.5V > VGS3 - 0.8V
=>  2.3V > VGS3


Since VGS5=VGS3 , this means that I cannot choose sizing of NMOS transistor M5 to have
VGS3 > 2.3V so let me choose a convenient value VGS3=1.05 V.


Note* I have chosen VGS3=1.05 V because of my previous knowledge about this technology
mainly summarised from the following table:



To simplify our calculation let’s say that in our current mirror transistors M3 and M5 are equivalent in
size and also that we want to adjust our topology to have ID3=ID5=I1=20uA.


Also let’s temporary  simplify our topology replacing transistor M4 with a resistor R of unknown size
for the moment:


By doing simulation using parameter R1 “sweep” we will find value of R1 ( r1 approx. 174K ) to give
us VGS1=1.5V, keeping ID3=20uA.


And really when for R1=174K we are getting biasing voltage VGS1=1.5V while keeping currents
equal: I1=ID3=ID5=IR1=20uA:


The last step is replacing resistor R1 with PMOS and calculation of the size of the PMOS was already
explained in previous blog post:  “Part #2: CMOS Analog Design Basics: an example of transistor
sizing when using the first time new techno ( e.g. 1um ) and we need NMOS transistor in saturation
with ID=400uA and VGS bias is 1.5V”


But I made an assumption that I could achieve VGS1= 1.5V by having ID3 = ID4=10uA .
Let’s see if it is possible to size PMOS transistor M4 to do this.


By doing simulation using parameter PMOS transistor M4 W “sweep” it is clear this is impossible:
even for a small value of W=2u VGS1 is more than 2.9V:




So I decided to choose a small value for PMOS transistor W=4u and then to “sweep”
NMOS transistor M3 W for a value large enough to increase current ID3=ID4 so VGS1
can fall to the desired value VGS1=1.5V:




Indeed for an NMOS transistor M3 with size  W=64 there is VGS1 approx.1.5V:





© 2011 ASIC Stoic. All rights reserved.