Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following code fragment, assuming that d is assigned to R1: bnez r1, L1 ; branch b1 (d!=0) addi r1, r0, 1 ;d==0,

Consider the following code fragment, assuming that d is assigned to R1: bnez r1, L1 ; branch b1 (d!=0) \\ addi r1, r0, 1 ;d==0, so d=1 \\ L1: addi r3, r1, -1 & \\ bnez r3,L2 ;branch b2 (d!=1) \\ ... & & \\ L2: \end{tabular} Initial value of d d==0? b1 Value of d d==1 b2 before b2 0 yes NT 1 yes NT 1 no T 1 yes NT 2 no T 2 no T The above table shows the possible execution sequences for a code segment. Show the action of the (1,1)-bit predictor with 1 bit of correlation, the (1,1)-bit predicator is initialized to not taken, and 1-bit of correlation is initialized to not-taken. The value of $d$ (leftmost column of the table) alternates 1,2,0,2,0. Count the number of misprediction.

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 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago