Difference between revisions of "CoE 197U The CMOS Inverter"
Line 40: | Line 40: | ||
Note that due to the complementary function of the CMOS inverter, there is no static current flowing when the output is either at logic '''0''' or logic '''1'''. However, current will flow during the transition from '''0'''<math>\rightarrow</math>'''1''' or '''1'''<math>\rightarrow</math>'''0'''. | Note that due to the complementary function of the CMOS inverter, there is no static current flowing when the output is either at logic '''0''' or logic '''1'''. However, current will flow during the transition from '''0'''<math>\rightarrow</math>'''1''' or '''1'''<math>\rightarrow</math>'''0'''. | ||
+ | |||
+ | We can derive the VTC of any inverter by determining the regions of operation of each transistor as we vary the input voltage. Fig. 4 shows the VTC of the CMOS inverter with the corresponding regions of operation, which are dependent on the input and output voltages. Note that: | ||
+ | * <math>v_{GS,\text{n}} = v_I</math> | ||
+ | * <math>v_{GS,\text{p}} = V_{DD} - v_I</math> | ||
+ | * <math>v_{DS,\text{n}} = v_O</math> | ||
+ | * <math>v_{DS,\text{p}} = V_{DD} - v_O</math>. | ||
+ | |||
+ | {| | ||
+ | |[[File:Cmos inv vtc.png|thumb|465px|Figure 4: The CMOS inverter voltage transfer characteristic (VTC)<ref name="king2003">Tsu-Jae King's UCB EECS40 (Fall 2003) Lecture 26 Slides ([https://inst.eecs.berkeley.edu/~ee40/fa03/lecture/lecture26.pdf link])</ref>.]] | ||
+ | |- | ||
+ | |} | ||
== Static Design Metrics == | == Static Design Metrics == | ||
− | The general form of the inverter voltage transfer characteristic is shown in Fig. | + | The general form of the inverter voltage transfer characteristic is shown in Fig. 5. We can define several metrics to enable us to determine how close the real VTC is to the ideal VTC. |
{| | {| | ||
− | |[[File:Inverter vtc nm.png|thumb|500px|Figure | + | |[[File:Inverter vtc nm.png|thumb|500px|Figure 5: The non-ideal inverter voltage transfer characteristic (VTC)<ref name="wu2014"/>.]] |
− | |[[File:Cascaded inv.png|thumb|400px|Figure | + | |[[File:Cascaded inv.png|thumb|400px|Figure 6: Cascaded inverters.]] |
|- | |- | ||
|} | |} | ||
− | Consider the cascaded inverter in Fig. | + | Consider the cascaded inverter in Fig. 6: |
* <math>V_H</math> is the output high or logic '''1''' output of the inverter, and is seen at the output when <math>V_L</math> or logic '''0''' is placed at the input of the inverter. | * <math>V_H</math> is the output high or logic '''1''' output of the inverter, and is seen at the output when <math>V_L</math> or logic '''0''' is placed at the input of the inverter. | ||
* <math>V_L</math> is the output low or logic '''0''' output of the inverter, and is seen at the output when <math>V_H</math> or logic '''1''' is placed at the input of the inverter. | * <math>V_L</math> is the output low or logic '''0''' output of the inverter, and is seen at the output when <math>V_H</math> or logic '''1''' is placed at the input of the inverter. | ||
Line 56: | Line 67: | ||
In the ideal inverter VTC in Fig. 1, we see that we have two flat regions (zero gain) and a vertical region (infinite gain). However, in a non-ideal VTC, the zero gain regions degrade into low gain regions where the absolute value of the slope is typically less than 1, and a high-gain region where the absolute value of the slope is greater than 1. The boundaries between the high- and low-gain regions are marked by the points where the absolute value of the slope of the VTC is equal to 1. | In the ideal inverter VTC in Fig. 1, we see that we have two flat regions (zero gain) and a vertical region (infinite gain). However, in a non-ideal VTC, the zero gain regions degrade into low gain regions where the absolute value of the slope is typically less than 1, and a high-gain region where the absolute value of the slope is greater than 1. The boundaries between the high- and low-gain regions are marked by the points where the absolute value of the slope of the VTC is equal to 1. | ||
− | The | + | The two points with a slope of <math>-1</math> are shown in Fig. 5 and are located at the following coordinates: |
* (<math>V_{IL}, V_{OH}</math>) | * (<math>V_{IL}, V_{OH}</math>) | ||
* (<math>V_{IH}, V_{OL}</math>) | * (<math>V_{IH}, V_{OL}</math>) | ||
Line 62: | Line 73: | ||
Where <math>V_{IL}</math> is the highest input voltage the inverter will still consider as a low voltage. Anything above this places the inverter in the high-gain region of the VTC, making it sensitive to noise and interference. Similarly, <math>V_{IH}</math> is the lowest input voltage the inverter will still consider as a high voltage. | Where <math>V_{IL}</math> is the highest input voltage the inverter will still consider as a low voltage. Anything above this places the inverter in the high-gain region of the VTC, making it sensitive to noise and interference. Similarly, <math>V_{IH}</math> is the lowest input voltage the inverter will still consider as a high voltage. | ||
− | + | ||
− | |||
− | |||
− | |||
== Noise in Digital Circuits == | == Noise in Digital Circuits == |
Revision as of 15:58, 10 March 2021
To understand the analysis and design of digital circuits, we will look at its fundamental element -- the digital gate. We will start with the simplest digital gate, the inverter.
Contents
The Inverter Voltage Transfer Characteristics (VTC)
The functionality of the inverter can be captured by looking at the output voltage as we change the input voltage, or the voltage-transfer characteristic (VTC).
The Ideal Inverter VTC
Let us define an ideal inverter, where:
-
(1)
-
Where is logic 1 voltage level, and in general may or may not be equal to the positive supply voltage, , and is logic 0 voltage level, and in general may or may not be equal to the negative supply voltage, . The VTC of this ideal inverter, as well as the standard inverter circuit symbol, is shown in Fig. 1.
Inverter Implementations
One implementation of the inverter is to use a single NMOS transistor and a resistor, as shown in Fig. 2. Using our switch model for the NMOS transistor, we can see that when the input is low or at logic 0, the output is pulled up to since the switch is open. When the input voltage is equal to , the switch is closed and the output is pulled down close to ground. For a finite on switch resistance, , the output voltage becomes:
-
(2)
-
Note that a finite will degrade (increase) low output voltage or logic 0 level. Additionally, the when the output of the NMOS inverter is low, there is a non-zero current flowing through the resistor, resulting in static power consumption, or power consumed from the supply even when there is no switching activity present in the circuit.
Another implementation of the inverter is to use an NMOS and a PMOS transistor. This complementary (CMOS) configuration turns on only one switch at a time since the gates of the two transistors are connected to each other. Thus, an input voltage of will turn on (close) the NMOS switch, and turn off (open) the PMOS switch since the gate-to-source voltage of the PMOS transistor is zero, pulling the inverter output down to ground. When the input voltage is ground or logic 0, the NMOS switch is open and the PMOS is closed, pulling the output up to .
Note that due to the complementary function of the CMOS inverter, there is no static current flowing when the output is either at logic 0 or logic 1. However, current will flow during the transition from 01 or 10.
We can derive the VTC of any inverter by determining the regions of operation of each transistor as we vary the input voltage. Fig. 4 shows the VTC of the CMOS inverter with the corresponding regions of operation, which are dependent on the input and output voltages. Note that:
- .
Static Design Metrics
The general form of the inverter voltage transfer characteristic is shown in Fig. 5. We can define several metrics to enable us to determine how close the real VTC is to the ideal VTC.
Consider the cascaded inverter in Fig. 6:
- is the output high or logic 1 output of the inverter, and is seen at the output when or logic 0 is placed at the input of the inverter.
- is the output low or logic 0 output of the inverter, and is seen at the output when or logic 1 is placed at the input of the inverter.
In the ideal inverter VTC in Fig. 1, we see that we have two flat regions (zero gain) and a vertical region (infinite gain). However, in a non-ideal VTC, the zero gain regions degrade into low gain regions where the absolute value of the slope is typically less than 1, and a high-gain region where the absolute value of the slope is greater than 1. The boundaries between the high- and low-gain regions are marked by the points where the absolute value of the slope of the VTC is equal to 1.
The two points with a slope of are shown in Fig. 5 and are located at the following coordinates:
- ()
- ()
Where is the highest input voltage the inverter will still consider as a low voltage. Anything above this places the inverter in the high-gain region of the VTC, making it sensitive to noise and interference. Similarly, is the lowest input voltage the inverter will still consider as a high voltage.