Professional Documents
Culture Documents
Nana Diawuo
Objectives
Look at the implementation of the logic gates and devices using;
• Diode
• Diode Resistor logic [DRL]
• Transistor as an invertor
• Bipolar Transistor Logic [BTL]
• Resistor Transistor logic [RTL]
• Diode Transistor Logic [DTL]
• Transistor Transistor Logic [TTL]
• nMOS Implementation
• CMOS Implementation
Diode
A diode can be modelled as
• To realize the basic idea, the diodes are reverse connected and forward
biased by an additional voltage source +V (a power supply) through the
pull-up resistor R1.
• The input voltage sources are connected in opposite direction to the
supplying voltage source (traveling along the loop +V - R1 - D - Vin). To
invert the output voltage and to get a grounded output, the
complementary voltage drop (+V - VR1) between the output and ground
is taken as an output instead the floating voltage drop VR1 across the
resistor.
Input logic ‘1’
• When all the input voltages are high, they "neutralize" the biasing
supply voltage +V. The voltage drops across the diodes are zero and
these diode switches are open.
• The output voltage is high (output logical 1) since no current flows
through the resistor and there is no voltage drop across it. The output
resistance is R1. Hence, the behavior of the diode switches is
reversed - whereas in diode OR logic gates diodes act as normally
open switches, in diode AND logic gates diodes act as normally closed
switches.
Input logic ‘0’
• If the voltage of some input voltage source is low, the power supply
passes current through the resistor, diode and the input source. The
diode is forward biased (the diode switch is closed) and the output
voltage drop across the diode is low.
• The output resistance is low and is determined by the input source.
The rest of diodes connected to high input voltages (input logical 1s)
are backward biased and their input sources are disconnected from
the output Node 1.
• A diode AND gate uses its own power supply to drive the load
through the pull-up resistor.
Diodes can perform digital logic functions: AND, and OR.
• Of course, the higher the voltage, the higher the power consumed
and the more heat the circuit generates.
• And no matter what you set the power supply to, there is still a limit
to the number of logic levels that can be cascaded. This is hardly an
adequate solution.
Bipolar Transistor Logic (Resistor–transistor logic
(RTL) )
•Next, we examine how to build logic gates
from bipolar transistors, the dominant
technology of the 1970s and early 1980s.
• The diodes marked D1 and D2, together with resistor R1, form a
two-input AND function.
• At the input to D3, a logic 0 is represented by approximately 0.7 V,
while a logic 1 is in the range 4 to 5 V.
• D3 increases the voltage required to turn on the transistor. This
gives a better separation between the voltage levels recognized as
a logic 0 and logic 1.
•For the transistor to conduct, D3 must be turned on. This
happens when the anode voltage reaches 1.4 V.
•If the voltage at the anode is much higher than this, the
base will be driven to a high voltage.
• The transistor will be strongly turned on, with low
resistance, and thus F will be discharged toward 0 V. If the
anode is at a low voltage, the base will also be low.
•This keeps the transistor off (essentially infinite resistance)
allowing the output node to reach a logic 1 voltage level.
•Gates constructed as in above have a limit to the number of gate
inputs to which their output can be connected. This is called
fan-out.
Transistor-Transistor Logic
•We can think of a bipolar transistor as two diodes placed very
close together, with the point between the diodes being the
transistor base.
•Thus, we can use transistors in place of diodes to obtain logic
gates that can be implemented with transistors and resistors
only.
•This is called transistor-transistor logic (TTL), and it is the most
widely used family of components available today.
A two-input TTL NAND gate is shown below
•Up until this point, our analysis of transistor logic circuits has
been limited to the TTL design paradigm, whereby bipolar
transistors are used, and the general strategy of floating inputs
being equivalent to "high" (connected to Vcc) inputs -- and
correspondingly, the allowance of "open-collector" output
stages -- is maintained.
•This, however, is not the only way we can build logic gates.
IGFET logic gates (insulated-gate Field-effect
transistors)
•insulated-gate variety, may be used
in the design of gate circuits. Being
voltage-controlled rather than
current-controlled devices, IGFETs
tend to allow very simple circuit
designs.
• The lower transistor, having zero voltage between gate and substrate
(source), is in its normal mode: off. Thus, the action of these two
transistors are such that the output terminal of the gate circuit has a
solid connection to Vdd and a very high resistance connection to
ground. This makes the output "high" (1) for the "low" (0) state of the
input.
• move the input switch to its other position and see what happens.
Now the lower transistor (N-channel) is saturated because it has
sufficient voltage of the correct polarity applied between gate and
substrate (channel) to turn it on (positive on gate, negative on the
channel).
• The upper transistor, having zero voltage applied between its gate
and substrate, is in its normal mode: off. Thus, the output of this gate
circuit is now "low" (0). Clearly, this circuit exhibits the behavior of an
inverter, or NOT gate.
• Using FET instead of bipolar transistors has greatly simplified the
design of the inverter gate
• it has a natural "totem-pole" configuration, capable of both sourcing
and sinking load current
• Key to this gate circuit's elegant design is the complementary use of
both P- and N-channel IGFETs
Note;
•Since IGFETs are more commonly known as MOSFETs
(Metal-Oxide-Semiconductor Field Effect Transistor), and
this circuit uses both P- and N-channel transistors together,
•the general classification given to gate circuits like this one is
CMOS
CMOS: Complementary Metal Oxide Semiconductor.
nMOS logic Gate
A Vin T OUTP F
UT
0 0 OFF VDD 1
1 +5 ON VSS 0
nMOS NOR Gate
A B T1 T2 Output F
0 1 OFF ON 0 0
1 0 ON OFF 0 0
1 1 ON ON 0 0
A B T1 T2 Output F
0 1 OFF ON VDD 1
1 0 ON OFF VDD 1
1 1 ON ON 0 0
A Vin T1 T2 OUT F
PUT
0 0 ON OFF VDD 1
1 +5 OFF ON 0 0
NAND logic gate implementations with
CMOS
Truth Table
A B T1 T2 T3 T4 Outp F
ut
0 0 ON ON OF OF 0 0
T1 F F
0 1 ON OF OF ON VDD 1
F F
T2 1 0 OF ON ON OF VDD 1
F F
1 1 OF OF ON ON VDD 1
F F
T3 T4
NAND logic gate implementations with
CMOS
• constructed from two nMOS transistors in series between the output
node and ground and two pMOS transistors in parallel between the
output node and the power supply.
• A path between the output node and ground can be established only
when both of the nMOS transistors are conducting. This happens only if
A and B are both at a logic 1. In this case, the two pMOS transistors are
not conducting, breaking all paths between the output node and the
logic 1 at the power supply. This is the case A = B = 1, output = 0.
• Now what happens if one or both of A and B are at a logic 0? Let's take
the case A = 0 and B = 1
• The nMOS transistor controlled by A is not conducting, breaking the
path from the output to ground. The pMOS transistor it controls is
conducting, establishing the path from the power supply to the
output. The other path, controlled by B, is broken, but this has no
effect on the output node as long as some path exists between it and
some voltage source.