Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Consider a simple in-order processor with the following characteristics: An instruction can issue if all of its dependencies are satisfied Consists of a pipeline

3. Consider a simple in-order processor with the following characteristics:

An instruction can issue if all of its dependencies are satisfied

Consists of a pipeline where one instruction is issued at each cycle if possible.

There is no limit to the number of functional units.

Given the following sequential list of instructions and instruction latencies:

A. load $r2 = 4[$r1]

B. sub $r2 = $r2, $r5

C. store 8[$r1] = $r2

D. add $r1 = $r1, 4

E. store 4[$r6] = $r1

In the code snippet above, offset[register] is a type of memory addressing mode. The address is

computed as the sum of the offset and the value present in the register.

Instruction Latency

add 2

sub 2

load 3

store 4

I. What is the CPI for the sequential code execution? CPI is defined as the ratio of total number of cycles taken for execution to the number of instructions executed.

II. Say we add register renaming to the processor, can the CPI be improved through scheduling instructions differently? If so, explain how and show the new schedule and

the improved CPI value. (Note: Be careful about memory).

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions