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]
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
| A | B | C | D0 | D1 | D2 | D3 | D4 | D5 | D6 | D7 |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
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.