Title: Digital Logic Circuits Review I
1Digital Logic Circuits Review I
- Dr. Voicu Groza
- SITE Hall, Room 5017
- 562 5800 ext. 2159
- Groza_at_SITE.uOttawa.ca
2Outline
- Logic Function
- Boolean Algebra
- Logic Functions Minimization
- Logic Gates and Combinational Circuits
3Logic function
- z F(x0, x1, x2, ) z ?0, 1, xk ?0, 1, k
0,1,2, - F can be represented by
- logic expression
- truth table
- K-map
x0 x1 x2 x3
Logic Circuit
z
Logic Inverter
x z
z x
4- BOOLEAN ALGEBRA
- B, , , ?, 0, 1, where
- B set with at least 2 distinct elements
- 0, 1 2 constants ? B
- OR
- ? AND
- equivalence relationship, with usual
properties - reflexivity (? x ? B) ? (x x)
- symmetry (? x, y ? B) ? (x y ? y x)
- transitivity (? x, y, z ? B) ? (x y and y z
? x z) - Parentheses are allowed
5(No Transcript)
6 Proof
7 Proof
8DeMorgans Theorems
9Minterms
10Canonical form of logic function
Sum of Products F ABC ABC ABC ABC Sum
of minterms F S (m2, m3, m5,
m7)
F S (2, 3, 5, 7)
11Simplifying logic functions using Boolean algebra
rules
A
B
C
12 Karnaugh map gt graphical representation of a
truth table of a logic function.
Each line in the truth table corresponds to a
square in the Karnaugh map.
The Karnaugh map squares are labeled so that
horizontally or vertically adjacent squares
differ only in one variable. (Each square in the
top row is considered to be adjacent to a
corresponding square in the bottom row. Each
square in the left most column is considered to
be adjacent to a corresponding square in
the right most column.)
Recommending for functions represented by
sum of minterms logic expressions
13Recommend for functions represented by sum of
minterms logic expressions
14Implicants
- Given a logic function z F(x0, x1, x2, )
- Implicant product term that,
- if equal to 1, implies f 1
- whenever the implicant is 1gt f 1
- f can be 1 other times, as well may be implied
by other implicants, than the 1 at hand - from the K-map point of view, an implicant is a
rectangle of 1, 2, 4, 8, (any power of 2) 1s - Prime Implicant cannot be totally covered by
another implicant - (e.g., AC, BC, AB)
- Each 1 which is covered by a single implicant
is marked with a star () - Essential Prime Implicant a prime implicant
that contains at least one 1 - A minimum cover of a logic function has to
contain all its prime implicants
F
B
0 1 3 2
B C
0 0 1 1
4 5 7 6
0 1 1 0
A
A B C
C
A C
B
0 1 3 2
A C
0 0 1 1
4 5 7 6
0 1 1 0
A
B C
C
15The logic function can be simplified by replacing
canonical terms with a minimum cover of prime
implicants, obtained by properly combining
squares (looping) of the Karnaugh maps which
contain 1s.
A B C F (0) 0 0 0 0 (1)
0 0 1 0 (2) 0 1 0 1 (3) 0
1 1 1 (4) 1 0 0 0 (5) 1 0
1 1 (6) 1 1 0 0 (7) 1 1
1 1
B
A B
0 1 3 2
0 0 1 1
4 5 7 6
0 1 1 0
A
B C
C
A C
16(No Transcript)
17Equivalent Gate Symbols
A . B
18TWO-LEVEL NAND gate implementation of the
sum-of-product logic functions
19Incompletely Specified Logic Functions
dc -gt x dont care terms
20(No Transcript)
21(No Transcript)
22(Set-Reset)
SET
RESET
Weird state
Set state
HOLD
Reset state
Hold state
23Characteristic (functional) table
Q(t?t) D(t)
0 0 1 1
0 1 1 1
1 0 1 0
0 1
1 0
1 1 0 1
24(No Transcript)
25(No Transcript)
26Connection diagram of the 7474 Dual
Positive-Edge-Triggered D Flip-Flops with
Preset and Clear.
27(No Transcript)
28CHARACTERISTIC (FUNCTIONAL) TABLE
EXCITATION TABLE
29CHARACTERISTIC (FUNCTIONAL) TABLE
EXCITATION TABLE
30Synchronous 4-bit Counter
31(No Transcript)
32Excitation Equations
33Implementation of 4-bit synchronous counter
34Another Synchronous 4-bit Counter
Using D flip-flops has the distinct advantage of
a straightforward definition of the flip-flop
inputs the current state of these inputs is
the next state of the counter .
The logic equations for all four flip-flop
inputs D3, D2,
D1, and D0 are
derived from this
truth
table as
functions of the
current states of the
counters
flip-flops
Q3, Q2, Q1, and Q0.
Karnaugh maps can
be used
to simplify
these equations.
35(No Transcript)
36(No Transcript)
37Memory Unit
- Capacity
- 2k words
- 1 word n bits
- Read operation (RD)
- Apply address to address bus (Ak-1A0)
- Apply control signal (RD) to have data appear on
data bus (Dout) - Read data from data bus to destination register