(25 pts) Given the datapath in Q4, Develop an al
acollegestudent
Question
(25 pts) Given the datapath in Q4, Develop an algorithm for the calculation of C=A-B using 2’s
complement arithmetic.
(i) Write down the fastest algorithm for the above calculation.
(ii) State how many clock cycles are needed for the result to be outputted.
(iii)Draw the timing diagram to show the calculation of A-B for the input data values of A=6 and B=3.
(iv)Develop the algorithm for calculating C=2A-B.
Details
No Answers Yet