Mdm unit 1
Mdm unit 1
S. Y. B. Tech
Academic Year 2020-21
Subject Name: Digital System Design
Unit-1
Combinational logic Design
Number System
1) Decimal number
2) Binary
3) Octal number
4) Hexadecimal number
Quotient Remainder
12/2 6 0 LSB
6/2 3 0
3/2 1 1
1/2 0 1 MSB
12= 1100
1) 11111.11
16+8+4+2+1+0.5+0.25
(31.75)
2) 110001.101
3) 1110001
4) 1110011
5) 100001
Decimal to octal conversion
247 quotient Remainder
247/8 30 7 least significant
30/8 3 6
3/8 0 3 Most significant
247 = 367 octal number
Number System
Decimal Octal Binary Decimal Octal Binary
0 0 000 11 13 1011
1 1 001 12 14 1100
2 2 010 13 15 1101
3 3 011 14 16 1110
4 4 100 15 17 1111
5 5 101
6 6 110 1) Convert 1001110 to to its octal equivalent
7 7 111
001 001 110
8 10 1000
116
9 11 1001 2) Convert (0.10100110) to its equivalent octal
10 12 1010 number
0.101 001 100
0.514
It is highly inconvient to handle long strings of binary numbers. It may cause error also, therefore, the knowledge of octal number system is
very important
Number System
Binary Addition
Binary subtraction
1) Sign magnitude
2) One’s complement 3) Two’s complement
rather the same adder circuit is used two times to perform subtraction
1 1 1
1) Perform binary subtraction using two’s
complement representation of negative
numbers
0111
i) 7
1011
-5
2
1 0 01 0
7 = 0111 Discard carry Ans
5 = 0101
1’s comp of 5 =1010
is positive
+
2’s comp of 5 1011
1 =2
ii) 5 5 = 0101 -7 = 0111 0101
-7 One’s complement of 7 1000 + 1001
-2 (1110) + 1 1110
Two’s complement of 7 1001 Ans = -2 Ans is Two’s
o complement form
If carry =0, ans is negative and it is in its 2’complement form.
Two’s Complement Arithmetic
i) 48 + (-23)
0 1
1 0
0 0 0
0 1 0
1 0 0
1 1 1
0 0 0
0 1 1
1 0 1
1 1 1
Logic Gates
Truth Table of NAND Gate IC 7400
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
T1 : Properties of 0
(a) 0 + A = A
(b) 0 A = 0
T2 : Properties of 1
(a) 1 + A = 1
(b) 1 A = A
Basic Theorem of Boolean Algebra
T3 : Commutative Law
(a) A + B = B + A
(b) A B = B A
T4 : Associate Law
(a) (A + B) + C = A + (B + C)
(b) (A B) C = A (B C)
T5 : Distributive Law
(a) A (B + C) = A B + A C
(b) A + (B C) = (A + B) (A + C)
(c) A+A’B = A+B
Basic Theorem of Boolean Algebra
T8 : Complementary Law
(a) X+X’=1
(b) X.X’=0
T9 : Involution
(a) x’’ = x
T10 : De Morgan's Theorem
(a) (X+Y)’=X’.Y’
(b) (X.Y)’=X’+Y’
Boolean Algebra
▪ Reduction of hardware
= B(D’ + C’D)
= B (D’ + C’)
Two 2I/P AND gate , one 2 I/P OR gate
▪ Reduction of size
Y= A + A’B + AB’
= A + A’B + AB’ [A + A’B = A + B]
In combinational circuits, the outputs of any instant of time depend upon the inputs
present at that instance of time. This means there is no memory in these circuits.
1) Mux
2) Demux
3) Logic gates
Sequential circuit
1) Flip flop
2) Shift register
3) counter
Hardware Circuit
SOP equation
as
implemented
using Only NAND
gates
Sum of product form
Y= (A+BC) (B+C’A)
Y=AB + AC’A + BBC +BCC’A
A.A.C’ = (A.A) . C’ = AC’ Theorem 1.6
B.B.C = (B.B).C = BC Theorem 1.6
BCC’A =B.(C.C’).A = B.0.A = 0. Theorem 1.4
Y = AB + AC’ + BC
Hardware Circuit
Hardware circuit
Products of Sums form
Y = (A + BC) (B +C’A)
Theorem A + BC = (A + B) (A + C) using this
theorem
Y = (A + B) (A + C) (B + C’) (B + A)
Theorem 1.6 A.A = A
Y= (A + B) (A + C) (B + C’)
The representation of above is known as
product-of-sums (POS) form. This can be
realised using OR-AND gates as shown in Fig.
Above equation can be realised using NOR gates only. This realisation is given in Fig. which is two level realisation.
Hence, if we express the equation in POS form we can always design the circuit using
only one type of gates (NOR).
To design any digital circuit
Problem statement
Functional table
Functional table Using
equation
equation
Logical
Logical equation reduction
method
Circuit
Minterm and Maxterm for 4 variable
=(A+B+C.C’) (A+B.B’+C)(A.A’+B+C)
=(A+B+C)(A+B+C’)(A+B+C)(A+B’+C)(A+B+C)(A’+B+C)
=(A+B+C)(A+B+C’)(A+B’+C)(A’+B+C)
Kmap
3A.1 Introduction
37
reduces to F(x) = z.
You could
verify this
reduction with
identities or a
truth table.
3A.3 Kmap Simplification
59 for Three Variables
Now for a more complicated Kmap. Consider the
function:
What about
the green
group in the
top row?
3A.3 Kmap Simplification
61 for Three Variables
The green group in the top row tells us that only the
value of x is significant in that group.
We see that it is complemented in that row, so the
other term of the reduced function is .
Our reduced function is:
Recall that we
had six minterms
in our original
function!
3A.3 Kmap Simplification for Four
62 Variables
Our model can be extended to accommodate the
16 minterms that are produced by a four-input
function.
This is the format for a 16-minterm Kmap.
3A.3 Kmap Simplification for Four
63 Variables
We have populated the Kmap shown below with the
nonzero minterms from the function:
Recall
that
groups
can
overlap.
3A.3 Kmap Simplification for Four
64 Variables
Our three groups consist of:
A purple group entirely within the Kmap at the
right.
A pink group that wraps the top and bottom.
A green group that spans the corners.
Thus we have three terms in our final function:
3A.3 Kmap Simplification for Four
65 Variables
It is possible to have a choice as to how to pick
groups within a Kmap, while keeping the groups
as large as possible.
The (different) functions that result from the
groupings below are logically equivalent.
3A.6 Don’t Care Conditions
66
Real circuits don’t always need to have an output
defined for every possible input.
For example, some calculator displays consist
of 7-segment LEDs. These LEDs can display 2 7 -
1 patterns, but only ten of them are useful.
If a circuit is designed so that a particular set of
inputs can never happen, we call this set of inputs
a don’t care condition.
They are very helpful to us in Kmap circuit
simplification.
3A.6 Don’t Care Conditions
67
In a Kmap, a don’t care condition is identified by
an X in the cell of the minterm(s) for the don’t care
inputs, as shown below.
In performing the simplification, we are free to
include or ignore the X’s when creating our
groups.
3A.6 Don’t Care Conditions
68
BC BC BC BC
A 00 01 11 10 A 00 01 11 10 A 00 01 11 10 A 00 01 11 10
0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 1 1
1 1 0 0 0 1 1 1 0 0 1 1 1 0 0 1 0 0 0 0
BC BC BC BC
A 00 01 11 10 A 00 01 11 10 A 00 01 11 10 A 00 01 11 10
0 0 1 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 1
1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 1 1 0 0 1
Three-Variable K-Map Examples
BC BC BC
A 00 01 11 10 A 00 01 11 10 A 00 01 11 10
0 1 0 1 1 1 0 1 1
1 1 1 1 1 1 1 1 1 1
BC BC BC
A 00 01 11 10 A 00 01 11 10 A 00 01 11 10
0 1 0 1 1 1 0
1 1 1 1 1 1 1 1
Four-Variable K-Maps
CD CD CD CD
00 01 11 10 00 01 11 10 00 01 11 10 00 01 11 10
AB AB AB AB
00 1 0 0 0 00 0 0 0 0 00 0 0 0 0 00 0 0 0 0
01 0 0 0 0 01 0 1 0 0 01 0 0 0 0 01 1 0 0 1
11 0 0 0 0 11 0 1 0 0 11 0 1 1 0 11 0 0 0 0
10 1 0 0 0 10 0 0 0 0 10 0 0 0 0 10 0 0 0 0
CD CD CD CD
AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10 AB 00 01 11 10
00 0 0 1 1 00 0 0 0 0 00 0 0 1 1 00 1 0 0 1
01 0 0 1 1 01 1 0 0 1 01 0 0 0 0 01 0 0 0 0
11 0 0 0 0 11 1 0 0 1 11 0 0 0 0 11 0 0 0 0
10 0 0 0 0 10 0 0 0 0 10 0 0 1 1 10 1 0 0 1
01 1 1 1 1 01 0 0 1 0 01 0 1 0 1 01 1 0 1 0
11 0 0 0 0 11 0 0 1 0 11 1 0 1 0 11 0 1 0 1
10 0 0 0 0 10 0 0 1 0 10 0 1 0 1 10 1 0 1 0
CD CD CD CD
00 01 11 10 00 01 11 10 00 01 11 10 00 01 11 10
AB AB AB AB
00 0 1 1 0 00 1 0 0 1 00 0 0 0 0 00 1 1 1 1
01 0 1 1 0 01 1 0 0 1 01 1 1 1 1 01 0 0 0 0
11 0 1 1 0 11 1 0 0 1 11 1 1 1 1 11 0 0 0 0
10 0 1 1 0 10 1 0 0 1 10 0 0 0 0 10 1 1 1 1
01 1 1 1 01 1 01 1 1 1
11 1 1 1 11 11 1 1 1
10 1 1 10 1 1 1 10 1
CD CD CD
00 01 11 10 00 01 11 10 00 01 11 10
AB AB AB
00 1 1 00 00
01 1 1 1 1 01 01
11 1 1 1 11 11
10 1 10 10
Four-Variable K-Maps Examples
CD CD CD
00 01 11 10 00 01 11 10 00 01 11 10
AB AB AB
00 00 00
01 01 01
11 11 11
10 10 10
CD CD CD
00 01 11 10 00 01 11 10 00 01 11 10
AB AB AB
00 00 00
01 01 01
11 11 11
10 10 10
Four-Variable K-Maps Examples
CD CD CD
00 01 11 10 00 01 11 10 00 01 11 10
AB AB AB
00 00 00
01 01 01
11 11 11
10 10 10
CD CD CD
00 01 11 10 00 01 11 10 00 01 11 10
AB AB AB
00 00 00
01 01 01
11 11 11
10 10 10
Design of combinational digital circuits
Steps to design a combinational digital circuit:
From the problem statement derive the truth table
From the truth table derive the unsimplified logic expression
Simplify the logic expression
From the simplified expression draw the logic circuit
Example: Design a 3-input (A,B,C) digital circuit that will give at its output
(X) a logic 1 only if the binary number formed at the input has more
ones Inputs
than zeros.
Output
A B C X X = (3, 5, 6, 7)
0 0 0 0 0
1 0 0 1 0 X
BC
2 0 1 0 0 A 00 01 11 10
3 0 1 1 1 0 0 0 1 0
4 1 0 0 0 1 0 1 1 1
5 1 0 1 1
6 1 1 0 1
7 1 1 1 1 X = AC + AB + BC
A B C
Design of combinational digital circuits
Steps to design a combinational digital circuit:
From the problem statement derive the truth table
From the truth table derive the unsimplified logic expression
Simplify the logic expression
From the simplified expression draw the logic circuit
Example: Design a 3-input (A,B,C) digital circuit that will give at its output
(X) a logic 1 only if the binary number formed at the input has more
ones Inputs
than zeros.
Output
A B C X X = (3, 5, 6, 7)
0 0 0 0 0
1 0 0 1 0 X
BC
2 0 1 0 0 A 00 01 11 10
3 0 1 1 1 0 0 0 1 0
4 1 0 0 0 1 0 1 1 1
5 1 0 1 1
6 1 1 0 1
7 1 1 1 1 X = AC + AB + BC
A B C
Design of combinational digital circuits (Cont.)
Example: Design a 4-input (A,B,C,D) digital circuit that will give at its
output (X) a logic 1 only if the binary number formed at the input is
between 2 and 9 (including).
Inputs Output
A B C D X X = (2,3,4,5,6 ,7,8,9)
0 0 0 0 0 0
1 0 0 0 1 0 X
2 0 0 1 0 1 CD
3 0 0 1 1 1 AB 00 01 11 10
4 0 1 0 0 1 00 0 0 1 1 Same
5 0 1 0 1 1
01 1 1 1 1
6 0 1 1 0 1
7 0 1 1 1 1 11 0 0 0 0
8 1 0 0 0 1 10 1 1 0 0
9 1 0 0 1 1
10 1 0 1 0 0
11 1 0 1 1 0
12 1 1 0 0 0 X = AC + AB + A B C
13 1 1 0 1 0
14 1 1 1 0 0
15 1 1 1 1 0 A B C D X
Design of combinational digital circuits (Cont.)
Example: Design a 4-input (A,B,C,D) digital circuit that will give at its
output (X) a logic 1 only if the binary number formed at the input is
between 2 and 9 (including).
Inputs Output
A B C D X X = (2,3,4,5,6 ,7,8,9)
0 0 0 0 0 0
1 0 0 0 1 0 X
2 0 0 1 0 1 CD
3 0 0 1 1 1 AB 00 01 11 10
4 0 1 0 0 1 00 0 0 1 1 Same
5 0 1 0 1 1
01 1 1 1 1
6 0 1 1 0 1
7 0 1 1 1 1 11 0 0 0 0
8 1 0 0 0 1 10 1 1 0 0
9 1 0 0 1 1
10 1 0 1 0 0
11 1 0 1 1 0
12 1 1 0 0 0 X = AC + AB + A B C
13 1 1 0 1 0
14 1 1 1 0 0
15 1 1 1 1 0 A B C D X
Design of combinational digital circuits (Example)
Example: Design a 4-input (A,B,C,D) digital circuit that will give at its
output (X) a logic 1 only if there more ones than zeros in the binary
number formed at the input.
Inputs Output
X=
A B C D
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0 CD
3 0 0 1 1 AB 00 01 11 10
4 0 1 0 0 00
5 0 1 0 1 01
6 0 1 1 0
7 0 1 1 1 11
8 1 0 0 0 10
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
X=
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1 A B C D X X
Reduction of Equation
Boolean algebra X K-map
NAND Gate
A B Y
0 0 1 A’ A
0 1 1 B’ 1 11
B 1
1 0
1 0 1
1 1 0
Y=A’B’+A’B+AB’
=A’(B’+B)+AB’ Y=A’B’+A’B+A’B’+AB’
=A’+AB’ =A’(B’+B)+B’(A’+A)
=(A’+A)(A’+B’) =A’+B’
=A’+B’ Y= 𝐴𝐵
Y = 𝐴𝐵
3 Variable equation reduction :
K-map
K-Map
1) Minimize the four variable logic function using k-map
f(A,B,C,D)= ∑m(0,1,2,3,5,7,8,9,11,14)
00 01 11 10
00 0 4 12 8
01 1 5 13 9
11 3 7 15 11
10 2 6 14 10
Getting reduced equation using K-Map
A B C D Y
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 1
0 1 0 1 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 1
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 0
1 1 1 1 0
K-Map
Minimize the four variable logic function
f(A,B,C,D) = ABC’D + A’BCD + A’B’C’ + A’B’D’ + AC’ + AB’C + B’
0 0 0 0 X
0 0 0 1 1
0 0 1 0 X
0 0 1 1 1
0 1 0 0 0
0 1 0 1 X
0 1 1 0 0
0 1 1 1 1
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 1
1 1 0 0 0
1 1 0 1 0
1 1 1 0 0
1 1 1 1 1
Don’t care conditions