Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2. Pipelining Hazards (18 points) Consider the MIPS assembly code given below. We want to run this code on a 5-stage pipelined processor, with

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Question 2. Pipelining Hazards (18 points) Consider the MIPS assembly code given below. We want to run this code on a 5-stage pipelined processor, with some modifications. The processor is a typical 5-stage pipeline (F-D-X-M-W), with the following exception: The multiplier block used to execute the mul instruction is pipelined into four stages: This means that a multiply instruction runs through the pipeline as follows: F-D-X0- X1-X2-X3-M-W and up to four multiply instructions maybe in-flight at a time. All other instruction types are blocked from the execute stage while any of the multiply stages are being used. xor r0, r0, r0 2 addiu rl, r0, 10 3 j L1 4 loop: lw r3, 0(r2) 5 mul r4, r3, r3 6 mul r3, r3, ri 7 8 9 addiu r2, r2, 4 10 L1: bne r0, rl, -7 7ddiu ro, ro, 1 sw r3, 0(r2) Question 2. Pipelining Hazards (18 points) Consider the MIPS assembly code given below. We want to run this code on a 5-stage pipelined processor, with some modifications. The processor is a typical 5-stage pipeline (F-D-X-M-W), with the following exception: The multiplier block used to execute the mul instruction is pipelined into four stages: This means that a multiply instruction runs through the pipeline as follows: F-D-X0- X1-X2-X3-M-W and up to four multiply instructions maybe in-flight at a time. All other instruction types are blocked from the execute stage while any of the multiply stages are being used. xor r0, r0, r0 2 addiu rl, r0, 10 3 j L1 4 loop: lw r3, 0(r2) 5 mul r4, r3, r3 6 mul r3, r3, ri 7 8 9 addiu r2, r2, 4 10 L1: bne r0, rl, -7 7ddiu ro, ro, 1 sw r3, 0(r2)

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Solve for x: 2(3x 1)2(x + 5) = 12

Answered: 1 week ago