Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
119 views

Binary Decoder

The document discusses binary decoders in digital logic. It explains that a binary decoder converts a binary input into a single activated output out of multiple possible outputs. It provides examples of 2-to-4 and 3-to-8 decoders and describes how they work by activating a single output based on the binary input. The document also mentions that decoders are used to decode binary and BCD codes into decimal outputs.

Uploaded by

S Karan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
119 views

Binary Decoder

The document discusses binary decoders in digital logic. It explains that a binary decoder converts a binary input into a single activated output out of multiple possible outputs. It provides examples of 2-to-4 and 3-to-8 decoders and describes how they work by activating a single output based on the binary input. The document also mentions that decoders are used to decode binary and BCD codes into decimal outputs.

Uploaded by

S Karan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

12/6/21, 8:03 AM Binary Decoder in Digital Logic - GeeksforGeeks

Binary Decoder in Digital Logic


Difficulty Level :
Easy ● Last Updated :
06 Feb, 2020

In Digital Electronic s, discrete quantities of information are represented by binar y

codes. A binar y code of n bits is capable of representing up to 2^n distinct elements of

coded information. The name “Decoder ” means to translate or decode coded

information from one format into another, so a digital decoder transforms a set of

digital input signals into an equivalent decimal code at its output. A decoder is a

combinational circuit that conver ts binar y information from n input lines to a

maximum of 2^n unique output lines.

Binar y Decoder –

Binar y Decoders are another type of digital logic device that has inputs of 2-bit, 3-

bit or 4-bit codes depending upon the number of data input lines, so a decoder that

has a set of two or more bits will be defined as having an n-bit code, and therefore

it will be possible to represent 2^n possible values.

If a binar y decoder receives n inputs it activates one and only one of its 2^n outputs

based on that input with all other outputs deactivated. If the n -bit coded

https://www.geeksforgeeks.org/binary-decoder-in-digital-logic/?ref=lbp 1/6
12/6/21, 8:03 AM Binary Decoder in Digital Logic - GeeksforGeeks

information has unused combinations, the decoder may have fewer than 2^n

outputs.

Start Your Coding Journey Now! Login


Example, an inver ter ( NOT-gate ) can be classified as a 1-to-2 binar y decoder as
Register
1-input and 2-outputs is possible. i.e an input A can give either A or A complement

as the output.

Then we can say that a standard combinational logic decoder is an n-to-m decoder,

where m <= 2^n, and whose output, Q is dependent only on its present input states.

Their purpose is to generate the 2^n (or fewer) minterms of n input variables. Each

combination of inputs will asser t a unique output.

A Binar y Decoder conver ts coded inputs into coded outputs, where the input and

output codes are different and decoders are available to “decode” either a Binar y or

BCD (8421 code) input pattern to typically a Decimal output code.

Practical “binar y decoder ” circuits include 2-to-4, 3-to-8 and 4-to-16 line

configurations.

Attention reader! Don’t stop learning now.  Practice GATE exam well before the

actual exam with the subject-wise and overall quizzes available in GATE Test

Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

2-to-4 Binar y Decoder –

https://www.geeksforgeeks.org/binary-decoder-in-digital-logic/?ref=lbp 2/6
12/6/21, 8:03 AM Binary Decoder in Digital Logic - GeeksforGeeks

Start Your Coding Journey Now! Login CCE & Intellipaat


IIT Madras Register

Master Python, Machine Learning, Statistics, Da


Science, AI, Tableau with No Cost EMI.

The 2-to-4 line binar y decoder depicted above consists of an array of four AND gates.

The 2 binar y inputs labeled A and B are decoded into one of 4 outputs, hence the

description of a 2-to-4 binar y decoder. Each output represents one of the minterms of

the 2 input variables, (each output = a minterm).

The output values will be:

Qo=A’B’

Q1=A’B

Q2=A B’

Q3=A B

The binar y inputs A and B determine which output line from Q0 to Q3 is “HIGH” at logic

level “1” while the remaining outputs are held “LOW ” at logic “0” so only one output can

be active (HIGH) at any one time. Therefore, whichever output line is “HIGH” identifies

the binar y code present at the input, in other words, it “decodes” the binar y input.

https://www.geeksforgeeks.org/binary-decoder-in-digital-logic/?ref=lbp 3/6
12/6/21, 8:03 AM Binary Decoder in Digital Logic - GeeksforGeeks

Some binar y decoders have an additional input pin labeled “Enable” that controls the

Start Your Coding Journey Now!


outputs from the device. This extra input allows the outputs of the decoder to be

Login Register
turned “ON” or “OFF ” as required. The output is only generated when the Enable input

has value 1; other wise, all outputs are 0. Only a small change in the implementation is

required: the Enable input is fed into the AND gates which produce the outputs.

If Enable is 0, all AND gates are supplied with one of the inputs as 0 and hence no

output is produced. When Enable is 1, the AND gates get one of the inputs as 1, and

now the output depends upon the remaining inputs. Hence the output of the decoder is

dependent on whether the Enable is high or low.

Data Structures
GATE CS Corner Questions
Algorithms Interview Preparation Topic-wise Practice C++ Java Python

Practicing the following questions will help you test your knowledge. All questions

have been asked in GATE in previous years or in GATE Mock Tests. It is highly

recommended that you practice them.

1. GATE CS 2007, Question 85

2. GATE CS 20130, Question 65

References –

electronic shub – Binar y Decoder

This ar ticle is contributed by Arushi Dhamija. If you like GeeksforGeeks and would like

to contribute, you can also write an ar ticle using contribute.geeksforgeeks.org or mail

your ar ticle to contribute@geeksforgeeks.org. See your ar ticle appearing on the

GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more

information about the topic discussed above.

Like 0

Previous Next

https://www.geeksforgeeks.org/binary-decoder-in-digital-logic/?ref=lbp 4/6
12/6/21, 8:03 AM Binary Decoder in Digital Logic - GeeksforGeeks

RECOMMENDED ARTICLES Page : 1 2 3


Start Your Coding Journey Now! Login Register

BCD to 7 Segment Decoder Difference between Encoder and


01 05
19, Jan 18
Decoder
10, Oct 20

Combinational circuits using


02
Decoder Binary Representations in Digital
06
16, Mar 18
Logic
14, Sep 18

Difference between Decoder and


03
Demultiplexer Serial Binary Adder in Digital Logic
28, Aug 19
07 22, Apr 20

Difference between Multiplexer Non-binary Counter in Digital


04 08
and Decoder Logic
12, Jun 20 23, Apr 20

Ar ticle Contributed By :

GeeksforGeeks

Vote for difficulty

Current difficulty :
Easy

Easy Normal Medium Hard Expert

Improved By : VeenaSreekumarNair

Article Tags : Digital Electronics & Logic Design, GATE CS

Improve Article Report Issue


https://www.geeksforgeeks.org/binary-decoder-in-digital-logic/?ref=lbp 5/6
12/6/21, 8:03 AM Binary Decoder in Digital Logic - GeeksforGeeks

Start Your Coding Journey Now! Login Register

Writing code in comment?


Please use ide.geeksforgeeks.org,
generate link and share the link here.

Load Comments

5th Floor, A-118,

Sector-136, Noida, Uttar Pradesh - 201305


feedback@geeksforgeeks.org

Company Learn
About Us Algorithms
Careers Data Structures
Privacy Policy Languages
Contact Us CS Subjects
Copyright Policy Video Tutorials

Web Development Contribute


Web Tutorials Write an Article
HTML Write Interview Experience
CSS Internships
JavaScript Videos
Bootstrap

@geeksforgeeks
, Some rights reserved

https://www.geeksforgeeks.org/binary-decoder-in-digital-logic/?ref=lbp 6/6

You might also like