Digital Electronics & Logic Design (Sub. Code: 210245) : S. E. (Computer Engineering) 2019 Course
Digital Electronics & Logic Design (Sub. Code: 210245) : S. E. (Computer Engineering) 2019 Course
Digital Electronics & Logic Design (Sub. Code: 210245) : S. E. (Computer Engineering) 2019 Course
By,
Dr. Chaya R. Jadhav
Associate Professor, Computer Engineering
Dr. D. Y. Patil Institute of Technology, Pimpri, Pune-18
SE Computer Engineering (2019) 1
ACKNOWLEDGEMENT
End_Semester(TH): 70 Marks
Course Outcomes:
On completion of the course, learner will be able to
CO1:Simplify Boolean Expressions using K Map.
CO2: Design and implement combinational circuits.
CO3:Design and implement sequential circuits.
CO4:Develop simple real-world application using ASM and PLD.
CO5:Differenate and Choose appropriate logic families IC packages as per the given
design specifications.
CO6:Explain organization and architecture of computer system
SE Computer Engineering (2019) 5
Digital Electronics & Logic Design :210245
Unit Details
Unit No Title of Unit Total Hrs.
PO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 3 - 2 - - - - - - - - -
CO2 3 1 3 - - - - - - - - -
CO3 3 1 3 - - - - - - - - -
CO4 3 - 2 1 - - - - - - - -
CO5 3 2 - - - - - - - - - -
CO6 3 - - - - - - - - - - -
1. Commutative law
Any binary operation which satisfies the following expression is referred to as
commutative operation.
Commutative law states that changing the sequence of the variables does not have any
effect on the output of a logic circuit.
2. Associative law
This law states that the order in which the logic operations are performed is irrelevant as
their effect is the same.
3. Distributive law
Distributive law states the following condition.
5. OR law
These laws use the OR operation. Therefore they are called as OR laws.
6. INVERSION law
This law uses the NOT operation. The inversion law states that double
inversion of a variable results in the original variable itself.
16
2. Encircle the octets, quads, and pairs. Remember to roll and overlap to get the
largest groups possible.
• All the 1 s of the quad are used by the pairs. Because of this, the quad is
redundant and can be eliminated to get
18
20
21
22
23
• If any duplicate terms are formed in each case by combining the same set of minterms in a
different order.
• There is no Stage 4 for this problem as no two members of Stage 3 has only one digit
changing among them. This completes the process of determination of prime implicants.
• The rule is all the terms that are not ticked (checked off) at any stage is treated as prime implicants.
24
25
• logic statement, truth-table, SOP form, POS form; Simplification of logical functions using K-Maps
up to 4 variables
• Possible ways to AND two or more input signals that are in complement and uncomplement form
• A SOP expression is two or more AND functions ORed together.
• ANDing two variables and their complements
27
decimal equivalent of binary values that makes corresponding product term high.
28
• The fundamental products by listing each one next to the input condition that results in a high
output
• To get the sum-of-products equation, all you have to do is OR the fundamental products
• Alternate representation
29
30
31
•• Simplify
the following Boolean function in sum of products form (SOP)
F(x, y, z, w) = ∑m(0, 1, 2, 5, 8, 9, 10)
F= + + 32
1. Given the truth table, draw a Karnaugh map with 0s, 1s, and don't-cares (X).
2. Encircle the actual 1s on the Karnaugh map in the largest groups you can find by treating the
don't cares as 1s.
3. After the actual 1s have been included in groups, disregard the remaining don't cares by
visualizing them as 0s.
33
Give the simplest logic circuit for following logic equation where d represents don't-
care condition for following locations.
F(A, B, C, D) = ∑m(7) + d(10, 11, 12, 13, 14, 15)
34
• Given a truth table, identify the fundamental sums needed for a logic design. Then by ANDing
these sums, will get the product-of-sums equation corresponding to the truth table.
• But, in the sum-of-products method, the fundamental product produces an output l for the
corresponding input condition.
• But with the product of- sums method, the fundamental sum produces an output 0 for the
corresponding input condition.
35
36
• Logic Circuit
37
• NPTEL
• ERP
• Kahoot: For creating Quize: https://youtu.be/V4FQ-j91waA
• Quizizz
• Zoom
• Coursera
• Udemy
• Cisco Webex
• Microsoft Teams
• Moodle
38
39
• Code Converter -: BCD, Excess-3, Gray code, Binary Code. Half- Adder, Full Adder,
Half Subtractor, Full Subtractor, Binary Adder (IC 7483), BCD adder, Look ahead
carry generator
41
• Classification of Codes
• Properties of Code
• Applications of Code
• Conversion of Code and its importance
• Examples of each below code
BCD, Excess-3, Gray code, Binary Code
42
•Codes are the representation of information in a particular format. The information may
include numbers, alphabets and symbols.
•Different codes are used to store and transmit the data efficiently.
•The commonly used binary codes are classified as
•Weighted codes
•Self –Complementary codes
•Unit distance codes
•Cyclic codes
•Alphanumeric codes
•Error detecting and correcting codes.
43
.
Thursday, December 23, 2021 Department of Computer Engineering
Code Converter
Weighted codes: In weighted code, the weight of a digit or bit depends on its position binary,
BCD,
( 8-4-2-1 ) are example of weighted code .
Self –Complementary Codes: Excess-3 code is the example of self complementary code.
In this code ,the 1’s complement of the excess-3 code is the excess -3 code for the 9’s complement
of the corresponding decimal number.
For example excess-3 code for 2 is 0101, ( 2+3=5)
1’s complement of 0101 is 1010.It is excess-3 code of 7 and 7 is 9’s complement of 2.
Unit Distance Codes: The name itself indicates there is unit distance between two consecutive
codes. That is bit patterns for two consecutive numbers differ in only one bit position.
Gray code is an example of unit distance code. 44
In weighted code, the weight of a digit or bit depends on its position binary, BCD,
( 8-4-2-1 ) are example of weighted code .
Self –Complementary Codes: Excess-3 code is the example of self complementary code.
In this code ,the 1’s complement of the excess-3 code is the excess -3 code for the 9’s complement of the corresponding decimal number.
For example excess-3 code for 2 is 0101, ( 2+3=5)
1’s complement of 0101 is 1010.It is excess-3 code of 7 and 7 is 9’s complement of 2.
Unit Distance Codes: The name itself indicates there is unit distance between two consecutive codes. That is bit patterns for two consecutive numbers differ in only one bit
position.
45
Gray code is an example of unit distance code.
Unit Distance Codes: The name itself indicates there is unit distance between two consecutive codes. That is bit patterns for two
consecutive numbers differ in only one bit position.
46
Gray code is an example of unit distance code.
Unit Distance Codes: The name itself indicates there is unit distance between two consecutive codes. That is bit patterns for two consecutive numbers
differ in only one bit position.
47
Gray code is an example of unit distance code.
INPUT (BINARY CODE) OUTPUT (GRAY CODE) Binary to Gray Code Conversion
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
.
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
48
1 1 1 1 1 0 0 0
49
• Binary Coded Decimal (BCD) is used to represent each of decimal digits (0 to 9) with a 4-bit binary
code.
• For example (23)10 is represented by 0010 0011 using BCD code rather than(10111) 2
• This code is also known as 8-4-2-1 code as 8421 indicates the binary weights of four bits(2 3, 22, 21,
20).
• It is easy to convert between BCD code numbers and the familiar decimal numbers. It is the main
advantage of this code. With four bits, sixteen numbers (0000 to 1111) can be represented
• In BCD code only 10 of these are used. The six code combinations (1010 to 1111) are not used and
are invalid Ex. 247 : 0010 0100 0111
Applications: Some early computers processed BCD numbers. Arithmetic operations can be
performed using this code. Input to a digital system may be in natural BCD and output may be
7-segment LEDs. 50
In weighted code, the weight of a digit or bit depends on its position binary, BCD,
( 8-4-2-1 ) are example of weighted code .
Self –Complementary Codes: Excess-3 code is the example of self complementary code.
In this code ,the 1’s complement of the excess-3 code is the excess -3 code for the 9’s complement of the corresponding decimal number.
For example excess-3 code for 2 is 0101, ( 2+3=5)
1’s complement of 0101 is 1010.It is excess-3 code of 7 and 7 is 9’s complement of 2.
Unit Distance Codes: The name itself indicates there is unit distance between two consecutive codes. That is bit patterns for two consecutive numbers differ in only one bit position.
Gray code is an example of unit distance code.
51
52
.
Thursday, December 23, 2021 Department of Computer Engineering
Code Converter
54
•Half Adder
Half adder is a combinational logic circuit with two inputs and two outputs. The
half adder circuit is designed to add two single bit binary number A and B. It is the
basic building block for addition of two single bit numbers. This circuit has two
55
Full Adder
Full Adder
• Full adder is developed to overcome the drawback of Half Adder circuit. It can add two
one-bit numbers A and B, and carry c. The full adder is a three input and two output
combinational circuit.
Adder and subtractor are basically used for performing arithmetical functions like addition, subtraction,
multiplication and division in electronic calculators and digital instruments.
In Timers
Thursday, and Program
December 23, 2021 Counters and UsefulDepartment
in Digitalof Signal
ComputerProcessing
Engineering
Half Subtractors
• Half Subtractors
Half subtractor is a combination circuit with two inputs and two outputs (difference and borrow). It produces
the difference between the two binary bits at the input and also produces an output (Borrow) to indicate if a
1 has been borrowed. In the subtraction (A-B), A is called as Minuend bit and B is called as Subtrahend bit.
57
58
Adder and subtractor are also usedDepartment
Thursday, December 23, 2021
in microcontrollers
of Computer Engineering
for arithmetic additions
N-Bit Parallel Adder
The Full Adder is capable of adding only two single digit binary number along with
a carry input. But in practical we need to add binary numbers which are much
longer than just one bit. To add two n-bit binary numbers we need to use the n-bit
parallel adder. It uses a number of full adders in cascade. The carry output of the
previous full adder is connected to carry input of the next full adder.
4 Bit Parallel Adder
In the block diagram, A0 and B0 represent the LSB of the four bit words A and B.
Hence Full Adder-0 is the lowest stage. Hence its Cin has been permanently made 0.
The rest of the connections are exactly same as those of n-bit parallel adder is
shown in fig. The four bit parallel adder is a very common logic circuit.
59
60
INPUT OUTPUT
S3 S2 S1 S0 Y
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1 Y = S3S2 + S3S1
1 1 1 0 1
1 1 1 1 1
61
62
In adder circuit Sum and carry outputs will be delayed due to propagation delays of the gates
involved in the full adder.
Final stage Carry has to ripple through all the stages, therefore reducing the speed of the adder as a
number of stages are increased.
Limitation of ripple carry adder are overcome in look ahead carry generator.
It requires additional circuitry but the speed of the adder becomes independent of the number of
bits.
63
. Pi
• Consider the FA, where intermediate Xi
signals are labelled as Pi and Gi: Yi Si
Pi = Xi Yi Gi
Gi = Xi ∙Yi Ci+1
Ci
.
• For 4-bit ripple-carry adder, the equations for the
four carry signals are:
Ci+1 = Gi + Pi∙Ci
Ci+2 = Gi+1 + Pi+1∙Ci+1
Ci+3 = Gi+2 + Pi+2∙Ci+2
Ci+4 = Gi+3 + Pi+3∙Ci+3
Ci
Pi
These formulae are deeply nested, Ci+1
Gi
as shown here for Ci+2:
Pi+1
Ci+2
Gi+1
.
• Nested formulae/gates cause more propagation delay.
• Reduce delay by expanding and flattening the formulae for
carries. Example, for Ci+2:
Ci+2 = Gi+1 + Pi+1∙Ci+1
= Gi+1 + Pi+1∙(Gi + Pi∙Ci)
= Gi+1 + Pi+1∙Gi + Pi+1∙Pi∙Ci
• New faster circuit for Ci+2:
Ci
Pi
Pi+1
Gi Ci+2
Pi+1
Gi+1
66
.
• The 74182 IC chip allows
faster lookahead adder to
be built.
• Assuming gate delay is t,
maximum propagation
delay for circuit is hence 4t
• t to get generate and
propagate signals
• 2t to get the carries
• t for the sum signals
67
IC No Description Output
74153 Dual 4:1 Same as
input
74151 8:1 Comple
A mentary
output
68
69
71
A full adder is a combinational circuit that forms the arithmetic sum of three input bits. It consists of
three inputs and two outputs. Two of these variables denoted by A and B represent the two
significant bits to be added. The third input represents the carry from previous lower significant
position
Input Output Sum= ∑m (1, 2, 4, 7),
A B C Sum Carry Carry=∑m (3, 5, 6, 7)
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
72
It generates an even parity bit, P. If odd number of ones present in the input, then even parity bit, P should
be ‘1’ so that the resultant word contains even number of ones.
Binary Even
If even number of ones present in the input, then odd parity bit, P should be ‘1’ so that Input Parity
WXY bit P
the resultant word contains odd number of ones. For other combinations of input, odd parity 000 0
001 1
bit, P should be ‘0
010 1
Application: In digital Communication as error detecting code. 73
4-bit Even
Received Parity
It generates even parity check bit E:This bit will be zero if received data contains Data Check bit
WXYP E
even number of ones .This means there is no error in the received data. 0000 0
If received data contains odd number of ones .This means there is error in 0001 1
0010 1
the received data. 74
75
77