Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following assembly language code lw$R4.100($R2)//LDWR4 = MEM[R2 + 100); and $R9,$R4,$R2//AND R9 = R4 & R2; add $R9,$R2,$R0//ADD R9 = R2 + R0;

image text in transcribed
Consider the following assembly language code lw$R4.100($R2)//LDWR4 = MEM[R2 + 100); and $R9,$R4,$R2//AND R9 = R4 & R2; add $R9,$R2,$R0//ADD R9 = R2 + R0; sub $R8,$R2,$R9//SUB R8 = R2 - R9; add $R2,$R7,$R6//ADD R2 = R7 + R6; lw $R2,0($R4)//LDW R2 = MEM[R4 + 0]; and $R8,$R8,$R2//AND R8 = R8 & R2; sw $R4,100(&R9)//STW MEM[R9 + 100] = R4; Consider a pipeline with forwarding, hazard detection, and 1 delay slot for branches The pipeline is the typical 5-stage IF, ID, EX, MEM, WB MIPS design For the above axle, complete the pipeline diagram below (instructions on the left, cycles on top) for the code. Insert the characters IF, ID, EX, MEM, WB for each instruction in the boxes. Assume that there two levels of bypassing, that the second half of the decode stage performs a read of source registers, and that the first half of the write-back stage writes to the register file. Label all data stalls (Draw an X in the box). Label all data forwards that the forwarding unit detects (arrow between the stages handing off the data and the stages receiving the data) What is the final execution time of the code? Assuming that the timings for the five pipeline stages are the ones given in the table below, find how long would it take to execute the code in part (a) and the respective speedups: Using a single-cycled processor Using a pipelined processor

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 Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions

Question

Find the probabilities 6. CC 2 7 C 3 3

Answered: 1 week ago