Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 4 : Assume that x 1 1 is initialized to 1 1 and x 1 2 is initialized to 2 2 . Suppose you

Q4: Assume that x11 is initialized to 11 and x12 is initialized to 22. Suppose you executed the code below on a version of the pipeline that does not handle data hazards (i.e., the programmer is responsible for addressing data hazards by inserting NOP instructions where necessary). What would the final values of register x15 be? Assume the register file is written at the beginning of the cycle and read at the end of a cycle. Therefore, an ID stage will return the results of a WB state occurring during the same cycle See following Figure for details.
addi 11,12,5
add 13,11,12
addi 14,11,15
add 15,11,11
wion of regisler x2
I
Q5. Add NOP instructions to the code below so that it will run correctly on a pipeline that does not handle data hazards. addi x11,x12,5
add x13,x11,x12
addi 14,11,15
add 15,x13,x12
image text in transcribed

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

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

For the circuit in Fig. 16.66, find: (a) I1 /Vs (b) I2 /Vx 0.5 F

Answered: 1 week ago

Question

=+1. What is structuralism?

Answered: 1 week ago

Question

A 300N F 30% d 2 m Answered: 1 week ago

Answered: 1 week ago