Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1. MIPS and branch delay You have some MIPS code for which: Question 1. MIPS and branch delay You have some MIPS code for

Question 1. MIPS and branch delay

You have some MIPS code for which:

image text in transcribed

Question 1. MIPS and branch delay You have some MIPS code for which: 1% of instructions are unconditional branches (otherwise known as jumps, assume these are handled in the pipeline just like branches, except with a fixed condition bit of '1'). 15% of instructions are conditional branches. On average, 65% of conditional branches are taken, and 35% are not taken. The average CPI of non-branch instructions is 1.2. a) Consider a variation 1 MIPS that uses a freeze-the-pipeline strategy for branches. What is the CPI of the code? b) Consider a variation 4 MIPS that uses a freeze-the-pipeline strategy for branches. What is the CPI of the code? c) What speed-up is gained for this code by moving from the variation 1 MIPS to the variation 4 MIPs? Assume the clock cycle has to be lengthened 3% for the variation 4 MIPS. d) Consider a variation 4 MIPS that uses a predict-not-taken strategy for branches. What is the CPI of the code? e) What speed-up is gained for this code by moving from the variation 4 MIPS with a freeze-the-pipeline strategy to a variation 4 MIPS with a predict-not-taken strategy? Assume no change in clock cycle has to be made. Question 1. MIPS and branch delay You have some MIPS code for which: 1% of instructions are unconditional branches (otherwise known as jumps, assume these are handled in the pipeline just like branches, except with a fixed condition bit of '1'). 15% of instructions are conditional branches. On average, 65% of conditional branches are taken, and 35% are not taken. The average CPI of non-branch instructions is 1.2. a) Consider a variation 1 MIPS that uses a freeze-the-pipeline strategy for branches. What is the CPI of the code? b) Consider a variation 4 MIPS that uses a freeze-the-pipeline strategy for branches. What is the CPI of the code? c) What speed-up is gained for this code by moving from the variation 1 MIPS to the variation 4 MIPs? Assume the clock cycle has to be lengthened 3% for the variation 4 MIPS. d) Consider a variation 4 MIPS that uses a predict-not-taken strategy for branches. What is the CPI of the code? e) What speed-up is gained for this code by moving from the variation 4 MIPS with a freeze-the-pipeline strategy to a variation 4 MIPS with a predict-not-taken strategy? Assume no change in clock cycle has to be made

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

What is the meaning and definition of E-Business?

Answered: 1 week ago