Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Organization and Design The Hardware Software Interface

Authors: David A. Patterson, John L. Hennessy

5th edition

124077269, 978-0124077263

More Books

Students also viewed these Programming questions

Question

How is the minimum service entrance determined?

Answered: 1 week ago