Decoder

Decoder

Published by: Nuru

Published date: 22 Jun 2021

Decoder Photo

Decoder

A decoder is a combinational circuit that converts binary information from n input lines to a maximum of 2n unique output lines.

3-to-8 line decoders

The 3 inputs are decoded into 8 outputs, each output representing one of the minterms of the 3-input variables.

Truth Table

Decoder

Logic diagram

 

Decoder

BCD to decimal decoders

The decoders which convert BCD into decimal values are called BCD to decimal decoders. The BCD code uses 4-bits and therefore, there'll be 24  input combinations. This produces 16 different output signals but the decimal digits are from 0 to 9 (10 different combinations). Hence, 6 input combinations are not used in the decimal system. Therefore, we can use don't cares to represent 10 to 15 and use K-Map to simplify the circuit.

Decoder

Combinational logic Implementation

A decoder provides the 2n minterm of n input variables. Since any Boolean function can be expressed in the sum of minterms canonical form, one can use a decoder to generate the minterms and an external OR gate to form the sum.

  •  Any combinational circuit with n inputs and m outputs can be implemented with an n-to- 2n line decoder and m OR gates.
  • Boolean functions for the Decoder-implemented-circuit are expressed in the sum of minterms. This form can be easily obtained from the truth table or by expanding the functions to their sum of minterms.

Example: Implement a full-adder circuit with a decoder.

Solution: From the truth table of the full-adder, we obtain the functions for this combinational circuit in the sum of minterms as:

S(x, y, z) = Ʃ(1, 2, 4, 7)
C(x, y, z) = Ʃ(3, 5, 6, 7)

Since there are three inputs and a total of eight minterms, we need a 3-to-8-line decoder.

Decoder