(Solved): a. The block diagram shown at right consists of three blocks of logic: - a 8-to-3 priority encoder ...
a. The block diagram shown at right consists of three blocks of logic: - a 8-to-3 priority encoder - a 3-bit unsigned subtractor, \( A-B \), with the A operand tied off to \( 111_{2} \). - a barrel shifter that can shift any number of positions to the left specified by \( \mathrm{S}_{2} \mathrm{~S}_{1} \mathrm{~S}_{0} \). What is the value of \( Y_{7} . . Y_{0} \) when (15 pts) - \( X_{7} \ldots X_{0}=10010111 \) - \( X_{7} \ldots X_{0}=00101001 \) - \( X_{7} \ldots X_{0}=00000101 \) Based on the above sample results, what do you think is the function of this block diagram? Be specific. (5 pts) b. As a smart engineer, you realize that the use of the 3-bit subtractor is overkill. Create a truth table, where the inputs are the 3-bit outputs of the priority encoder and where the outputs are the 3-bit select inputs of the barrel shifter. (15 pts) Then come up with a simpler implementation to replace the 3-bit subtractor. Show work. (15 pts)