Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the MIPS assembly language code segment given below. I1: lw $t0, 10($t1) 12: addi $t2, $t3, 2 13: sub $t4, $t5, $t6 14:

 

Consider the MIPS assembly language code segment given below. I1: lw $t0, 10($t1) 12: addi $t2, $t3, 2 13: sub $t4, $t5, $t6 14: addi $s0, $s1, 4 15: add $s4, $s3, $s2 16: lw $s5, 0($a0) The code segment is executed on the 5-stage pipelined implementation of the MIPS processor. Assume that instruction Il is fetched during clock cycle #1. Note: Every instruction is 5 stages in the 5-Stage pipelined (Refer to Lecture 16 Slides 14) 1) Show the progression of the instructions through the MIPS 5-stage pipeline. (10Points) Clock Cycle 1 2 3 4 5 IF ID EX MEM WB 2) How many clock cycles are needed to execute this code segment? (4 Points) 3) Which registers are read from the register file during clock cycle #4? (4 Points) 4) Which register is written to the register file during clock cycle #6? (4 Points)

Step by Step Solution

3.54 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

Ans 1 Clock Cycles 3556 7 8 10 if I 12 13 ID EX 12 TL Ty 13 12 15 T... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Accounting questions

Question

=+b. What are the penalties for exceeding the upper specification?

Answered: 1 week ago

Question

=+a. The number of flaws per square foot in a large sheet of metal

Answered: 1 week ago