- 2079 Baisakh · 6 marks
4:2 priority encoder
Short answer
4:2 priority encoder (D3 highest). X = D2 + D3, Y = D3 + D1·D2', Valid V = D0+D1+D2+D3. Circuit: OR gate for X, NOT and AND for Y's product term then OR with D3, and 4-input OR for V.
Design the logic circuit for 4:2 Priority Encoder.
A 4:2 priority encoder has four inputs – and gives the 2-bit code of the highest-priority active input. Here has the highest priority and the lowest. A valid bit shows that at least one input is 1 (otherwise is meaningless).
Truth table (X = don't care)
| X | Y | V | ||||
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | X | X | 0 |
| 0 | 0 | 0 | 1 | 0 | 0 | 1 |
| 0 | 0 | 1 | X | 0 | 1 | 1 |
| 0 | 1 | X | X | 1 | 0 | 1 |
| 1 | X | X | X | 1 | 1 | 1 |
K-maps (rows , columns )
For X:
| \ | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | X | 0 | 0 | 0 |
| 01 | 1 | 1 | 1 | 1 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 1 | 1 | 1 | 1 |
For Y:
| \ | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | X | 0 | 1 | 1 |
| 01 | 0 | 0 | 0 | 0 |
| 11 | 1 | 1 | 1 | 1 |
| 10 | 1 | 1 | 1 | 1 |
Valid output:
Logic circuit
D3 ------+-----------------[OR]---- X
D2 ---+--|-----------------^
| |
+-[NOT]--+
D1 ----------[AND]--+
+--[OR]------- Y
D3 -----------------+
D0,D1,D2,D3 -------[OR 4]--------- V
Check: : , , so output = input 2, the highest active one. gives whatever the others are. All cases were verified against the table.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Priority encoder; 4-to-2 priority encoder logic · Digital Logic, chapter 4
- Octal priority encoder design · Digital Logic, chapter 4 · asked 3×
- Priority encoder; "e" and "f" segments · Digital Logic, chapter 4
- Priority encoder and octal priority encoder · Digital Logic, chapter 4 · asked 3×
- Define combinational logic circuit · Digital Logic, chapter 3
- K-map Σ(0,2,3,4,7,8,10,13)+d, logic circuit · Digital Logic, chapter 3