You are on page 1of 7

Binary Decoder in Digital Logic - GeeksforGeeks https://www.geeksforgeeks.org/binary-decoder-i...

Courses Custom Search Hire with us!

Code 
Converters –
Binary to/from
Gray Code

BCD to 7
Segment
Decoder

Parallel Adder
and Parallel
Subtractor

Carry Look-
Ahead Adder

Magnitude
Comparator in
Digital Logic

BCD Adder in
Digital Logic

Encoders and
Decoders in
Digital Logic

Encoder in
Digital Logic

Binary
Decoder in
Digital Logic

Combinational
circuits using
Decoder

Construction
of ▲
Combinational

1 of 7 06/12/19, 3:38 pm
Binary Decoder in Digital Logic - GeeksforGeeks https://www.geeksforgeeks.org/binary-decoder-i...

Circuits

4-bit binary
Adder-
Subtractor

Difference
between
EPROM and
EEPROM

Difference
between
Decoder and
Demultiplexer

Prime
Implicant chart
for minimizing
Cyclic Boolean
functions

Difference
between DDR
and SDRAM

Counting
Boolean
function with
some variables

Don't Care (X)


Conditions in
K-Maps

Binary Decoder in Digital Logic

2 of 7 06/12/19, 3:38 pm
Binary Decoder in Digital Logic - GeeksforGeeks https://www.geeksforgeeks.org/binary-decoder-i...

In Digital Electronics, discrete quantities of information are represented by binary codes. A bi-
nary 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 an-
other, 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 converts binary information from n
input lines to a maximum of 2^n unique output lines.

Binary Decoder –

Binary 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 de�ned as having an n-bit code, and therefore it will be possible to repre-
sent 2^n possible values.
If a binary 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 information has unused
combinations, the decoder may have fewer than 2^n outputs.
Example, an inverter ( NOT-gate ) can be classi�ed as a 1-to-2 binary decoder as 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 combi-

nation of inputs will assert a unique output.

A Binary Decoder converts coded inputs into coded outputs, where the input and output codes
are different and decoders are available to “decode” either a Binary or BCD (8421 code) input
pattern to typically a Decimal output code.
Practical “binary decoder” circuits include, 2-to-4, 3-to-8 and 4-to-16 line con�gurations.

2-to-4 Binary Decoder –

3 of 7 06/12/19, 3:38 pm
Binary Decoder in Digital Logic - GeeksforGeeks https://www.geeksforgeeks.org/binary-decoder-i...

Ad closed by
Report this ad Why this ad?

questions from our Men

The 2-to-4 line binary decoder depicted above consists of an array of four AND gates. The 2 bi-
nary inputs labelled A and B are decoded into one of 4 outputs, hence the description of 2-to-4
binary decoder. Each output represents one of the minterms of the 2 input variables, (each out-
put = a minterm).

The binary inputs A and B determine which output line from Q0 to Q3 is “HIGH” at logic level “1”

4 of 7 06/12/19, 3:38 pm
Binary Decoder in Digital Logic - GeeksforGeeks https://www.geeksforgeeks.org/binary-decoder-i...

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” identi�es the binary code present at
the input, in other words it “decodes” the binary input.

Some binary decoders have an additional input pin labelled “Enable” that controls the outputs
from the device. This extra input allows the decoders outputs to be turned “ON” or “OFF” as re-
quired. Output is only generated when the Enable input has value 1; otherwise, 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 pro-
duced. 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.

GATE CS Corner Questions

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 prac-
tice them.

1. GATE CS 2007, Question 85


2. GATE CS 20130, Question 65

References –

electronicshub – Binary Decoder

This article is contributed by Arushi Dhamija. If you like GeeksforGeeks and would like to con-
tribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to

contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and
help other Geeks.

Please write comments if you �nd anything incorrect, or you want to share more information
about the topic discussed above.

5 of 7 06/12/19, 3:38 pm
Binary Decoder in Digital Logic - GeeksforGeeks https://www.geeksforgeeks.org/binary-decoder-i...

Ad closed by
Stop seeing this ad Why this ad?

Unlock 1000s of high-

Recommended Posts:
Binary Representations in Digital Logic
Encoder in Digital Logic
Multiplexers in Digital Logic
5 variable K-Map in Digital Logic
Latches in Digital Logic
Counters in Digital Logic
BCD Adder in Digital Logic
Variable Entrant Map (VEM) in Digital Logic
Self Dual functions in Digital Logic
Static Hazards in Digital Logic
Adders and Subtractors in Digital Logic
Functional Completeness in Digital Logic

Magnitude Comparator in Digital Logic


n-bit Johnson Counter in Digital Logic
Shift Registers in Digital Logic

Still in Doubt? Try Free Tests



2000+ Test questions included in this Test series. 380+ unique
questions from our Mentors

6 of 7 06/12/19, 3:38 pm
Binary Decoder in Digital Logic - GeeksforGeeks https://www.geeksforgeeks.org/binary-decoder-i...

Article Tags : Digital Electronics & Logic Design GATE CS


1

2
To-do Done Based on 4 vote(s)

Feedback/ Suggest Improvement Add Notes Improve Article

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.

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 PRACTICE CONTRIBUTE


About Us Algorithms Courses Write an Article
Careers Data Structures Company-wise Write Interview Experience
Privacy Policy Languages Topic-wise Internships
Contact Us CS Subjects How to begin? Videos
Video Tutorials

@geeksforgeeks, Some rights reserved

7 of 7 06/12/19, 3:38 pm

You might also like