Difference between revisions of "CoE 197U The CMOS Inverter"
Line 22: | Line 22: | ||
|} | |} | ||
− | 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 <math>V_{DD}</math> since the switch is open. When the input voltage is equal to <math>V_{DD}</math>, the switch is closed and the output is pulled down close to ground. For a finite on switch resistance, <math>R_{ON}</math>, the output voltage becomes: | + | 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 <math>V_{DD}</math> since the switch is open. When the input voltage is equal to <math>V_{DD}>V_{TH}</math>, the switch is closed and the output is pulled down close to ground. For a finite on switch resistance, <math>R_{ON}</math>, the output voltage becomes: |
{{NumBlk|::|<math> | {{NumBlk|::|<math> | ||
v_O = \frac{R_{ON}}{R_{ON} + R}\cdot V_{DD} | v_O = \frac{R_{ON}}{R_{ON} + R}\cdot V_{DD} | ||
</math>|{{EquationRef|2}}}} | </math>|{{EquationRef|2}}}} | ||
+ | |||
+ | Note that a finite <math>R_{ON}</math> 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. | ||
{| | {| | ||
Line 33: | Line 35: | ||
|- | |- | ||
|} | |} | ||
+ | |||
+ | 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 <math>V_{DD}>V_{TH}</math> 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 <math>V_{DD}</math>. | ||
+ | |||
+ | 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'''. | ||
== Static Design Metrics == | == Static Design Metrics == |
Revision as of 13:39, 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.
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.
Static Design Metrics
In real inverters, the VTC can deviate from the ideal