All right. Good morning, all. So we take another big step forward today and get onto a new plane of understanding, if you will. In the last week and a half, our focus was on the storage element or storage elements called inductors and capacitors.
And capacitors stored change and inductors essentially stored energy in the field, the magnetic flux. And the state variable for an inductor was the current while that for a capacitor was the capacitor voltage.
We also looked at circuits containing a single storage element, we looked at RC circuits and we also looked at circuits containing a single inductor. And this was a single inductor with a resistor and a current source or a voltage source and so on.
What we are going to do today is do what are called "second-order systems." So they are on the next plane now. And with this second-order of systems, they are characterized by circuits containing two independent storage elements.
They could be an inductor and a capacitor or two independent capacitors. And you will see towards the end what I mean by two independent capacitors. If I have two capacitors in parallel, they can be represented as a single equivalent capacitor so that doesn't count.
It has to be two independent energy storage elements and resistors and voltage sources and so on. And what we end up getting is what is called "second-order dynamics." And much as first order circuits were represented using first order differential equations, this kind you end up getting second-order differential equations.
Before we go into this, I would like to start motivating this and give you one example of why this is important to study. There are many, many examples but I will give you one. What I would like to do is draw your attention to our good old inverter driving a second inverter.
The same circuit that we used to motivate RC studies, one inverter driving another. So let me draw the circuit. Here is one inverter. This is, let's say, 5 volts and this is, let's say, 2 kilo ohms.
And I connect the output of this inverter to a second inverter. And what we saw in the last few lectures was that in this specific example there was a parasitic capacitor or a capacitor associated with the gate of this MOSFET.
And that could be modeled by sticking a capacitor CGS between the gate of the MOSFET and ground. And we saw that the waveforms here, if I had some kind of step here. Let's say, for example, a step that went from high to low.
Then out here I would have a transition that instead of going up rapidly like this would transition a little bit more slowly. And this transition was characterized by an RC time constant. And this is what gave rise to a delay in the eventual output.
So that is what we saw previously, single energy storage element. Today what we are going to do is we are going to look at the same circuit, the exact same circuit, and have some fun with it. What we are going to say is look, this thing is pretty slow, so what I would like to do is -- why don't we go ahead and put that up.
What we are going to see is that the yellow waveform is the waveform at the input here. And the green waveform here is the waveform at this intermediate node. And notice that this waveform here is characterized by the slowly rising characteristics that are typical of an RC circuit.
There are some other weirdnesses and so on going on here like a little bump and stuff like that. You can ignore all of that for now. It happens because of certain other very subtle circuit effects that you won't be dealing with, called Miller effects and so on that you won't be dealing with in 6.002.
So focus then on this part here. It is pretty slow. And because of that slow rising, I get a very slow transition and I get some delay in my inverter. So you say ah-ha, we learned about this in 6.002, I can make it go faster.
How can you make the circuit go faster? What could you do? This is rising very slowly. How can you make it go faster? Anybody? You have multiple choices, actually. What are your choices here? Pardon.
Decrease the time constant. And how would you decrease the time constant? The capacitance is connected to this MOSFET gate here. I didn't want it in the first place but it is there, I cannot help it, so I can decrease the resistance.
Good. Let me go ahead and do that. What I will do is I am going to knock this sucker out and stick in a new resistance that is say 50 ohms, a much smaller resistance. That should speed things up, right? That should make things go much faster because this is a smaller time constant because R is smaller, correct? OK, let's go do it.
And let's see if we get what we expect. I have a little switch here. And using that switch, I am going to switch in this little resistance. Whoa, what on earth is happening out there? This is so much fun.
What I did is I switched in a small resister here to decrease the time constant, but it looks like I got a whole bunch of crapola that I did not bargain for. This is certainly very fast, it goes up really fast, but I am not sure where it is going, though.
Let's stare at that a little while longer. Let me expand the time scale for you. Look at this. Instead of a nice little smooth thing going up. I get something that looks like this. It looks something like a sinusoid.
It looks sinusoidal, but then it is a sinusoid that kind of gives up and kind of gets tired and kind of goes away. Right? It kind of dies out. So nothing that you have learned so far has prepared you for this.
And, trust me, when I first did some circuit designs myself a long, long time ago I got nailed by that. I looked at my circuit, and what ended up happening was I was noticing these sharp lines at all my transitions.
When I looked at my scope, I expected to see nice little square waves but I saw these little nasty spikes sitting out there. And then when I stared at it more carefully, those spikes were really sinusoids that seemed to kind of get tired and kind of go away.
So those are nasty, those are real and they happen all the time. And what we will do today is try to get into that and understand why that is the case. We will understand how to design that away. And that is a real problem, by the way.
And the reason that is a real problem is the following. Look at this. Look down here. Because this intermediate voltage is meandering all over the countryside here, at this particular point the intermediate voltage dips quite low.
And because it dips quite low look at the output. The output has a bump here. And it is quite possible for this output bump to now go into the forbidden region. Or worse. If this swing here was higher, this could have actually gone onto a one, so I would have gotten a false one pulse here.
Instead of having a nice one to zero transition, I would have gotten a one to zero, oh, back to one, oh, back to zero and then back down to zero. So this is nasty stuff, really, really nasty stuff.
What we will do is understand why that is the case today and see if we can explain it. What is going on here? What is really going on here is take a look at this circuit here. I will take a look at this path here.
So this is your VS voltage source. Path kind of goes like this and around. It turns out that this circuit is a loop here. And when there is current flow, going down to basic physics you remember that I also enclose some amount.
So there is a current flowing in a loop. And because of that there is an effective inductance here. And, in fact, any current flowing through a wire above a ground plane, for that matter, can be characterized by the inductance.
So I can model that by sticking a little inductor here. So my real circuit is not exactly a resistor and a capacitor, but my real circuit is an inductor as well that comes into play because of this wire.
Every wire, when there is a current flow, has an inductance associated with it. And because of that the real circuit is resistor, inductor and capacitor. So I end up with two storage elements now, and the dynamics of that are very different from that with a single storage element.
That is just a bit of motivation for why our study of inductors is important. And I can draw a quick circuit here. If you look at the circuit, start from ground, the voltage VS and there is a resistor here.
And then I have an inductor and then I have a capacitor. So it is a voltage source, resistor, inductor and capacitor. For this whole week we will be looking at circuits like this. Today what I would like to do is start very simple, start with the simplest possible form of this so that you can begin building up your insight and then go into more complicated cases.
Today what I will do is simply begin with a case where I don't have a resistor here and simply study a voltage source, an inductor and a capacitor and understand what the voltage looks like out here.
So we look at the dynamics of a little system like this. Before we go on, I want to caution you about something. It is just happenstance that I have introduced for you capacitors based on the parasitic capacitance here and inductance based on parasitic inductance.
I would hate to leave you with the impression that inductors and capacitors are "bad." Because when you think of a parasitic, you know, parasites. These are parasitic. You didn't expect them there, didn't expect this here and we got the weird behavior.
So parasitics have a bad connotation to them. I do not want to leave you with a bad taste in your mouth about capacitors and inductors that these are just bad things. We just have to deal with them and deal with second-order differential equations and all that stuff because they're just bad stuff and we just have to deal with them.
I don't want you to end up going through life hating capacitors and inductors. Just because of my choice of examples, it just happened to be introducing them as capacitors. I want to point out that these are fundamental lumped elements in their own right.
They are very, incredibly important and useful circuits where we designed capacitors and inductors because we want to have them in there. There are many circuits that we will look at where we really want the inductor in there.
We will design an inductor by wrapping wire around in a coil and get bigger inductances and so. Just remember that this can be parasitic in some cases, but in many cases it's good, inductors are good, so just stick with that thought.
These are mostly good so don't go around hating them. All right. Let's go on and analyze a basic circuit like this. And what I would like to cover in the next hour are the foundations of something like that.
I will take you through the foundations so you understand how it works. And, as always, what I am going to end up with is build up the foundations, help you understand why we got where we were and then help you build intuition.
And then show you a really, really simple intuitive way of doing things in terms of how experts do it. And the real cool thing about EECS is that the way experts do things, things are really, really very simple in the end.
But you need to build up some intuition to get there. So our circuit looks like this in terms of my two storage elements. I have a voltage vI, inductor L, capacitor C and I am going to look at the voltage across the capacitor and my current through the capacitor.
So v(t) is the voltage across the capacitor and my current is the current through this loop here, which is the same as the current through the capacitor or the current through the inductor. And we are going to proceed in exactly the same manner as we did for first order differential equations, write the equations down and just boom, boom, boom, boom, go down the same sets of steps but just get to some place different.
We are going to start by writing a node equation for this node here. That's the only node for which I have an unknown voltage. The node here is vI, so I need to find this, there's just one unknown node voltage.
And I am going to need some element laws. For the capacitor I know the iV relation is given by the i for the capacitor is Cdv/dt. And just to show the capacitor I am just calling it dvc/dt. Similarly, for an inductor, L, the voltage across the inductor is given by Ldi/dt.
So this is the vI relation for the capacitor, the vI relation for an inductor. It also suits us to write this in an integral form. So if I integrate both sides of this equation and I bring L down to this side, I end up getting something like this, 1/L minus infinity to t, VLdt, and that is simply iL.
I am just simply replacing this with an integral form. So this is a VI relationship for the inductor and this is for the capacitor. So let me now go ahead and apply the node method for my circuit here.
Here, for the node method, I have to equate the currents coming into the node or sum the currents coming into the node and equate that to zero. And while I do that I simply replace the currents by the corresponding voltages using the element laws.
So what do I get? I get the current going in here to the inductor is equal to the current going through the capacitor. What is the current going the capacitor? In terms of its v relationship it is Cdv/dt.
And the current going to the inductor is given by this relation here, which is simply 1/L minus infinity to t. The voltage across the capacitor is simply (vI-v)dt. I have just written down the node quotation for this node here.
Now I will just apply a bit of math and simplify it and get the resulting equation. What I can do is simply differentiate with respect to t here. And get this to be Cd^2v/dt^2, the second derivative of v.
And here what I end up getting is 1/L(vI-v). So I just differentiated the whole thing by d/dt here. And then I just move L up here. I bring d^2v/dt^2 out here. And then I get a minus v here, and that will be equal to, oh, I'm sorry.
Let me leave this here. Bring the minus v to this side so it becomes a plus and leave vI on this side. So I end up getting LCd^2v/dt^2. I bring L up here. And then I take v to the other side. Plus v and leave vI here so I get vI.
That is second order differential equation that governs the characteristics of the voltage, v. So much as the voltage across the capacitor was a state variable in our RC circuits or the current through the inductor was a state variable in our RL circuits, out here both the current through the inductor and the voltage across the capacitor are my two state variables.
And so here I have a second-order equation in my voltage, v. Again, going through the foundations here, I am now going to go through a bunch of math. Up to here it was circuit analysis, and now I am just going to do math.
For the next three or four blackboards just math. You can solve this second-order differential equation any which way you want. But just to keep things as simple as possible, in 6.002 I solve all the differential equations, it turns out we are fortunate enough we can do that, using the exact same method again and again and again, the same thing can be applied.
And the method that we use to solve it is the method of homogenous and particular solutions. So the first step we are going to find the particular solution, vP. Second step we find the homogenous solution, vH.
And the third step we are going to find the total solution as the sum of, v is simply the particular plus the homogenous solution and then solve for constants based on the initial conditions and the applied voltage.
So let's write down initial conditions. Let's assume, for simplicity, that my initial conditions are simply the voltage across the capacitor is zero to begin and the current through my inductor is also zero as I begin life.
Now, this is what is called "zero state." v and i are both zero, and so the response of my circuit for some input is going to be called ZSR. You've probably heard this term in one of your recitations.
So zero state response simply says I start with my circuit at rest and looks at how it behaves for some given input. That is a little term you may end up using. My input next. I am going to use the following input.
vI of t is going to be a step, is going to look like this. My input is at t=0 v is going from zero to some voltage VI and then stay at that voltage. It is going to be a step. Kaboom. And you can see why I am going with this set of variables, because I want make this situation as close as possible to the funny behavior we observed there.
Remember we had a step, and because of the step we had some behavior at that node? So I will try to bring you as close to that. In tomorrow's lecture, I am going to close the loop around that and derive for you exactly the behavior we saw on the scope.
And to get there I am going to be try to be as close as possible to the constants and other parameters in the demo. So VI is a step and zero state. Just in terms of notation, this kind of a step input occurs pretty frequently.
And we just have a special notation for it. We simply call it VI is the final value here. And we call it u(t). So VIu(t), u(t) simply represents a step at time t=0, steps from zero volts to VI. That is just a little more notation that will come in handy at some point.
More math now. Three steps, particular solution, homogenous solution, total solution/constants. This is almost like a mantra here, like a chorus. Homogenous solution we compute using a four-step method.
And four-step method for homogenous solutions, it turns out that it happens to be that way for all the equations we will see in our course. The first step would be assume a solution of the form Ae^st.
Exactly as with RCs. If you close your eyes and do exactly what you did for RCs you will get to where you want to be. You assume a solution of the form Ae^st. Substitute that into your homogenous equation.
Obtain the characteristic equation. Solve for the roots. And then write down your homogenous solution. Same sort of steps again and again and again until you get bored to tears. Particular solution.
For the particular solution, I simply need to find a solution, any solution, if not the most general one but any solution that satisfies the particular equation which satisfies that equation. LCd^2vP/dt^2+vP=VI.
My input is a step and I am going to look for the solution for time t greater than zero. Notice that for time t less than or equal to zero, v is going to be zero. So I am looking for a solution greater than t=0.
Here, if I substitute vP=VI, that is a particular solution. Because if I substitute VI here this goes to zero and then I get VI=VI, so this works. I promised you this was going to be simple. You cannot get any simpler than that.
I have done my first step. I found the particular solution. And VI is a good enough particular solution so I will use it, I will take it. As my second step I am going to find vH or the solution to the homogenous equation.
And the homogenous equation is simply that equation with drive set to zero. What I get here is LCd^2vH/dt^2+vH=0. That is my homogenous equation. I simply set the drive to be zero. And to find the solution here, I go through my four-step method.
Again, in 6.002 following the kind of Occam's principle, we just show you the absolute minimum necessary to get to where you want. The absolute minimum necessary is it turns out that we can solve all our differential equations that we use here by using the methods of homogenous and particular solutions.
And every homogenous solution can be solved by a four-step method. That is about as minimal as it can get. So no extraneous stuff there. The four-step method, four steps. The first step is assume a solution of the form vH=Ae^st.
What I have noticed is that students starting out are usually scared of differential equations. I know I was when I was a student. And the trick with differential equations is that it is all a matter of psych.
Just because you see some squigglies and squagglies and a bunch of math and so on you say oh, that must be hard. But differential equations are actually the simplest thing there is because in a large majority of cases the way you solve them is you assume you know the answer, someone tells you the answer.
And then all you are left to do is shove the answer into the equation and find out the constants that makes it the answer. Just a matter of psych. Psych yourselves that this stuff is easy, because I am telling you what the solution is.
All you have to do is substitute and verify. If you think about differential equations that way or a large majority of them, it really is very simple if you can just get past the squigglies here. Just get past the squigglies and then just simply stick in some simple stuff and it works.
I mean it just cannot get any easier. I cannot think of any other field where the way you find a solution is assume you know the solution and stick it in. It has never made any sense to me but that is how it is.
So we assume the solution to the form Ae^st, you stick it in there, and you have to find out the A and s that make it so. It cannot get any simpler than that. Let's stick the sucker in here and see what we can get.
Substitute Ae^st here I get LCA, and second derivative, so it's s^2 e^st. And Ae^st on this one here. And that equals zero. And then let me just solve for whatever I can find. Assuming I don't take the trivial case A=0, I cancel these guys out.
And what I am left with is simply LCs^2+1=0. In other words, what I end up getting is B, s^2=-1/LC. My first step was, I am giving you solutions, stick them in there, assume a solution of this form.
Second step is get the characteristic equation. And the way you get the characteristic equation is that you simply stick this guy in there. And what you end up getting is some equation in s^2. Do you remember what you got for first order circuits? What s was? What is s? For first order circuits, what did you get as a characteristic equation? s+1/RC=0.
The same thing. Just remember to blindly apply the steps. It will lead you to the answer. This is called the "characteristic equation." This is incredibly important. You will see in about a couple weeks from now that once you write the characteristic equation down for a circuit, it tells you all there is to know about the circuit.
And often times you can stop solving right here. To experienced circuit designers this tells me everything there is to know. This is really key. That's why it's called a characteristic equation. I believe in problem number three of the homework that will be coming out this week, that is exactly what you are going to do.
I am going to give you a circuit, ask you to get to the characteristic equation quickly and then from there intuit the solution. Write the characteristic equation and then just intuit solution, it's that simple.
So, step A, assume a solution of the form, step B, write the characteristic equation down. And let me just simplify that a little bit. I go ahead and find my roots. And my roots here, remember that j is the square root of minus one.
And so what I end up getting is, my two roots here are, plus j square root of 1/LC and minus j square root of 1/LC. Two roots. And just as a shorthand notation, much like I had a shorthand notation for RC, what was my shorthand notation for RC? Tau.
Just as tau was big in first order, we have a corresponding thing that is big in second order and that is omega nought. Omega nought is simply square root 1/LC. Just as tau was RC, omega nought is a shorthand here.
And so s is simply plus or minus j omega nought. Notice that in this equation here, if you take the square root of LC there that has units of time, so one divided by that has units of frequency. Notice that this guy is a frequency in radians.
I end up getting my roots of the homogenous equation, and that is my third step. And as my fourth step, I simply write down the homogenous solution as substituting s with its roots and writing the most general possible form of the solution, and that would be A1e^(j omega nought t)+A2e^(-j omega nought t).
Done. Some constant times this solution plus some other constant times, the other solution. Plus zero omega nought. Remember it comes from here, Ae^st. I assume the solution of this form, so my solution in this most general case would be s being j omega nought in one case, minus j omega nought in the other case, and I sum the two to get the most general solution.
So blasting ahead. I now have my homogenous solution. And as my third step of solution to differential equations I write down the total solution, v=vP+vH, particular plus the homogenous solutions.
And v=VI, was my particular solution, +A1e^(j omega nought t)+A2e^(-j omega nought t) is my complete solution. The final step, write down the total solution and find the constants from the initial conditions.
To find the constants from the initial conditions, let's start with, the voltage is zero to begin with. This equation governs the characteristics of v, so I need to find the initial conditions. First of all, I know that know that v(0)=0.
From there I substitute t=0. And so this goes to one, this goes to one, and I end up getting 0=VI+A1+A2. That is my first expression. And then I am also given that i(0)=0. And so I can get that as well.
How do I get i? This is v. I know that i=Cdv/dt, so I can get i by simply multiplying by C and differentiating this with respect to t. I get C, this guy vanishes so I get d/dt of this. So it is CA1(j omega nought) e^(j omega nought t)+CA2(-j omega nought)e^(-j omega nought t).
From here I am given that that is zero, and so therefore this guy becomes a one, this guy becomes a one, j omega nought, j omega nought cancel out. What I end up getting is A1=A2. From the second initial condition I get A1=A2.
From these two, if I substitute here for A2, I get VI + 2A1 = 0, or A1=-VI/2. That is also equal to A2. Therefore, my total solution now can be written in terms of the actual values of the constants I have obtained.
I get VI-VI/2. So A1 and A2 are equal. I just pull them outside. I pull VI-2 outside and I stick these two guys in parenthesis in. Again, I promised you no more circuits from here on until the very last board or something like that.
It is all math, so not much else happening there. More math. If you would like, I could skip all the way to the end and show you the answer. But I just love to write equations on the board so let me just go through that.
I am going to simplify this a little further here. And we should remember this form by the Euler relation, ejx=cos x+j sin x. And by the same token, (e^jx + e^-jx)/2=cos x. You all should know this from the Euler relation.
So were are using this guy here, ej^x + e^-jx=2cos x. And so this one is 2 cosine of omega nought t, 2 and 2 cancel out, and what I am left with is v(t)=VI-VI cos( omega nought t). And the current is Cdv/dt, which is simply CVI sin( omega nought t).
Just remember that omega nought is the square root of 1/LC. We are done. In fact, I did not give that answer the importance that was due so let me just draw. There. That is better. Enough math. In a nutshell, what did we do.
We wrote the node method, it's a very simple circuit, to write down the equation governing that circuit. And then we grunged through a bunch of math. Not a whole lot here. It is pretty simple. And ended up with a relation that says the voltage across the capacitor for a step input, assuming zero state, is a constant VI-VI cos omega t.
Notice that even though I have a step input, the circuit dynamics are such that I get a cosine in there. You can begin to see where these cosines are coming from now. They come in here. And if you recall the example I showed you earlier of the inverter circuit, remember there was a cosine that decayed, that was sort of losing energy and kind of dying out? So you can see where the cosines are coming from.
And just to draw you a little sketch here. Let me draw v and i for you and let me plot omega t, pi/2, pi and so on. Let me plot VI. When time t=0, VI=0, cosine omega t is one, and so VI-VI=0. That is simply a cosine that starts out at zero here, and at pi I get cosine omega t is minus one, so I get plus VI on the other side.
So I end up at +2VI. At this point the voltage is here. And notice that this guy looks like this. It is a cosine that is translated up so that its mean value is not zero but VI. It is just a translation up of a cosine.
Similarly, in this case for the current it is a sinusoidal characteristic. And it looks something like this where the peak is given by CVI, oh, I messed up. When I differentiated this is missed the omega nought out there.
What I would like to do now -- This is the form of the output for a step input. What I would like to do next is show you a demo. But before I show you a demo, I always found it strange that I have a step input and then I have two little elements, how can I get a sine coming out of the output? I would like to get some intuition as to why things behave the way they are.
I could go and pray to find out, but let me just give you some very basic insight as to why this behaves the way it does. Let me draw the circuit for you here. And this is my inductor L and capacitance C.
Remember this is v. Let me just walk you through what is happening there and get you to understand this. Now, you have seen sines occur before. If you go and write down the equation of motion of a pendulum, you know, you have a pendulum, you move it to one side, let go.
It is also governed by sinusoidal characteristics. And you will find that the equation governing its motion is very much of the same form, and you get the sinusoid where you have energy that is sloshing back and forth between maximum potential energy to maximum kinetic energy and zero potential energy back to maximum potential energy, zero kinetic.
So it is energy sloshing back and forth. The same way here. Capacitors and inductors store energy. Let's walk through and see what happens. I start off with both of them having the stage zero, zero current, zero voltage.
I apply a step here. Boom, the step comes instanteously to VI. I notice that the capacitor voltage cannot change instantly unless there is an infinite pulse of a sort, so this guy cannot change instantly.
And so its voltage starts off being zero. So the entire voltage here, KVL must be true no matter what. They are absolutely fundamental principles from Maxwell's equations. KVL must hold, which means that the entire voltage VI must appear across the inductor.
I put a big voltage across the inductor and its current begins to build up. There you go. A voltage across the inductor, its current begins to build up. As its current begins to build up that current must flow through the capacitor, too.
And as current flows through a capacitor it is depositing charge into the capacitor. As the capacitor begins to get charge deposited on it, its voltage begins to rise. Let's see what happens here. Its voltage keeps rising.
At some point, the voltage across the capacitor is equal to VI. But then VI equals this VI here. So when the two become VI, the inductor has zero volts across it. So there is no longer a potential difference that is increasing the current in that direction.
At that point, at pi divided by 2, I have some current going into the inductor so there is no longer a pressure that is forcing more current through the inductor because this voltage reaches VI. But remember capacitors like to sit around holding voltages.
Just remember that demo. That rinky-dink capacitor sat there stubbornly holding its voltage. And it had a huge spark towards the end. It just sat there holding its voltage. In the same manner, inductors love to sit around holding a current.
They will do whatever they can to keep the current going through them. It has got the current going through. And few forces on earth can change that. And so therefore, even though the capacitor voltage is VI and the voltage drop across the inductor is zero, it still keeps supplying a current.
It has got the current. It's got inertia. It keeps going. It is like a runaway train. You may not be pushing the train from the back, but once it is running it has got kinetic energy and is going to run no matter what for a least some more time, even if you take away the force on the train.
So I have taken away the force on the punching more current through, but it has kinetic energy. It has current flowing through it so it continues to supply a current. Because it continues to supply the current the capacitor voltage keeps increasing.
This is a subtle insight which is absolutely spectacular that with zero volts across it, it still keeps pumping that current. Capacitor voltage has gone up. And guess what? The voltage on this side is higher now but this guy is still pumping a current.
Man, I have been born to do this, you know, I shall pump a current. However, because the voltage has now gone up here gradually the current begins to diminish. So the capacitor is concerned. You pump a current into me, my voltage goes up.
At some point, like a runaway train, it comes to a halt. The current through the capacitor drains and now goes to zero and the capacitor voltage reaches 2VI. So this is at 2VI now and this is at VI.
Now the situation is not in equilibrium. At this point there is zero current through it, but guess what? I have a VI pumping in this direction now. I have the same VI punching in this direction. So guess what? Its current must now build up in this direction and its current begins to build up in that direction.
That begins to discharge the capacitor and the capacitor then goes on to a negative, or the current goes down to a maximum negative current, and this process continues. What you are seeing here is energy.
It is sloshing back and forth between the two, and that is kind of a key. I will just quickly put up a demo that you can watch as you are walking out. With a step input, notice the green is the voltage across the capacitor and the orange is the current through the capacitor.
11 Temmuz 2009 Cumartesi
State and memory
I will be replacing Professor Agarwal today because he is away. I am one of the recitation instructors for those of you who have not seen me. We will talk today about a neat application of RC networks and expand those to application in MOS memory systems.
To connect with everything, we will get back to the basic circuit that we have been discussing so far. And you recall the circuit that we have been studying, the canonical RC with an input voltage function of t.
And we had specified that we solved this problem for the case of a step input or a condition in which a t=0. At t greater or equal to zero vI is equal to some capital VI value that for now on is constant.
And the other condition that we discussed was the value of the voltage on the capacitor that would exist at time t=0. Let's call that vc(0). And in general there is some finite value here. It can be zero or it can be different from zero.
Given that, we learned how to write down directly, without messing around with differential equations, the answer for the voltage on the capacitor vc(t), let me define also my vc right here, is equal to VI, the final value, plus vc(0), the initial value on the capacitor, minus the final value, e^–t/RC.
This is our standard equation to which we plug in, and it's either a rising exponential if VI is larger than VC or a decaying exponential if VI is a smaller value than VC. This should all be familiar.
And, again, as pointed out in the notes, the reading for today is 10.3 and for the new material you should look at Chapter 11 where we discuss memory. This is where we stood as of last time. Now, I would like to discuss a little bit more about the storage of charge in capacitors.
And how we can take advantage of that for storing logic state. One of the things that I am sure you must be aware of is that one of the perhaps most massively produced chips is actually the so-called DRAM which you find in every PC and every computer that exists anywhere.
This DRAM is dynamic random access memory in which we can store a state and come back and look at it at any time later, provided we don't power off our machine. The logic state in the basic memory elements, of which instead there are close to 1 giga elements per chip, are stored on capacitors.
And so we will play a little bit with that concept today. And, although we're not going to discuss the specific example of the DRAM, the basic elements of the DRAM you will see actually in a demo shortly.
So that's the general response of this network that I have here to an input VI that happens at t=0. Now, the one thing that you recognize immediately is that it really doesn't matter what the value of VI was for t less than zero.
What really counts is the value of VI at t=0. And that's the value that we're interested in. Now, there is an implicit statement in that. And that statement is that somehow that network appears like this at t=0.
So, there has to be some switch there, and you will see that, that basically starts my condition to that at t=0. And so the history of VI really doesn't matter. The response following that equation that we have there will depend on the initial value which is vc(0) here.
Now that is the voltage on the capacitor at that time. And then assuming that VI is a value that is larger than vc(0) will have a rising exponential that will come to this value. And this is the time constant RC and this is time.
So, the capacitor starts with some voltage here and goes to a new voltage that is imposed by the input for time greater than zero. We can define at any one time, say this time, this time, this time, this time the state of the capacitor.
The state. What is the state of the capacitor? The state is the summary of all inputs that are relevant to predicting the future. If I know the state of the capacitor this time, I can predict what it is going to go given a response VI here in the future.
So, predicts the future. Now, what is the state variable on the capacitor? What is actually stored on the capacitor? You can say, well, what is stored is voltage. The real physical quantity that is stored is the charge q which is for linear capacitors related to the voltage, let me actually write it correctly, vc like this.
So, the real state variable is this. But for a linear capacitor, since there is one-to-one relationship between the two, v is also a state variable. OK, so let's then go back to our original circuit.
What we have is -- -- vc(t), so that's the future value of the voltage on the capacitor, is a function of vc(0), the initial value and the variable input now in the future time. And for the case of vI(t) being constant VI for t greater or equal than zero we have the equation that we just described.
Nothing new. All the past inputs to the capacitor for time t less or equal to zero is summarized in this value. And vi being constant the future is predicted from that. So, that's the concept of the state.
There is an initial state on the capacitor. And then there is a final state that will be reached when equilibrium actually is achieved. There is a fair amount of discussion in the text, and we don't go in great detail here, but it is both convenient for analysis and also it's interesting in many cases to look at the response of a linear network for two different conditions.
So, we're interested in two cases. One is the so-called zero state response. Now, what is the zero state response? It's the response to a condition in which we impose an input and impose also the condition that the initial value, initial state of the capacitor is zero.
So then we ask how does it respond to vi(t)? So, starting with a capacitor at zero state what is the response? It allows us to decouple the initial conditions from the response to the input. Now, you will see that this is actually very useful.
The second condition to which we're also very interested is the so-called zero input response. What is that? That is vi(t)=0. Now, it's the condition under which there is no input. vi(t)=0. The question here is how does it relax? We're starting with an initial state.
So, how this state relaxes out in the circuit. Now, the zero state response, this one here is Z so called SR for our case, which I will write like this, vC, ZSR is simply a rising exponential. We start from zero and we go to VI.
So, it's VI-VI e^–t/RC. So, that's the ZSR. The ZIR, the zero input response is like this. It's the decay of the initial voltage on the capacitor to zero or to equilibrium. Starting from vC(0) we're decaying like this.
Now, do you see something that's rather obvious from what's on the board in terms of ZIR and ZSR and the final complete answer which is there? They are specific cases, but how do they relate to the full answer? It's the sum.
It's the superposition of the two. What basically we see here -- And that's actually a general statement, is that vC = vC,ZSR + vC,ZIR. Now, you may say this is trivial because we started from that, ended back in that from some very simple observations.
However, we are not always solving networks for responses that are steps. The input voltage may be a ramp. We did that in recitation. Or, it could be an impulse. Or, it can be a more complicated function.
Having this observation in place actually allows us to solve the problem rather neatly. If I have time at the end, I might come back to this. So, this is the same equation as I started with, arrived at from a principle of superposition of two different solutions.
One application of state which can be, since we have energy storage element here, the capacitor, which can be stored on the capacitor is in memory. And you may ask, so why do we need a memory node to perform logic? Well, there are cases in which a result depends on previous results.
So, a computation proceeds in time. In order to do that, we need to store intermediate results and proceed forward. One good example is if you're doing a continuous summation, say, on your calculator, you keep putting things in the memory.
The M+ button, right? And you keep adding a series of numbers. Every time we store the sum of the previous operation we add another number and so on. Clearly we need some way of storing state. For a complete computing system, we need combinational logic and we need memory.
In fact, these are the two basic elements that are essential for any kind of computing system. We need to remember intermediate results. We need to remember transient inputs. And that's the role that all these enormous amount of memory that comes to play in computers is doing.
The basic memory abstraction is as follows. Imagine a block which needs to be populated by transistor, resistor, capacitor, whatever elements. And it has a control input, which we will call the store.
It has a state input that we will call dIN and has an output dOUT. When we're telling this element, OK, now it's time to store, it looks at the input dIN and stores it for, in principle, an infinite amount of time.
If we were to make a drawing of this, of what this looks like, let's suppose, let me do all this in one axis. So, time moves this way. Let's suppose that we have an input dIN that looks like this, and the store command comes in the form of a logic.
Let's actually suggest here this is logic one, this is logic zero. And, although this is not absolutely necessary, let's also define that the store command comes in the form of a logic one at this store input.
Store, let's say, looks like this. What does the output look like then in this particular case? Assuming that the output was dOUT, the stored element was zero prior to the store, then the output would look like this.
This is dOUT. As you can see, it would remember the one that it saw at this point. In fact, it would do that irrespective of what was stored in this memory cell. For example, suppose it was storing one and the output didn't change, it's still one.
If it was storing a zero, it would flip to a one. If we had another store, let's say here, then what happens? Then it would go back down to zero because now we sampled an input that is zero and we flipped the state.
That's what a memory -- -- element or cell would do for us. It would remember the output state. And, not only that, but in principle it should be undisturbable. In other words, I may do something to this dOUT but it should not flip the state.
And that comes about quite a bit. Because in actual integrated circuit memory there is lots and lots and lots of nearest neighbors to this cell which, when they're flipped, have a cross-coupling to the cell.
The cell must be designed robust enough that it doesn't flip, that no coupling actually occurs. All right. Now we're going to try to apply what we've learned so far to invent a basic memory element.
And, believe it or not, this is the key to the DRAM. Let's implement this in a circuit. Suppose I have a switch here like this. And I will put a capacitor. I take my dOUT here. This is dIN. And the switch is operated by a command here that we will call store.
When store is one it goes up. When store is zero it is down here. That's capacitor C. This is the storage node. What are we actually storing in this case? Let's suppose that this voltage here is 5 volts.
I flip the switch up to one and I flip it back down to zero. What's the voltage in this capacitor here? 5 volts. Now the capacitor is at 5 volts, I put dIN to ground, flip the switch back up and then back down to its known storing condition.
What's the voltage in the capacitor? It's zero, exactly. So, it does store the value of the voltage that it saw, five or zero, high and low. It stores it because it stores charge. That's actually the physical quantity that's stored.
It's manifested as a voltage, which we see. All right. Now, is this, oh, before I move from here. What is the basic cell in a DRAM, one that you go out and buy by the billions of cells? It's actually this.
The only difference is that this switch here is replaced with a MOSFET. And that's all it is. So, a MOSFET plays the role of the switch. When the gate is high this is a resistor and connects the input to the capacitor.
And when the gate voltage is below the threshold voltage this is an open, as we've seen, and it isolates the transistor from the output. So, that's the basic memory element. And, as I said, it's the key to a DRAM.
OK. Now let's consider a little bit the conditions of operation of this thing. Let me draw the circuit in two conditions. One in which it is storing, one in which it is sampling and one in which it is storing.
Not to redraw this thing. Assuming that I have a MOSFET there, I would have the on resistance in place here when store=1. Now, in principle, the output is connected to -- -- some load resistance. We'll talk a little bit more about this load resistance in a minute.
This is the situation when we are at store=1 situation. For example, let's suppose that dIN is 5 volts. Now, what is the situation for store=0? It's very simple. We have the capacitor C and dOUT and here we have a resistance.
The switch is open. This is store=0 condition. What we have in this case is we have a problem similar to what I was discussing earlier. It is a ZIR, if you like, situation. And this you can think of as a ZSR if we're starting with zero charge on the capacitor, but I'm interested in this part.
In this case, I am starting with a vC(0)=5 volts. And I'm asking myself how long will this cell hold the value? And, in fact, that is actually what happens in a dynamic RAM. The value on the capacitor is not stored forever.
In fact, that's why we call it dynamic because we have to come back and restore it every once in a while. For how long are we going to store the charge? What's the response of vc for t greater than zero after the switch flicked? It's very simple.
It's vc is equal to 5 volts e to the minus t over RC, right? That's the response. We have a decay. And applying to the things we know. We start from 5 volts, let's say here, I have a decay going down towards zero, at some point we are going to cross the threshold for high.
The only period in which I have a valid output, if the capacitor was storing a one, is this period here. This is the only period in which I have valid stored one because, once I go beyond capital T here, I have crossed the legal limit, threshold for discriminating a high output.
And from then on the output is no longer valid. So, this memory is good provided time is less than capital T. It's not a case in which the capacitor can hold charge forever. In fact, we can calculate, that is we can solve for T in this particular case.
It's in your notes. Nothing really profound. T is equal to minus RC log VOH over 5 volts. So, this is basically what the response is going to be. Now, there is an implicit assumption here, which is that the store pulse width is much, much larger than RON C.
In other words, when we want to store a one here starting from zero, we better charge it all the way up to 5 volts in the time that our switch is connected here. And what is the relevant time constant? It's going to be the RON C.
In fact, it's actually the RON parallel RL with C. But typically RON is much, much less than RL so we don't have to worry about that. Dominant time constant is RON C. So, provided these things are happening, we have a memory.
Now, we can try to improve things a little bit. We see here that we will have a decay to an invalid state in time T. How can we improve things? One way to improve things are the buffer. Here is our memory element again.
Here is the capacitor. This is the storing node. Now I am going to put the buffering effect. I am going to put two buffers here. Two invertors, I should say, because if I am storing a one here I want to be able to see a one here as well.
And, in this case, what I am looking at is the RIN of the buffer. And, in principle, I have out here the RL. Now, this is better because if RIN is much larger than RL then the time T, in this case, is much larger than the case without buffer.
So, we buffer the effect of VL. This could be one of these neat circuits we saw in recitation like a source faller, for example, or it can be just an inverter in which case you just see the input of a transistor.
So, now this condition can be satisfied. Let me give you some cases which are some numbers that are typical for a dynamic RAM. Typical times we're talking about is RIN on order of 1 gigaohm and storage node capacitor on order of 1 femtofarad to one picofarad.
Now, if you can do the math in your head, which is just multiplication, you will see that the time constant, the RC is between 1 millisecond to 1 microsecond. And for DRAMs, actually, we try to be in the order of milliseconds.
These are the times we're talking about. If I have this kind of circuit, somehow there has got to be additional circuitry that comes back, samples the voltage here and restores it. And that is actually what is happening in a DRAM.
And my laptop is working there and its DRAM keeps getting refreshed every, say, millisecond or whatever the condition is. But, in our case, we are going to do a slightly different case in which we will create a static memory.
Let's actually look at, first of all, the case of the discharge. Pay attention to, let me actually break the loop here. This is my capacitor. This is a resistor that is in series with a capacitor like you see here.
Actually, I am going to keep that resistor in series with the capacitor, even in this case, because I have it for my second part of my example. I charge the capacitor to 5 volts. And you can see here this lights up, I hope everybody can see it, proportional to the voltage that I have here.
From here on it's all logic levels. So, the intensity of light here will always be the same. It's either lit or it's not lit. Right now I am charging the capacitor. In fact, let's see. Maybe I can discharge the capacitor first.
Here the capacitor is discharged. As you can see, the input is zero, the output is a one, and then the output of this inverter here is a one. I have two inverters in series. And I am going to charge the capacitor.
I charged it to 5 volts and this lit up, this is off of course, that's an inverter, this is a valid zero, produce a valid one. And now I am going to take the input out. As you can see it's stored. In fact, we have to wait for a very long time.
We don't have enough time to wait for this to discharge, so instead what I am going to do now is I am going to add also the resistor. Now I am going to flip the resistor in parallel with the capacitor to imitate what happens when we have an input resistance.
You saw that there was a discharge of the capacitor. This input level went down. Voltage here flipped over to a one. Let me do it again now with a resistor in place. Storing charge on the capacitor.
That's the store command. Now, don't store. I have less, about a second. The element here is 20,000 microfarads and 100 ohms which gives me a time constant of two seconds. Assuming a VOC of the order of, let's say, I don't know what it is for this case, 2.5, the log would be about 0.5, so it cuts basically the time to about one.
So, it lasts about one second, if my math is all correct. It's actually a little longer than a second, excuse me, but the point is that the charge is gone. Now, notice, however, that there is something I can do here, which is that suppose I take the switch or a switch and bring it back and provide a path from the output to the input here.
And this switch is open when this is closed and closed when this is open. So, this basically is the compliment of store. What I am doing now is I put a charge here, it produces a valid one at this point, and then I am feeding this valid one back to the input.
As you can see, this will now allow me, even though I have a high resistance, to store the value for a long time. In this case, what I am going to do is I am going to connect the output, as you can see here.
And I have my resistor in. And I am storing zero here, storing 5 volts. Now I am going to flip the switch. Basically, I mean the don't store, don't look case. You notice this dims a little bit. Sorry.
No, I want the resistor in. There. Yes. OK, so the output remain value. This dimmed a little bit but the output has remained OK. All right. So, we've provided a feedback. Now we've created a static memory.
This will hold charge for as long as the circuit is powered up. Now, there is still one little problem that I have with this kind of configuration. And that is if I disturb this output the charge may, the state may change.
So, for example, let's say that I have -- I disturbed it by coming close to it, so let's charge it again. OK. I flipped the switch. I flipped the state from the output. That is an invalid condition.
I shouldn't be able to do that. How do I avoid that? How can I avoid this problem that you just saw? Well, I need yet another buffer. The answer is in your notes. If I don't take the output here but rather take the output here, or if I don't want an inverted output, if I don't want an inverted output, I could put yet another element there.
Then the situation would be fine. In this case, let me do it again. Charge. Why isn't this lit? A bad one? Now, of course we disturbed the input. Now, of course I can do anything I want here. Nothing happens, but you may say this is a trivial case because this is already zero.
So, I am going to change the state. Here's is the changed state. See. I can show this. Nothing happens up there. So, this is an interesting situation in which I am buffering the output so that the output does not feed back to the input.
And, by and large, in designing circuits this is something that we do. Now, in the remaining three minutes there is an example that we have. Can we put the laptop here? OK, so here is an example of how memory can be put together now to create something a little bit more complicated.
And you can see the memory cells that we were discussing here. There's four of them, so this is a four bit memory. There is a decoder at the beginning here which decodes the address of each cell, so the input here will tell me which cell I need to address.
Let's look at the truth table. This is the truth table for the decoder. As you can see, depending on the address that I have here, this is zero, one, two and three in a binary system, only A, B, C or D is up, is high.
Which means that this end operation here only allows the input that is presented to all of the cells, what is going through the AND gate here to appear at the output. If, for example, we have a one, zero, the only end input that is going to be high is going to be this one.
And that means the only cell that will look at the input when the store comes up is going to be this one here. At that point it will store whatever is on the input cell because that's an AND operation.
That is a simple example of a memory. And following that simple arrangement you can build incredibly large memory systems. So, that's all I had for today. And I will see you on Tuesday.
To connect with everything, we will get back to the basic circuit that we have been discussing so far. And you recall the circuit that we have been studying, the canonical RC with an input voltage function of t.
And we had specified that we solved this problem for the case of a step input or a condition in which a t=0. At t greater or equal to zero vI is equal to some capital VI value that for now on is constant.
And the other condition that we discussed was the value of the voltage on the capacitor that would exist at time t=0. Let's call that vc(0). And in general there is some finite value here. It can be zero or it can be different from zero.
Given that, we learned how to write down directly, without messing around with differential equations, the answer for the voltage on the capacitor vc(t), let me define also my vc right here, is equal to VI, the final value, plus vc(0), the initial value on the capacitor, minus the final value, e^–t/RC.
This is our standard equation to which we plug in, and it's either a rising exponential if VI is larger than VC or a decaying exponential if VI is a smaller value than VC. This should all be familiar.
And, again, as pointed out in the notes, the reading for today is 10.3 and for the new material you should look at Chapter 11 where we discuss memory. This is where we stood as of last time. Now, I would like to discuss a little bit more about the storage of charge in capacitors.
And how we can take advantage of that for storing logic state. One of the things that I am sure you must be aware of is that one of the perhaps most massively produced chips is actually the so-called DRAM which you find in every PC and every computer that exists anywhere.
This DRAM is dynamic random access memory in which we can store a state and come back and look at it at any time later, provided we don't power off our machine. The logic state in the basic memory elements, of which instead there are close to 1 giga elements per chip, are stored on capacitors.
And so we will play a little bit with that concept today. And, although we're not going to discuss the specific example of the DRAM, the basic elements of the DRAM you will see actually in a demo shortly.
So that's the general response of this network that I have here to an input VI that happens at t=0. Now, the one thing that you recognize immediately is that it really doesn't matter what the value of VI was for t less than zero.
What really counts is the value of VI at t=0. And that's the value that we're interested in. Now, there is an implicit statement in that. And that statement is that somehow that network appears like this at t=0.
So, there has to be some switch there, and you will see that, that basically starts my condition to that at t=0. And so the history of VI really doesn't matter. The response following that equation that we have there will depend on the initial value which is vc(0) here.
Now that is the voltage on the capacitor at that time. And then assuming that VI is a value that is larger than vc(0) will have a rising exponential that will come to this value. And this is the time constant RC and this is time.
So, the capacitor starts with some voltage here and goes to a new voltage that is imposed by the input for time greater than zero. We can define at any one time, say this time, this time, this time, this time the state of the capacitor.
The state. What is the state of the capacitor? The state is the summary of all inputs that are relevant to predicting the future. If I know the state of the capacitor this time, I can predict what it is going to go given a response VI here in the future.
So, predicts the future. Now, what is the state variable on the capacitor? What is actually stored on the capacitor? You can say, well, what is stored is voltage. The real physical quantity that is stored is the charge q which is for linear capacitors related to the voltage, let me actually write it correctly, vc like this.
So, the real state variable is this. But for a linear capacitor, since there is one-to-one relationship between the two, v is also a state variable. OK, so let's then go back to our original circuit.
What we have is -- -- vc(t), so that's the future value of the voltage on the capacitor, is a function of vc(0), the initial value and the variable input now in the future time. And for the case of vI(t) being constant VI for t greater or equal than zero we have the equation that we just described.
Nothing new. All the past inputs to the capacitor for time t less or equal to zero is summarized in this value. And vi being constant the future is predicted from that. So, that's the concept of the state.
There is an initial state on the capacitor. And then there is a final state that will be reached when equilibrium actually is achieved. There is a fair amount of discussion in the text, and we don't go in great detail here, but it is both convenient for analysis and also it's interesting in many cases to look at the response of a linear network for two different conditions.
So, we're interested in two cases. One is the so-called zero state response. Now, what is the zero state response? It's the response to a condition in which we impose an input and impose also the condition that the initial value, initial state of the capacitor is zero.
So then we ask how does it respond to vi(t)? So, starting with a capacitor at zero state what is the response? It allows us to decouple the initial conditions from the response to the input. Now, you will see that this is actually very useful.
The second condition to which we're also very interested is the so-called zero input response. What is that? That is vi(t)=0. Now, it's the condition under which there is no input. vi(t)=0. The question here is how does it relax? We're starting with an initial state.
So, how this state relaxes out in the circuit. Now, the zero state response, this one here is Z so called SR for our case, which I will write like this, vC, ZSR is simply a rising exponential. We start from zero and we go to VI.
So, it's VI-VI e^–t/RC. So, that's the ZSR. The ZIR, the zero input response is like this. It's the decay of the initial voltage on the capacitor to zero or to equilibrium. Starting from vC(0) we're decaying like this.
Now, do you see something that's rather obvious from what's on the board in terms of ZIR and ZSR and the final complete answer which is there? They are specific cases, but how do they relate to the full answer? It's the sum.
It's the superposition of the two. What basically we see here -- And that's actually a general statement, is that vC = vC,ZSR + vC,ZIR. Now, you may say this is trivial because we started from that, ended back in that from some very simple observations.
However, we are not always solving networks for responses that are steps. The input voltage may be a ramp. We did that in recitation. Or, it could be an impulse. Or, it can be a more complicated function.
Having this observation in place actually allows us to solve the problem rather neatly. If I have time at the end, I might come back to this. So, this is the same equation as I started with, arrived at from a principle of superposition of two different solutions.
One application of state which can be, since we have energy storage element here, the capacitor, which can be stored on the capacitor is in memory. And you may ask, so why do we need a memory node to perform logic? Well, there are cases in which a result depends on previous results.
So, a computation proceeds in time. In order to do that, we need to store intermediate results and proceed forward. One good example is if you're doing a continuous summation, say, on your calculator, you keep putting things in the memory.
The M+ button, right? And you keep adding a series of numbers. Every time we store the sum of the previous operation we add another number and so on. Clearly we need some way of storing state. For a complete computing system, we need combinational logic and we need memory.
In fact, these are the two basic elements that are essential for any kind of computing system. We need to remember intermediate results. We need to remember transient inputs. And that's the role that all these enormous amount of memory that comes to play in computers is doing.
The basic memory abstraction is as follows. Imagine a block which needs to be populated by transistor, resistor, capacitor, whatever elements. And it has a control input, which we will call the store.
It has a state input that we will call dIN and has an output dOUT. When we're telling this element, OK, now it's time to store, it looks at the input dIN and stores it for, in principle, an infinite amount of time.
If we were to make a drawing of this, of what this looks like, let's suppose, let me do all this in one axis. So, time moves this way. Let's suppose that we have an input dIN that looks like this, and the store command comes in the form of a logic.
Let's actually suggest here this is logic one, this is logic zero. And, although this is not absolutely necessary, let's also define that the store command comes in the form of a logic one at this store input.
Store, let's say, looks like this. What does the output look like then in this particular case? Assuming that the output was dOUT, the stored element was zero prior to the store, then the output would look like this.
This is dOUT. As you can see, it would remember the one that it saw at this point. In fact, it would do that irrespective of what was stored in this memory cell. For example, suppose it was storing one and the output didn't change, it's still one.
If it was storing a zero, it would flip to a one. If we had another store, let's say here, then what happens? Then it would go back down to zero because now we sampled an input that is zero and we flipped the state.
That's what a memory -- -- element or cell would do for us. It would remember the output state. And, not only that, but in principle it should be undisturbable. In other words, I may do something to this dOUT but it should not flip the state.
And that comes about quite a bit. Because in actual integrated circuit memory there is lots and lots and lots of nearest neighbors to this cell which, when they're flipped, have a cross-coupling to the cell.
The cell must be designed robust enough that it doesn't flip, that no coupling actually occurs. All right. Now we're going to try to apply what we've learned so far to invent a basic memory element.
And, believe it or not, this is the key to the DRAM. Let's implement this in a circuit. Suppose I have a switch here like this. And I will put a capacitor. I take my dOUT here. This is dIN. And the switch is operated by a command here that we will call store.
When store is one it goes up. When store is zero it is down here. That's capacitor C. This is the storage node. What are we actually storing in this case? Let's suppose that this voltage here is 5 volts.
I flip the switch up to one and I flip it back down to zero. What's the voltage in this capacitor here? 5 volts. Now the capacitor is at 5 volts, I put dIN to ground, flip the switch back up and then back down to its known storing condition.
What's the voltage in the capacitor? It's zero, exactly. So, it does store the value of the voltage that it saw, five or zero, high and low. It stores it because it stores charge. That's actually the physical quantity that's stored.
It's manifested as a voltage, which we see. All right. Now, is this, oh, before I move from here. What is the basic cell in a DRAM, one that you go out and buy by the billions of cells? It's actually this.
The only difference is that this switch here is replaced with a MOSFET. And that's all it is. So, a MOSFET plays the role of the switch. When the gate is high this is a resistor and connects the input to the capacitor.
And when the gate voltage is below the threshold voltage this is an open, as we've seen, and it isolates the transistor from the output. So, that's the basic memory element. And, as I said, it's the key to a DRAM.
OK. Now let's consider a little bit the conditions of operation of this thing. Let me draw the circuit in two conditions. One in which it is storing, one in which it is sampling and one in which it is storing.
Not to redraw this thing. Assuming that I have a MOSFET there, I would have the on resistance in place here when store=1. Now, in principle, the output is connected to -- -- some load resistance. We'll talk a little bit more about this load resistance in a minute.
This is the situation when we are at store=1 situation. For example, let's suppose that dIN is 5 volts. Now, what is the situation for store=0? It's very simple. We have the capacitor C and dOUT and here we have a resistance.
The switch is open. This is store=0 condition. What we have in this case is we have a problem similar to what I was discussing earlier. It is a ZIR, if you like, situation. And this you can think of as a ZSR if we're starting with zero charge on the capacitor, but I'm interested in this part.
In this case, I am starting with a vC(0)=5 volts. And I'm asking myself how long will this cell hold the value? And, in fact, that is actually what happens in a dynamic RAM. The value on the capacitor is not stored forever.
In fact, that's why we call it dynamic because we have to come back and restore it every once in a while. For how long are we going to store the charge? What's the response of vc for t greater than zero after the switch flicked? It's very simple.
It's vc is equal to 5 volts e to the minus t over RC, right? That's the response. We have a decay. And applying to the things we know. We start from 5 volts, let's say here, I have a decay going down towards zero, at some point we are going to cross the threshold for high.
The only period in which I have a valid output, if the capacitor was storing a one, is this period here. This is the only period in which I have valid stored one because, once I go beyond capital T here, I have crossed the legal limit, threshold for discriminating a high output.
And from then on the output is no longer valid. So, this memory is good provided time is less than capital T. It's not a case in which the capacitor can hold charge forever. In fact, we can calculate, that is we can solve for T in this particular case.
It's in your notes. Nothing really profound. T is equal to minus RC log VOH over 5 volts. So, this is basically what the response is going to be. Now, there is an implicit assumption here, which is that the store pulse width is much, much larger than RON C.
In other words, when we want to store a one here starting from zero, we better charge it all the way up to 5 volts in the time that our switch is connected here. And what is the relevant time constant? It's going to be the RON C.
In fact, it's actually the RON parallel RL with C. But typically RON is much, much less than RL so we don't have to worry about that. Dominant time constant is RON C. So, provided these things are happening, we have a memory.
Now, we can try to improve things a little bit. We see here that we will have a decay to an invalid state in time T. How can we improve things? One way to improve things are the buffer. Here is our memory element again.
Here is the capacitor. This is the storing node. Now I am going to put the buffering effect. I am going to put two buffers here. Two invertors, I should say, because if I am storing a one here I want to be able to see a one here as well.
And, in this case, what I am looking at is the RIN of the buffer. And, in principle, I have out here the RL. Now, this is better because if RIN is much larger than RL then the time T, in this case, is much larger than the case without buffer.
So, we buffer the effect of VL. This could be one of these neat circuits we saw in recitation like a source faller, for example, or it can be just an inverter in which case you just see the input of a transistor.
So, now this condition can be satisfied. Let me give you some cases which are some numbers that are typical for a dynamic RAM. Typical times we're talking about is RIN on order of 1 gigaohm and storage node capacitor on order of 1 femtofarad to one picofarad.
Now, if you can do the math in your head, which is just multiplication, you will see that the time constant, the RC is between 1 millisecond to 1 microsecond. And for DRAMs, actually, we try to be in the order of milliseconds.
These are the times we're talking about. If I have this kind of circuit, somehow there has got to be additional circuitry that comes back, samples the voltage here and restores it. And that is actually what is happening in a DRAM.
And my laptop is working there and its DRAM keeps getting refreshed every, say, millisecond or whatever the condition is. But, in our case, we are going to do a slightly different case in which we will create a static memory.
Let's actually look at, first of all, the case of the discharge. Pay attention to, let me actually break the loop here. This is my capacitor. This is a resistor that is in series with a capacitor like you see here.
Actually, I am going to keep that resistor in series with the capacitor, even in this case, because I have it for my second part of my example. I charge the capacitor to 5 volts. And you can see here this lights up, I hope everybody can see it, proportional to the voltage that I have here.
From here on it's all logic levels. So, the intensity of light here will always be the same. It's either lit or it's not lit. Right now I am charging the capacitor. In fact, let's see. Maybe I can discharge the capacitor first.
Here the capacitor is discharged. As you can see, the input is zero, the output is a one, and then the output of this inverter here is a one. I have two inverters in series. And I am going to charge the capacitor.
I charged it to 5 volts and this lit up, this is off of course, that's an inverter, this is a valid zero, produce a valid one. And now I am going to take the input out. As you can see it's stored. In fact, we have to wait for a very long time.
We don't have enough time to wait for this to discharge, so instead what I am going to do now is I am going to add also the resistor. Now I am going to flip the resistor in parallel with the capacitor to imitate what happens when we have an input resistance.
You saw that there was a discharge of the capacitor. This input level went down. Voltage here flipped over to a one. Let me do it again now with a resistor in place. Storing charge on the capacitor.
That's the store command. Now, don't store. I have less, about a second. The element here is 20,000 microfarads and 100 ohms which gives me a time constant of two seconds. Assuming a VOC of the order of, let's say, I don't know what it is for this case, 2.5, the log would be about 0.5, so it cuts basically the time to about one.
So, it lasts about one second, if my math is all correct. It's actually a little longer than a second, excuse me, but the point is that the charge is gone. Now, notice, however, that there is something I can do here, which is that suppose I take the switch or a switch and bring it back and provide a path from the output to the input here.
And this switch is open when this is closed and closed when this is open. So, this basically is the compliment of store. What I am doing now is I put a charge here, it produces a valid one at this point, and then I am feeding this valid one back to the input.
As you can see, this will now allow me, even though I have a high resistance, to store the value for a long time. In this case, what I am going to do is I am going to connect the output, as you can see here.
And I have my resistor in. And I am storing zero here, storing 5 volts. Now I am going to flip the switch. Basically, I mean the don't store, don't look case. You notice this dims a little bit. Sorry.
No, I want the resistor in. There. Yes. OK, so the output remain value. This dimmed a little bit but the output has remained OK. All right. So, we've provided a feedback. Now we've created a static memory.
This will hold charge for as long as the circuit is powered up. Now, there is still one little problem that I have with this kind of configuration. And that is if I disturb this output the charge may, the state may change.
So, for example, let's say that I have -- I disturbed it by coming close to it, so let's charge it again. OK. I flipped the switch. I flipped the state from the output. That is an invalid condition.
I shouldn't be able to do that. How do I avoid that? How can I avoid this problem that you just saw? Well, I need yet another buffer. The answer is in your notes. If I don't take the output here but rather take the output here, or if I don't want an inverted output, if I don't want an inverted output, I could put yet another element there.
Then the situation would be fine. In this case, let me do it again. Charge. Why isn't this lit? A bad one? Now, of course we disturbed the input. Now, of course I can do anything I want here. Nothing happens, but you may say this is a trivial case because this is already zero.
So, I am going to change the state. Here's is the changed state. See. I can show this. Nothing happens up there. So, this is an interesting situation in which I am buffering the output so that the output does not feed back to the input.
And, by and large, in designing circuits this is something that we do. Now, in the remaining three minutes there is an example that we have. Can we put the laptop here? OK, so here is an example of how memory can be put together now to create something a little bit more complicated.
And you can see the memory cells that we were discussing here. There's four of them, so this is a four bit memory. There is a decoder at the beginning here which decodes the address of each cell, so the input here will tell me which cell I need to address.
Let's look at the truth table. This is the truth table for the decoder. As you can see, depending on the address that I have here, this is zero, one, two and three in a binary system, only A, B, C or D is up, is high.
Which means that this end operation here only allows the input that is presented to all of the cells, what is going through the AND gate here to appear at the output. If, for example, we have a one, zero, the only end input that is going to be high is going to be this one.
And that means the only cell that will look at the input when the store comes up is going to be this one here. At that point it will store whatever is on the input cell because that's an AND operation.
That is a simple example of a memory. And following that simple arrangement you can build incredibly large memory systems. So, that's all I had for today. And I will see you on Tuesday.
Digital circuit speed
OK. Good morning. In the last lecture I did a little demonstration for you where I showed you a pair of inverters. And showed you that the output of the first inverter looked weird, certainly not like anything we have seen thus far.
It looked like a slow rising transition like this. And using that motivation we have begun our study of RC circuits. And in particular for today the lecture is titled "Digital Circuit Speed." We are going to look at the fundamentals of digital circuit speed.
And it all boils down to an RC delay. By the end of the lecture, I am going to show you two numbers that you can look at a circuit and obtain by observation, multiply them out and you will get a good idea of the speed at which a circuit will run.
It is pretty amazing. So as a quick review -- The relevant section for this is Chapter 10.4. As a review, we said to understand things like this we need to develop the foundations for RC circuits.
And the example I covered was that of a very simple circuit that looked like this -- An RC circuit of this form. And I also showed you that for an input of the form, input that steps from zero to VI at time T equal to zero.
And assuming that the capacitor state at time T equals zero was zero. What this means is that the capacitor starts from rest, so at time T=0, oops, this is VI, I'm sorry. So we assume that the capacitor starts from rest.
At time T=0 I apply a VI step, capital VI. And then I want to look at how the voltage across the capacitor behaves. And we did a bunch of analysis. And at the end of the day, in the final demo in the lecture last time I showed you that the capacitor would behave like this.
It would start off at, oops. I am sorry. This should be, let's assume that started off at VO. We get a different equation for zero. So let's say the capacitor started off at VO, in which case VC at time T=0 is VO as expected.
And we showed that the output would look something like this. After a long period of time this would come up to VI and this rise had a time constant of tau=RC. So we wrote the equation for this waveform.
And this is the case when VI is greater than VO. I would like you to stare at the circuit and this result here to get more intuition on what is going on. At time T=0, VC starts off at VO as expected because I am telling you that is the case, that is initial condition.
It starts off at VO. Then this one steps to VI. There is no infinite transition anywhere here, and so the capacitor holds its voltage at VO, at time T=0. And then the VI here, which is greater than VO, begins to charge the capacitor up, charge it through this resistor.
And so therefore the capacitor charges up. After a long period of time, from the basic foundations of capacitors, we know that the capacitor appears like a long-term open circuit to DC. This is a DC voltage VI.
So it appears like an open circuit. So after a long period of time VI appears at the end. And from here to here I have an exponential rise that is typified by an equation of the form -t/RC. This kind of waveform rising from a smaller value to a higher value is typified by this expression.
We saw the expression when we developed the equations last time. On the other hand, if the input was such that VI was smaller than VO, so let's say VI was smaller than VO then what will happen is that the capacitor voltage would start off at VO, because I am telling you that is the initial condition, and would then decay in this manner to the final value of VI which is the input.
Instead of going up this way it decays down to the final value applied to the circuit. Again, the time constant is RC. But this is typified by a form, this is exponential rise and this guy e^-t/RC is an exponential decay.
The key thing to remember is that when you have RC circuits of this form, the waveforms that you get are either each of the e^-t/RC or 1-e^-t/RC. So you can now begin to see how waveforms such as that come about.
We will do an example and sit down and compute the inverter delay. And notice that this waveform here is very typical or corresponds to this waveform that we see here. Here I am starting at VO. And assuming this axis starts off at zero, this one starts very close to zero and then rises up to some final value.
So far I have reviewed some material for you that I covered the last time. As a second step, I would like to give you a much more intuitive approach -- -- that doesn't involve solving any differential equations.
And the reason I do this is that most experienced circuit designers do not sit down and write differential equations each time they see an RC circuit. When you are starting out and you see an RC circuit, you say node method and you write the differential equation, but experienced people don't do that.
They look at it and they can sketch the waveform out by inspection. And I will show you how to do that. It is indeed incredibly simple once I give you some intuition. Throughout the rest of this course, I will be showing you many such examples where initially I develop the foundations of stuff and then show you an intuitive approach that very quickly lets you either get the final answer or at least sanity check the answer that you have gotten.
And this is how experienced circuit designers deal with stuff. How many people here have seen this movie Bend it Like Beckham? So you know this Beckham character doesn't think about how he is going to curve the ball.
He just does it and it happens. He doesn't sit down writing differential equations to find out the projectile trajectory and all of that stuff. You just kind of do it. These series of intuitions I am going to give you is going to be in line with the Bend it Like Beckham kind of intuition.
And this one in particular I would like to do in honor of one of your recitation instructions Professor David Perreault. And so this piece of intuition is going to be termed "Practice it Like Perreault."
Watch what I do with the other names. Professor David Perreault is really a world expert in designing really incredible power supplies for very, very small chips and so on. He doesn't start writing differential equations to do this stuff.
He looks at it and sketches it out. Let me show you how he would do this. Suppose I have my circuit like before, VI, R and C, and I am telling you that VC(0)=VO. And my input VI is a step that looks like this.
VI is a step. How would Professor Perreault do this? Let's do it completely by intuition. No math here. All right. We know that I have told you that this guy starts off at VO. I am telling you that.
You know it is going to start at VO. And there is no impulse or huge infinite transition, and so the capacitor starts off at VO. We also know from basic capacitor properties that after a long period of time, in the steady state, this is but a DC voltage.
If you apply a DC and here is my capacitor. After a long period of time this guy is going to look like an open circuit. It is going to charge up to some value and then is going to look like an open circuit.
Because if it didn't, you would keep charging it and its voltage would keep increasing. That doesn't happen, it looks like an open circuit. So it looks like an open circuit in the long run. The voltage across it must be capital VI.
If I don't have current flowing in the circuit then the only way that can happen is -- This open circuit. Capital VI appears across the capacitor. Well, after a long period of time I know that the output must look like this.
In this case, I have assumed VI is greater than VO. So you have two points of your curve, VO and VI after a long period of time. And, as I told you earlier, with capacitors you get two kinds of curves.
Two things. What you do is go zoop. There you go. You're done. And this has an exponential rise. This is with the form 1-e^-t/RC. So we can write an equation for that as follows. VC we know has something to do with minus t/RC.
This is of that form, so there has to be that term in there somewhere. And I start off with VO. At time T=0 this is one and this is one, so this term becomes a zero. At time T=0 that becomes a zero so I get VO here.
I am going to make sure this stuff stays zero at time T=0, so I start off with VO. Now, as time wears on what happens here? This voltage here, VI-VO, if you look at this difference. That is exponentially decaying over time.
And so therefore all I have to do here is write VI-VO. There is the answer. I know the form of the curve. I am just fitting an expression that meets this form. This starts off at VO. When time T=0 this second expression is zero and so it is VO.
And this difference here decays down to zero. And this difference here, VI-VO is multiplied by this term here and that is what I get. And you can confirm this. At time T=0 this is zero. At time T infinity this goes to zero, this goes to zero leaving a one, and VO and minus VO cancel and I get a VI.
Virtually any such simple voltage source, current source, resistor, capacitor, circuit for most inputs like steps and so on can be analyzed in this manner. Initial value, final value, it's simple. And just to show you that this is simple, I am going to label this expression this way.
It is of the form 1-e^-t/RC. Just remember that. Now, by the same token, what if VI had been smaller than VO? Then that is simple, too. I would have had my VI being here. VI would have been here.
And that is of the form. In this particular situation, here is my VI, my starting value and I do this. And just to label that, let me label that this way. I just told you that for RC circuits you go this way or you go this way.
So it is down here. I get some kind of an exponential decay. And, like before, think of this one. This one has VI as a base value here. And the difference between the two is VO minus VI. And that difference decays.
So I have a VI out here, and this difference decays so I get VO-VI and that decays in this form. So I get an exponential decay of this difference here. Just stare at it for a while longer. You should be able to just go and knock it off like this, just like Professor Perreault would.
No differential equations. Just write it down by looking at the curve. Let's keep these two in mind, OK, these forms? One is the 1-e^-t/RC form and the e^-t/RC. Both have a time constant RC. Let me just make this a dashed line just to be on the safe side here.
That is our first piece of intuition. And, as I pointed out before, in problems you face in life or in ones that we give you, feel free to use the intuitive method. Or what you can do is apply the mathematical method and then check your answer by using your intuition.
What I would like to do next is apply what you have learned so far to figure out what we set out to figure out, which is the delay of my inverter. I had promised you that by the end of this lecture I was going to close the loop on that little demo.
I was going to close the loop for you on this little circuit that we had looked at, one inverter driving another inverter. This was A, this was inverter X, and this was my node B. The green curve you see out there, the middle one has a transition shown up there.
And what I am going to do next is use the results we have gotten so far to compute a number. We are going to compute a delay number both for a rising transition. We will call that delay DR for rising transition.
And we will compute a delay for the falling transition DF. Remember, that this is the input that falls down sharply. The intermediate node B rises much more slowly. And because this rises much more slowly this guy here falls a little after this transition here, and so there is a delay.
And I am going to apply what we have learned so far and do an example for you and figure out what that delay is. This is an absolute foundational calculation done in building digital circuits all the time.
It is remarkable that something so simple is used in designing even the most complex of circuits to obtain very quick ideas of what my delay will look like when I have some subcircuit driving some other piece of subcircuit.
Let me just draw a few equivalent circuits for you. The internal circuit looks like this. This is my inverter X, A, my node B. And notice that I have this capacitor CGS. Since I am interested in this node, let me show you that, this capacitor explicitly, it is because of this capacitor here that arises because of this MOSFET here between the gate and the source.
And that capacitor gives rise to this RC thing that we are seeing. This is RL, this is RL, VS, VS. And let's say, just as up there, at time T=0 I get a transition like so, a falling transition from say 5 volts to 0 volts at the node A.
This is VA here. That is shown up there. And VB -- We had expected that VB would look like this. We expected VB to be instantaneous and looking like that, but instead because of the capacitor VB looks like this.
And remember, again, this is of the form 1-e^-t/RC. And we will write down the answers by inspection. From this let me draw the connection to circuit delay by showing you another little graph here t, VB, zero.
And what I am going to show you, this is 5 volts. And so the output goes like this from close to zero to 5 volts. It is close to zero. Because, at least with the inverters we have been seeing in lab and so on, the RON for the inverter is very, very small compared RL.
So it is virtually zero down here. And so what is the delay? I mentioned there are two delays of interest. One is the rising delay. That is the logical value at the end, if I wait a long enough period of time, is a logical one.
Delay is simply defined as starting from here how long does this output take to get to a valid one? At what voltage here can I say that this transition corresponds to a logical one? At what voltage here can I say that that represents a valid one? Any ideas? Yes.
It depends on the discipline, bingo. So it depends on the discipline. Now let's get more specific. Since it depends on the discipline, at what value based on something in the discipline can I say this thing is a logical one? This is an output remember.
VOH, bingo. There is some VOH somewhere. And it takes some amount of time to get to a valid logical one output, ergo there is your delay. This is tR. And I call this the rising delay of the inverter X.
It is interesting that the rising delay of inverter X, based on our model, depends on the parameters of this inverter and the parameters of whatever it is driving. So remember that the delay is not necessarily just the property of the inverter itself, but it depends on the context.
If I stick my inverter before another inverter like this, it is the capacitance on that inverter by our model that tells me what the delay is going to look like, of course in addition to RL. And we will do the math in a few seconds.
By the same token, if I had this wire connecting not to one inverter but going to ten other inverters, I expect to have a capacitance equal to ten times CGS. And so therefore this thing should rise even more slowly, correct? The more capacitance on here the slower it rises up.
Simple. If I put more and more load on this line by putting more and more MOSFETs on that line, more and more inverters this will rise slower. In our example I just have one, so let's go ahead and compute the delay.
This is called the rising delay of X. That says that for this node here to go from its output value to a valid one, which is VOH how long does it take? Notice that if this capacitor was zero then you would have seen an instantaneous transition.
If you have an instantaneous transition then notice that the rising delay was zero. That was the model we had looked at up until learning about capacitors. So let's go ahead and compute the number.
I can draw an equivalent circuit for computing a rising delay. The equivalent circuit for the rising delay looks like the following. The VS voltage source, with a resistor RL and a capacitor CGS, because when I turn this guy off, this guy has gone off, and so as far as the rise time of this node is concerned I can look at this circuit, ground through CGS through RL through VS back to ground.
And just for simplicity, let me draw this in a form that we understand. CGS. Let me use this as my ground node. And this is the voltage VB. And this is RL. And V is simply VS once that transition happens.
My other equations here, VI=VS. And what is VB(0)? VB(0) is at what value does this node start out? Notice that for simplicity here if this RON is much, much smaller than RL, then this node would be very close to ground.
So I will just go ahead and say that VB at T=0 is approximately zero. And then what I want to find out is what does the value look like for time starting from zero and then going forward? Well, we have become experts at this now.
Let's do the intuition here. Start off with zero. That's good. Because my initial value is zero, I start off here. What is the final value? After a long time, since this is a DC voltage, what would be the value at VB after a long time? Pardon? VS.
If I wait long enough then it is going to be at VS. This is greater than the initial value, so we're done. That is my 1-e^-t/RC form. It took me three seconds there. It's pretty cool. We could add the expression for this.
And the expression was I take my starting value, which is zero, and I add to that this difference VS and I multiply that by this form. There we go. And remember I get this from that rising form up here.
V0=0, this is zero, so it is simply VI times that, and VI=VS. I really would like you to get this intuition. If I had two choices, one is that you understand the intuition and are able to sketch that versus in your sleep be able to solve the differential equation and get to the answer.
I would much rather you get the intuition, if it is one or the other. It is very simple. Start off at zero, I go chuck, and boom, I get to VS and this is my 1-e^-t/RC form. I need to compute tR. And tR is the time that this takes to get to VOH.
For what value of time, for what T, does VB reach VOH? I want to find tR. What's tR? From that equation, that simply tells me the trajectory of VB as a function of time. And so I need to find out what is T for which VB is VOH? I write VOH=VS (1-e^-t/RC).
So after a rise time my output is going to be VOH. And so let me go ahead and find tR. Let's see. I bring this to this left-hand side and divide VOH by VS, and then I move things around and what I end up getting is -tR/RC and on the other side I get ln(1-VOH/VS).
Divide VOH by VS, that is this, move this to the other side, and move e^-t/RC to this side. And take logarithms on both sides. This is what I get. tR is therefore -RLCGS ln(1-VOH/VS). That is my rise time.
You can just do this by inspection. It is just so awfully simple. Just to give to some intuition with numbers and so on. Let's say that RL=1K, VS=5 volts, VOH=4 volts, CGS=0.1 pF. This happens so often that we often time call it "puff."
0.1 puff. It is pF, it's called puff. If it is nF, I don't know why they didn't call it "nuff." They just call it nanofarads. TR for these numbers gets to be one times ten to the three times point one times ten to the minus twelve for pico-farads ln(1-4/5).
And if you do the math you get this down to 0.16 nanoseconds. This means that if I had an inverter like that droving another inverter then my output transition would be delayed by 0.16 nanoseconds.
Trust me, when Intel builds microprocessors or when Broadcom builds its cable modem chips, they have to do this one way or the other using a computer tool or by hand for virtually every little subcircuit in their chip.
That is how you get the delays or some approximation thereof. What I want you also to do is, for no particular reason, I will just compute for you the following quantity RLCGS. The time constant of that circuit for no reason at all.
I am just going to compute it and stick it here. And RLCGS 1 K times 1 pF is simply 0.1 nanoseconds. I am just writing it and sticking it there for no particular reason. The next step let's do the falling delay, DF.
That is the rising delay. And, although I didn't show this to you in the demo, there is a corresponding delay of the fall time. It doesn't fall instantly, but rather it falls rather slowly. Let's draw the equivalent circuit for when the node X falls.
Notice that in my inverters here, this node starts off being at VS. This is high. And this is going to fall because when I turn this transistor on it is going to pull this node to ground or it is going to fall down.
And what is the equivalent circuit? The equivalent circuit is that ground through capacitor to this node. At this node I have RON connecting to ground and I have RL connecting to ground through VS.
Let me draw that little circuit for you. Remember life begins and ends on storage elements, so I will draw them first. My storage element CGS. That is VB. And, as I said, this is node X, it goes from RON to ground, and it also goes through RL through VS to ground.
And in this particular situation VB of zero for the following delay, VB starts off at VS so VB of zero is VS. And the final output I am not sure yet. What is the final value of the voltage at this node? I don't know that yet.
I need to compute that. So what I will do is whenever you see something like this, a capacitor connecting to linear stuff, or a nonlinear element connecting to linear stuff. For no apparent reason you should at least think about what? Think Thevenin, exactly.
And then see if you can use the Thevenin method to simplify your life. Capacitor, a bunch of stuff here, I need to find out the initial value. Oh, I know that. That is VS. Done. I need to find the final value using my intuitive method.
For the final value, I could do it just by looking at this, but I wanted to throw in Thevenin. Hey, let me try to the Thevenin equivalent and see if that makes my life any easier. VTH. The Thevenin method says that you can replace this circuit here with a Thevenin equivalent of the sort for the purpose of determining what happens at this node given that that is linear.
So I need to find out that for the purpose of determining what happens at the node X. I have to replace this with its Thevenin equivalent. And I now need to find out RTH and VTH. So I get RTH by looking in here, shorting this guy and looking at the resistance.
So I look in like this, then I short this guy here and I get RL in parallel with RON because this one shorts to ground. So RTH is simply RL in parallel with RON. This is a convenient notation for RL being in parallel with RON.
And you all know the value of that. It is another one of our very simple patterns like voltage divider and so on. Resistances in parallel can be computed as RL RON divided by RL plus RON. What is VTH? VTH is the open circuit voltage here.
If I take out this capacitor, I want to find out what the voltage here is. Ah-ha, voltage divider. VS, the voltage divider here, RL and RON. I could write this down as VS times RON/(RL+RON). Remember you will see again and again and again and again in 6.002 or any circuit stuff that you do, you will see them all over Thevenin.
Voltage dividers, current dividers, resistances in series, resistances in parallel, RC thing-a-ma-jigs like this. So if you just remember those 10 to 15 intuitive patterns then you are pretty much set for life.
It just comes on again and again and again. Parallel resistors. Voltage dividers. You should be able to write down a voltage divider in your sleep. So this is what I have. Let me now write down intuitively what I expect the node X to do just by inspection.
Let's see. What is the initial value of the voltage across the capacitor, intuitive method? This is how Professor Perreault would do it, remember? He would start off by saying ah-ha, initial value is VS because I am told it is VS.
I start off with VS. And so I start off here. What is the value after a long, long time based on this circuit here? V Thevenin. After a long time this is a DC voltage because that is a DC voltage.
The capacitor looks like an open circuit after a long time. And VTH appears there so it is simply V Thevenin. And then when you see those two, boy, I love doing this, you go like this. That is the coolest part.
And then I am done. It is so simple. Three seconds or less, I am able to tell you what the delay of an inverter is purely by intuition, completely intuitively. I mean I haven't done any solving. It is just by observation.
Took this circuit, made my life easy, Thevenin, looked at RTH, VTH and then sketched it by inspection. Again, if you find that things are really, really, really simple don't be surprised. Once you get some conceptual understanding things are indeed very simple.
You can eliminate a lot of math just by staring at things attempting to build up the intuition. As a next step what I can do is write down the expression for VB. And I write down the expression from a falling transition.
How do I do it? What was it? What is the method? I take the lowest value of interest here. That is VTH. And then I add to that this difference decaying exponentially. And that difference is simply VS-VTH.
And that decays exponentially. This form is the e^-t/RC form. And, boom, I am done. Many of you are wondering, Professor Agarwal, if life was so simple, why on earth did you have us mess around with those differential equations to get here? You show us differential equations and then you don't use them anymore.
Well, that is a good question. The answer to that is that you need to understand the foundations. Once you understand the foundations you can find simplifying techniques to get to where you need to be, but you need to understand the foundations.
You need to at least see why things are the way they are at least once. Understand the foundations and then find intuitive ways of getting your answers. So now my falling delay here is, I start off with VOS and I need to get all the way down to what value to compute.
At some point here, this is a valid one, at some point VB becomes a valid zero for the output. And that is when I stop my tF block. What is the value here for this to be a valid zero? Don't all yell at once.
VOL. I simply had to figure out what is the value of time, this is Page 7, for which this expression decays down to VOL. So it is VTH+(VS-VTH) e^-tF/RC. Then I simplify this. How do I do that? VOL-VTH.
Then I divide that by VS-VTH. So VOL-VTH. Divide that by VS-VTH. Take logarithms on both sides and then multiply by RC. So I get tF is -RC log of that. This is R Thevenin and this is CGS. How did I get this? VOL-VTH divided by VS-VTH.
Take logs on both sides. And then multiply throughout by -1/-RC and I get my tF. Done. Let's do it for the same set numbers, just that we add an RON of 10 ohms. I will do this for RON of 10 ohms and compute the value for you.
tF=-RTH. RTH is RON parallel RL. This is 10 ohms. That is 1K. So 10 ohms in parallel with 1K is approximately 10 ohms. So let me just use approximately 10 ohms. 1 pF, that is RC times ln of VOL.
Oh, I need to give you a VOL. Let's say my discipline has VOL being 1 volt. And so therefore I end up getting a VOL-VTH divided by VS-VTH. Since RON is much, much, much smaller than RL, since RON is 10 ohms and this is 1K, most of VS will drop across RL.
This is a hundred times smaller. Compared to VOL, which is 1 volt, VTH is very, very small. VTH will be on the order of 0.05, and so therefore I simply write down VOL here and say VTH is approximately zero, and I get VS-VTH.
This is approximately 5. So let me just say this is approximately. And if you do it you will get 1.6 pico-seconds. Again, just for fun, let me write the corresponding RC time constant for the circuit, which is RTHCGS.
So RTH is approximately 10 ohms and CGS is 1 pF, so this is 1 picosecond. Now you will understand why I have been writing this time constant down. It turns out that the time constant is a very, very important number.
So you see an RC circuit, and you compute its time constant for an RLC connection like this, it is the series resistance times the capacitor. The time constant is a very important number. And usually the circuit delays are in the neighborhood of the time constant value.
In this case this is 1 pS. That is 1.6 pS. And in this case we had 0.1 nS and 0.16 nS. So the time constant itself is a good indicator of what your delays are going to be like. If you have no time, you are sloshing your cereal down in the morning and you need to know how long the delay of the inverter very quickly, you have three seconds.
Just do the RC and that is a good first approximation. What I would like to do next in the last three or four minutes is set up a little demo for you for your recitation, and then your recitation will cover it.
This is a true story. This really, really happened. In this West Coast school, which shall remain nameless, they had a chip, they built a chip. And the chip had a bunch of pins, as you might imagine.
And the pin, as you have a trace on a board, a wire on a board there are some capacitance attached to wires, between the wire and ground. And that is a capacitor. And they just called it a load capacitance.
It could have been 0.1 pF or 0.01 pF or something like that. What they found when they built this chip -- What they found was that the voltage here they expected to look like this, this computer science abstraction and so on, zero to one transition, boom, it should look like this.
But for the reasons we saw today the observed transition was much slower and looked like this. So the students said ah-ha, let's speed up this chip. We can speed up the chip by looking at the RL and RON of my driving inverters.
And if I make RL small -- Notice if I make RL small my delay is small. If I make RON small my falling delay is small. So let's make really small RLs and RONs and let's all have fun. Unfortunately, what they observed was that by making RL and RON both small, the RC time constant small they expected to see a much sharper rise time.
And this was the original. But what really happened was -- They expected this to get faster and kind of look like this, but what happened was disaster struck. What they observed was something like that.
This is a real-life story. And so instead of getting something like this they go something like this. And why is that a problem? That is a problem because notice when I expect to be at a zero, I got some spikes that went higher than VIL into the forbidden region and did bad things to me.
So let me show you a little demo and show you that that's exactly how the circuit is behaving. Notice that this is what I expect but this is what I see. Look at the purple curve here. Notice these spikes that are showing up there.
This is true. They saw it happen. And why is this happening? It turns out that what was happening was that the two pins were next to each other. And I will show you a little demonstration here. Let's see if you can figure out why this was happening.
Think of these as two pins and the pins are close together. I am just modeling the two pins with a role of wire. And what I am going to do is -- I am going to separate the wires and keep them far apart.
It is like keeping my pins far apart. Hey, guess what happened? Those nasty spikes went away. But then I cannot keep my pins 1 meter apart on a chip. Your laptops are going to look 20 yards long.
You want the pins to be very close to each other so that you can have many pins on chips and therefore have very small systems. But then look, I get the spikes. Any idea why that is happening? Why is that when the pins are close together I get those spikes? Any ideas? Somewhat? We just learned about capacitors, so this must have to do with capacitors.
There is this parasitic capacitor between the pins, exactly. Here is what is happening. Here is what I expect. I expect a nice square wave at the output. But instead I have a pin next to me. And I have a faster wave form driving it.
And so therefore there is a parasitic capacitor here. And because of that I get something called "crosstalk." And the model for crosstalk is some resultant resistance with the parasitic capacitor and I get those spikes.
And the 6.002 experts saw the solution. They said how do we fix this problem? 6.002 experts said the way we fix this problem if it is slow it may be better. Instead of having sharp transitions let me drive it with slower transitions.
Let's switch to the demo again. You will see this in recitation, but I will show you the demo very quickly. I have a sharp transition of the input, which is that yellow thing out there. I am going to make the transition slower.
Switch to a triangular wave. And you will notice the spikes go away. Oh, no. That is the wrong one. The other one. There you go. The moment I switch to a slower transition boom, the spikes go away.
You want to switch back to square? There you go. The 6.002 experts saw the solution. Slower transitions. And you will do this example in detail in Section tomorrow. Thank you.
It looked like a slow rising transition like this. And using that motivation we have begun our study of RC circuits. And in particular for today the lecture is titled "Digital Circuit Speed." We are going to look at the fundamentals of digital circuit speed.
And it all boils down to an RC delay. By the end of the lecture, I am going to show you two numbers that you can look at a circuit and obtain by observation, multiply them out and you will get a good idea of the speed at which a circuit will run.
It is pretty amazing. So as a quick review -- The relevant section for this is Chapter 10.4. As a review, we said to understand things like this we need to develop the foundations for RC circuits.
And the example I covered was that of a very simple circuit that looked like this -- An RC circuit of this form. And I also showed you that for an input of the form, input that steps from zero to VI at time T equal to zero.
And assuming that the capacitor state at time T equals zero was zero. What this means is that the capacitor starts from rest, so at time T=0, oops, this is VI, I'm sorry. So we assume that the capacitor starts from rest.
At time T=0 I apply a VI step, capital VI. And then I want to look at how the voltage across the capacitor behaves. And we did a bunch of analysis. And at the end of the day, in the final demo in the lecture last time I showed you that the capacitor would behave like this.
It would start off at, oops. I am sorry. This should be, let's assume that started off at VO. We get a different equation for zero. So let's say the capacitor started off at VO, in which case VC at time T=0 is VO as expected.
And we showed that the output would look something like this. After a long period of time this would come up to VI and this rise had a time constant of tau=RC. So we wrote the equation for this waveform.
And this is the case when VI is greater than VO. I would like you to stare at the circuit and this result here to get more intuition on what is going on. At time T=0, VC starts off at VO as expected because I am telling you that is the case, that is initial condition.
It starts off at VO. Then this one steps to VI. There is no infinite transition anywhere here, and so the capacitor holds its voltage at VO, at time T=0. And then the VI here, which is greater than VO, begins to charge the capacitor up, charge it through this resistor.
And so therefore the capacitor charges up. After a long period of time, from the basic foundations of capacitors, we know that the capacitor appears like a long-term open circuit to DC. This is a DC voltage VI.
So it appears like an open circuit. So after a long period of time VI appears at the end. And from here to here I have an exponential rise that is typified by an equation of the form -t/RC. This kind of waveform rising from a smaller value to a higher value is typified by this expression.
We saw the expression when we developed the equations last time. On the other hand, if the input was such that VI was smaller than VO, so let's say VI was smaller than VO then what will happen is that the capacitor voltage would start off at VO, because I am telling you that is the initial condition, and would then decay in this manner to the final value of VI which is the input.
Instead of going up this way it decays down to the final value applied to the circuit. Again, the time constant is RC. But this is typified by a form, this is exponential rise and this guy e^-t/RC is an exponential decay.
The key thing to remember is that when you have RC circuits of this form, the waveforms that you get are either each of the e^-t/RC or 1-e^-t/RC. So you can now begin to see how waveforms such as that come about.
We will do an example and sit down and compute the inverter delay. And notice that this waveform here is very typical or corresponds to this waveform that we see here. Here I am starting at VO. And assuming this axis starts off at zero, this one starts very close to zero and then rises up to some final value.
So far I have reviewed some material for you that I covered the last time. As a second step, I would like to give you a much more intuitive approach -- -- that doesn't involve solving any differential equations.
And the reason I do this is that most experienced circuit designers do not sit down and write differential equations each time they see an RC circuit. When you are starting out and you see an RC circuit, you say node method and you write the differential equation, but experienced people don't do that.
They look at it and they can sketch the waveform out by inspection. And I will show you how to do that. It is indeed incredibly simple once I give you some intuition. Throughout the rest of this course, I will be showing you many such examples where initially I develop the foundations of stuff and then show you an intuitive approach that very quickly lets you either get the final answer or at least sanity check the answer that you have gotten.
And this is how experienced circuit designers deal with stuff. How many people here have seen this movie Bend it Like Beckham? So you know this Beckham character doesn't think about how he is going to curve the ball.
He just does it and it happens. He doesn't sit down writing differential equations to find out the projectile trajectory and all of that stuff. You just kind of do it. These series of intuitions I am going to give you is going to be in line with the Bend it Like Beckham kind of intuition.
And this one in particular I would like to do in honor of one of your recitation instructions Professor David Perreault. And so this piece of intuition is going to be termed "Practice it Like Perreault."
Watch what I do with the other names. Professor David Perreault is really a world expert in designing really incredible power supplies for very, very small chips and so on. He doesn't start writing differential equations to do this stuff.
He looks at it and sketches it out. Let me show you how he would do this. Suppose I have my circuit like before, VI, R and C, and I am telling you that VC(0)=VO. And my input VI is a step that looks like this.
VI is a step. How would Professor Perreault do this? Let's do it completely by intuition. No math here. All right. We know that I have told you that this guy starts off at VO. I am telling you that.
You know it is going to start at VO. And there is no impulse or huge infinite transition, and so the capacitor starts off at VO. We also know from basic capacitor properties that after a long period of time, in the steady state, this is but a DC voltage.
If you apply a DC and here is my capacitor. After a long period of time this guy is going to look like an open circuit. It is going to charge up to some value and then is going to look like an open circuit.
Because if it didn't, you would keep charging it and its voltage would keep increasing. That doesn't happen, it looks like an open circuit. So it looks like an open circuit in the long run. The voltage across it must be capital VI.
If I don't have current flowing in the circuit then the only way that can happen is -- This open circuit. Capital VI appears across the capacitor. Well, after a long period of time I know that the output must look like this.
In this case, I have assumed VI is greater than VO. So you have two points of your curve, VO and VI after a long period of time. And, as I told you earlier, with capacitors you get two kinds of curves.
Two things. What you do is go zoop. There you go. You're done. And this has an exponential rise. This is with the form 1-e^-t/RC. So we can write an equation for that as follows. VC we know has something to do with minus t/RC.
This is of that form, so there has to be that term in there somewhere. And I start off with VO. At time T=0 this is one and this is one, so this term becomes a zero. At time T=0 that becomes a zero so I get VO here.
I am going to make sure this stuff stays zero at time T=0, so I start off with VO. Now, as time wears on what happens here? This voltage here, VI-VO, if you look at this difference. That is exponentially decaying over time.
And so therefore all I have to do here is write VI-VO. There is the answer. I know the form of the curve. I am just fitting an expression that meets this form. This starts off at VO. When time T=0 this second expression is zero and so it is VO.
And this difference here decays down to zero. And this difference here, VI-VO is multiplied by this term here and that is what I get. And you can confirm this. At time T=0 this is zero. At time T infinity this goes to zero, this goes to zero leaving a one, and VO and minus VO cancel and I get a VI.
Virtually any such simple voltage source, current source, resistor, capacitor, circuit for most inputs like steps and so on can be analyzed in this manner. Initial value, final value, it's simple. And just to show you that this is simple, I am going to label this expression this way.
It is of the form 1-e^-t/RC. Just remember that. Now, by the same token, what if VI had been smaller than VO? Then that is simple, too. I would have had my VI being here. VI would have been here.
And that is of the form. In this particular situation, here is my VI, my starting value and I do this. And just to label that, let me label that this way. I just told you that for RC circuits you go this way or you go this way.
So it is down here. I get some kind of an exponential decay. And, like before, think of this one. This one has VI as a base value here. And the difference between the two is VO minus VI. And that difference decays.
So I have a VI out here, and this difference decays so I get VO-VI and that decays in this form. So I get an exponential decay of this difference here. Just stare at it for a while longer. You should be able to just go and knock it off like this, just like Professor Perreault would.
No differential equations. Just write it down by looking at the curve. Let's keep these two in mind, OK, these forms? One is the 1-e^-t/RC form and the e^-t/RC. Both have a time constant RC. Let me just make this a dashed line just to be on the safe side here.
That is our first piece of intuition. And, as I pointed out before, in problems you face in life or in ones that we give you, feel free to use the intuitive method. Or what you can do is apply the mathematical method and then check your answer by using your intuition.
What I would like to do next is apply what you have learned so far to figure out what we set out to figure out, which is the delay of my inverter. I had promised you that by the end of this lecture I was going to close the loop on that little demo.
I was going to close the loop for you on this little circuit that we had looked at, one inverter driving another inverter. This was A, this was inverter X, and this was my node B. The green curve you see out there, the middle one has a transition shown up there.
And what I am going to do next is use the results we have gotten so far to compute a number. We are going to compute a delay number both for a rising transition. We will call that delay DR for rising transition.
And we will compute a delay for the falling transition DF. Remember, that this is the input that falls down sharply. The intermediate node B rises much more slowly. And because this rises much more slowly this guy here falls a little after this transition here, and so there is a delay.
And I am going to apply what we have learned so far and do an example for you and figure out what that delay is. This is an absolute foundational calculation done in building digital circuits all the time.
It is remarkable that something so simple is used in designing even the most complex of circuits to obtain very quick ideas of what my delay will look like when I have some subcircuit driving some other piece of subcircuit.
Let me just draw a few equivalent circuits for you. The internal circuit looks like this. This is my inverter X, A, my node B. And notice that I have this capacitor CGS. Since I am interested in this node, let me show you that, this capacitor explicitly, it is because of this capacitor here that arises because of this MOSFET here between the gate and the source.
And that capacitor gives rise to this RC thing that we are seeing. This is RL, this is RL, VS, VS. And let's say, just as up there, at time T=0 I get a transition like so, a falling transition from say 5 volts to 0 volts at the node A.
This is VA here. That is shown up there. And VB -- We had expected that VB would look like this. We expected VB to be instantaneous and looking like that, but instead because of the capacitor VB looks like this.
And remember, again, this is of the form 1-e^-t/RC. And we will write down the answers by inspection. From this let me draw the connection to circuit delay by showing you another little graph here t, VB, zero.
And what I am going to show you, this is 5 volts. And so the output goes like this from close to zero to 5 volts. It is close to zero. Because, at least with the inverters we have been seeing in lab and so on, the RON for the inverter is very, very small compared RL.
So it is virtually zero down here. And so what is the delay? I mentioned there are two delays of interest. One is the rising delay. That is the logical value at the end, if I wait a long enough period of time, is a logical one.
Delay is simply defined as starting from here how long does this output take to get to a valid one? At what voltage here can I say that this transition corresponds to a logical one? At what voltage here can I say that that represents a valid one? Any ideas? Yes.
It depends on the discipline, bingo. So it depends on the discipline. Now let's get more specific. Since it depends on the discipline, at what value based on something in the discipline can I say this thing is a logical one? This is an output remember.
VOH, bingo. There is some VOH somewhere. And it takes some amount of time to get to a valid logical one output, ergo there is your delay. This is tR. And I call this the rising delay of the inverter X.
It is interesting that the rising delay of inverter X, based on our model, depends on the parameters of this inverter and the parameters of whatever it is driving. So remember that the delay is not necessarily just the property of the inverter itself, but it depends on the context.
If I stick my inverter before another inverter like this, it is the capacitance on that inverter by our model that tells me what the delay is going to look like, of course in addition to RL. And we will do the math in a few seconds.
By the same token, if I had this wire connecting not to one inverter but going to ten other inverters, I expect to have a capacitance equal to ten times CGS. And so therefore this thing should rise even more slowly, correct? The more capacitance on here the slower it rises up.
Simple. If I put more and more load on this line by putting more and more MOSFETs on that line, more and more inverters this will rise slower. In our example I just have one, so let's go ahead and compute the delay.
This is called the rising delay of X. That says that for this node here to go from its output value to a valid one, which is VOH how long does it take? Notice that if this capacitor was zero then you would have seen an instantaneous transition.
If you have an instantaneous transition then notice that the rising delay was zero. That was the model we had looked at up until learning about capacitors. So let's go ahead and compute the number.
I can draw an equivalent circuit for computing a rising delay. The equivalent circuit for the rising delay looks like the following. The VS voltage source, with a resistor RL and a capacitor CGS, because when I turn this guy off, this guy has gone off, and so as far as the rise time of this node is concerned I can look at this circuit, ground through CGS through RL through VS back to ground.
And just for simplicity, let me draw this in a form that we understand. CGS. Let me use this as my ground node. And this is the voltage VB. And this is RL. And V is simply VS once that transition happens.
My other equations here, VI=VS. And what is VB(0)? VB(0) is at what value does this node start out? Notice that for simplicity here if this RON is much, much smaller than RL, then this node would be very close to ground.
So I will just go ahead and say that VB at T=0 is approximately zero. And then what I want to find out is what does the value look like for time starting from zero and then going forward? Well, we have become experts at this now.
Let's do the intuition here. Start off with zero. That's good. Because my initial value is zero, I start off here. What is the final value? After a long time, since this is a DC voltage, what would be the value at VB after a long time? Pardon? VS.
If I wait long enough then it is going to be at VS. This is greater than the initial value, so we're done. That is my 1-e^-t/RC form. It took me three seconds there. It's pretty cool. We could add the expression for this.
And the expression was I take my starting value, which is zero, and I add to that this difference VS and I multiply that by this form. There we go. And remember I get this from that rising form up here.
V0=0, this is zero, so it is simply VI times that, and VI=VS. I really would like you to get this intuition. If I had two choices, one is that you understand the intuition and are able to sketch that versus in your sleep be able to solve the differential equation and get to the answer.
I would much rather you get the intuition, if it is one or the other. It is very simple. Start off at zero, I go chuck, and boom, I get to VS and this is my 1-e^-t/RC form. I need to compute tR. And tR is the time that this takes to get to VOH.
For what value of time, for what T, does VB reach VOH? I want to find tR. What's tR? From that equation, that simply tells me the trajectory of VB as a function of time. And so I need to find out what is T for which VB is VOH? I write VOH=VS (1-e^-t/RC).
So after a rise time my output is going to be VOH. And so let me go ahead and find tR. Let's see. I bring this to this left-hand side and divide VOH by VS, and then I move things around and what I end up getting is -tR/RC and on the other side I get ln(1-VOH/VS).
Divide VOH by VS, that is this, move this to the other side, and move e^-t/RC to this side. And take logarithms on both sides. This is what I get. tR is therefore -RLCGS ln(1-VOH/VS). That is my rise time.
You can just do this by inspection. It is just so awfully simple. Just to give to some intuition with numbers and so on. Let's say that RL=1K, VS=5 volts, VOH=4 volts, CGS=0.1 pF. This happens so often that we often time call it "puff."
0.1 puff. It is pF, it's called puff. If it is nF, I don't know why they didn't call it "nuff." They just call it nanofarads. TR for these numbers gets to be one times ten to the three times point one times ten to the minus twelve for pico-farads ln(1-4/5).
And if you do the math you get this down to 0.16 nanoseconds. This means that if I had an inverter like that droving another inverter then my output transition would be delayed by 0.16 nanoseconds.
Trust me, when Intel builds microprocessors or when Broadcom builds its cable modem chips, they have to do this one way or the other using a computer tool or by hand for virtually every little subcircuit in their chip.
That is how you get the delays or some approximation thereof. What I want you also to do is, for no particular reason, I will just compute for you the following quantity RLCGS. The time constant of that circuit for no reason at all.
I am just going to compute it and stick it here. And RLCGS 1 K times 1 pF is simply 0.1 nanoseconds. I am just writing it and sticking it there for no particular reason. The next step let's do the falling delay, DF.
That is the rising delay. And, although I didn't show this to you in the demo, there is a corresponding delay of the fall time. It doesn't fall instantly, but rather it falls rather slowly. Let's draw the equivalent circuit for when the node X falls.
Notice that in my inverters here, this node starts off being at VS. This is high. And this is going to fall because when I turn this transistor on it is going to pull this node to ground or it is going to fall down.
And what is the equivalent circuit? The equivalent circuit is that ground through capacitor to this node. At this node I have RON connecting to ground and I have RL connecting to ground through VS.
Let me draw that little circuit for you. Remember life begins and ends on storage elements, so I will draw them first. My storage element CGS. That is VB. And, as I said, this is node X, it goes from RON to ground, and it also goes through RL through VS to ground.
And in this particular situation VB of zero for the following delay, VB starts off at VS so VB of zero is VS. And the final output I am not sure yet. What is the final value of the voltage at this node? I don't know that yet.
I need to compute that. So what I will do is whenever you see something like this, a capacitor connecting to linear stuff, or a nonlinear element connecting to linear stuff. For no apparent reason you should at least think about what? Think Thevenin, exactly.
And then see if you can use the Thevenin method to simplify your life. Capacitor, a bunch of stuff here, I need to find out the initial value. Oh, I know that. That is VS. Done. I need to find the final value using my intuitive method.
For the final value, I could do it just by looking at this, but I wanted to throw in Thevenin. Hey, let me try to the Thevenin equivalent and see if that makes my life any easier. VTH. The Thevenin method says that you can replace this circuit here with a Thevenin equivalent of the sort for the purpose of determining what happens at this node given that that is linear.
So I need to find out that for the purpose of determining what happens at the node X. I have to replace this with its Thevenin equivalent. And I now need to find out RTH and VTH. So I get RTH by looking in here, shorting this guy and looking at the resistance.
So I look in like this, then I short this guy here and I get RL in parallel with RON because this one shorts to ground. So RTH is simply RL in parallel with RON. This is a convenient notation for RL being in parallel with RON.
And you all know the value of that. It is another one of our very simple patterns like voltage divider and so on. Resistances in parallel can be computed as RL RON divided by RL plus RON. What is VTH? VTH is the open circuit voltage here.
If I take out this capacitor, I want to find out what the voltage here is. Ah-ha, voltage divider. VS, the voltage divider here, RL and RON. I could write this down as VS times RON/(RL+RON). Remember you will see again and again and again and again in 6.002 or any circuit stuff that you do, you will see them all over Thevenin.
Voltage dividers, current dividers, resistances in series, resistances in parallel, RC thing-a-ma-jigs like this. So if you just remember those 10 to 15 intuitive patterns then you are pretty much set for life.
It just comes on again and again and again. Parallel resistors. Voltage dividers. You should be able to write down a voltage divider in your sleep. So this is what I have. Let me now write down intuitively what I expect the node X to do just by inspection.
Let's see. What is the initial value of the voltage across the capacitor, intuitive method? This is how Professor Perreault would do it, remember? He would start off by saying ah-ha, initial value is VS because I am told it is VS.
I start off with VS. And so I start off here. What is the value after a long, long time based on this circuit here? V Thevenin. After a long time this is a DC voltage because that is a DC voltage.
The capacitor looks like an open circuit after a long time. And VTH appears there so it is simply V Thevenin. And then when you see those two, boy, I love doing this, you go like this. That is the coolest part.
And then I am done. It is so simple. Three seconds or less, I am able to tell you what the delay of an inverter is purely by intuition, completely intuitively. I mean I haven't done any solving. It is just by observation.
Took this circuit, made my life easy, Thevenin, looked at RTH, VTH and then sketched it by inspection. Again, if you find that things are really, really, really simple don't be surprised. Once you get some conceptual understanding things are indeed very simple.
You can eliminate a lot of math just by staring at things attempting to build up the intuition. As a next step what I can do is write down the expression for VB. And I write down the expression from a falling transition.
How do I do it? What was it? What is the method? I take the lowest value of interest here. That is VTH. And then I add to that this difference decaying exponentially. And that difference is simply VS-VTH.
And that decays exponentially. This form is the e^-t/RC form. And, boom, I am done. Many of you are wondering, Professor Agarwal, if life was so simple, why on earth did you have us mess around with those differential equations to get here? You show us differential equations and then you don't use them anymore.
Well, that is a good question. The answer to that is that you need to understand the foundations. Once you understand the foundations you can find simplifying techniques to get to where you need to be, but you need to understand the foundations.
You need to at least see why things are the way they are at least once. Understand the foundations and then find intuitive ways of getting your answers. So now my falling delay here is, I start off with VOS and I need to get all the way down to what value to compute.
At some point here, this is a valid one, at some point VB becomes a valid zero for the output. And that is when I stop my tF block. What is the value here for this to be a valid zero? Don't all yell at once.
VOL. I simply had to figure out what is the value of time, this is Page 7, for which this expression decays down to VOL. So it is VTH+(VS-VTH) e^-tF/RC. Then I simplify this. How do I do that? VOL-VTH.
Then I divide that by VS-VTH. So VOL-VTH. Divide that by VS-VTH. Take logarithms on both sides and then multiply by RC. So I get tF is -RC log of that. This is R Thevenin and this is CGS. How did I get this? VOL-VTH divided by VS-VTH.
Take logs on both sides. And then multiply throughout by -1/-RC and I get my tF. Done. Let's do it for the same set numbers, just that we add an RON of 10 ohms. I will do this for RON of 10 ohms and compute the value for you.
tF=-RTH. RTH is RON parallel RL. This is 10 ohms. That is 1K. So 10 ohms in parallel with 1K is approximately 10 ohms. So let me just use approximately 10 ohms. 1 pF, that is RC times ln of VOL.
Oh, I need to give you a VOL. Let's say my discipline has VOL being 1 volt. And so therefore I end up getting a VOL-VTH divided by VS-VTH. Since RON is much, much, much smaller than RL, since RON is 10 ohms and this is 1K, most of VS will drop across RL.
This is a hundred times smaller. Compared to VOL, which is 1 volt, VTH is very, very small. VTH will be on the order of 0.05, and so therefore I simply write down VOL here and say VTH is approximately zero, and I get VS-VTH.
This is approximately 5. So let me just say this is approximately. And if you do it you will get 1.6 pico-seconds. Again, just for fun, let me write the corresponding RC time constant for the circuit, which is RTHCGS.
So RTH is approximately 10 ohms and CGS is 1 pF, so this is 1 picosecond. Now you will understand why I have been writing this time constant down. It turns out that the time constant is a very, very important number.
So you see an RC circuit, and you compute its time constant for an RLC connection like this, it is the series resistance times the capacitor. The time constant is a very important number. And usually the circuit delays are in the neighborhood of the time constant value.
In this case this is 1 pS. That is 1.6 pS. And in this case we had 0.1 nS and 0.16 nS. So the time constant itself is a good indicator of what your delays are going to be like. If you have no time, you are sloshing your cereal down in the morning and you need to know how long the delay of the inverter very quickly, you have three seconds.
Just do the RC and that is a good first approximation. What I would like to do next in the last three or four minutes is set up a little demo for you for your recitation, and then your recitation will cover it.
This is a true story. This really, really happened. In this West Coast school, which shall remain nameless, they had a chip, they built a chip. And the chip had a bunch of pins, as you might imagine.
And the pin, as you have a trace on a board, a wire on a board there are some capacitance attached to wires, between the wire and ground. And that is a capacitor. And they just called it a load capacitance.
It could have been 0.1 pF or 0.01 pF or something like that. What they found when they built this chip -- What they found was that the voltage here they expected to look like this, this computer science abstraction and so on, zero to one transition, boom, it should look like this.
But for the reasons we saw today the observed transition was much slower and looked like this. So the students said ah-ha, let's speed up this chip. We can speed up the chip by looking at the RL and RON of my driving inverters.
And if I make RL small -- Notice if I make RL small my delay is small. If I make RON small my falling delay is small. So let's make really small RLs and RONs and let's all have fun. Unfortunately, what they observed was that by making RL and RON both small, the RC time constant small they expected to see a much sharper rise time.
And this was the original. But what really happened was -- They expected this to get faster and kind of look like this, but what happened was disaster struck. What they observed was something like that.
This is a real-life story. And so instead of getting something like this they go something like this. And why is that a problem? That is a problem because notice when I expect to be at a zero, I got some spikes that went higher than VIL into the forbidden region and did bad things to me.
So let me show you a little demo and show you that that's exactly how the circuit is behaving. Notice that this is what I expect but this is what I see. Look at the purple curve here. Notice these spikes that are showing up there.
This is true. They saw it happen. And why is this happening? It turns out that what was happening was that the two pins were next to each other. And I will show you a little demonstration here. Let's see if you can figure out why this was happening.
Think of these as two pins and the pins are close together. I am just modeling the two pins with a role of wire. And what I am going to do is -- I am going to separate the wires and keep them far apart.
It is like keeping my pins far apart. Hey, guess what happened? Those nasty spikes went away. But then I cannot keep my pins 1 meter apart on a chip. Your laptops are going to look 20 yards long.
You want the pins to be very close to each other so that you can have many pins on chips and therefore have very small systems. But then look, I get the spikes. Any idea why that is happening? Why is that when the pins are close together I get those spikes? Any ideas? Somewhat? We just learned about capacitors, so this must have to do with capacitors.
There is this parasitic capacitor between the pins, exactly. Here is what is happening. Here is what I expect. I expect a nice square wave at the output. But instead I have a pin next to me. And I have a faster wave form driving it.
And so therefore there is a parasitic capacitor here. And because of that I get something called "crosstalk." And the model for crosstalk is some resultant resistance with the parasitic capacitor and I get those spikes.
And the 6.002 experts saw the solution. They said how do we fix this problem? 6.002 experts said the way we fix this problem if it is slow it may be better. Instead of having sharp transitions let me drive it with slower transitions.
Let's switch to the demo again. You will see this in recitation, but I will show you the demo very quickly. I have a sharp transition of the input, which is that yellow thing out there. I am going to make the transition slower.
Switch to a triangular wave. And you will notice the spikes go away. Oh, no. That is the wrong one. The other one. There you go. The moment I switch to a slower transition boom, the spikes go away.
You want to switch back to square? There you go. The 6.002 experts saw the solution. Slower transitions. And you will do this example in detail in Section tomorrow. Thank you.
Capacitors and first-order systems
Good morning. Today we move in the direction that takes a big turn from the direction we have been going in so far. All the devices we have had up until now, resistors and voltage sources, and even your digital devices like the AND gate or the inverter and so on had a very specific property.
We didn't dwell on that property, but that property was that these were not what are called memory devices. In other words, the outputs at any given time are a function of the inputs alone. In other words, if you took your inverter or your NAND gate for that matter and you build a circuit comprising 50 NAND gates connected in structures that we have talked about, you apply an input and boom you get an output.
And your output is a function of the inputs alone, right? The same thing with your resistors and voltage sources. At any given point in time your output VO of T was some function of the input VI of T.
What we are going to do today is discuss a new element which will introduce a whole new class of fun stuff for all of us to deal with. And that is called storage. In other words, the output of a circuit is now going to depend not just on the inputs but it is going to depend on the background or it is going to depend on where the circuit has been in the past.
So past is going to matter. It is a very fundamental difference. And what I would like to do is start by giving you folks a little bit of a surprise. I am going to do a little demo taking two of your inverter circuits.
I am going to start by taking a couple of inverters. Remember, I am using this structure here as an inverter. And I am going to couple this to another inverter and take an output C, some VS, some load resistance RL, my B terminal and my A terminal.
So I'm going to apply some input between ground and my A terminal. And for fun I want to apply a square wave at the input. A square wave between zero and 5 volts. And this is how my time goes. Let's assume that VS is 5 volts.
So what I am going to do is plot for you the behavior of this inverter. I am going to plot for you A, which would look like this. I am going to plot for you B, which would be the inverted wave form.
And then plot C, which would be a wave form that looks like this again. Let me do a plot here. So this is A. -- and so on. Time goes this way. And let's say this is between zero and 5 volts. And B should be an inverted wave form that should look like this.
If all that we believe of the world so far is true then this is how things should behave, so C should look like this. This is what the world should look like and if everything that you learned about is true and correct and all of the good stuff.
Let me show you a little demo and see if I can try to pull the rug out from under all that you have learned so far and show you some surprising stuff. Here are the three wave forms that I showed you up here.
This is my A. This is my A wave form. This is the B wave form. Notice that B, as you expect, is an inverted form of A. And this is C. We all expect this, correct? But what I am going to do is let me expand the time scale on this so that I can look at these transitions a little bit more carefully.
I am just going to expand the time scale. There you go. All I have done is expanded the time scale and spread that out a little bit. And what you see there is quite different from what you expect.
A is a square wave as expected, but B is stunningly different. It is a zero as expected because this is a one. But here I get some really strange behavior, behavior that is like nothing on earth. Like nothing you have seen before.
And then, of course, it becomes a one eventually, but there's some really, really shady stuff going on here. And so far you are not prepared to deal with this. We have not given you the facility to deal with his issue.
What is the problem with this? We could say who cares? What is the problem with this? Let's look at the result. I am looking at this, I am focusing on this piece here. And notice that instead of being a sharp rise it looks like this.
It is going up a little bit more slowly. What kind of problem would that create? The problem that it creates is the following. Let me play around with this graph a little bit more. What I am going to do is just take this output here, the C output and line it up against the A output.
And so I am going to line up the C wave form on top of the A wave form. So you can see for yourself if something really, really strange and nasty is happening, I am just going to move up the C wave form and line it up.
What is happening out there? If you look carefully, what you observe is that the C wave form transitions just ever so slightly later than the A wave form. Look here. And I claim that it is because of this.
Because of this, the C wave form falls just a little bit later, and that little thing we see out there is a delay. So nothing you have learned so far prepares you for this. Suddenly, instead of the output exactly following the input, my output is following the input but a little bit later.
And it is this fact of life that things happen a little bit later, is really the reason why each of you and all of us needs to buy new computers every couple of years. This simple basic fact. If this fact of life didn't exist, you would buy one computer and be done with it for life.
Intel would make gobs of money one year, and so would Dell and Gateway and so on, and then no more. That's it. This is it. But because of this a little itty-bitty difference here the entire semiconductor technology is charging along trying to do something about that.
You buy newer and newer computers each year. It turns out this little itty-bitty thing here, that is called the delay, the inverter delay. And it happens because of a specific element that has been introduced here that we have not shown you so far.
And a large part of the semiconductor industry and follow-on courses and design and so on focuses on how could I make my delay smaller, how can I get to be faster and faster and faster? This relates to how fast we can clock your Pentium IV.
Remember it came all the way to 1.3 gigahertz? What's the fasted Pentium money can buy today? What is the fastest P4? Oh, 3.2 have come out? I don't know. Ken claims 3.2. But, yeah, there you go, 3.2 gigahertz.
It all has to do with this little itty-bitty thing. You saw it for the first time here. When some of you become CTOs at Intel and so on, just remember that it all began on October 16th with this little rinky-dink thing here.
What you are going to learn now is some really cool stuff that has huge implications for life. So why does that happen? Why did this transition happen just a little bit later? The reason is that remember when this wave form reaches VT, the threshold voltage of this MOSFET, this guy is going to switch, right? So because of the slower rise of the voltage, the VT is going to be reached a small amount of time later.
So I am going to hit VT slightly later. And because of that this guy is going to transition just a bit later because this intermediate wave form B is slower. It hits VT just a little bit later than if it would have made an instantaneous transition.
And therefore my output falls just a little bit later and this gives rise to my delay in the inverter. We can call that d if you would like, some delay. In your course notes, this material is covered in Chapters 9 and 10.
That was to kind of motivate why we are going to be doing all that you we will be doing. Don't anybody come within a foot of this even by mistake. I mean it. It is pretty deadly stuff. Today we will talk about the capacitor.
And in the next couple of lectures I am going to tie it all together and show you how this relates to that. I will show you exactly how the delay happens. You can compute it based on some simple principles that you will learn about in the next couple of lectures.
What I am going to do is first of all show you, I claim that that delay happens because of the presence of a capacitor somewhere in there. What I will do now is take you into a closer look, take a closer look at the MOSFET and show you were the capacitor is.
This is the MOSFET that you have seen so far, drain, gate and source. This is called an n-channel MOSFET. And what I am going to do is dissect this and show you what is actually happening, what this looks like on silicon.
So here is my slab of silicon. It is very thin. And let's say this is, I won't go into details here. You will learn a lot more about this in future device classes like 301 and so on, but suffice it to say I will just introduce it here to give you a sense of where the capacitor is.
This is p-type silicon. And the way you build a MOSFET is you create a couple of tubs in which you dope to be n-type. The basic silicon is dope p-type. And this guy here is n-type. And what you do is a thin oxide layer is placed on top of that and then on top of that a thin metal layer.
This is a metal layer. This is a thin piece of oxide, silicon dioxide. And this is my P substrate. Now this is a little metal layer that is really a wire on top of the silicone. This metal layer could be some sort of a wire that meanders around on the surface of silicone.
And this is a wire that connects to the gate. This is the gate of my MOSFET. And this guy here is the drain. And this guy here is the source. And this is my gate. So there is a little piece of metal here.
This is this piece of metal here. And there is a piece of oxide and then my silicone substrate. Notice that this is my oxide. When I apply a positive voltage to the gate here with respect to the substrate, what happens is that I draw up negative charges.
I draw up electrons here into this channel region and I have corresponding plus type out here so that I get a view here that looks like a couple of plates. And I end up with an oxide in the middle. There is no connection.
Two plates separated by a small distance with plus q and minus q on the plates. And, because of that, what ends up happening here is that this piece behaves like a capacitor. So a capacitor has two plates with a thin insulating material in the middle with some permittivity epsilon.
And so I get a little piece of a capacitor here. That is the capacitor that is forming. I did not set out to build that capacitor, but there is a capacitor nonetheless. So when I apply a positive voltage at the gate, negative electrons are pulled up here which forms a channel, and then a current can then flow.
And that is how the MOSFET turns on. So n-type electrons back to n-type, and I get electron flow here and that gives me my channel. This is just kind of devices in four minutes or less. You will do an entire course on this, if you like, if you take 301.
What we do is to be able to capture the behavior that we just saw, the funny delayed behavior, we have to augment our model. We have to introduce a new element. So what we do is here is a MOSFET, gate, drain and source.
And notice here we model this by putting a little capacitor, CGS between our gate and the source. So this becomes a simple model for our MOSFET device which is the good old gate drain source device from the past with a little capacitor CGS having some value for CGS in maybe ten to the minus 14 or thereabouts farads.
So that is a little capacitor that has come about in this device that we fabricated here. It is that capacitor that is at between node B and ground because it is between the gate and the source of the second inverter.
And it is that capacitor that is playing the games that we saw out there. So let's look at some of the behavior of an ideal linear capacitor. A capacitor, as I said, has a couple of plates. There are a couple of plates.
Between the plates is some dieletric, permittivity epsilon. Let's say the area of the plates is A, and let's say the plates are separated by a distance D. I get some charge here, let's say q. So q and minus q on the capacitor.
And the capacitance C is given by epsilon A divided by D. Epsilon, as I said, is the productivity of the dielectric. So if it is free space then it would be epsilon zero which is the permittivity of free space.
That is the capacitance in farads. And the symbol looks like this. Capacitor C. Voltage v. Current i. So this, much like the resistor, voltage source and so on, this now becomes a primitive element in your tool chest of elements like the voltage source and so onn.
Capacitance with the voltage v across it and a current i. And I have assigned the associated variables here according to the associated variable discipline. A question to ask ourselves is remember we said we are all now in a playground from all of nature, in this playground where the lumped matter discipline holds? And also remember that we said that for the lumped matter discipline to hold we have to make a couple of assumptions.
One of those assumptions was that dq/dt, for all their elements should be zero for all time. So right now what about the capacitor? It has got some charge q. So charge must have built up somehow. Does that mean that I lied all along, that we are no longer in this playground, that we have been ejected from the playground because of the capacitor, or are we still in the circuits playground in which the lumped matter discipline holds and all good things happen and so on? It seems like a contradiction, doesn't it? I took you from Maxwell's playgrounds to the EECS playground where I said the lumped matter discipline holds.
And one of the foundations of the LMD was that dq/dt should be zero for all time inside the elements that we are going to deal with. And right now boom, it's not four weeks into the course and Agarwal introduces an element and it has q in it.
It turns out that the capacitor also adheres to the lumped matter discipline. Remember the discipline says that dq/dt is zero for all time within elements. So I am going to be clever. What I am going to do is I want to choose element boundaries in a very cleaver way.
Notice that if I have q here on this plate then I get minus q on the other plate. So if I take the whole element, the element as a whole, if I am careful in terms of how I package my boundaries, if I put both my plates inside my element boundary then I still do get the net charge being zero.
So dq/dt is indeed zero for all time provided I make sure that my element has both the plates. Therefore, if you come across somebody else that gives you an element that says I have an idea. Let's create a new branch of electrical engineering in which we model the capacitor not as one element for two plates, but let's build a capacitor by combining two new elements, two garbage elements called G1 and G2.
G1 is like the top plate. G2 is the bottom plate. I put them together and I get a capacitor. But notice if I just pick one plate then the element G1 will not adhere to the LMD. It adheres to the LMD because I choose my element boundaries in a way that both plates come within it.
So it is very fundamental and key. And you can read a lot more about it in the course notes. I purposely dwelt on that simple point because I think it is foundational and important. And you really need to understand that the capacitor does satisfy LMD.
We are still in the good old playground. A few simple facts here. These are in the notes. And you have also seen this before, I am sure. I can relate the charge to the capacitance and the voltage as q is equal to Cv.
And q is in coulombs, this is in farads and this is in volts. So there is some charge q stored on the capacitor and it is in coulombs and q is equal to Cv. So I can differentiate this with respect to time to get the current, and that becomes i=dq/dt.
So the current at any given time is dq/dt. And so I substitute for q in terms of Cv here. That is what I get. So the current i=d(Cv)/dt. A 6.002 assumption, capacitance in general can be time-varying.
I can get time-varying capacitors. In fact, there are some sensors which are capacitive. And, as I talk, my sound waves can change the pressure on the top plate of the capacitor. And move the top plate of the capacitor, thereby changing the capacitance by moving the plate.
Remember d here, as the plate moves closer I get a higher capacitance. So we won't be dealing, unless explicitly said so, with time-varying capacitances. So what we can do is 6.002 allows us to write Cdv/dt.
So my current source capacitor is Cdv/dt. I can also write down the energy, capacitors store energy. E=1/2Cv^2. I am sure you have seen all this before in physics and so on. That is the amount of energy stored in the capacitor if it is holding a charge q.
Let me do a little demonstration for you. They don't make glasses like they used to. Our friend Lorenzo has charged up this capacitor. It is a huge capacitor. It is a 250 volt capacitor so it is nasty.
He has charged it up and has kept it there. And to show you that it does contain stored charges it has been sitting there holding charge. Maybe the first row should go backwards, just step back for a second.
I think you guys would be safe but I just don't want to take any chances. This is holding a bunch of charge. It is kind of sitting there. If I short the terminals it should try to say oh, I've got a path, let me get my charge out.
All right. Let's do it. This is always a scary moment for me. And I say a little prayer before I do this. Good? OK. Gee, you guys would love to see me getting fried, huh? All right. Let's see.
So it did contain charge. So there is a reason why Lorenzo puts one hand inside his pocket when he shorts it, because there is a natural tendency to hold the wire with both hands, and la, la, la, la, la and put it across the capacitor.
By doing this you are guaranteed that you will just be touching it with one hand. Hopefully you folks will remember for life that a capacitor can sit around and hold its charge for a while. All right.
That is enough of fun and games. Let's get on with our business of building circuits. What I am going to do is, as I promised you, I am going to close the loop on that example by halfway through the next lecture.
I'm going take you on a bit of a journey involving capacitors and resistors and involving some analysis, and then we will close it all up for you at about the middle of next lecture. What I would like to do next is here is a new element.
And let's do some fun stuff with elements. Well, you know about voltage sources, you know about resistors, let's put them together and see how they behave. Let's have a capacitor here, C, vc(t) and some current i.
What I am going to do, in general, whenever I have something new or something strange, let's say like a capacitor or some other device. It is interesting to model the rest of the circuit behind it if it contains only resistors and voltages and linear elements as a Thevenin equivalent.
So let me do that. This is R and this is vi. This stuff in the back is my standard pattern, voltage source in series with a resistor, and I connect that across my capacitor. But remember, although you saw those funny wave forms and so on, the capacitor is a linear device.
Because you can see from here that the current relates to dv/dt. That is a linear operation. You don't see V squareds and Vis and things like that in there. It's is a linear device. Let's go back to our trusty old method, the node method.
If you just blindly apply the node method and simply grunge through a bunch of math, you should be able to get to the answer, that is for some voltage v or some form of voltage vi, I should be able to figure out what vc looks like.
So let's do that. This is the node that is of interest here with the unknown node voltage vc. So let me apply the node method. (vc-vi)/R is the current going this way. That plus the current through the capacitor should equal zero.
And what is the current through the capacitor? The node method tells me that, get the current in terms of the element values. We know that the current is given by CdvC/dt.=O. Just shuffling things around a little bit, I can write RC dvc/dt+vc=vi.
We are writing the node equation and then getting the equation that characterizes this little circuit. Notice here that this has units of volts. And since I have time here, this also must have units of time.
Let's go about solving this little circuit and understanding how it behaves. The specific example that we will look at looks like this. Let's say the capacitor voltage at time T=0 is V0. This is given.
So at time T=0, I am telling you that the capacitor contains a charge. And because of that there is a voltage V0 across it. That capacitor had a voltage of 250 volts across it and most of the devices we deal with in laptops and so on today, like the Pentium IV, voltages are on the order of 1.5 volts, very small voltages.
So that is the value in the capacitor, the voltage. That is called a state. This is called the state, capacitor state. It is the state of the capacitor. And I also give you that vi(t)=VI. So my voltage is VI.
And somehow, I am not telling you how, but some how it arranged to have the capacitor voltage be V0 at time T=0. Now I want to look to the solution to this for t greater than or equal to zero. And in that time my voltage vi is at some capital VI, some DC voltage VI.
So I am going to solve the differential equation RC dvc/dt+vc=vi given these two values. Input is DC voltage VI and VC0 is V0, the initial charge in the capacitor. So from now until almost to the end of the lecture, it is just going to be math by solving this very simple first order differential equation.
And the key here will be that throughout 6.002 we will be following one method to solve these. There are many methods to solving differential equations, and we will follow one method. That method is called the method of homogenous and particular solutions.
In 1802, I believe, you would have learned maybe this, and certainly other methods. You can use any method to solve it. We will just stick to one method. And this is also used in the course notes.
In this method what we do is take the solution VC by finding two other components. One is called the homogenous solution. And summing that up with the particular solution. And that is the total solution.
So total solution is the sum of the homogenous and the particular solutions. And the method has three steps. As I said before, we will be using this method again and again with every differential equation that we encounter in this course.
And you won't encounter a while lot. The first step we find the particular solution. The second step, find the homogenous solution. The total solution is the sum of the two. And then find --- There will be some unknown constants depending on the equation that you have.
And in the end we simply find the unknown constants by applying the initial conditions that we have. Boom, boom, boom. Particular. Homogenous. Find constants. Three things. So let's go about solving this equation and apply those three conditions.
Again, remember, what I am doing now for the next 10 minutes or 15 minutes is using math that you know about to simply solve this first order of differential equations. There is nothing really new that I am going to talk about here.
One is to find the particular solution vCP, which will then be added into the vCH to get me the solution. So the way you find the vCP is you find any solution that satisfies this equation. This is the equation.
You find any solution that satisfies it. And find the simplest possible solution that money can buy. Find it. That's the particular solution. Any solution is fine. In this case, a really simple one would be vCP equals VI.
Let's see if a constant works. One thing you will realize in differential equations is that they are actually much simpler than they seem. And the reason is that almost every time you have to assume you know the answer, and then you are checking to see what you assumed was correct.
Assume the answer is this like you are really smart, and then check it out and say oh, yeah, that must have been the answer. So here we assume that I think VI is going to work so let's try it out. Substituting in here.
RC dvc/dt is 0. vi is a constant. So I get vi equals vi, so therefore this is a particular solution. Done. I substitute vi here. So dvi/dt=0. This vanishes and vi=VI. Bingo. Therefore, VI is a solution to this equation.
So I am done with my vCP. And in general what you have to do is use trial and error. By trial and error try out a bunch of solutions until you get lucky. In general, again, in all of 6.002 for many of the excitations a simple constant usually suffices.
Our second step is to find the homogenous solution. And we can also do that very quickly. And to do that we have to find a general solution to the homogenous equation. The homogenous equation is the same differential equation but with the drive set to zero.
We want to follow a set pattern to solve the differential equations here, and the set pattern is find vCP, vCH, find constants. And to find vCH we are also going to follow a set pattern to find the homogenous solution.
So we set the drive to zero, so vi is set to be zero. And I need to find a general solution to this. As I promised earlier, diff equations are really, really simple because the way we are going to solve them is we are going to assume we know the answer and then go check it.
So let's try Ae^st. Let's try and see if this can solve this particular equation for some values of A and S. I am telling you that the solution is going to be of this form. Assume it. And then simply go ahead and find me A and S, and do that by substituting it back into the equation and find out the corresponding As and Ss.
So let's go ahead and do that. I get RC. I substitute this back up so I get dAe^(st)/dt+Ae^st=0. And let me plug that in and see what comes. I get RCAse^st+Ae^st=0. I want to discard the trivial solution of A being 0.
That is a trivial solution so I will discard that. And what I will do is cancel out the As from here, assuming A is not zero, and cancel e^st here. And what is left is RCs+1=0. What this is saying is that if I can find an S such that this is true then Aest is a general solution to my homogenous equation.
This is easy enough. And so S=-1/RC. If I choose my S to be -1/RC then the simple math that I have gone through shows me that this must be the solution to the homogenous equation. Or in other words vCH=Ae^(-t/RC).
All this is saying is that Ae^(-t/RC) is a solution to my homogenous equation. A is an unknown constant. A is some constant. I don't know what that is yet. Notice RC has popped up again. And the cool thing about RC is that, this is time, this also has units of time.
We commonly represent RC as some time constant tau, as units of time. Associated with that circuit is the time constant tau, which is simply RC. I commonly write this as Ae^(-t/tau). I am very the end here.
I have the particular solution here. I have got the homogenous solution there. I need to tell you about something else. The way I found the homogenous solution was in four steps. I assumed a solution of the form Ae^st.
I created this equation here in S. This is called the characteristic equation for that circuit. We will see this time and time again for RC and other forms of circuits. Assume a solution of this form.
Construct the characteristic equation. Find the roots of the characteristic equation. In this case it is an equation in S. So this is the root. And then form the solution based on that root. Four steps.
Ae^st, characteristic equation, root and then write down the general homogenous solution. Four steps there. And finally I want to write down the total solution. And the total solution is simply vCP+vCH.
And vCP was VI and vCH was Ae^(-t/tau). tau was simply RC. That is my solution. Now, remember the last step. The last step was form the total solution and find out the remaining constants. Find out the remaining constants by using my initial conditions.
At t=0, I know that vC=V0. I know that. And so therefore I can substitute t=0 to find the constant. So I know that VO=VI+A. t=0, this thing becomes 1, and so I get this equation from which I get A=V0-Vi.
In other words, my solution vC is simply VI+(VO-VI) e^(-t/tau). So the last 15 minutes have just been math. No electrical engineering here, but electrical engineering stopped at the point where you wrote this differential equation down, went through a bunch of math and came up with a solution.
Purely mathematically. So here I simply used math to get you the solution. And, as I have been promising you throughout this course, in the next lecture I will give you an intuitive EE method of doing it.
Real electrical engineers, real EECS folks don't do it this way. Real EECS folks do it intuitively. And I will show you how to do it in four easy seconds in the next lecture. But you need to understand the foundations of how this comes about, and so this is the answer.
You can also get the current iC is simply Cdvc/dt. I won't do that for you, but you can simply differentiate it and get the current. So I can plot for you vC, time t, vC. The intuitive way of looking at this is I have VI which is the final value of the voltage.
When t is infinity this part goes to zero so the vC is simply VI. And then there is a component V0-VI which decays according to this starting out at an initial value of V0. Notice when t is zero vC is V0, you can see that in the equation, and so it starts out at V0 and ends up at VI.
I start here, I end up here. And this portion V0-VI decays out over time like this. And this decay is governed by the RC time constant or tau. I am going to show you very quickly a couple of examples of wave forms, one that goes like this and one that looks like this.
This is when I start with some value V0 and I don't apply any input, it should decay down to zero, t, t, vC, vC. If I apply zero for VI then this should simply decay down to nothing over time. And if I apply some VI but there is no state in the capacitor then that same equation is going to look like this.
You can go and confirm for yourselves that when I apply some input but the capacitor has zero state, I start at zero, I finish up at VI and my wave form looks like this. There you go. That's the first one.
The second one where I have 5 volts on the capacitor and no input. Assume that at time equals zero I take away an input, short the input voltage to ground for example, apply zero volts. You will see the decay from 5 volts to 0 volts.
And in the first case I start with zero volts in my capacitor, I apply input of 5 volts, and notice that at t=0 the capacitor rises up to that level. So notice that these circuits with capacitor and resistors are typified by wave forms that are exponential rises and exponential decays.
We will see more of that next time.
We didn't dwell on that property, but that property was that these were not what are called memory devices. In other words, the outputs at any given time are a function of the inputs alone. In other words, if you took your inverter or your NAND gate for that matter and you build a circuit comprising 50 NAND gates connected in structures that we have talked about, you apply an input and boom you get an output.
And your output is a function of the inputs alone, right? The same thing with your resistors and voltage sources. At any given point in time your output VO of T was some function of the input VI of T.
What we are going to do today is discuss a new element which will introduce a whole new class of fun stuff for all of us to deal with. And that is called storage. In other words, the output of a circuit is now going to depend not just on the inputs but it is going to depend on the background or it is going to depend on where the circuit has been in the past.
So past is going to matter. It is a very fundamental difference. And what I would like to do is start by giving you folks a little bit of a surprise. I am going to do a little demo taking two of your inverter circuits.
I am going to start by taking a couple of inverters. Remember, I am using this structure here as an inverter. And I am going to couple this to another inverter and take an output C, some VS, some load resistance RL, my B terminal and my A terminal.
So I'm going to apply some input between ground and my A terminal. And for fun I want to apply a square wave at the input. A square wave between zero and 5 volts. And this is how my time goes. Let's assume that VS is 5 volts.
So what I am going to do is plot for you the behavior of this inverter. I am going to plot for you A, which would look like this. I am going to plot for you B, which would be the inverted wave form.
And then plot C, which would be a wave form that looks like this again. Let me do a plot here. So this is A. -- and so on. Time goes this way. And let's say this is between zero and 5 volts. And B should be an inverted wave form that should look like this.
If all that we believe of the world so far is true then this is how things should behave, so C should look like this. This is what the world should look like and if everything that you learned about is true and correct and all of the good stuff.
Let me show you a little demo and see if I can try to pull the rug out from under all that you have learned so far and show you some surprising stuff. Here are the three wave forms that I showed you up here.
This is my A. This is my A wave form. This is the B wave form. Notice that B, as you expect, is an inverted form of A. And this is C. We all expect this, correct? But what I am going to do is let me expand the time scale on this so that I can look at these transitions a little bit more carefully.
I am just going to expand the time scale. There you go. All I have done is expanded the time scale and spread that out a little bit. And what you see there is quite different from what you expect.
A is a square wave as expected, but B is stunningly different. It is a zero as expected because this is a one. But here I get some really strange behavior, behavior that is like nothing on earth. Like nothing you have seen before.
And then, of course, it becomes a one eventually, but there's some really, really shady stuff going on here. And so far you are not prepared to deal with this. We have not given you the facility to deal with his issue.
What is the problem with this? We could say who cares? What is the problem with this? Let's look at the result. I am looking at this, I am focusing on this piece here. And notice that instead of being a sharp rise it looks like this.
It is going up a little bit more slowly. What kind of problem would that create? The problem that it creates is the following. Let me play around with this graph a little bit more. What I am going to do is just take this output here, the C output and line it up against the A output.
And so I am going to line up the C wave form on top of the A wave form. So you can see for yourself if something really, really strange and nasty is happening, I am just going to move up the C wave form and line it up.
What is happening out there? If you look carefully, what you observe is that the C wave form transitions just ever so slightly later than the A wave form. Look here. And I claim that it is because of this.
Because of this, the C wave form falls just a little bit later, and that little thing we see out there is a delay. So nothing you have learned so far prepares you for this. Suddenly, instead of the output exactly following the input, my output is following the input but a little bit later.
And it is this fact of life that things happen a little bit later, is really the reason why each of you and all of us needs to buy new computers every couple of years. This simple basic fact. If this fact of life didn't exist, you would buy one computer and be done with it for life.
Intel would make gobs of money one year, and so would Dell and Gateway and so on, and then no more. That's it. This is it. But because of this a little itty-bitty difference here the entire semiconductor technology is charging along trying to do something about that.
You buy newer and newer computers each year. It turns out this little itty-bitty thing here, that is called the delay, the inverter delay. And it happens because of a specific element that has been introduced here that we have not shown you so far.
And a large part of the semiconductor industry and follow-on courses and design and so on focuses on how could I make my delay smaller, how can I get to be faster and faster and faster? This relates to how fast we can clock your Pentium IV.
Remember it came all the way to 1.3 gigahertz? What's the fasted Pentium money can buy today? What is the fastest P4? Oh, 3.2 have come out? I don't know. Ken claims 3.2. But, yeah, there you go, 3.2 gigahertz.
It all has to do with this little itty-bitty thing. You saw it for the first time here. When some of you become CTOs at Intel and so on, just remember that it all began on October 16th with this little rinky-dink thing here.
What you are going to learn now is some really cool stuff that has huge implications for life. So why does that happen? Why did this transition happen just a little bit later? The reason is that remember when this wave form reaches VT, the threshold voltage of this MOSFET, this guy is going to switch, right? So because of the slower rise of the voltage, the VT is going to be reached a small amount of time later.
So I am going to hit VT slightly later. And because of that this guy is going to transition just a bit later because this intermediate wave form B is slower. It hits VT just a little bit later than if it would have made an instantaneous transition.
And therefore my output falls just a little bit later and this gives rise to my delay in the inverter. We can call that d if you would like, some delay. In your course notes, this material is covered in Chapters 9 and 10.
That was to kind of motivate why we are going to be doing all that you we will be doing. Don't anybody come within a foot of this even by mistake. I mean it. It is pretty deadly stuff. Today we will talk about the capacitor.
And in the next couple of lectures I am going to tie it all together and show you how this relates to that. I will show you exactly how the delay happens. You can compute it based on some simple principles that you will learn about in the next couple of lectures.
What I am going to do is first of all show you, I claim that that delay happens because of the presence of a capacitor somewhere in there. What I will do now is take you into a closer look, take a closer look at the MOSFET and show you were the capacitor is.
This is the MOSFET that you have seen so far, drain, gate and source. This is called an n-channel MOSFET. And what I am going to do is dissect this and show you what is actually happening, what this looks like on silicon.
So here is my slab of silicon. It is very thin. And let's say this is, I won't go into details here. You will learn a lot more about this in future device classes like 301 and so on, but suffice it to say I will just introduce it here to give you a sense of where the capacitor is.
This is p-type silicon. And the way you build a MOSFET is you create a couple of tubs in which you dope to be n-type. The basic silicon is dope p-type. And this guy here is n-type. And what you do is a thin oxide layer is placed on top of that and then on top of that a thin metal layer.
This is a metal layer. This is a thin piece of oxide, silicon dioxide. And this is my P substrate. Now this is a little metal layer that is really a wire on top of the silicone. This metal layer could be some sort of a wire that meanders around on the surface of silicone.
And this is a wire that connects to the gate. This is the gate of my MOSFET. And this guy here is the drain. And this guy here is the source. And this is my gate. So there is a little piece of metal here.
This is this piece of metal here. And there is a piece of oxide and then my silicone substrate. Notice that this is my oxide. When I apply a positive voltage to the gate here with respect to the substrate, what happens is that I draw up negative charges.
I draw up electrons here into this channel region and I have corresponding plus type out here so that I get a view here that looks like a couple of plates. And I end up with an oxide in the middle. There is no connection.
Two plates separated by a small distance with plus q and minus q on the plates. And, because of that, what ends up happening here is that this piece behaves like a capacitor. So a capacitor has two plates with a thin insulating material in the middle with some permittivity epsilon.
And so I get a little piece of a capacitor here. That is the capacitor that is forming. I did not set out to build that capacitor, but there is a capacitor nonetheless. So when I apply a positive voltage at the gate, negative electrons are pulled up here which forms a channel, and then a current can then flow.
And that is how the MOSFET turns on. So n-type electrons back to n-type, and I get electron flow here and that gives me my channel. This is just kind of devices in four minutes or less. You will do an entire course on this, if you like, if you take 301.
What we do is to be able to capture the behavior that we just saw, the funny delayed behavior, we have to augment our model. We have to introduce a new element. So what we do is here is a MOSFET, gate, drain and source.
And notice here we model this by putting a little capacitor, CGS between our gate and the source. So this becomes a simple model for our MOSFET device which is the good old gate drain source device from the past with a little capacitor CGS having some value for CGS in maybe ten to the minus 14 or thereabouts farads.
So that is a little capacitor that has come about in this device that we fabricated here. It is that capacitor that is at between node B and ground because it is between the gate and the source of the second inverter.
And it is that capacitor that is playing the games that we saw out there. So let's look at some of the behavior of an ideal linear capacitor. A capacitor, as I said, has a couple of plates. There are a couple of plates.
Between the plates is some dieletric, permittivity epsilon. Let's say the area of the plates is A, and let's say the plates are separated by a distance D. I get some charge here, let's say q. So q and minus q on the capacitor.
And the capacitance C is given by epsilon A divided by D. Epsilon, as I said, is the productivity of the dielectric. So if it is free space then it would be epsilon zero which is the permittivity of free space.
That is the capacitance in farads. And the symbol looks like this. Capacitor C. Voltage v. Current i. So this, much like the resistor, voltage source and so on, this now becomes a primitive element in your tool chest of elements like the voltage source and so onn.
Capacitance with the voltage v across it and a current i. And I have assigned the associated variables here according to the associated variable discipline. A question to ask ourselves is remember we said we are all now in a playground from all of nature, in this playground where the lumped matter discipline holds? And also remember that we said that for the lumped matter discipline to hold we have to make a couple of assumptions.
One of those assumptions was that dq/dt, for all their elements should be zero for all time. So right now what about the capacitor? It has got some charge q. So charge must have built up somehow. Does that mean that I lied all along, that we are no longer in this playground, that we have been ejected from the playground because of the capacitor, or are we still in the circuits playground in which the lumped matter discipline holds and all good things happen and so on? It seems like a contradiction, doesn't it? I took you from Maxwell's playgrounds to the EECS playground where I said the lumped matter discipline holds.
And one of the foundations of the LMD was that dq/dt should be zero for all time inside the elements that we are going to deal with. And right now boom, it's not four weeks into the course and Agarwal introduces an element and it has q in it.
It turns out that the capacitor also adheres to the lumped matter discipline. Remember the discipline says that dq/dt is zero for all time within elements. So I am going to be clever. What I am going to do is I want to choose element boundaries in a very cleaver way.
Notice that if I have q here on this plate then I get minus q on the other plate. So if I take the whole element, the element as a whole, if I am careful in terms of how I package my boundaries, if I put both my plates inside my element boundary then I still do get the net charge being zero.
So dq/dt is indeed zero for all time provided I make sure that my element has both the plates. Therefore, if you come across somebody else that gives you an element that says I have an idea. Let's create a new branch of electrical engineering in which we model the capacitor not as one element for two plates, but let's build a capacitor by combining two new elements, two garbage elements called G1 and G2.
G1 is like the top plate. G2 is the bottom plate. I put them together and I get a capacitor. But notice if I just pick one plate then the element G1 will not adhere to the LMD. It adheres to the LMD because I choose my element boundaries in a way that both plates come within it.
So it is very fundamental and key. And you can read a lot more about it in the course notes. I purposely dwelt on that simple point because I think it is foundational and important. And you really need to understand that the capacitor does satisfy LMD.
We are still in the good old playground. A few simple facts here. These are in the notes. And you have also seen this before, I am sure. I can relate the charge to the capacitance and the voltage as q is equal to Cv.
And q is in coulombs, this is in farads and this is in volts. So there is some charge q stored on the capacitor and it is in coulombs and q is equal to Cv. So I can differentiate this with respect to time to get the current, and that becomes i=dq/dt.
So the current at any given time is dq/dt. And so I substitute for q in terms of Cv here. That is what I get. So the current i=d(Cv)/dt. A 6.002 assumption, capacitance in general can be time-varying.
I can get time-varying capacitors. In fact, there are some sensors which are capacitive. And, as I talk, my sound waves can change the pressure on the top plate of the capacitor. And move the top plate of the capacitor, thereby changing the capacitance by moving the plate.
Remember d here, as the plate moves closer I get a higher capacitance. So we won't be dealing, unless explicitly said so, with time-varying capacitances. So what we can do is 6.002 allows us to write Cdv/dt.
So my current source capacitor is Cdv/dt. I can also write down the energy, capacitors store energy. E=1/2Cv^2. I am sure you have seen all this before in physics and so on. That is the amount of energy stored in the capacitor if it is holding a charge q.
Let me do a little demonstration for you. They don't make glasses like they used to. Our friend Lorenzo has charged up this capacitor. It is a huge capacitor. It is a 250 volt capacitor so it is nasty.
He has charged it up and has kept it there. And to show you that it does contain stored charges it has been sitting there holding charge. Maybe the first row should go backwards, just step back for a second.
I think you guys would be safe but I just don't want to take any chances. This is holding a bunch of charge. It is kind of sitting there. If I short the terminals it should try to say oh, I've got a path, let me get my charge out.
All right. Let's do it. This is always a scary moment for me. And I say a little prayer before I do this. Good? OK. Gee, you guys would love to see me getting fried, huh? All right. Let's see.
So it did contain charge. So there is a reason why Lorenzo puts one hand inside his pocket when he shorts it, because there is a natural tendency to hold the wire with both hands, and la, la, la, la, la and put it across the capacitor.
By doing this you are guaranteed that you will just be touching it with one hand. Hopefully you folks will remember for life that a capacitor can sit around and hold its charge for a while. All right.
That is enough of fun and games. Let's get on with our business of building circuits. What I am going to do is, as I promised you, I am going to close the loop on that example by halfway through the next lecture.
I'm going take you on a bit of a journey involving capacitors and resistors and involving some analysis, and then we will close it all up for you at about the middle of next lecture. What I would like to do next is here is a new element.
And let's do some fun stuff with elements. Well, you know about voltage sources, you know about resistors, let's put them together and see how they behave. Let's have a capacitor here, C, vc(t) and some current i.
What I am going to do, in general, whenever I have something new or something strange, let's say like a capacitor or some other device. It is interesting to model the rest of the circuit behind it if it contains only resistors and voltages and linear elements as a Thevenin equivalent.
So let me do that. This is R and this is vi. This stuff in the back is my standard pattern, voltage source in series with a resistor, and I connect that across my capacitor. But remember, although you saw those funny wave forms and so on, the capacitor is a linear device.
Because you can see from here that the current relates to dv/dt. That is a linear operation. You don't see V squareds and Vis and things like that in there. It's is a linear device. Let's go back to our trusty old method, the node method.
If you just blindly apply the node method and simply grunge through a bunch of math, you should be able to get to the answer, that is for some voltage v or some form of voltage vi, I should be able to figure out what vc looks like.
So let's do that. This is the node that is of interest here with the unknown node voltage vc. So let me apply the node method. (vc-vi)/R is the current going this way. That plus the current through the capacitor should equal zero.
And what is the current through the capacitor? The node method tells me that, get the current in terms of the element values. We know that the current is given by CdvC/dt.=O. Just shuffling things around a little bit, I can write RC dvc/dt+vc=vi.
We are writing the node equation and then getting the equation that characterizes this little circuit. Notice here that this has units of volts. And since I have time here, this also must have units of time.
Let's go about solving this little circuit and understanding how it behaves. The specific example that we will look at looks like this. Let's say the capacitor voltage at time T=0 is V0. This is given.
So at time T=0, I am telling you that the capacitor contains a charge. And because of that there is a voltage V0 across it. That capacitor had a voltage of 250 volts across it and most of the devices we deal with in laptops and so on today, like the Pentium IV, voltages are on the order of 1.5 volts, very small voltages.
So that is the value in the capacitor, the voltage. That is called a state. This is called the state, capacitor state. It is the state of the capacitor. And I also give you that vi(t)=VI. So my voltage is VI.
And somehow, I am not telling you how, but some how it arranged to have the capacitor voltage be V0 at time T=0. Now I want to look to the solution to this for t greater than or equal to zero. And in that time my voltage vi is at some capital VI, some DC voltage VI.
So I am going to solve the differential equation RC dvc/dt+vc=vi given these two values. Input is DC voltage VI and VC0 is V0, the initial charge in the capacitor. So from now until almost to the end of the lecture, it is just going to be math by solving this very simple first order differential equation.
And the key here will be that throughout 6.002 we will be following one method to solve these. There are many methods to solving differential equations, and we will follow one method. That method is called the method of homogenous and particular solutions.
In 1802, I believe, you would have learned maybe this, and certainly other methods. You can use any method to solve it. We will just stick to one method. And this is also used in the course notes.
In this method what we do is take the solution VC by finding two other components. One is called the homogenous solution. And summing that up with the particular solution. And that is the total solution.
So total solution is the sum of the homogenous and the particular solutions. And the method has three steps. As I said before, we will be using this method again and again with every differential equation that we encounter in this course.
And you won't encounter a while lot. The first step we find the particular solution. The second step, find the homogenous solution. The total solution is the sum of the two. And then find --- There will be some unknown constants depending on the equation that you have.
And in the end we simply find the unknown constants by applying the initial conditions that we have. Boom, boom, boom. Particular. Homogenous. Find constants. Three things. So let's go about solving this equation and apply those three conditions.
Again, remember, what I am doing now for the next 10 minutes or 15 minutes is using math that you know about to simply solve this first order of differential equations. There is nothing really new that I am going to talk about here.
One is to find the particular solution vCP, which will then be added into the vCH to get me the solution. So the way you find the vCP is you find any solution that satisfies this equation. This is the equation.
You find any solution that satisfies it. And find the simplest possible solution that money can buy. Find it. That's the particular solution. Any solution is fine. In this case, a really simple one would be vCP equals VI.
Let's see if a constant works. One thing you will realize in differential equations is that they are actually much simpler than they seem. And the reason is that almost every time you have to assume you know the answer, and then you are checking to see what you assumed was correct.
Assume the answer is this like you are really smart, and then check it out and say oh, yeah, that must have been the answer. So here we assume that I think VI is going to work so let's try it out. Substituting in here.
RC dvc/dt is 0. vi is a constant. So I get vi equals vi, so therefore this is a particular solution. Done. I substitute vi here. So dvi/dt=0. This vanishes and vi=VI. Bingo. Therefore, VI is a solution to this equation.
So I am done with my vCP. And in general what you have to do is use trial and error. By trial and error try out a bunch of solutions until you get lucky. In general, again, in all of 6.002 for many of the excitations a simple constant usually suffices.
Our second step is to find the homogenous solution. And we can also do that very quickly. And to do that we have to find a general solution to the homogenous equation. The homogenous equation is the same differential equation but with the drive set to zero.
We want to follow a set pattern to solve the differential equations here, and the set pattern is find vCP, vCH, find constants. And to find vCH we are also going to follow a set pattern to find the homogenous solution.
So we set the drive to zero, so vi is set to be zero. And I need to find a general solution to this. As I promised earlier, diff equations are really, really simple because the way we are going to solve them is we are going to assume we know the answer and then go check it.
So let's try Ae^st. Let's try and see if this can solve this particular equation for some values of A and S. I am telling you that the solution is going to be of this form. Assume it. And then simply go ahead and find me A and S, and do that by substituting it back into the equation and find out the corresponding As and Ss.
So let's go ahead and do that. I get RC. I substitute this back up so I get dAe^(st)/dt+Ae^st=0. And let me plug that in and see what comes. I get RCAse^st+Ae^st=0. I want to discard the trivial solution of A being 0.
That is a trivial solution so I will discard that. And what I will do is cancel out the As from here, assuming A is not zero, and cancel e^st here. And what is left is RCs+1=0. What this is saying is that if I can find an S such that this is true then Aest is a general solution to my homogenous equation.
This is easy enough. And so S=-1/RC. If I choose my S to be -1/RC then the simple math that I have gone through shows me that this must be the solution to the homogenous equation. Or in other words vCH=Ae^(-t/RC).
All this is saying is that Ae^(-t/RC) is a solution to my homogenous equation. A is an unknown constant. A is some constant. I don't know what that is yet. Notice RC has popped up again. And the cool thing about RC is that, this is time, this also has units of time.
We commonly represent RC as some time constant tau, as units of time. Associated with that circuit is the time constant tau, which is simply RC. I commonly write this as Ae^(-t/tau). I am very the end here.
I have the particular solution here. I have got the homogenous solution there. I need to tell you about something else. The way I found the homogenous solution was in four steps. I assumed a solution of the form Ae^st.
I created this equation here in S. This is called the characteristic equation for that circuit. We will see this time and time again for RC and other forms of circuits. Assume a solution of this form.
Construct the characteristic equation. Find the roots of the characteristic equation. In this case it is an equation in S. So this is the root. And then form the solution based on that root. Four steps.
Ae^st, characteristic equation, root and then write down the general homogenous solution. Four steps there. And finally I want to write down the total solution. And the total solution is simply vCP+vCH.
And vCP was VI and vCH was Ae^(-t/tau). tau was simply RC. That is my solution. Now, remember the last step. The last step was form the total solution and find out the remaining constants. Find out the remaining constants by using my initial conditions.
At t=0, I know that vC=V0. I know that. And so therefore I can substitute t=0 to find the constant. So I know that VO=VI+A. t=0, this thing becomes 1, and so I get this equation from which I get A=V0-Vi.
In other words, my solution vC is simply VI+(VO-VI) e^(-t/tau). So the last 15 minutes have just been math. No electrical engineering here, but electrical engineering stopped at the point where you wrote this differential equation down, went through a bunch of math and came up with a solution.
Purely mathematically. So here I simply used math to get you the solution. And, as I have been promising you throughout this course, in the next lecture I will give you an intuitive EE method of doing it.
Real electrical engineers, real EECS folks don't do it this way. Real EECS folks do it intuitively. And I will show you how to do it in four easy seconds in the next lecture. But you need to understand the foundations of how this comes about, and so this is the answer.
You can also get the current iC is simply Cdvc/dt. I won't do that for you, but you can simply differentiate it and get the current. So I can plot for you vC, time t, vC. The intuitive way of looking at this is I have VI which is the final value of the voltage.
When t is infinity this part goes to zero so the vC is simply VI. And then there is a component V0-VI which decays according to this starting out at an initial value of V0. Notice when t is zero vC is V0, you can see that in the equation, and so it starts out at V0 and ends up at VI.
I start here, I end up here. And this portion V0-VI decays out over time like this. And this decay is governed by the RC time constant or tau. I am going to show you very quickly a couple of examples of wave forms, one that goes like this and one that looks like this.
This is when I start with some value V0 and I don't apply any input, it should decay down to zero, t, t, vC, vC. If I apply zero for VI then this should simply decay down to nothing over time. And if I apply some VI but there is no state in the capacitor then that same equation is going to look like this.
You can go and confirm for yourselves that when I apply some input but the capacitor has zero state, I start at zero, I finish up at VI and my wave form looks like this. There you go. That's the first one.
The second one where I have 5 volts on the capacitor and no input. Assume that at time equals zero I take away an input, short the input voltage to ground for example, apply zero volts. You will see the decay from 5 volts to 0 volts.
And in the first case I start with zero volts in my capacitor, I apply input of 5 volts, and notice that at t=0 the capacitor rises up to that level. So notice that these circuits with capacitor and resistors are typified by wave forms that are exponential rises and exponential decays.
We will see more of that next time.
Kaydol:
Kayıtlar (Atom)