Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2: Why Not Both? (20 points) What is the CPI for the following schemes? a) Detect-and-stall for control and data hazards [5] b) Speculate-and-squash

Problem 2: Why Not Both? (20 points)

What is the CPI for the following schemes?

a) Detect-and-stall for control and data hazards [5]

b) Speculate-and-squash (always taken) for control hazards and detect-and-forward for data hazards [5]

c) Speculate-and-squash (always taken) for control hazards and detect-and-stall for data hazards [5]

d) Local 2-bit branch predictor for control hazards and detect-and-stall for data hazards [5]

image text in transcribed

image text in transcribed

For Problems 1 & 2, reference the following piece of assembly code lW nor loop beq posl negl count 4 done 1 //beqe nor3 nor 4 beq //beq1 even add6 beq e even add 7 else add 3 beq e else //beq2 1 loop //beq3 done halt count .fill 5 pos1 .fill 1 neg1 .fill -1 For Problems 1 & 2, reference the following piece of assembly code lW nor loop beq posl negl count 4 done 1 //beqe nor3 nor 4 beq //beq1 even add6 beq e even add 7 else add 3 beq e else //beq2 1 loop //beq3 done halt count .fill 5 pos1 .fill 1 neg1 .fill -1

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_2

Step: 3

blur-text-image_3

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

1. How do media shape our thinking?

Answered: 1 week ago

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago

Question

Be familiar with the basic ways to manage capacity.

Answered: 1 week ago