Question: Problem 3) Given the following assembly program for a CPU with 16 GPRS, 16-bit data and 8-bit address busses. ; load constant value 10 in

 Problem 3) Given the following assembly program for a CPU with

Problem 3) Given the following assembly program for a CPU with 16 GPRS, 16-bit data and 8-bit address busses. ; load constant value 10 in R1 ; move (copy) content of R1 into R2 ; add R4 to R2 and puts result in R10 ; multiply R10 by 2 and put result in R8 ; move (copy) content of R8 into Memory move #10,R1 move R1,R2 add R4,R2,R10 #2,R10,R8 move R8,M[1000] mul at address 1000 a) How many bits would each instruction require to be encoded in binary? b) For every instruction in the above program, provide a possible binary encoding. c) Calculate the total memory (in bytes) needed to store the program. d) For every instruction in the above program, draw in a flow chart the micro execution steps. e) Assuming an execution on a 3 GHz CPU, where every step requires a number of clock cycles (cc) as shown below, calculate the execution time (in ns) for every instruction, then for the whole program. Internal Register Transfers 2 cc PC Increment Decoding Memory Access 10 cc 3 cc 5 cc Addition Multiplication

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!