Digital Logic Design
Digital Logic Design
[An Autonomous Institution | Affiliated to Anna University and Approved by AICTE | Accredited by NAAC – UGC with ‘A’ Grade]
Kovaipudhur, Coimbatore – 641 042.
Dr P Divya
Assistant Professor
Department of ECE
Module I
Maps CO1 & CO2
• Here the data is converted into electromagnetic signal either as analog or digital and sent from sender to receiver.
Analog Vs Digital Signal
Analog system
• Analog signal is a form of electrical energy for which there is a linear relationship between electrical quantity and the value that
the signal represents.
• The signal whose amplitude takes any value in a continuous range is called analog signal.
• Analog Signals are continuous in nature which vary with respect to time.
• The signals include audio signals transmitted through wires, video signals broadcasted using older technology & radio signals.
Digital system
• The signal, whose amplitude takes only limited values is called Digital signal.
• Digital signals are discrete, they contain only distinct values.
• Digital signals carry binary data i.e. 0 or 1 in form of bits, it can only contain one value at a period of time.
• The minimum value is 0 volts whereas maximum value is 5 volts.
Analog Vs Digital Signal
Comparison
Binary Digital Signal
• For digital systems, the variable takes on discrete values.
• Two level, or binary values.
• Magnitude
• Sum of “Digit x Weight” 2 1 0 -1
d2*B +d1*B +d0*B +d-1*B +d-2*B -2
2 1 0 -1 -2
• Magnitude 2 1 0 -1
1 *2 +0 *2 +1 *2 +0 *2 +1 *2 -2
Number of combinations 0, 1, 2, 3, 4, 5, ,6 7, 8, 9
Number of combinations 0, 1
Number of combinations 0, 1, 2, 3, 4, 5, 6, 7
Number of combinations 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
Number of combinations 0, 1, 2, 3
Decimal to Binary conversion
• (6 5 3 2)10
• 526.47 = 5 x 10 2 +2 x 10 1 + 6 x 10 0 + 4 x 10 -1 + 7 x 10 -2
= (0. 1011) 2
(43.6875)10 = (101011.1011)2
Decimal to Binary conversion
• Convert the following numbers from base 10 to base 2
Ex : (172.878)10
(376)8 = (011111110)2
• Binary to octal
(10011010101)2 = 010 011 010 101
2 3 2 5
(10011010101)2 = (2325)8
Decimal to Hexadecimal
• Convert the following number from base 10 to base
16- (2020.65625)10
2) (3211)4 → ( ? )10
(iii) Then write the equivalent hexadecimal number for each group of 4 bits.
(iii) Then write the equivalent octal number for each group of 3 bits.
Conversion from an Octal to Hexadecimal Number
and Vice Versa
•Example: Convert the following hexadecimal numbers into equivalent octal
numbers. (a) A72E (b) 4.BF85
Conversion from an Octal to Hexadecimal
Number and Vice Versa
Simple Rules
1. Decimal to any -------------> Divide the decimal number by the radix of
the number which we want to convert.
2. Any Number to Decimal -------------> Use expansion method. Multiply and add
the each position with powers of its radix.
3. Binary to octal -------------> Each number in octal should be converted to
3 bit binary.
4. Octal to binary -------------> Start from LSB and group three binary bit. If
required, add extra zeros to MSB to form a 3
5. Binary to Hex -------------> Each number in octal should be converted to
4 bit binary.
6. Hex to binary -------------> Start from LSB and group four binary bit. If
required, add extra zeros to MSB to form a 4
bit binary.
7. Octal to Hex and vice versa -------------> Octal to binary and then Hex.(OR) Hex to
binary and then octal
More Examples
More Examples
Example . Convert 1010.0112 into a decimal number.
Solution. The binary number given is 1 0 1 0. 0 1 1
Ans: 0010100
Complements of Numbers
• 2’s Complement another method
The twos-complement of a number can be found by leaving all the least
significant zeros and the least significant one unchanged and then replacing
all zeros with ones and all ones with zeros in all the other digits.
Sol :
Starting from the right side of the given number we leave 100 unchanged
and then for the remaining digits, i.e, 1101 we replace the ones with zeros
and the zero with one. Therefore, the twos-complement of 1101100 is
0010100 .
Addition
• Decimal Addition
1 1 Carry
5 5
+ 5 5
1 1 0
= Ten ≥ Base
Subtract a
Base
37
Binary Addition
• Column Addition
1 1 1 1 1 1
1 1 1 1 0 1 = 61
+ 1 0 1 1 1 = 23
1 0 1 0 1 0 0 = 84
≥ (2)10
38
Binary Subtraction
• Borrow a “Base” when needed
1 2 = (10)2
0 2 2 0 0 2
1 0 0 1 1 0 1 = 77
− 1 0 1 1 1 = 23
0 1 1 0 1 1 0 = 54
39
Binary Subtraction
• More Examples:
• A = 11001 and B = 10111 Solution: 00010
1 1 1 0 0 1 1 0 41
Number Base Conversions
Evaluate
Magnitude
Octal
(Base 8)
Evaluate
Magnitude
Decimal Binary
(Base 10) (Base 2)
Hexadecimal
Evaluate (Base 16) 42
Magnitude
Boolean Algebra
• George Boole introduced algebraic formulas to design and analyze the
digital circuits. This is called Boolean algebra.
Boolean Algebra
• Rules
2. 0 ⋅ 0 = 0
3. 0 ⋅ 1 =0 1⋅0=0
4. 1 ⋅ 1 = 1
5. 0 + 0 = 0
6. 0 + 1 =1 1+0=1
7. 1 + 1 = 1
Theorems & Properties
Theorems
of Boolean Algebra
1. Commutative laws
a. A ⋅ B = B ⋅ A
b. A + B = B + A
2. Associative laws
a. ( A ⋅ B ) ⋅ C = A ⋅ ( B ⋅ C )
b. ( A + B ) + C = A + ( B + C )
3. Distributive laws
a. A ⋅ ( B + C ) = A ⋅ B + A ⋅ C
b. A + ( B ⋅ C ) = ( A + B ) ⋅ ( A + C )
4. Identity laws a. A ⋅ A = A
b. A + A = A
5. Negation laws
a. ( A ) = A
b. ( A ) = A = A
6. Redundancy laws
a. A⋅(A+B)=A
b. A + ( A ⋅ B ) = A 7.
a.0 ⋅ A = 0
b. 1 ⋅ A = A
c.0 + A = A
d. 1 + A = 1
8.
a. A⋅A=0
b. A + A = 1 9.
a. A ⋅ ( A + B ) = A ⋅ B
b. A + ( A ⋅ B ) = A + B
10. DeMorgan’s theorems
a. (A ⋅ B)'= A' + B'
b. (A + B)'= (A' ⋅ B')
Example: Reduce the following Expression:
aBoolean
Problems
Problems
Sum of Product (SOP) Form
• A sum-of-products form can be formed by adding (or summing) two or more
product terms using a Boolean addition operation. Here the product terms
are defined by using the AND operation and the sum term is defined by
using OR operation.
• Examples
AB + ABC + CDE
(AB) ‘ + ABC + CD E ‘
Sum of Product (SOP)
Note:
Form
• SOP form can be obtained by Writing an AND term for each input
combination, which produces HIGH output.
• Writing the input variables if the value is 1, and write the complement of the
variable if its value is 0.
• OR the AND terms to obtain the output function.
Product of Sums (POS) Form
• Here the sum terms are defined by using the OR operation and the product
term is defined by using AND operation. When two or more sum terms are
multiplied by a Boolean OR operation, the resultant output expression will
be in the form of product-of-sums form or POS form.
• Examples
(A+B) * (A + B + C) * (C +D)
(A+B)’ * (C + D + E’)
Karnaugh maps
Karnaugh Maps (K maps)
• Rules of simplification for K-Map
Karnaugh Maps (K maps)
Rules of simplification for K-Map
Karnaugh Maps (K maps)
Rules of simplification for K-Map
Karnaugh Maps (K maps)
Rules of simplification for K-Map
Karnaugh Maps (K maps)
2-variable Karnaugh maps are trivial but can be used to introduce
the methods you need to learn. The map for a 2-input OR gate
looks like this:
A
0 1
B
A
Y 0 1
B A
1 1 1
A B Y
0 0 0
0 1 1
B
1 0 1
1 1 1
A+B
Guidelines for Simplifying Functions
• Each square on a K-map of n variables has n logically adjacent squares. (i.e.
differing in exactly one variable)
• When combing squares, always group in powers of 2m , where m=0,1,2,….
• In general, grouping 2m variables eliminates m variables.
• Group as many squares as possible. This eliminates the most
variables.
• Make as few groups as possible. Each group represents a separate
product term.
• You must cover each minterm at least once. However, it may be
covered more than once.
• K MAP Examples
• Simplify the following Boolean equation using K-map
K MAP Examples
K MAP Examples
K MAP Examples
K MAP Examples
K-Map Examples
xamples
K-Map with Don't care's
•
K-Map with Don’t care’s
Plotting Functions on the
K-map
POS Form
PoS Optimization from SoP
F(W,X,Y,Z)= Σm(0,1,2,5,8,9,10)
= ∏ M(3,4,6,7,11,12,13,14,15)
109