Question: Given the following assembly program for a CPU with 16 GPRS, 16-bit data and 8-bit address busses. move #10, R1 move R1, R2 add

Given the following assembly program for a CPU with 16 GPRS, 16-bit

 

Given the following assembly program for a CPU with 16 GPRS, 16-bit data and 8-bit address busses. move #10, R1 move R1, R2 add R4, R2, R10 mul #2, R10, R8 move R8,M[100] ; 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 at address 100 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 1 cc PC Increment 2 cc Decoding 1 cc Memory Access 10 cc Addition 3 cc Activate Multiplication 5 cc Go to Setti

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a To determine the number of bits required to encode each instruction in binary we need to consider the instruction format for the CPU Since we have a ... View full answer

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 Programming Questions!