Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6) [20] In this exercise, we assume that the following MIPS code is executed on a pipelined processor with a 5-stage pipeline (IF, ID, EX,

image text in transcribed

6) [20] In this exercise, we assume that the following MIPS code is executed on a pipelined processor with a 5-stage pipeline (IF, ID, EX, MEM, WB), full forwarding, and a predict-taken branch predictor. Hints: First find data dependencies. Then examine if these dependencies can cause data hazard. Branch instruction can cause control hazards. Instructions will be flushed if the prediction is wrong. LW R2, 0 (R1) BEQ R2, RO, LABEL2 LW R3, 0 (R2) BEQR3, RO, LABEL! ADD R1, R3, R1 LABEL!: #Not taken once, then always taken #Always taken LABEL2:SW R1, 0 (R2) ADD R4, R5, R6 Draw the pipeline execution diagram for this code, assuming that branches execute in the EX stage. 1 2 3 45 6 789 10 11 12 13 14 15 IF ID EX MEMWB LW R2, 0 (R1) BEQ R2, RO, LABEL2

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions