Chap2-8 (Chap 2-7 in 3 rd ed.)

Download Report

Transcript Chap2-8 (Chap 2-7 in 3 rd ed.)

CS 151
Introduction to Digital Design
Chapter 2-8
Other Gate Types
1
Other Gate Types

Why?




Gate classifications



Implementation feasibility and low cost
Power in implementing Boolean functions
Convenient conceptual representation
Primitive gate - a gate that can be described using a
single primitive operation type (AND or OR) plus an
optional inversion(s).
Complex gate - a gate that requires more than one
primitive operation type for its description
Primitive gates will be covered first
CS 151
2
Primitive Digital Logic Gates
CS 151
3
Buffer

A buffer is a gate with the function F = X:
X


F
In terms of Boolean function, a buffer is the
same as a connection!
So why use it?

A buffer is an electronic amplifier used to improve
circuit voltage levels and increase the speed of
circuit operation.
CS 151
4
The 3-State Buffer



For the symbol and truth
Symbol
table, IN is the data input,
OUT
and EN, the control input. IN
For EN = 0, regardless of EN
the value on IN (denoted
Truth Table
by X), the output value is
EN IN OUT
Hi-Z.
0
X
Hi-Z
For EN = 1, the output
1
0
0
value follows the input
1
1
1
value.
CS 151
5
NAND Gate

The basic NAND gate has the following symbol,
illustrated for three inputs:

AND-Invert (NAND)
X
Y
Z


F( X , Y, Z ) = X ×Y ×Z
NAND represents NOT AND, i. e., the AND function
with a NOT applied. The symbol shown is an ANDInvert. The small circle (“bubble”) represents the
invert function.
What does the truth table for NAND look like?
CS 151
6
NAND Gates (continued)




Applying DeMorgan's Law gives Invert-OR1 (NAND)
X
Y
Z
F( X , Y , Z ) = X + Y + Z
This NAND symbol is called Invert-OR, since inputs are
inverted and then ORed together.
AND-Invert2 and Invert-OR both represent the NAND
gate. Having both makes visualization of circuit function
easier.
A NAND gate with one input degenerates to an inverter.
1.
Also called NOT-OR
2.
Also called AND-NOT
CS 151
7
NAND Gates (continued)


Universal gate - a gate type that can implement any
Boolean function.
The NAND gate is a universal gate as shown:
CS 151
8
NOR Gate

The basic NOR gate has the following symbol,
illustrated for three inputs:

OR-Invert (NOR)
X
Y
Z


F(X, Y, Z) = X +Y+ Z
NOR represents NOT - OR, i. e., the OR function
with a NOT applied. The symbol shown is an ORInvert. The small circle (“bubble”) represents the
invert function.
What does the truth table for NOR look like?
CS 151
10
NOR Gate (continued)




Applying DeMorgan's Law gives Invert-AND (NOR)
X
Y
Z
This NOR symbol is called Invert-AND, since inputs
are inverted and then ANDed together.
OR-Invert and Invert-AND both represent the NOR
gate. Having both makes visualization of circuit
function easier.
A NOR gate with one input degenerates to an
inverter.
CS 151
11
NOR Gate (continued)

The NOR gate is a universal gate
CS 151
12
Complex Digital Logic Gates
CS 151
13
More Complex Gates



Exclusive OR and Exclusive
NOR gates will be
presented text class.
The remaining complex
gates are SOP or POS
structures with and without
an output inverter.
The names are derived
using:




A - AND
O - OR
I - Inverter
Numbers of inputs on firstlevel “gates” or directly to
second-level “gates”
CS 151
14
More Complex Gates (continued)



Example: AOI - AND-OR-Invert
consists of a single gate with
AND functions driving an OR
2-2 AOI
function which is inverted.
Example: 2-2-1 AO has two 2input ANDS driving an OR with
one additional OR input:
2-2 OAI
F = XY + YZ + W
These gate types are used
because:


the number of transistors
needed is fewer than required
by connecting together
primitive gates
potentially, the circuit delay is
smaller, increasing the circuit
operating speed
CS 151
15