- Asked 3/22
- 2078 Kartik · 2+6 marks
- 2069 Chaitra · 2+4 marks
Priority encoder and octal priority encoder
Short answer
A priority encoder outputs the code of the highest active input and a valid bit V. For an octal encoder with D7 highest, A2 = D4+D5+D6+D7, A1 = D6+D7 + D3·D4'·D5' + D2·D4'·D5', A0 = D7 + D5·D6' + D3·D4'·D6' + D1·D2'·D4'·D6', V = OR of all inputs.
What is a priority encoder? Design an octal priority encoder.
A priority encoder is an encoder that, when more than one input is active at the same time, outputs the code of the input with the highest priority and ignores the others. It also has a valid output V that is 1 when at least one input is active, to separate "input active" from "no input active" (both give code 000).
Octal (8-to-3) priority encoder
Inputs – (active high), has the highest priority. Outputs (binary code) and V. X = don't care.
| V | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | 0 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
| 0 | 0 | 0 | 0 | 0 | 0 | 1 | X | 0 | 0 | 1 | 1 |
| 0 | 0 | 0 | 0 | 0 | 1 | X | X | 0 | 1 | 0 | 1 |
| 0 | 0 | 0 | 0 | 1 | X | X | X | 0 | 1 | 1 | 1 |
| 0 | 0 | 0 | 1 | X | X | X | X | 1 | 0 | 0 | 1 |
| 0 | 0 | 1 | X | X | X | X | X | 1 | 0 | 1 | 1 |
| 0 | 1 | X | X | X | X | X | X | 1 | 1 | 0 | 1 |
| 1 | X | X | X | X | X | X | X | 1 | 1 | 1 | 1 |
Output equations
Each output is 1 for the rows where the highest active input has that bit set. For example, for highest input 7, 5, 3 or 1. Input 5 counts only if 6 and 7 are 0, and so on. After simplification (a term like reduces to because ):
Logic diagram
D4,D5,D6,D7 ─────────────────[OR]── A2
D7 ─────────────────────────┐
D6 ─────────────────────────┤
D3,D4',D5' ──[AND]──────────┼[OR]── A1
D2,D4',D5' ──[AND]──────────┘
D7 ─────────────────────────┐
D5,D6' ──────[AND]──────────┤
D3,D4',D6' ──[AND]──────────┼[OR]── A0
D1,D2',D4',D6' ─[AND]───────┘
D0 ... D7 ───────────────────[OR]── V
Complements come from NOT gates.
Example: , others 0. Then , , (since blocks every term except ). Output = 110 = 6, the highest-priority active input, and V = 1. The IC 74148 is a standard 8-to-3 priority encoder (with active-low inputs and outputs).
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Octal priority encoder design · Digital Logic, chapter 4 · asked 3×
- Octal-to-binary encoder; A+B'C canonical form · Digital Logic, chapter 4
- 4:2 priority encoder · Digital Logic, chapter 4
- Priority encoder; "e" and "f" segments · Digital Logic, chapter 4
- Priority encoder; 4-to-2 priority encoder logic · Digital Logic, chapter 4
- Encoder and octal-to-binary (8-to-3) encoder · Digital Logic, chapter 4 · asked 2×