- Asked 3/22
- 2075 Chaitra · 7 marks
Octal priority encoder design
Short answer
The encoder outputs 3-bit binary code of the highest active input (D7 highest priority) and a valid bit V = D0+...+D7. Y2 = D4+D5+D6+D7; Y1 = D7+D6+D5'D4'D3+D5'D4'D2; Y0 = D7+D6'D5+D6'D4'D3+D6'D4'D2'D1. Uses AND and OR gates with inverters.
Design the operation of octal priority encoder with neat diagram.
An octal (8-to-3) priority encoder has eight inputs – and three outputs giving the binary code of the highest-numbered active input ( = highest priority). A valid output is 1 when any input is active. The 74148 is a common IC (active-low).
Truth table (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
Write each output as the OR of the rows where it is 1; each row requires all higher inputs to be 0, and redundant conditions are dropped.
- for highest input 4, 5, 6 or 7:
- for highest input 2, 3, 6 or 7. Inputs 2 and 3 count only if (if or is 1, is 1 anyway):
- for highest input 1, 3, 5 or 7:
- Valid bit:
Logic diagram
D4,D5,D6,D7 ----------------------[OR 4]--- Y2
D7 ---------------------------+
D6 ---------------------------+
D5',D4',D3 ---[AND 3]---------+--[OR 4]--- Y1
D5',D4',D2 ---[AND 3]---------+
D7 ---------------------------+
D6',D5 -------[AND 2]---------+
D6',D4',D3 ---[AND 3]---------+--[OR 4]--- Y0
D6',D4',D2',D1 [AND 4]--------+
D0 ... D7 ------------------------[OR 8]--- V
Inverters provide .
Operation
When several keys or interrupt lines are active together, only the highest one is encoded. Example: , others 0. Then , (from ), (since blocks all terms and ). Output and . All 255 non-zero input patterns were checked against these equations.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Priority encoder and octal priority encoder · 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×
- Frequency counter operation with block diagram · Digital Logic, chapter 11 · asked 14×
- Stereo FM encoder and decoder block diagram · Communication Systems, chapter 3
- Short note: Trellis diagram of convolutional encoder · Communication Systems, chapter 8
- Data logger block diagram and operation · Instrumentation II, chapter 5 · asked 6×
- PID control operation with block diagram · Embedded System, chapter 7 · asked 4×