Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7) Given basic MIPS five stage pipeline, with data forwarding, and the following instruction sets [20 pts, 10 pts each] instruction set #1 L1: lw

image text in transcribed

7) Given basic MIPS five stage pipeline, with data forwarding, and the following instruction sets [20 pts, 10 pts each] instruction set #1 L1: lw $1,40($6) beq $2, $3, L2 add $1, $6, $4 L2: beq 1, $2, Ll sw $2, 20(*4) and $1, s1, $4 taken t not taken instruction set #2: add $1, $5, $3 Ll: sw $1, 0 ($2) add $2, $2,$3 beq $2, $4, LI add $5, $5, $1 sw $1, 8($2) not taken a) Assuming no delayed branches and that branches execute in the EX stage, draw the pipeline execution diagram for each set of code. b) Assuming there are delayed branches, that branches execute in the EX stage, and the instruction following the conditional branch is a safe instruction (i.e., allowed in the delay slot), draw the pipeline execution diagram for this code 7) Given basic MIPS five stage pipeline, with data forwarding, and the following instruction sets [20 pts, 10 pts each] instruction set #1 L1: lw $1,40($6) beq $2, $3, L2 add $1, $6, $4 L2: beq 1, $2, Ll sw $2, 20(*4) and $1, s1, $4 taken t not taken instruction set #2: add $1, $5, $3 Ll: sw $1, 0 ($2) add $2, $2,$3 beq $2, $4, LI add $5, $5, $1 sw $1, 8($2) not taken a) Assuming no delayed branches and that branches execute in the EX stage, draw the pipeline execution diagram for each set of code. b) Assuming there are delayed branches, that branches execute in the EX stage, and the instruction following the conditional branch is a safe instruction (i.e., allowed in the delay slot), draw the pipeline execution diagram for this code

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

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions