SlideShare uma empresa Scribd logo
1 de 189
Unit 2
Half Adder
• The addition of 2bits is called Half adder the
input variables are augent and addent bits
and output variables are sum&carry bits.
• A and B are the two input bits
2018
Implement half adder circuit using NAND gate
only
Half Adder using NAND gates
Implementation of Half Adder using
NOR gates
Steps to derive half adder using NOR
• S=A XOR B
• C=A.B
C=(A’+B’)’=(A’)’.(B’)’=A.B
For Sum
S=A XOR B =A’B+AB’
We can write the same equation as
EX-NOR= (A’B’+AB)’=A’B+AB’
XOR’=EX-NOR
Half Subtractor
Half Subtractor (HS): Half subtractor is a combination circuit with
two inputs and two outputs which is 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 a Minuend bit and
B is called as Subtrahend bit.
Implementation of Half Subtractor
using NAND gates
Steps to derive half subtractor using
NAND
D=A XOR B
B=A’.B
For D we require 4 NAND gate
Steps to derive half subtractor using
NAND
D=A XOR B
B=A’.B
For B
B=A’.B
We will have
((A.B)’.B)’
We will have
(((A.B)’.B)’)’
Implementation of Half Subtractor
using NOR gates
Steps to derive half subtractor using
NOR
D=A XOR B
B=A’.B
For D we require 5 NOR gate
Steps to derive half subtractor using
NOR
D=A XOR B
B=A’.B
For B (No extra gate is required)
Full Adder
• Full Adder is the adder which adds three
inputs and produces two outputs.
• The first two inputs are A and B and the third
input is an input carry as C-IN.
• The output carry is designated as C-OUT and
the normal output is designated as S which is
SUM.
• A full adder logic is designed in such a manner
that can take eight inputs together to create a
byte-wide adder and cascade the carry bit
from one adder to the another.
Logical Expression for SUM
Logical Expression for C-OUT:
Cin(A’B+AB’)+AB(Cin’+Cin)
Cin(A XOR B)+AB
Full Subtractor
• A full subtractor is a combinational
circuit that performs subtraction of two bits,
one is minuend and other is subtrahend,
taking into account borrow of the previous
adjacent lower minuend bit.
• This circuit has three inputs and two outputs.
The three inputs A, B and Bin, denote the
minuend, subtrahend, and previous borrow,
respectively.
• The two outputs, D and Bout represent the
difference and output borrow, respectively.
Truth Table
• From above table we can draw the K-Map as
shown for “difference” and “borrow”.
D=A XOR B XOR Bin
Logical expression for borrow
Logic Circuit for Full Subtractor
Method of 2’s Complement
Subtraction
Subtraction of Smaller Number from
Larger Number
• To subtract a smaller number from a larger
number using 2’s complement subtraction,
following steps are to be followed:
• Step-1: Determine the 2’s complement of the
smaller number
• Step-2: Add this to the larger number.
• Step-3: Omit the carry. Note that, there is
always a carry in this case
Subtraction of Larger Number
from Smaller Number
• To subtract a larger number from a smaller
number using 2’s complement subtraction,
following steps are to be followed:
• Step-1: Determine the 2’s complement of the
smaller number
• Step-2: Add this to the larger number.
• Step-3: There is no carry in this case. The
result is in 2’s complement form and is
negative.
• Step-4: To get answer in true form, take 2’s
complement and change its sign.
1000 in decimal = 8
1010 in decimal = 12
8-12=-4
1010
1’s complement of 1010=0101
1’s complement+1=2’s complement
0101+1=0110
Parallel Adder
• A single full adder performs the addition of two one bit
numbers and an input carry.
• But a Parallel Adder is a digital circuit capable of
finding the arithmetic sum of two binary numbers that
is greater than one bit in length by operating on
corresponding pairs of bits in parallel.
• It consists of full adders connected in a chain where
the output carry from each full adder is connected to
the carry input of the next higher order full adder in
the chain.
• A n bit parallel adder requires n full adders to
perform the operation. So for the two-bit number,
two adders are needed while for four bit number, four
adders are needed and so on.
• Parallel adders normally incorporate carry
look a head logic to ensure that carry
propagation between subsequent stages of
addition does not limit addition speed
• As shown in the figure, firstly the full adder FA1
adds A1 and B1 along with the carry C1 to
generate the sum S1 (the first bit of the output
sum) and the carry C2 which is connected to the
next adder in chain.
• Next, the full adder FA2 uses this carry bit C2 to
add with the input bits A2 and B2 to generate the
sum S2(the second bit of the output sum) and the
carry C3 which is again further connected to the
next adder in chain and so on.
• The process continues till the last full adder FAn
uses the carry bit Cn to add with its input An and
Bn to generate the last bit of the output along
last carry bit Cout.
2019
• Design a 4 bit parallel adder/subtractor with
controlled inverter and explain its working.
(6 marks)
Example
A = 0101
B= 1010
+___________
Sum = 1111
___________
Carry = 0
Parallel Subtractor
• A Parallel Subtractor is a digital circuit capable
of finding the arithmetic difference of two
binary numbers that is greater than one bit in
length by operating on corresponding pairs of
bits in parallel.
• The parallel subtractor can be designed in
several ways including combination of half
and full subtractors, all full subtractors or all
full adders with subtrahend complement
input.
• As shown in the figure, the parallel binary
subtractor is formed by combination of all full
adders with subtrahend complement input.
• This operation considers that the addition of
minuend along with the 2’s complement of the
subtrahend is equal to their subtraction.
• Firstly the 1’s complement of B is obtained by the
NOT gate and 1 can be added through the carry
to find out the 2’s complement of B. This is
further added to A to carry out the arithmetic
subtraction.
• The process continues till the last full adder FAn
uses the carry bit Cn to add with its input An and
2’s complement of Bn to generate the last bit of
the output along last carry bit Cout.
Example
Advantages of parallel Adder/Subtractor –
• The parallel adder/subtractor performs the
addition operation faster as compared to
serial adder/subtractor.
• Time required for addition does not depend
on the number of bits.
• The output is in parallel form i.e all the bits
are added/subtracted at the same time.
• It is less costly.
Disadvantages of parallel Adder/Subtractor –
• Each adder has to wait for the carry which is
to be generated from the previous adder in
chain.
• The propagation delay( delay associated with
the travelling of carry bit) is found to increase
with the increase in the number of bits to be
added.
Multiplexers
2016
Explain 4:1 multiplexer with equation and
gates(5 marks)
• Now the implementation of 4:1 Multiplexer
using truth table and gates.
• Multiplexer can act as universal combinational
circuit.
• All the standard logic gates can be
implemented with multiplexers.
Implementation of Higher order MUX
using lower order MUX
1. 4 : 1 MUX using 2 : 1 MUX
Case 2
Case 2
Case 3
• In general, to implement B : 1 MUX using A : 1
MUX , one formula is used to implement the
same.
B / A = K1,
K1/ A = K2,
K2/ A = K3
• ………………
• KN-1 / A = KN = 1 (till we obtain 1 count of MUX).
• Example : 4:1 using 2:1 requires
4/2=2
2/2=1
2+1=3 MUX
16 : 1 MUX using 4 : 1 MUX
• To implement 16: 1 MUX using 4 : 1 MUX
Using the above formula, we can obtain the
same.
16 / 4 = 4
4/ 4 = 1 (till we obtain 1 count of MUX)
Hence, total number of 4 : 1 MUX are required
to implement 16 : 1 MUX = 4 + 1 = 5.
• First level we need 4 MUX and second level
we need 1
Implementing 8X1 MUX using 4X1
MUX (Special Case)
• To implement 8: 1 MUX using 4 : 1 MUX
Using the above formula, we can obtain the
same.
8 / 4 = 2
2/ 4 = 0.5
• We cannot use 2.5 mux so we will use
different approach
• Using enable which will implement
Truth table
We have to use OR gate
When S2=0,s1=0 and
s2=0
output is I0+0=I0
E
E
How a 16:1 MUX can be designed
using two 8:1 MUX and one OR gate
S3 S2 S1 s0
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
S3 S2 S1 s0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
How a 16:1 MUX can be designed
using two 8:1 MUX and one OR gate
Implementing 16X1 MUX using 8X1
MUX
• To implement 16: 1 MUX using 8 : 1 MUX
Using the above formula, we can obtain the
same.
16/8 = 2
2/ 8 = 0.5
• We cannot use 2.5 mux so we will use
different approach
• Using enable which will implement which will
enable and disable the circuit
Implementing 8X1 MUX using 2X1
MUX
• To implement 16: 1 MUX using 2 : 1 MUX
Using the above formula, we can obtain the
same.
8/ 2=4 (at level 1)
4/2=2 (at level 2)
2/2=1 (at level 3)
Total Number of multiplexer : 4+2+1=7
Demultiplexer
• Demultiplexer is a data distributor which
takes a single input and gives several outputs.
• In demultiplexer we have 1 input and
2n output lines where n is the selection line.
2019
• Design a 1:8 DMUX circuit.
Design a 1:8 DMUX circuit
2019
• What is encoder? Discuss the design of 8:3
(octal to binary encoder)
Encoders
• An Encoder is a combinational circuit that
performs the reverse operation of Decoder.
• It has maximum of 2^n input lines and ‘n’
output lines, hence it encodes the
information from 2^n inputs into an n-bit
code.
• It will produce a binary code equivalent to the
input, which is active High.
• Therefore, the encoder encodes 2^n input
lines with ‘n’ bits.
8 : 3 Encoder (Octal to Binary) –
• The 8 to 3 Encoder or octal to Binary
encoder consists of 8 inputs : Y7 to Y0
and 3 outputs : A2, A1 & A0.
• Each input line corresponds to each octal
digit and three outputs generate
corresponding binary code
The above three Boolean functions A2, A1 and A0 can be implemented
using four input OR gates :
Priority Encoder
• A 4 to 2 priority encoder has 4 inputs : Y3,
Y2, Y1 & Y0 and 2 outputs : A1 & A0.
• Here, the input, Y3 has the highest
priority, whereas the input, Y0 has
the lowest priority.
• In this case, even if more than one input is
‘1’ at the same time, the output will be the
(binary) code corresponding to the input,
which is having higher priority
The above two Boolean
functions can be implemented as
:
Decimal to BCD Encoder
• The decimal to binary encoder usually
consists of 10 input lines and 4 output
lines.
• Each input line corresponds to the each
decimal digit and 4 outputs correspond to the
BCD code.
• This encoder accepts the decoded decimal
data as an input and encodes it to the BCD
output which is available on the output lines.
• The figure below shows the logic symbol of
decimal to BCD encoder :
The truth table for decimal to
BCD encoder is as follows:
Logical expression for A3, A2,
A1 and A0 :
The above two Boolean
functions can be implemented
using OR gates :
4 to 2 line Encoder:
• In 4 to 2 line encoder, there are total of
four inputs, i.e., Y0, Y1, Y2, and Y3, and
two outputs, i.e., A0 and A1.
• In 4-input lines, one input-line is set to
true at a time to get the respective
binary code in the output side.
• Below are the block diagram and the
truth table of the 4 to 2 line encoder.
Block Diagram:
Truth Table:
The logical expression of the
term A0 and A1 is as follows
Logical circuit of the above
expressions is given below:
Binary Decoder
• A decoder is a combinational circuit that
converts binary information from n input
lines to a maximum of 2^n unique output
lines.
2 to 4 line decoder:
• In the 2 to 4 line decoder, there is a total
of three inputs, i.e., A0, and A1 and E and
four outputs, i.e., Y0, Y1, Y2, and Y3.
• For each combination of inputs, when the
enable 'E' is set to 1, one of these four
outputs will be 1.
• The block diagram and the truth table of
the 2 to 4 line decoder are given below.
Block Diagram:
Truth Table:
The logical expression of the
term Y0, Y1, Y2, and Y3 is as
follows:
Logical circuit of the above
expressions is given below:
3 to 8 line decoder:
• The 3 to 8 line decoder is also known
as Binary to Octal Decoder. In a 3 to 8
line decoder, there is a total of eight
outputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, and
Y7 and three inputs, i.e., A0, A1, and A2.
• This circuit has an enable input 'E'. Just
like 2 to 4 line decoder, when enable 'E' is
set to 1, one of these four outputs will be
1.
• The block diagram and the truth table of
the 3 to 8 line encoder are given below.
Block Diagram:
Truth Table:
Logical circuit of the above
expressions is given below:
2017
• Draw the logic diagram of parity checker and
generator/checker. Explain its operation with
the help of truth table.(6.5 marks)
Parity Checker
• There are two types of parity checkers based
on the type of parity has to be checked.
• Even parity checker checks error in the
transmitted data, which contains message bits
along with even parity.
• Similarly, odd parity checker checks error in
the transmitted data, which contains message
bits along with odd parity.
2018
Explain even parity and odd parity. Design a
circuit for even parity generator for 3 bit
message.(5.5 marks)
Digital Electronics Unit_2.pptx
Digital Electronics Unit_2.pptx
Digital Electronics Unit_2.pptx

Mais conteúdo relacionado

Semelhante a Digital Electronics Unit_2.pptx

Parallel Adder_Mul_Mag.pptx
Parallel Adder_Mul_Mag.pptxParallel Adder_Mul_Mag.pptx
Parallel Adder_Mul_Mag.pptxPreetamKalyaan
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuitsBindu Madhavi
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuitsBindu Madhavi
 
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...SaveraAyub2
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECESeshaVidhyaS
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).pptThanmayiKumar
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptxamudhak10
 
Combinational Circuits.pptx
Combinational Circuits.pptxCombinational Circuits.pptx
Combinational Circuits.pptxAshokRachapalli1
 
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptxUnit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptxtusharkumarsinha1985
 
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...inventionjournals
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logicDeepak John
 
Unit 3 combinational circuits
Unit 3  combinational circuitsUnit 3  combinational circuits
Unit 3 combinational circuitsAmrutaMehata
 
1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdfRohitkumarYadav80
 
1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdfRohitkumarYadav80
 
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...UmerKhan147799
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manualNitesh Dubey
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsVanitha Chandru
 

Semelhante a Digital Electronics Unit_2.pptx (20)

Parallel Adder_Mul_Mag.pptx
Parallel Adder_Mul_Mag.pptxParallel Adder_Mul_Mag.pptx
Parallel Adder_Mul_Mag.pptx
 
CSO PPT.pptx
CSO PPT.pptxCSO PPT.pptx
CSO PPT.pptx
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
 
combinational_circuits
combinational_circuitscombinational_circuits
combinational_circuits
 
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and  BCD Add...
DLD Lecture No 20 Look Ahead Carry Generator, Binary Subtractors and BCD Add...
 
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECEDigital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
Digital Electronics (EC8392) UNIT-II -PPT-S.SESHA VIDHYA/ ASP/ECE
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
 
Combinational Circuits.pptx
Combinational Circuits.pptxCombinational Circuits.pptx
Combinational Circuits.pptx
 
Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptxUnit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
 
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
Implementation and Simulation of Ieee 754 Single-Precision Floating Point Mul...
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 
Unit 3 combinational circuits
Unit 3  combinational circuitsUnit 3  combinational circuits
Unit 3 combinational circuits
 
1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf
 
1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf1. Combinational Logic Circutis with examples (1).pdf
1. Combinational Logic Circutis with examples (1).pdf
 
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
Lecture4 Chapter4- Design 4-bit Lookahead Carry Binary Adder-Subtractor Circu...
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
 
cs 3351 dpco
cs 3351 dpcocs 3351 dpco
cs 3351 dpco
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 

Mais de Thapar Institute

Mais de Thapar Institute (19)

Digital Electronics Unit_4_new.pptx
Digital Electronics Unit_4_new.pptxDigital Electronics Unit_4_new.pptx
Digital Electronics Unit_4_new.pptx
 
Digital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptxDigital Electronics Unit_3.pptx
Digital Electronics Unit_3.pptx
 
Digital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptxDigital Electronics Unit_1.pptx
Digital Electronics Unit_1.pptx
 
C Language Part 1
C Language Part 1C Language Part 1
C Language Part 1
 
Compiler Design Introduction
Compiler Design Introduction Compiler Design Introduction
Compiler Design Introduction
 
Web Technology Part 4
Web Technology Part 4Web Technology Part 4
Web Technology Part 4
 
Web Technology Part 3
Web Technology Part 3Web Technology Part 3
Web Technology Part 3
 
Web Technology Part 2
Web Technology Part 2Web Technology Part 2
Web Technology Part 2
 
Web Technology Part 1
Web Technology Part 1Web Technology Part 1
Web Technology Part 1
 
TOC Introduction
TOC Introduction TOC Introduction
TOC Introduction
 
CSS Introduction
CSS Introduction CSS Introduction
CSS Introduction
 
COA (Unit_4.pptx)
COA (Unit_4.pptx)COA (Unit_4.pptx)
COA (Unit_4.pptx)
 
COA(Unit_3.pptx)
COA(Unit_3.pptx)COA(Unit_3.pptx)
COA(Unit_3.pptx)
 
COA (Unit_2.pptx)
COA (Unit_2.pptx)COA (Unit_2.pptx)
COA (Unit_2.pptx)
 
COA (Unit_1.pptx)
COA (Unit_1.pptx)COA (Unit_1.pptx)
COA (Unit_1.pptx)
 
Software Testing Introduction (Part 4))
 Software Testing Introduction (Part 4)) Software Testing Introduction (Part 4))
Software Testing Introduction (Part 4))
 
Software Testing Introduction (Part 3)
 Software Testing Introduction (Part 3) Software Testing Introduction (Part 3)
Software Testing Introduction (Part 3)
 
Software Testing Introduction (Part 2)
Software Testing Introduction (Part 2)Software Testing Introduction (Part 2)
Software Testing Introduction (Part 2)
 
Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)
 

Último

Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptxNikhil Raut
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 

Último (20)

Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptx
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 

Digital Electronics Unit_2.pptx

  • 2.
  • 3.
  • 4.
  • 5.
  • 6. Half Adder • The addition of 2bits is called Half adder the input variables are augent and addent bits and output variables are sum&carry bits. • A and B are the two input bits
  • 7.
  • 8.
  • 9. 2018 Implement half adder circuit using NAND gate only
  • 10.
  • 11. Half Adder using NAND gates
  • 12.
  • 13. Implementation of Half Adder using NOR gates
  • 14. Steps to derive half adder using NOR • S=A XOR B • C=A.B C=(A’+B’)’=(A’)’.(B’)’=A.B
  • 15. For Sum S=A XOR B =A’B+AB’ We can write the same equation as EX-NOR= (A’B’+AB)’=A’B+AB’ XOR’=EX-NOR
  • 16.
  • 17.
  • 18. Half Subtractor Half Subtractor (HS): Half subtractor is a combination circuit with two inputs and two outputs which is 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 a Minuend bit and B is called as Subtrahend bit.
  • 19.
  • 20.
  • 21.
  • 22. Implementation of Half Subtractor using NAND gates
  • 23. Steps to derive half subtractor using NAND D=A XOR B B=A’.B For D we require 4 NAND gate
  • 24. Steps to derive half subtractor using NAND D=A XOR B B=A’.B For B B=A’.B We will have ((A.B)’.B)’ We will have (((A.B)’.B)’)’
  • 25.
  • 26.
  • 27. Implementation of Half Subtractor using NOR gates
  • 28. Steps to derive half subtractor using NOR D=A XOR B B=A’.B For D we require 5 NOR gate
  • 29. Steps to derive half subtractor using NOR D=A XOR B B=A’.B For B (No extra gate is required)
  • 30. Full Adder • Full Adder is the adder which adds three inputs and produces two outputs. • The first two inputs are A and B and the third input is an input carry as C-IN. • The output carry is designated as C-OUT and the normal output is designated as S which is SUM. • A full adder logic is designed in such a manner that can take eight inputs together to create a byte-wide adder and cascade the carry bit from one adder to the another.
  • 31.
  • 32.
  • 33.
  • 35. Logical Expression for C-OUT: Cin(A’B+AB’)+AB(Cin’+Cin) Cin(A XOR B)+AB
  • 36.
  • 37.
  • 38.
  • 39. Full Subtractor • A full subtractor is a combinational circuit that performs subtraction of two bits, one is minuend and other is subtrahend, taking into account borrow of the previous adjacent lower minuend bit. • This circuit has three inputs and two outputs. The three inputs A, B and Bin, denote the minuend, subtrahend, and previous borrow, respectively. • The two outputs, D and Bout represent the difference and output borrow, respectively.
  • 40.
  • 42. • From above table we can draw the K-Map as shown for “difference” and “borrow”. D=A XOR B XOR Bin
  • 44. Logic Circuit for Full Subtractor
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50. Method of 2’s Complement Subtraction
  • 51. Subtraction of Smaller Number from Larger Number • To subtract a smaller number from a larger number using 2’s complement subtraction, following steps are to be followed: • Step-1: Determine the 2’s complement of the smaller number • Step-2: Add this to the larger number. • Step-3: Omit the carry. Note that, there is always a carry in this case
  • 52.
  • 53.
  • 54. Subtraction of Larger Number from Smaller Number • To subtract a larger number from a smaller number using 2’s complement subtraction, following steps are to be followed: • Step-1: Determine the 2’s complement of the smaller number • Step-2: Add this to the larger number. • Step-3: There is no carry in this case. The result is in 2’s complement form and is negative. • Step-4: To get answer in true form, take 2’s complement and change its sign.
  • 55. 1000 in decimal = 8 1010 in decimal = 12 8-12=-4 1010 1’s complement of 1010=0101 1’s complement+1=2’s complement 0101+1=0110
  • 56.
  • 57.
  • 58. Parallel Adder • A single full adder performs the addition of two one bit numbers and an input carry. • But a Parallel Adder is a digital circuit capable of finding the arithmetic sum of two binary numbers that is greater than one bit in length by operating on corresponding pairs of bits in parallel. • It consists of full adders connected in a chain where the output carry from each full adder is connected to the carry input of the next higher order full adder in the chain. • A n bit parallel adder requires n full adders to perform the operation. So for the two-bit number, two adders are needed while for four bit number, four adders are needed and so on.
  • 59. • Parallel adders normally incorporate carry look a head logic to ensure that carry propagation between subsequent stages of addition does not limit addition speed
  • 60. • As shown in the figure, firstly the full adder FA1 adds A1 and B1 along with the carry C1 to generate the sum S1 (the first bit of the output sum) and the carry C2 which is connected to the next adder in chain. • Next, the full adder FA2 uses this carry bit C2 to add with the input bits A2 and B2 to generate the sum S2(the second bit of the output sum) and the carry C3 which is again further connected to the next adder in chain and so on. • The process continues till the last full adder FAn uses the carry bit Cn to add with its input An and Bn to generate the last bit of the output along last carry bit Cout.
  • 61. 2019 • Design a 4 bit parallel adder/subtractor with controlled inverter and explain its working. (6 marks)
  • 62. Example A = 0101 B= 1010 +___________ Sum = 1111 ___________ Carry = 0
  • 63.
  • 64. Parallel Subtractor • A Parallel Subtractor is a digital circuit capable of finding the arithmetic difference of two binary numbers that is greater than one bit in length by operating on corresponding pairs of bits in parallel. • The parallel subtractor can be designed in several ways including combination of half and full subtractors, all full subtractors or all full adders with subtrahend complement input.
  • 65.
  • 66.
  • 67. • As shown in the figure, the parallel binary subtractor is formed by combination of all full adders with subtrahend complement input. • This operation considers that the addition of minuend along with the 2’s complement of the subtrahend is equal to their subtraction. • Firstly the 1’s complement of B is obtained by the NOT gate and 1 can be added through the carry to find out the 2’s complement of B. This is further added to A to carry out the arithmetic subtraction. • The process continues till the last full adder FAn uses the carry bit Cn to add with its input An and 2’s complement of Bn to generate the last bit of the output along last carry bit Cout.
  • 69. Advantages of parallel Adder/Subtractor – • The parallel adder/subtractor performs the addition operation faster as compared to serial adder/subtractor. • Time required for addition does not depend on the number of bits. • The output is in parallel form i.e all the bits are added/subtracted at the same time. • It is less costly.
  • 70. Disadvantages of parallel Adder/Subtractor – • Each adder has to wait for the carry which is to be generated from the previous adder in chain. • The propagation delay( delay associated with the travelling of carry bit) is found to increase with the increase in the number of bits to be added.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87. 2016 Explain 4:1 multiplexer with equation and gates(5 marks)
  • 88.
  • 89.
  • 90.
  • 91. • Now the implementation of 4:1 Multiplexer using truth table and gates.
  • 92.
  • 93. • Multiplexer can act as universal combinational circuit. • All the standard logic gates can be implemented with multiplexers.
  • 94. Implementation of Higher order MUX using lower order MUX 1. 4 : 1 MUX using 2 : 1 MUX
  • 95.
  • 96.
  • 97.
  • 100. Case 3
  • 101.
  • 102.
  • 103.
  • 104. • In general, to implement B : 1 MUX using A : 1 MUX , one formula is used to implement the same. B / A = K1, K1/ A = K2, K2/ A = K3 • ……………… • KN-1 / A = KN = 1 (till we obtain 1 count of MUX). • Example : 4:1 using 2:1 requires 4/2=2 2/2=1 2+1=3 MUX
  • 105. 16 : 1 MUX using 4 : 1 MUX
  • 106. • To implement 16: 1 MUX using 4 : 1 MUX Using the above formula, we can obtain the same. 16 / 4 = 4 4/ 4 = 1 (till we obtain 1 count of MUX) Hence, total number of 4 : 1 MUX are required to implement 16 : 1 MUX = 4 + 1 = 5. • First level we need 4 MUX and second level we need 1
  • 107. Implementing 8X1 MUX using 4X1 MUX (Special Case) • To implement 8: 1 MUX using 4 : 1 MUX Using the above formula, we can obtain the same. 8 / 4 = 2 2/ 4 = 0.5 • We cannot use 2.5 mux so we will use different approach • Using enable which will implement
  • 109. We have to use OR gate When S2=0,s1=0 and s2=0 output is I0+0=I0 E E
  • 110.
  • 111.
  • 112.
  • 113. How a 16:1 MUX can be designed using two 8:1 MUX and one OR gate S3 S2 S1 s0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0
  • 114. S3 S2 S1 s0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 How a 16:1 MUX can be designed using two 8:1 MUX and one OR gate
  • 115. Implementing 16X1 MUX using 8X1 MUX • To implement 16: 1 MUX using 8 : 1 MUX Using the above formula, we can obtain the same. 16/8 = 2 2/ 8 = 0.5 • We cannot use 2.5 mux so we will use different approach • Using enable which will implement which will enable and disable the circuit
  • 116.
  • 117. Implementing 8X1 MUX using 2X1 MUX • To implement 16: 1 MUX using 2 : 1 MUX Using the above formula, we can obtain the same. 8/ 2=4 (at level 1) 4/2=2 (at level 2) 2/2=1 (at level 3) Total Number of multiplexer : 4+2+1=7
  • 118.
  • 119.
  • 120.
  • 121. Demultiplexer • Demultiplexer is a data distributor which takes a single input and gives several outputs. • In demultiplexer we have 1 input and 2n output lines where n is the selection line.
  • 122.
  • 123.
  • 124. 2019 • Design a 1:8 DMUX circuit.
  • 125. Design a 1:8 DMUX circuit
  • 126.
  • 127.
  • 128.
  • 129. 2019 • What is encoder? Discuss the design of 8:3 (octal to binary encoder)
  • 130. Encoders • An Encoder is a combinational circuit that performs the reverse operation of Decoder. • It has maximum of 2^n input lines and ‘n’ output lines, hence it encodes the information from 2^n inputs into an n-bit code. • It will produce a binary code equivalent to the input, which is active High. • Therefore, the encoder encodes 2^n input lines with ‘n’ bits.
  • 131. 8 : 3 Encoder (Octal to Binary) – • The 8 to 3 Encoder or octal to Binary encoder consists of 8 inputs : Y7 to Y0 and 3 outputs : A2, A1 & A0. • Each input line corresponds to each octal digit and three outputs generate corresponding binary code
  • 132.
  • 133.
  • 134. The above three Boolean functions A2, A1 and A0 can be implemented using four input OR gates :
  • 135.
  • 136. Priority Encoder • A 4 to 2 priority encoder has 4 inputs : Y3, Y2, Y1 & Y0 and 2 outputs : A1 & A0. • Here, the input, Y3 has the highest priority, whereas the input, Y0 has the lowest priority. • In this case, even if more than one input is ‘1’ at the same time, the output will be the (binary) code corresponding to the input, which is having higher priority
  • 137.
  • 138.
  • 139.
  • 140.
  • 141.
  • 142.
  • 143.
  • 144. The above two Boolean functions can be implemented as :
  • 145. Decimal to BCD Encoder • The decimal to binary encoder usually consists of 10 input lines and 4 output lines. • Each input line corresponds to the each decimal digit and 4 outputs correspond to the BCD code. • This encoder accepts the decoded decimal data as an input and encodes it to the BCD output which is available on the output lines. • The figure below shows the logic symbol of decimal to BCD encoder :
  • 146.
  • 147. The truth table for decimal to BCD encoder is as follows:
  • 148. Logical expression for A3, A2, A1 and A0 :
  • 149. The above two Boolean functions can be implemented using OR gates :
  • 150. 4 to 2 line Encoder: • In 4 to 2 line encoder, there are total of four inputs, i.e., Y0, Y1, Y2, and Y3, and two outputs, i.e., A0 and A1. • In 4-input lines, one input-line is set to true at a time to get the respective binary code in the output side. • Below are the block diagram and the truth table of the 4 to 2 line encoder.
  • 153. The logical expression of the term A0 and A1 is as follows
  • 154. Logical circuit of the above expressions is given below:
  • 155. Binary Decoder • A decoder is a combinational circuit that converts binary information from n input lines to a maximum of 2^n unique output lines.
  • 156. 2 to 4 line decoder: • In the 2 to 4 line decoder, there is a total of three inputs, i.e., A0, and A1 and E and four outputs, i.e., Y0, Y1, Y2, and Y3. • For each combination of inputs, when the enable 'E' is set to 1, one of these four outputs will be 1. • The block diagram and the truth table of the 2 to 4 line decoder are given below.
  • 159. The logical expression of the term Y0, Y1, Y2, and Y3 is as follows:
  • 160. Logical circuit of the above expressions is given below:
  • 161. 3 to 8 line decoder: • The 3 to 8 line decoder is also known as Binary to Octal Decoder. In a 3 to 8 line decoder, there is a total of eight outputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5, Y6, and Y7 and three inputs, i.e., A0, A1, and A2. • This circuit has an enable input 'E'. Just like 2 to 4 line decoder, when enable 'E' is set to 1, one of these four outputs will be 1. • The block diagram and the truth table of the 3 to 8 line encoder are given below.
  • 164.
  • 165. Logical circuit of the above expressions is given below:
  • 166.
  • 167.
  • 168.
  • 169.
  • 170.
  • 171.
  • 172.
  • 173.
  • 174.
  • 175.
  • 176. 2017 • Draw the logic diagram of parity checker and generator/checker. Explain its operation with the help of truth table.(6.5 marks)
  • 177.
  • 178.
  • 179.
  • 180.
  • 181.
  • 182.
  • 183.
  • 184.
  • 185. Parity Checker • There are two types of parity checkers based on the type of parity has to be checked. • Even parity checker checks error in the transmitted data, which contains message bits along with even parity. • Similarly, odd parity checker checks error in the transmitted data, which contains message bits along with odd parity.
  • 186. 2018 Explain even parity and odd parity. Design a circuit for even parity generator for 3 bit message.(5.5 marks)