




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Name: Alias: Banner Id : Instructions:
d. (3 pt) With the same assumptions as C), but assuming that the branch is taken 90 percent of the time, which instruction would you put in the delay slot and WHY? Show the complete code.
d. (2 pt) How many bits of output does the TLB produce (how many bits wide is the TLB data)? e. (4 pt) Given the listed parameters, what is the potential disadvantage of using a physically tagged, physically indexed cache? What can we do to fix the problem? f. (2 pt) Name one advantage and one disadvantage of using large page sizes? g. (2 pt) How can you distinguish whether a miss is a conflict miss or a capacity miss?
c. (5 pt) In a multiprocessor environment, how does prefetching change the cache coherence protocol? For example, how does it change the MSI protocol? d. (3 pt) Assume that compare-and-swap R1, R2, L swaps the value in memory location L with the value in register R2 if R1 = [L] (i.e. value in L). Use this to implement a function atomic-inc ( L). Assume that atomic-inc (L) should increment the value in L atomically.