A priority encoder has the following inputs x,, x1, X 2, X3 Their priority is x, > x, >x, >x3. The encoder has three outputs X, Y, and Z. Z must be 1 when any input is active. Write the output functions of X and Y.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5