Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 3) 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

image text in transcribed

Problem 3) 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 PC Increment Decoding Memory Access Addition Multiplication 1 cc 2 cc | 1 cc 10 cc 3 cc 5 cc

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions