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. ; load constant value 10 in

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

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

Building The Data Lakehouse

Authors: Bill Inmon ,Mary Levins ,Ranjeet Srivastava

1st Edition

1634629663, 978-1634629669

More Books

Students also viewed these Databases questions

Question

define the term outplacement

Answered: 1 week ago

Question

describe the services that an outplacement consultancy may provide.

Answered: 1 week ago