Question: ( 1 5 pt ) Consider the following ARM code. ldr r 0 , [ r 1 ] add r 2 , r 0 ,

(15pt) Consider the following ARM code.
ldr r0,[r1]
add r2,r0,r0
Our ARM architecture is implemented in 5 stage pipelining: IF, ID, EX, MEM, WB. Assume that the load instruction requires 4 cycles at MEM stages. The other stage takes a cycle. Therefore, it takes 10 cycles to execute two instructions.
(a) If two threads executing the code are executed in fine grain multithreading, then how many cycles are required to complete the two threads.
(b) If four threads executing the code are executed in fine grain multithreading, then how many cycles are required to complete the two threads.
(c) If four threads executing the code are executed in coarse grain multithreading, then how many cycles are required to complete the four threads. Assume there is no L2-cache miss for the execution of the code.
( 1 5 pt ) Consider the following ARM code. ldr r

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!