Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4.5 For the problems in this exercise, assume that there are no pipeline stalls and that the breakdown of executed instructions is as follows: add

4.5 For the problems in this exercise, assume that there are no pipeline stalls and that the breakdown of executed instructions is as follows:

add 20% addi 20% not 0% beq 25% lw 25% sw 10%

4.5.1 In what fraction of all cycles is the data memory used? % (Fill in a number between 0 and 99].

Hints: The data memory is only used by LW and SW instructions,

4.5.2 In what fraction of all cycles is the output of the sign-extend circuit needed (not ignored)? % (Fill in a number between 0 and 99].

Hints: The sign-extend circuit is actually computing a result in every cycle, but its output is ignored for ADD and NOT instructions.

The input of the sign-extend circuit is needed for ADDI (to provide the immediate ALU operand), BEQ (to provide the PC-relative offset), and LW and SW (to provide the offset used in addressing 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

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions