The Wayback Machine - https://web.archive.org/web/20240927043142/https://www.geeksforgeeks.org/binary-decoder-in-digital-logic/
Open In App

Binary Decoder in Digital Logic

Last Updated : 06 May, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

A binary decoder is a digital circuit that converts a binary code into a set of outputs. The binary code represents the position of the desired output and is used to select the specific output that is active. Binary decoders are the inverse of encoders and are commonly used in digital systems to convert a serial code into a parallel set of outputs.

  1. The basic principle of a binary decoder is to assign a unique output to each possible binary code. For example, a binary decoder with 4 inputs and 2^4 = 16 outputs can assign a unique output to each of the 16 possible 4-bit binary codes.
  2. The inputs of a binary decoder are usually active low, meaning that only one input is active (low) at any given time, and the remaining inputs are inactive (high). The active low input is used to select the specific output that is active.
  3. There are different types of binary decoders, including priority decoders, which assign a priority to each output, and error-detecting decoders, which can detect errors in the binary code and generate an error signal.

In summary, a binary decoder is a digital circuit that converts a binary code into a set of outputs. Binary decoders are the inverse of encoders and are widely used in digital systems to convert serial codes into parallel outputs.

In Digital Electronics, discrete quantities of information are represented by binary codes. A binary 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 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 defined as having an n-bit code, and therefore it will be possible to represent 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 classified 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 combination 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 configurations.

2-to-4 Binary Decoder –

The 2-to-4 line binary decoder depicted above consists of an array of four AND gates. The 2 binary inputs labeled A and B are decoded into one of 4 outputs, hence the description of a 2-to-4 binary 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=AB’ Q3=AB The binary 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 binary code present at the input, in other words, it “decodes” the binary input. Some binary decoders have an additional input pin labeled “Enable” that controls the outputs from the device. This extra input allows the outputs of the decoder to be turned “ON” or “OFF” as required. The 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 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. 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 practice them.

  1. GATE CS 2007, Question 85
  2. GATE CS 20130, Question 65

Advantages of using Binary Decoders in Digital Logic:

  1. Increased flexibility: Binary decoders provide a flexible way to select one of multiple outputs based on a binary code, allowing for a wide range of applications.
  2. Improved performance: By converting a serial code into a parallel set of outputs, binary decoders can improve the performance of a digital system by reducing the amount of time required to transmit information from a single input to multiple outputs.
  3. Improved reliability: By reducing the number of lines required to transmit information from a single input to multiple outputs, binary decoders can reduce the possibility of errors in the transmission of information.

Disadvantages of using Binary Decoders in Digital Logic:

  1. Increased complexity: Binary decoders are typically more complex circuits compared to demultiplexers, and require additional components to implement.
  2. Limited to specific applications: Binary decoders are only suitable for applications where a serial code must be converted into a parallel set of outputs.
  3. Limited number of outputs: Binary decoders are limited in their number of outputs, as the number of outputs is determined by the number of inputs and the binary code used.

In conclusion, binary decoders are useful digital circuits that have their advantages and disadvantages. The choice of whether to use a binary decoder or not depends on the specific requirements of the system and the trade-offs between complexity, reliability, performance, and cost.

Application of Binary Decoder in Digital Logic:

1.Memory tending to: In computerized frameworks, paired decoders are generally used to choose a particular memory area from a variety of memory areas. The location inputs are applied to the double decoder, and the comparing memory area is chosen.

2.Control circuits: Parallel decoders are utilized in charge circuits to produce control signals for various tasks. For instance, in a microchip, a double decoder is utilized to translate the guidance opcode and produce control signals for the comparing activity.

3.Display drivers: In computerized frameworks that utilization show gadgets, for example, Drove shows, parallel decoders are utilized to drive the presentation. The double data sources are applied to the decoder, and the relating Drove is enlightened.

4.Address unraveling: Parallel decoders are utilized in address disentangling circuits to create the chip select sign for a particular memory or fringe gadget.

5.Digital correspondence: Twofold decoders are utilized in advanced correspondence frameworks to unravel the computerized information got over the correspondence channel.

6.Error rectification: Double decoders are utilized in mistake amendment circuits to recognize and address blunders in computerized information.

References – 

Here are a few books that you can refer to for further information on digital logic and binary decoders:

  1. “Digital Systems Design Using VHDL” by Charles H. Roth Jr. and Lizy Kurian John
  2. “Digital Design and Computer Architecture” by David Harris and Sarah Harris
  3. “Principles of Digital Design” by Daniel D. Gajski, Frank Vahid and Tony Givargis
  4. “Digital Circuit Design: An Introduction” by Thomas L. Floyd and David Money Harris
  5. “Digital Fundamentals” by Thomas L. Floyd

These books cover various topics in digital logic and design, including binary decoders, and provide in-depth information on the theory, design, and implementation of digital circuits.

electronicshub – Binary Decoder



Previous Article
Next Article

Similar Reads

Serial Binary Adder in Digital Logic
Serial binary adder is a combinational logic circuit that performs the addition of two binary numbers in serial form. Serial binary adder performs bit by bit addition. Two shift registers are used to store the binary numbers that are to be added. A single full adder is used to add one pair of bits at a time along with the carry. The carry output fr
2 min read
Non-binary Counter in Digital Logic
A counter is a circuit that counts the number of occurrences of an input. The circuit consists of flip-flops which along with combinational elements are used for generation of control signals. If M = Total number of states, and n = Total number of flip-flop Then, M <= 2n If M = 2n ; Binary counter and M < 2n ; Non-binary counter Block Diagram
2 min read
Binary Representations in Digital Logic
In the digital system of logic, binary forms have core functions with respect to data processing. Binary numbers systems in which only two states are possible-0 and 1 are used in digital circuits for mathematical computations for storing information as well as information transmission. Such techniques include sign and magnitude, one’s complement an
8 min read
2 to 4 Decoder in Verilog HDL
In this article, we will implement the 2:4 Decoder using all levels of abstraction in Verilog HDL with a step-by-step procedure. Before proceeding to code we shall look into the truth table and logic symbol of the 2:4 Decoder. 2:4 Decoder A decoder is a combinational logic circuit that has ‘n’ input signal lines and 2n output lines. In the 2:4 deco
5 min read
BCD to 7 Segment Decoder
Prerequisite - Number System and base conversions Binary Coded Decimal (BCD)BCD is the encoding scheme each of the decimal numbers(0-9) is represented by its equivalent binary pattern(which is generally of 4-bits). Seven segment Seven Segment display is an electronic device which consists of seven Light Emitting Diodes (LEDs) arranged in a some def
5 min read
Combinational circuits using Decoder
Combinational circuits utilizing decoders are basic parts in a computerized plan, assuming a significant part in making an interpretation of parallel data into noteworthy results. Decoders are combinational rationale gadgets that convert twofold information signals into an extraordinary arrangement of results, each addressing a particular blend of
8 min read
Difference between Multiplexer and Decoder
Both the multiplexer and the decoder operate together to generate signal and data output for various communication and operating channels. Though multiplexers and decoders perform almost identical functions, they differ for a variety of reasons. Before moving into the difference between Multiplexer and Decoder, let's first understand more about the
3 min read
Difference between Decoder and Demultiplexer
Decoders and Demultiplexers both are digital logic components used in electronic circuits to perform specific tasks related to signal routing and control. While they might seem similar at first glance, they serve different purposes and have distinct characteristics. Here's an explanation of the key differences between a decoder and a demultiplexer.
5 min read
Difference Between Encoder and Decoder
Combinational Logic is the concept in which two or more input states define one or more output states. The Encoder and Decoder are combinational logic circuits. In which we implement combinational logic with the help of boolean algebra. To encode something is to convert in piece of information into a form of code that is not so clearly understood a
9 min read
Difference between Programmable Logic Array and Programming Array Logic
Programmable Logic Array (PLA) and Programming Array Logic (PAL) are the categories of programming logic devices. In PLA or Programmable Logic Array, there are massive functions can be implemented. Whereas in PAL or Programmable Array Logic, there is finite functions can be implemented. The distinction between PLA and PAL is that, PAL have programm
5 min read
Full Subtractor in Digital Logic
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 ou
3 min read
Encoder in Digital Logic
An encoder is a digital circuit that converts a set of binary inputs into a unique binary code. The binary code represents the position of the input and is used to identify the specific input that is active. Encoders are commonly used in digital systems to convert a parallel set of inputs into a serial code. The basic principle of an encoder is to
6 min read
Shift Registers in Digital Logic
Pre-Requisite: Flip-Flops Flip flops can be used to store a single bit of binary data (1 or 0). However, in order to store multiple bits of data, we need multiple flip-flops. N flip flops are to be connected in order to store n bits of data. A Register is a device that is used to store such information. It is a group of flip-flops connected in seri
8 min read
Consensus Theorem in Digital Logic
Prerequisite - Properties of Boolean algebra, Minimization of Boolean Functions Redundancy theorem is used as a Boolean algebra trick in Digital Electronics. It is also known as Consensus Theorem: AB + A'C + BC = AB + A'C The consensus or resolvent of the terms AB and A'C is BC. It is the conjunction of all the unique literals of the terms, excludi
3 min read
Variable Entrant Map (VEM) in Digital Logic
Prerequisite - Karnaugh Map (K-map) K-map is the best manual technique to solve Boolean equations, but it becomes difficult to manage when number of variables exceed 5 or 6. So, a technique called Variable Entrant Map (VEM) is used to increase the effective size of k-map. It allows a smaller map to handle large number of variables. This is done by
3 min read
Static Hazards in Digital Logic
A hazard, if exists, in a digital circuit causes a temporary fluctuation in the output of the circuit. In other words, a hazard in a digital circuit is a temporary disturbance in the ideal operation of the circuit which if given some time, gets resolved itself. These disturbances or fluctuations occur when different paths from the input to output h
4 min read
Ring Counter in Digital Logic
A ring counter is a typical application of the Shift register. The ring counter is almost the same as the shift counter. The only change is that the output of the last flip-flop is connected to the input of the first flip-flop in the case of the ring counter but in the case of the shift register it is taken as output. Except for this, all the other
3 min read
5 variable K-Map in Digital Logic
Prerequisite - Implicant in K-Map Karnaugh Map or K-Map is an alternative way to write a truth table and is used for the simplification of Boolean Expressions. So far we are familiar with 3 variable K-Map & 4 variable K-Map. Now, let us discuss the 5-variable K-Map in detail. Any Boolean Expression or Function comprising of 5 variables can be s
5 min read
Self Dual functions in Digital Logic
A function is said to be Self dual if and only if its dual is equivalent to the given function, i.e., if a given function is f(X, Y, Z) = (XY + YZ + ZX) then its dual is, fd(X, Y, Z) = (X + Y).(Y + Z).(Z + X) (fd = dual of the given function) = (XY + YZ + ZX), it is equivalent to the given function. So function is self dual. In a dual function: AND
2 min read
Adders and Subtractors in Digital Logic
Subtraction of two binary numbers can be accomplished by adding 2's complement of the subtrahend to the minuend and disregarding the final carry if any. If the MSB bit in the result of addition is a '0'. then the result of addition is the correct answer. If the MSB bit is a '1'. , this implies that the answer has a negative sign. The true magnitude
4 min read
Array Multiplier in Digital Logic
An array multiplier is a digital combinational circuit used for multiplying two binary numbers by employing an array of full adders and half adders. This array is used for the nearly simultaneous addition of the various product terms involved. To form the various product terms, an array of AND gates is used before the Adder array. Checking the bits
3 min read
Logic Synthesis in Digital Electronics
The process of resolving into component parts or analyzing, interpreting, translating, optimizing (rearranging or rewriting to improve efficiency), and mapping RTL (Register Transfer Level) code into a particular and indicated cell library. Programmed production of logic components in a specific digital circuit which may involve various kinds of co
5 min read
List of “Difference Between” Digital Logic and Design Topics
Digital Logic and Design are the main part of ultramodern electronic systems which enable the structure of complex circuits that power our world of digital and technology. This is a system in computers that uses simple values to produce I/ O operations. These distinctions include sense gates, circuit designs, and design approaches, and They have a
4 min read
Wired Logic in Digital Electronics
Wired logic is a type of digital logic where some logic operations are carried out by directly coupling the outputs of a single or several logic gates. This approach is determined by the electrical properties of the gates involved. A logic gate that uses just passive components like diodes and resistors to implement boolean algebra is known as a wi
4 min read
What is Digital Logic ?
Modern computing system consists of complex system and technologies. These technologies are built upon some fundamental simple logics known as digital logic. By using digital logic gates we can develop complex logical circuit for various purposes like data storing, data manipulation or simply data representation. What is Digital Logic?One of the mo
2 min read
Ripple Counter in Digital Logic
Counters play a crucial role in digital logic circuits, enabling tasks such as clock frequency division and sequencing. This article explores the concept of ripple counters, a type of asynchronous counter, their operation, advantages, and disadvantages in digital logic design. What is a Counter?Counter is basically used to count the number of clock
5 min read
Counters in Digital Logic
A Counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship to a clock signal. Counters are used in digital electronics for counting purpose, they can count specific event happening in the circuit. For example, in UP counter a counter increases count for every ris
4 min read
Synchronous Sequential Circuits in Digital Logic
Synchronous sequential circuits are digital circuits that use clock signals to determine the timing of their operations. They are commonly used in digital systems to implement timers, counters, and memory elements. In a synchronous sequential circuit, the state of the circuit changes only on the rising or falling edge of the clock signal, and all c
4 min read
Digital Logic and Design - GATE CSE Previous Year Questions
Solving GATE Previous Year's Questions (PYQs) not only clears the concepts but also helps to gain flexibility, speed, accuracy, and understanding of the level of questions generally asked in the GATE exam, and that eventually helps you to gain good marks in the examination. Previous Year Questions help a candidate practice and revise for GATE, whic
4 min read
Digital Logic Design - Quiz Questions
Digital Logic Design is an important part in the field of Electrical and Electronics Engineering. Mastering this subject requires not only good theory knowledge but also learning practical applications. This Digital Logic Design Quiz is designed to test your fundamental understanding of Digital Logic Design. The quiz covers a wide range of topics r
15+ min read
Article Tags :