In this exercise, we examine how resource hazards, control | StudySoup

Textbook Solutions for Computer Organization and Design

Chapter 4 Problem 4.10

Question

In this exercise, we examine how resource hazards, control hazards, and Instruction Set Architecture (ISA) design can affect pipelined execution. Problems in this exercise refer to the following fragment of MIPS code:

                                             sw    r16,  12(r6)

                                             lw     r16,  8(r6)

                                             beq  r5,    r4,  Label # Assume r5!=r4

                                             add  r5,    r1,  r4

                                             slt     r5,   r15,r4

Assume that individual pipeline stages have the following latencies:

                                               

Solution

Step 1 of 4)

The first step in solving 4 problem number 50 trying to solve the problem we have to refer to the textbook question: In this exercise, we examine how resource hazards, control hazards, and Instruction Set Architecture (ISA) design can affect pipelined execution. Problems in this exercise refer to the following fragment of MIPS code:                                             sw    r16,  12(r6)                                             lw     r16,  8(r6)                                             beq  r5,    r4,  Label # Assume r5!=r4                                             add  r5,    r1,  r4                                             slt     r5,   r15,r4Assume that individual pipeline stages have the following latencies:                                               
From the textbook chapter The Processor you will find a few key concepts needed to solve this.

Step 2 of 7)

Visible to paid subscribers only

Step 3 of 7)

Visible to paid subscribers only

Subscribe to view the
full solution

Title Computer Organization and Design 5 
Author David A. Patterson
ISBN 9780124077263

In this exercise, we examine how resource hazards, control

Chapter 4 textbook questions

×

Login

Organize all study tools for free

Or continue with
×

Register

Sign up for access to all content on our site!

Or continue with

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back