Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q.4 (30 Points) Assume that, in MIPS assembly, the base address of an integer array A is stored in $a0. a) (6 points) Fill in

image text in transcribed

image text in transcribed

image text in transcribed

Q.4 (30 Points) Assume that, in MIPS assembly, the base address of an integer array A is stored in $a0. a) (6 points) Fill in the blanks with the MIPS instructions corresponding to the following C code (Do not use any branch instruction): A[0]=A[0]+1A[1]=A[1]+1 b) Assume that the code in (a), is executed on a 5-stage pipelined MIPS processor (with the stages IF, ID, EX, MEM and WB). By considering the instructions between 2-7, which are inserted in (a) by yourself, draw the pipeline charts for the following cases. (Whenever a stage gets stalled, fill that stage with an "S". It is allowed to write and read a register at the same cycle. If data forwarding is allowed, show the forwarding.) Make sure that you show the stages clearly as the following chart. b.1) (7 points) Assume that data forwarding is not allowed. b.2) (7 points) Assume that data forwarding is allowed. c) ( 10 points) If there is a stall in the case (b.2), reorder the instructions so that there will be no stalls. Draw the pipeline chart for the new order by showing the stages and forwarding (if necessary) clearly

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

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 Tsukuba Japan April 2010 Proceedings Part 1 Lncs 5981

Authors: Hiroyuki Kitagawa ,Yoshiharu Ishikawa ,Wenjie Li ,Chiemi Watanabe

2010th Edition

3642120253, 978-3642120251

More Books

Students also viewed these Databases questions