Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following sequence of instructions: (I1) beq $9, $10, EXIT (I2) add $9, $11, $12 (I3) lw $16, 12($9) (I4) sw $16, 16($19) (I5)

Consider the following sequence of instructions:

(I1) beq $9, $10, EXIT

(I2) add $9, $11, $12

(I3) lw $16, 12($9)

(I4) sw $16, 16($19)

(I5) sw $18, 0($11)

(I6) add $4, $0, $0

(I7) add $5, $0, $0

Assume the following:

There are no stalls in the code above

5 stage pipeline (IF, ID, EX, MEM, WB) is available

Stages IF, ID, and EX take 100 ps, MEM takes 300 ps, and WB takes 150 ps.

Each instruction executes every stage.

No branch stalls.

Compute the total time needed to execute the code with and without the pipeline.

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

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions