Design a four-line to two-line priority encoder with active HIGH inputs and outputs, with priority assigned to the higher-order data input line.
Design a four-line to two-line priority encoder with active HIGH inputs and outputs, with priority assigned to the higher-order data input line.
The truth table for such a priority encoder is given in Table 8.10, with D_0, D_1, D_2 and D_3 as data
inputs and X and Y as outputs.
The Boolean expressions for the two output lines X and Y are given by the equations
X=D_{2}.\overline{D_{3} }+ D_{3}=D_{2}+ D_{3} (8.5)
Y=D_{1}.\overline{D_{2} }.\overline{D_{3} }+ D_{3}=D_{1}.\overline{D_{2}}+ D_{3} (8.6)
Figure 8.17 shows the logic diagram that implements the Boolean functions given in equations (8.5) and (8.6).
Table 8.10 Example 8.5. | |||||
Y | X | D_3 | D_2 | D_1 | D_0 |
0 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 0 | 0 | 1 | X |
0 | 1 | 0 | 1 | X | X |
1 | 1 | 1 | X | X | X |