SlideShare a Scribd company logo
1 of 15
name en.numbername en.number
•Vikram rajpurohit 140500116033Vikram rajpurohit 140500116033
•riya purohit 140500116032riya purohit 140500116032
•paras patel 140500116024paras patel 140500116024
•krupali panChal 140500116018krupali panChal 140500116018
ENGIN112 L17: Encoders and Decoders October 10, 2003
Overvie
w
° Binary decoders
• Converts an n-bit code to a single active output
• Can be developed using AND/OR gates
• Can be used to implement logic circuits.
° Binary encoders
• Converts one of 2n
inputs to an n-bit output
• Useful for compressing data
• Can be developed using AND/OR gates
° Both encoders and decoders are extensively used in
digital systems
ENGIN112 L17: Encoders and Decoders October 10, 2003
Binary Decoder
° Black box with n input lines and 2n
output lines
° Only one output is a 1 for any given input
Binary
Decoder
n
inputs 2n
outputs
ENGIN112 L17: Encoders and Decoders October 10, 2003
2-to-4 Binary Decoder2-to-4 Binary Decoder
° From truth table, circuit for
2x4 decoder is:
° Note: Each output is a 2-
variable minterm (X'Y', X'Y,
XY' or XY)
X Y F0 F1 F2 F3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
F0 = X'Y'
F1 = X'Y
F2 = XY'
F3 = XY
X Y
Truth Table:
2-to-4
Decoder
X
Y
F0
F1
F2
F3
ENGIN112 L17: Encoders and Decoders October 10, 2003
3-3-
to-8to-8
BinaBina
ryry
DecDec
oderoder
x y z F0 F1 F2 F3 F4 F5 F6 F7
0 0 0 1 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
0 1 0 0 0 1 0 0 0 0 0
0 1 1 0 0 0 1 0 0 0 0
1 0 0 0 0 0 0 1 0 0 0
1 0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 0 1 0
1 1 1 0 0 0 0 0 0 0 1
F1 = x'y'z
x zy
F0 = x'y'z'
F2 = x'yz'
F3 = x'yz
F5 = xy'z
F4 = xy'z'
F6 = xyz'
F7 = xyz
Truth Table:
3-to-8
Decoder
X
Y
F0
F1
F2
F3
F4
F5
F6
F7
Z
ENGIN112 L17: Encoders and Decoders October 10, 2003
Impl
eme
nting
Func
tions
Usin
g
Deco
ders
° Any n-variable logic function can be implemented using
a single n-to-2n
decoder to generate the minterms
• OR gate forms the sum.
• The output lines of the decoder corresponding to the minterms
of the function are used as inputs to the or gate.
° Any combinational circuit with n inputs and m outputs
can be implemented with an n-to-2n
decoder with m OR
gates.
° Suitable when a circuit has many outputs, and each
output function is expressed with few minterms.
ENGIN112 L17: Encoders and Decoders October 10, 2003
Impl
eme
nting
Func
tions
Usin
g
Deco
ders
° Example: Full adder
S(x, y, z) = Σ (1,2,4,7)
C(x, y, z) = Σ (3,5,6,7)
3-to-8
Decoder
S2
S1
S0
x
y
z
0
1
2
3
4
5
6
7
S
C
x y z C S
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
ENGIN112 L17: Encoders and Decoders October 10, 2003
Use two 3 to 8 decoders to make 4 to 16 decoder
° Enable can also be active high
° In this example, only one decoder can be active
at a time.
° x, y, z effectively select output line for w
ENGIN112 L17: Encoders and Decoders October 10, 2003
Encoders
° If the a decoder's output code has fewer bits than the
input code, the device is usually called an encoder.
e.g. 2n
-to-n
° The simplest encoder is a 2n
-to-n binary encoder
• One of 2n
inputs = 1
• Output is an n-bit binary number
.
.
.
.
.
.
2n
inputs
n
outputs
Binary
encoder
ENGIN112 L17: Encoders and Decoders October 10, 2003
8-to-3 Binary Encoder8-to-3 Binary Encoder
At any one time, only
one input line has a value of 1.
Inputs Outputs
I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 y2 y1 y0
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
I0
I1
I2
I3
I4
I5
I6
I7
y0 = I1 + I3 + I5 + I7
y1 = I2 + I3 + I6 + I7
y2 = I4 + I5 + I6 + I7
ENGIN112 L17: Encoders and Decoders October 10, 2003
8-to-3 Priority Encoder8-to-3 Priority Encoder
• What if more than one input line has a value of 1?
• Ignore “lower priority” inputs.
• Idle indicates that no input is a 1.
• Note that polarity of Idle is opposite from Table 4-8 in Mano
Inputs Outputs
I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 y2 y1 y0 Idle
0 0 0 0 0 0 0 0 x x x 1
1 0 0 0 0 0 0 0 0 0 0 0
X 1 0 0 0 0 0 0 0 0 1 0
X X 1 0 0 0 0 0 0 1 0 0
X X X 1 0 0 0 0 0 1 1 0
X X X X 1 0 0 0 1 0 0 0
X X X X X 1 0 0 1 0 1 0
X X X X X X 1 0 1 1 0 0
X X X X X X X 1 1 1 1 0
ENGIN112 L17: Encoders and Decoders October 10, 2003
Priority Encoder (8 to 3 encoder)
° Assign priorities to the inputs
° When more than one input are asserted, the output generates the
code of the input with the highest priority
° Priority Encoder :
H7=I7 (Highest Priority)
H6=I6.I7’
H5=I5.I6’.I7’
H4=I4.I5’.I6’.I7’
H3=I3.I4’.I5’.I6’.I7’
H2=I2.I3’.I4’.I5’.I6’.I7’
H1=I1. I2’.I3’.I4’.I5’.I6’.I7’
H0=I0.I1’. I2’.I3’.I4’.I5’.I6’.I7’
IDLE= I0’.I1’. I2’.I3’.I4’.I5’.I6’.I7’
° Encoder
Y0 = I1 + I3 + I5 + I7
Y1 = I2 + I3 + I6 + I7
Y2 = I4 + I5 + I6 + I7
Y1
Y2
Y0
IDLE
I1
I2
I3 Y1
Y2I4
I5
I6
I0
Y0
I7
Binary encoder
I1
I2
I3
I4
I5
I6
I0
I7
Priority Circuit
H1
H2
H3
H4
H5
H6
H0
H7
IDLE
I1
I2
I3
I4
I5
I6
I0
I7
Priority encoder
ENGIN112 L17: Encoders and Decoders October 10, 2003
Encoder Application (Monitoring Unit)
Action
Encoder Controller
Machine
Code
Machine 1
Machine 2
Machine n
Alarm
Signal
Contoller
Response
° Encoder identifies the requester and encodes the value
° Controller accepts digital inputs.
ENGIN112 L17: Encoders and Decoders October 10, 2003
Summary
° Decoder allows for generation of a single binary output
from an input binary code
• For an n-input binary decoder there are 2n
outputs
° Decoders are widely used in storage devices (e.g.
memories)
• We will discuss these in a few weeks
° Encoders all for data compression
° Priority encoders rank inputs and encode the highest
priority input
° Next time: storage elements!

More Related Content

What's hot

Encoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexersEncoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexerspubgalarab
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsSARITHA REDDY
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity CheckerJignesh Navdiya
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits DrSonali Vyas
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)ISMT College
 
Parallel Adder and Subtractor
Parallel Adder and SubtractorParallel Adder and Subtractor
Parallel Adder and SubtractorSmit Shah
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexersUnsa Shakir
 
Code conversions.pptx415.pptx
Code conversions.pptx415.pptxCode conversions.pptx415.pptx
Code conversions.pptx415.pptxMariaJoseph591921
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoderAbid Ali
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and SubtractorJaimin@prt.ltd.
 
Full custom digital ic design of priority encoder
Full custom digital ic design of priority encoderFull custom digital ic design of priority encoder
Full custom digital ic design of priority encoderVishesh Thakur
 

What's hot (20)

Encoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexersEncoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexers
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
 
Encoders
EncodersEncoders
Encoders
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
Decoders
DecodersDecoders
Decoders
 
Parallel Adder and Subtractor
Parallel Adder and SubtractorParallel Adder and Subtractor
Parallel Adder and Subtractor
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Code conversions.pptx415.pptx
Code conversions.pptx415.pptxCode conversions.pptx415.pptx
Code conversions.pptx415.pptx
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
 
Logic gate
Logic gateLogic gate
Logic gate
 
Full custom digital ic design of priority encoder
Full custom digital ic design of priority encoderFull custom digital ic design of priority encoder
Full custom digital ic design of priority encoder
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
Boolean algebra & logic gates
Boolean algebra & logic gatesBoolean algebra & logic gates
Boolean algebra & logic gates
 
Logic families
Logic familiesLogic families
Logic families
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 

Viewers also liked

Viewers also liked (20)

Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Encoders and Decoders
Encoders and DecodersEncoders and Decoders
Encoders and Decoders
 
Decoder for digital electronics
Decoder for digital electronicsDecoder for digital electronics
Decoder for digital electronics
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 
Encoder
EncoderEncoder
Encoder
 
Decoders
DecodersDecoders
Decoders
 
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, EncoderCOMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
COMPUTER ORGANIZATION -Multiplexer,Demultiplexer, Encoder
 
Encoders
EncodersEncoders
Encoders
 
Optical Encoder
Optical EncoderOptical Encoder
Optical Encoder
 
Encoder decoder
Encoder decoderEncoder decoder
Encoder decoder
 
Multiplexer & de multiplexer
Multiplexer & de multiplexerMultiplexer & de multiplexer
Multiplexer & de multiplexer
 
multiplexer and d-multiplexer
multiplexer and d-multiplexermultiplexer and d-multiplexer
multiplexer and d-multiplexer
 
Decoders and encoders
Decoders and encodersDecoders and encoders
Decoders and encoders
 
Digital 1 8
Digital 1 8Digital 1 8
Digital 1 8
 
CONTROL DE LA VELOCIDAD DE UN MOTOR DC CON ENCODER
CONTROL DE LA VELOCIDAD DE UN MOTOR DC CON ENCODERCONTROL DE LA VELOCIDAD DE UN MOTOR DC CON ENCODER
CONTROL DE LA VELOCIDAD DE UN MOTOR DC CON ENCODER
 
Difference between combinational and
Difference between combinational andDifference between combinational and
Difference between combinational and
 
Multiplexer
MultiplexerMultiplexer
Multiplexer
 
Combinational Circuits & Sequential Circuits
Combinational Circuits & Sequential CircuitsCombinational Circuits & Sequential Circuits
Combinational Circuits & Sequential Circuits
 
Flipflop
FlipflopFlipflop
Flipflop
 
Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
 

Similar to encoder and decoder in digital electronics

digital-electronics_9 encoder and decoder pdf
digital-electronics_9 encoder and decoder pdfdigital-electronics_9 encoder and decoder pdf
digital-electronics_9 encoder and decoder pdfsomanathbtech
 
digital-electronics_9 encoder and decoder pdf
digital-electronics_9 encoder and decoder pdfdigital-electronics_9 encoder and decoder pdf
digital-electronics_9 encoder and decoder pdfsomanathbtech
 
Encoder-and-decoder.pptx
Encoder-and-decoder.pptxEncoder-and-decoder.pptx
Encoder-and-decoder.pptxKamranAli649587
 
decoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptxdecoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptxtlap4412
 
Saur lecture 16
Saur lecture 16Saur lecture 16
Saur lecture 16saur28_83
 
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxDLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxSaveraAyub2
 
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptxENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptxAishah928448
 
Encoder_decoder_si.pdf
Encoder_decoder_si.pdfEncoder_decoder_si.pdf
Encoder_decoder_si.pdfsimmis5
 
Digital electronices encode decode
Digital electronices encode decodeDigital electronices encode decode
Digital electronices encode decodeSabbir Ahmed Zoy
 
What is a decoder and 2 to 4 DECODER
What is a decoder and 2 to 4 DECODERWhat is a decoder and 2 to 4 DECODER
What is a decoder and 2 to 4 DECODERsafia safreen
 
Decodder presentation by ibrar
Decodder presentation by ibrarDecodder presentation by ibrar
Decodder presentation by ibraribrar562
 
Chapter 4 combinational circuit
Chapter 4 combinational circuit Chapter 4 combinational circuit
Chapter 4 combinational circuit GulAhmad16
 

Similar to encoder and decoder in digital electronics (20)

08 decoder
08 decoder08 decoder
08 decoder
 
encoder
encoder encoder
encoder
 
sa999000
sa999000sa999000
sa999000
 
digital-electronics_9 encoder and decoder pdf
digital-electronics_9 encoder and decoder pdfdigital-electronics_9 encoder and decoder pdf
digital-electronics_9 encoder and decoder pdf
 
digital-electronics_9 encoder and decoder pdf
digital-electronics_9 encoder and decoder pdfdigital-electronics_9 encoder and decoder pdf
digital-electronics_9 encoder and decoder pdf
 
Encoder-and-decoder.pptx
Encoder-and-decoder.pptxEncoder-and-decoder.pptx
Encoder-and-decoder.pptx
 
decoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptxdecoders121-170714184489769876987698749.pptx
decoders121-170714184489769876987698749.pptx
 
ATT SMK.pptx
ATT SMK.pptxATT SMK.pptx
ATT SMK.pptx
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Saur lecture 16
Saur lecture 16Saur lecture 16
Saur lecture 16
 
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptxDLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
DLD Lecture No 22 Decoder Circuit and Types of Decoder.pptx
 
UNIT3.3.pdf
UNIT3.3.pdfUNIT3.3.pdf
UNIT3.3.pdf
 
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptxENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
 
Encoders
EncodersEncoders
Encoders
 
Encoder_decoder_si.pdf
Encoder_decoder_si.pdfEncoder_decoder_si.pdf
Encoder_decoder_si.pdf
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
Digital electronices encode decode
Digital electronices encode decodeDigital electronices encode decode
Digital electronices encode decode
 
What is a decoder and 2 to 4 DECODER
What is a decoder and 2 to 4 DECODERWhat is a decoder and 2 to 4 DECODER
What is a decoder and 2 to 4 DECODER
 
Decodder presentation by ibrar
Decodder presentation by ibrarDecodder presentation by ibrar
Decodder presentation by ibrar
 
Chapter 4 combinational circuit
Chapter 4 combinational circuit Chapter 4 combinational circuit
Chapter 4 combinational circuit
 

More from vikram rajpurohit

Factors of Production (economics)
Factors of Production (economics)Factors of Production (economics)
Factors of Production (economics)vikram rajpurohit
 
INTRODUCTION TO ECONOMICS(Microeconomics vs. Macroeconomics)
INTRODUCTION TO ECONOMICS(Microeconomics vs. Macroeconomics)INTRODUCTION TO ECONOMICS(Microeconomics vs. Macroeconomics)
INTRODUCTION TO ECONOMICS(Microeconomics vs. Macroeconomics)vikram rajpurohit
 
Circuit protection devices perfect ppt
Circuit protection devices perfect ppt Circuit protection devices perfect ppt
Circuit protection devices perfect ppt vikram rajpurohit
 

More from vikram rajpurohit (6)

Factors of Production (economics)
Factors of Production (economics)Factors of Production (economics)
Factors of Production (economics)
 
INTRODUCTION TO ECONOMICS(Microeconomics vs. Macroeconomics)
INTRODUCTION TO ECONOMICS(Microeconomics vs. Macroeconomics)INTRODUCTION TO ECONOMICS(Microeconomics vs. Macroeconomics)
INTRODUCTION TO ECONOMICS(Microeconomics vs. Macroeconomics)
 
types of SQL Joins
 types of SQL Joins types of SQL Joins
types of SQL Joins
 
FUNCTIONS OF MANAGEMENT
FUNCTIONS OFMANAGEMENTFUNCTIONS OFMANAGEMENT
FUNCTIONS OF MANAGEMENT
 
Circuit protection devices
Circuit protection devicesCircuit protection devices
Circuit protection devices
 
Circuit protection devices perfect ppt
Circuit protection devices perfect ppt Circuit protection devices perfect ppt
Circuit protection devices perfect ppt
 

Recently uploaded

fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 

Recently uploaded (20)

fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

encoder and decoder in digital electronics

  • 1.
  • 2. name en.numbername en.number •Vikram rajpurohit 140500116033Vikram rajpurohit 140500116033 •riya purohit 140500116032riya purohit 140500116032 •paras patel 140500116024paras patel 140500116024 •krupali panChal 140500116018krupali panChal 140500116018
  • 3. ENGIN112 L17: Encoders and Decoders October 10, 2003 Overvie w ° Binary decoders • Converts an n-bit code to a single active output • Can be developed using AND/OR gates • Can be used to implement logic circuits. ° Binary encoders • Converts one of 2n inputs to an n-bit output • Useful for compressing data • Can be developed using AND/OR gates ° Both encoders and decoders are extensively used in digital systems
  • 4. ENGIN112 L17: Encoders and Decoders October 10, 2003 Binary Decoder ° Black box with n input lines and 2n output lines ° Only one output is a 1 for any given input Binary Decoder n inputs 2n outputs
  • 5. ENGIN112 L17: Encoders and Decoders October 10, 2003 2-to-4 Binary Decoder2-to-4 Binary Decoder ° From truth table, circuit for 2x4 decoder is: ° Note: Each output is a 2- variable minterm (X'Y', X'Y, XY' or XY) X Y F0 F1 F2 F3 0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 1 0 1 1 0 0 0 1 F0 = X'Y' F1 = X'Y F2 = XY' F3 = XY X Y Truth Table: 2-to-4 Decoder X Y F0 F1 F2 F3
  • 6. ENGIN112 L17: Encoders and Decoders October 10, 2003 3-3- to-8to-8 BinaBina ryry DecDec oderoder x y z F0 F1 F2 F3 F4 F5 F6 F7 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0 1 1 1 0 0 0 0 0 0 0 1 F1 = x'y'z x zy F0 = x'y'z' F2 = x'yz' F3 = x'yz F5 = xy'z F4 = xy'z' F6 = xyz' F7 = xyz Truth Table: 3-to-8 Decoder X Y F0 F1 F2 F3 F4 F5 F6 F7 Z
  • 7. ENGIN112 L17: Encoders and Decoders October 10, 2003 Impl eme nting Func tions Usin g Deco ders ° Any n-variable logic function can be implemented using a single n-to-2n decoder to generate the minterms • OR gate forms the sum. • The output lines of the decoder corresponding to the minterms of the function are used as inputs to the or gate. ° Any combinational circuit with n inputs and m outputs can be implemented with an n-to-2n decoder with m OR gates. ° Suitable when a circuit has many outputs, and each output function is expressed with few minterms.
  • 8. ENGIN112 L17: Encoders and Decoders October 10, 2003 Impl eme nting Func tions Usin g Deco ders ° Example: Full adder S(x, y, z) = Σ (1,2,4,7) C(x, y, z) = Σ (3,5,6,7) 3-to-8 Decoder S2 S1 S0 x y z 0 1 2 3 4 5 6 7 S C x y z C S 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1
  • 9. ENGIN112 L17: Encoders and Decoders October 10, 2003 Use two 3 to 8 decoders to make 4 to 16 decoder ° Enable can also be active high ° In this example, only one decoder can be active at a time. ° x, y, z effectively select output line for w
  • 10. ENGIN112 L17: Encoders and Decoders October 10, 2003 Encoders ° If the a decoder's output code has fewer bits than the input code, the device is usually called an encoder. e.g. 2n -to-n ° The simplest encoder is a 2n -to-n binary encoder • One of 2n inputs = 1 • Output is an n-bit binary number . . . . . . 2n inputs n outputs Binary encoder
  • 11. ENGIN112 L17: Encoders and Decoders October 10, 2003 8-to-3 Binary Encoder8-to-3 Binary Encoder At any one time, only one input line has a value of 1. Inputs Outputs I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 y2 y1 y0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 1 1 1 1 I0 I1 I2 I3 I4 I5 I6 I7 y0 = I1 + I3 + I5 + I7 y1 = I2 + I3 + I6 + I7 y2 = I4 + I5 + I6 + I7
  • 12. ENGIN112 L17: Encoders and Decoders October 10, 2003 8-to-3 Priority Encoder8-to-3 Priority Encoder • What if more than one input line has a value of 1? • Ignore “lower priority” inputs. • Idle indicates that no input is a 1. • Note that polarity of Idle is opposite from Table 4-8 in Mano Inputs Outputs I 0 I 1 I 2 I 3 I 4 I 5 I 6 I 7 y2 y1 y0 Idle 0 0 0 0 0 0 0 0 x x x 1 1 0 0 0 0 0 0 0 0 0 0 0 X 1 0 0 0 0 0 0 0 0 1 0 X X 1 0 0 0 0 0 0 1 0 0 X X X 1 0 0 0 0 0 1 1 0 X X X X 1 0 0 0 1 0 0 0 X X X X X 1 0 0 1 0 1 0 X X X X X X 1 0 1 1 0 0 X X X X X X X 1 1 1 1 0
  • 13. ENGIN112 L17: Encoders and Decoders October 10, 2003 Priority Encoder (8 to 3 encoder) ° Assign priorities to the inputs ° When more than one input are asserted, the output generates the code of the input with the highest priority ° Priority Encoder : H7=I7 (Highest Priority) H6=I6.I7’ H5=I5.I6’.I7’ H4=I4.I5’.I6’.I7’ H3=I3.I4’.I5’.I6’.I7’ H2=I2.I3’.I4’.I5’.I6’.I7’ H1=I1. I2’.I3’.I4’.I5’.I6’.I7’ H0=I0.I1’. I2’.I3’.I4’.I5’.I6’.I7’ IDLE= I0’.I1’. I2’.I3’.I4’.I5’.I6’.I7’ ° Encoder Y0 = I1 + I3 + I5 + I7 Y1 = I2 + I3 + I6 + I7 Y2 = I4 + I5 + I6 + I7 Y1 Y2 Y0 IDLE I1 I2 I3 Y1 Y2I4 I5 I6 I0 Y0 I7 Binary encoder I1 I2 I3 I4 I5 I6 I0 I7 Priority Circuit H1 H2 H3 H4 H5 H6 H0 H7 IDLE I1 I2 I3 I4 I5 I6 I0 I7 Priority encoder
  • 14. ENGIN112 L17: Encoders and Decoders October 10, 2003 Encoder Application (Monitoring Unit) Action Encoder Controller Machine Code Machine 1 Machine 2 Machine n Alarm Signal Contoller Response ° Encoder identifies the requester and encodes the value ° Controller accepts digital inputs.
  • 15. ENGIN112 L17: Encoders and Decoders October 10, 2003 Summary ° Decoder allows for generation of a single binary output from an input binary code • For an n-input binary decoder there are 2n outputs ° Decoders are widely used in storage devices (e.g. memories) • We will discuss these in a few weeks ° Encoders all for data compression ° Priority encoders rank inputs and encode the highest priority input ° Next time: storage elements!

Editor's Notes

  1. credential: bring a computer die photo wafer : This can be an hidden slide. I just want to use this to do my own planning. I have rearranged Culler’s lecture slides slightly and add more slides. This covers everything he covers in his first lecture (and more) but may We will save the fun part, “ Levels of Organization,” at the end (so student can stay awake): I will show the internal stricture of the SS10/20. Notes to Patterson: You may want to edit the slides in your section or add extra slides to taylor your needs.
  2. credential: bring a computer die photo wafer : This can be an hidden slide. I just want to use this to do my own planning. I have rearranged Culler’s lecture slides slightly and add more slides. This covers everything he covers in his first lecture (and more) but may We will save the fun part, “ Levels of Organization,” at the end (so student can stay awake): I will show the internal stricture of the SS10/20. Notes to Patterson: You may want to edit the slides in your section or add extra slides to taylor your needs.