2081 9

CSC116 ยท 2081 ยท 5 marks

What is decoder? Describe the 3 to 8 line decoder circuit.

What is decoder? Describe the 3 to 8 line decoder circuit. [5]

Digital LogicChapter 5: Combinational Logic with MSI and LSIDecoders and Encoders

Quick answer

A decoder is a combinational circuit that converts information of n input lines to a maximum of 2^n unique output lines. The purpose of a decoder is to generate one or more minterms of the n input variables. If any n-bit decoded information has unused or don't-care condition combinations, the decoder will have fewer than 2^n outputs.

Decoder and 3-to-8 Line Decoder

What is a Decoder?


3-to-8 Line Decoder

In a 3-to-8 line decoder, three inputs are converted into 8 outputs. It takes 3 input lines (A, B, C) and generates 8 output lines (D0 to D7), where each output corresponds to one unique minterm of the three input variables.

Truth Table

ABCD0D1D2D3D4D5D6D7
00010000000
00101000000
01000100000
01100010000
10000001000
10100000100
11000000010
11100000001

Boolean Expressions for Each Output

Each output is active HIGH (equals 1) for exactly one input combination:

D0 = A'B'C'    (minterm 0)
D1 = A'B'C     (minterm 1)
D2 = A'BC'     (minterm 2)
D3 = A'BC      (minterm 3)
D4 = AB'C'     (minterm 4)
D5 = AB'C      (minterm 5)
D6 = ABC'      (minterm 6)
D7 = ABC       (minterm 7)

Logic Circuit Diagram

The circuit uses 3 inverters (to generate complements A', B', C') and 8 three-input AND gates (one for each output):

        A ---+-------+--- A'(inverter)
             |
        B ---+-------+--- B'(inverter)
             |
        C ---+-------+--- C'(inverter)

A' B' C' ---> [AND] ---> D0
A' B' C  ---> [AND] ---> D1
A' B  C' ---> [AND] ---> D2
A' B  C  ---> [AND] ---> D3
A  B' C' ---> [AND] ---> D4
A  B' C  ---> [AND] ---> D5
A  B  C' ---> [AND] ---> D6
A  B  C  ---> [AND] ---> D7

Key Points

  • The decoder has 3 inputs and 8 outputs (since 2^3 = 8).
  • At any given time, exactly one output is HIGH and all others are LOW.
  • Each output represents a unique minterm of the input variables.
  • A decoder with an enable input can also function as a demultiplexer, where the enable line acts as the data input and the input lines act as select lines.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.