Answered! Given the datapath , Develop an algorithm for the calculation of C=A-B using 2’s complement arithmetic….

Given the datapath ,

Develop an algorithm for the calculation of C=A-B using 2’s complement arithmetic.

Don't use plagiarized sources. Get Your Custom Essay on
Answered! Given the datapath , Develop an algorithm for the calculation of C=A-B using 2’s complement arithmetic….
GET AN ESSAY WRITTEN FOR YOU FROM AS LOW AS $13/PAGE
Order Essay

(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.

Register A and B functionality: RST EN Q 13:0] 0000 NB: Normal operation necessitates M-0 to be set. However, if M-1 is set the next state will be D[3:0] (IN113:0] i.e. 1s complement of the input values will be stored at the next clock cycle to the Register A instead of D13:01Answered! Given the datapath , Develop an algorithm for the calculation of C=A-B using 2’s complement arithmetic.... 1

Answered! Given the datapath , Develop an algorithm for the calculation of C=A-B using 2’s complement arithmetic.... 2

Show transcribed image text

Expert Answer

 Ans 1= Three clock cycle is needed to complete this problem and get output.

Ans 2:- Timing Diagram of C=a-b where a=5 b=2Answered! Given the datapath , Develop an algorithm for the calculation of C=A-B using 2’s complement arithmetic.... 3

Fig1:opcode fectch and memory read cycle

Answered! Given the datapath , Develop an algorithm for the calculation of C=A-B using 2’s complement arithmetic.... 4

timing diagram of io write cycle

Answered! Given the datapath , Develop an algorithm for the calculation of C=A-B using 2’s complement arithmetic.... 5

Fig3:timing diagram of io read cycle

Still stressed from student homework?
Get quality assistance from academic writers!