Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following code to be executed on a pipelined processor lw $s1, 40($s6) add $s6 , $s2, $s2 sw $s6, 48($s1) a. Include stalls/nops

Consider the following code to be executed on a pipelined processor

lw $s1, 40($s6)

add $s6 , $s2, $s2

sw $s6, 48($s1)

a. Include stalls/nops in the code so it executes correctly in the cases of (i) No forwarding (ii) ALU-ALU for warding, (iii) Full forwarding

b. In each case calculate the number of clock cycles required to execute the code

c. Assume further that the clock cycle time is 110 ps with no forwarding, 120 ps with ALU-ALU forwarding and 140 ps with full forwarding. Rank the 3 processorss in the order of performance highest to lowest.

d. Repeat parts a-c if the second instruction changes to add $s6, $s1,$s2 and the clock cycle time with ALU-ALU forwarding increases to 130 ps

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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions