7. Design a four-input priority encoder with inputs D0, D1, D2, D3 and outputs x
y, V with V indicating a valid input (V=0 when all the inputs are zero else V=1)
but with input D0 having the highest priority and input D3 the lowest priority as
shown in Table 1 below.
Table1 Priority encoder
Inputs
Outputs
D3 D2 D1 D0 x y V
0 0 0 0 x x 0
x x x 1 0 0 1
x x 1 0 0 1 1
x 1 0 0 1 0 1
1 0 0 0 1 1 1