Lec-5a-DigitalDesign
Lec-5a-DigitalDesign
Overview
• Part 1 – Gate Circuits and Boolean Equations
• Binary Logic and Gates
• Boolean Algebra
• Standard Forms
Binary Variables
• Recall that the two binary values have
different names:
• True/False
• On/Off
• Yes/No
• 1/0
• We use 1 and 0 to denote the two values.
• Variable identifier examples:
• A, B, y, z, or X1 for now
• RESET, START_IT, or ADD1 later
Logical Operations
• The three basic logical operations are:
• AND
• OR
• NOT
• AND is denoted by a dot (·).
• OR is denoted by a plus (+).
• NOT is denoted by an overbar ( ¯ ), a single
quote mark (') after, or (~) before the
variable.
Notation Examples
• Examples:
• Y A B is read “Y is equal to A AND B.”
• z x y is read “z is equal to x OR y.”
•
X A is read “X is equal to NOT A.”
AND OR NOT
0·0=0 0+0=0 0 1
0·1=0 0+1=1 1 0
1·0=0 1+0=1
1·1=1 1+1=1
Truth Tables
• Truth table a tabular listing of the values of a
function for all possible combinations of values
on its arguments
• Example: Truth tables for the basic logic
operations:
AND OR NOT
X Y Z = X·Y X Y Z = X+Y X ZX
0 0 0 0 0 0 0 1
0 1 0 0 1 1 1 0
1 0 0 1 0 1
1 1 1 1 1 1
25/08/23 8 Indian Institute of Technology Patna
9
• Light is on (L = 1) for
L(A, B, C, D) =
and off (L = 0), otherwise.
• Useful model for relay circuits and for
CMOS gate circuits, the foundation of
current digital logic technology
Logic Gates
1
Y 0 1 0 1
(AND) X · Y 0 0 0 1
(OR) X1 Y 0 1 1 1
(NOT) X 1 1 0 0
(b) Timing diagram
P
a
r
t
Gate ICs
p
t
e
r
P
a
r
t
Useful Theorems
0
Proof of Simplification
2
xy+xy=y
(x + y ) ( x + y ) = y
F1 xy z x y z F1 F2 F3 F4
F2 x yz 0 0 0 0 0
F3 xyz x y z xy 0 0 1 0 1
F4 xy x z 0 1 0 0 0
0 1 1 0 0
1 0 0 0 1
1 0 1 0 1
1 1 0 1 1
1 1 1 0 1
Complementing Functions
• Use DeMorgan's Theorem to complement
a function:
1. Interchange AND and OR operators
2. Complement each constant value and
literal
• Example: Complement
• F = xy z xyz
• F = (x + y + z)(x + y + z)
• Example: Complement G = (a + bc)d + e
G=
25/08/23 24 Indian Institute of Technology Patna
2
Canonical Forms
Minterms
• Minterms are AND terms with every variable
present in either true or complemented form.
• Given that each binary variable may appear
normal (e.g., x) or complemented (e.g., x ),
there are 2n minterms for n variables.
• Example: Two variables (X and Y)produce
2 x 2 = 4 combinations:
XY (both normal)
X Y (X normal, Y complemented)
X Y (X complemented, Y normal)
X Y (both complemented)
• Thus there are four minterms of two variables.
25/08/23 27 Indian Institute of Technology Patna
2
8
Maxterms
• Maxterms are OR terms with every variable in
true or complemented form.
• Given that each binary variable may appear
normal (e.g., x) or complemented (e.g., x),
there are 2n maxterms for n variables.
• Example: Two variables (X and Y) produce
2 x 2 = 4 combinations:
X Y (both normal)
X Y (x normal, y complemented)
(x complemented, y normal)
X Y (both complemented)
X Y
25/08/23 28 Indian Institute of Technology Patna
2
9
Standard Order
• Minterms and maxterms are designated with a subscript
• The subscript is a number, corresponding to a binary
pattern
• The bits in the pattern represent the complemented or
normal state of each variable listed in a standard order.
• All variables will be present in a minterm or maxterm
and will be listed in the same order (usually
alphabetically)
• Example: For variables a, b, c:
• Maxterms: (a + b + c), (a + b + c)
• Terms: (b + a + c), a c b, and (c + b + a) are NOT in
standard order.
• Minterms: a b c, a b c, a b c
• Terms: (a + c), b c, and (a + b) do not contain all
variables
25/08/23 30 Indian Institute of Technology Patna
3
1
• Minterms of Maxterms of
2 variables 2 variables
xy m0 m1 m2 m3 x y M0 M1 M2 M3
00 1 0 0 0 00 0 1 1 1
01 0 1 0 0 01 1 0 1 1
10 0 0 1 0 10 1 1 0 1
11 0 0 0 1 11 1 1 1 0
Observations
• In the function tables:
• Each minterm has one and only one 1 present in the 2n terms (a minimum of 1s).
All other entries are 0.
• Each maxterm has one and only one 0 present in the 2n terms All other entries are
1 (a maximum of 1s).
• F( A, B, C, D ) M 3 M8 M11 M14
• F(A, B,C,D) =
• Example:
F A BC
• There are three variables, A, B, and C which we take to
be the standard order.
• Expanding the terms with missing variables:
Function Complements
• The complement of a function expressed as
a sum of minterms is constructed by
selecting the minterms missing in the sum-
of-minterms canonical forms.
• Alternatively, the complement of a function
expressed by a Sum of Minterms form is
simply the Product of Maxterms with the
same indices.
• Example: Given F ( x , y , z ) m (1, 3, 5, 7 )
F(x, y, z) m(0,2,4,6)
F(x, y, z) M(1,3,5,7)
25/08/23 46 Indian Institute of Technology Patna
4
Standard Forms
• A Simplification Example:
• F( A , B, C) m(1,4,5,6,7 )
• Writing the minterm expression:
F = A B C + A B C + A B C + ABC + ABC
• Simplifying:
F=
SOP Expression