Binary Decoder
Binary Decoder
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
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
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.
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
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
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.
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
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
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
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
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
References –
This ar ticle is contributed by Arushi Dhamija. If you like GeeksforGeeks and would like
Please write comments if you find anything incorrect, or you want to share more
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
Ar ticle Contributed By :
GeeksforGeeks
Current difficulty :
Easy
Improved By : VeenaSreekumarNair
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
Load Comments
Company Learn
About Us Algorithms
Careers Data Structures
Privacy Policy Languages
Contact Us CS Subjects
Copyright Policy Video Tutorials
@geeksforgeeks
, Some rights reserved
https://www.geeksforgeeks.org/binary-decoder-in-digital-logic/?ref=lbp 6/6