






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!







Last (family) name: _________________________ First (given) name: _________________________ Student I.D. #: _____________________________ Department of Computer Sciences University of Wisconsin - Madison CS/ECE 752 Advanced Computer Architecture I
Monday, February 17, 2014
Problems 1-20: (40 pts): Multiple choice; select the best answer for each question Note: Some of the answers below are “list” answers, such as “All of the above” and “Both (a) and (b).” In these answers, the word “above” refers only to “real” answers with specific content, not other list answers.
Hierarchical Branch Predictors (15 points) Some highly-pipelined processors use a hierarchical branch prediction scheme, similar to how most modern processors now use hierarchical caches. These systems typically have a small, simple level-1 (L1) predictor (e.g., a branch target buffer) that can return a prediction within a single cycle. The second level-2 (L2) predictor is typically a much larger multilevel predictor (such as a the Alpha EV-8 direction predictor) that makes a much more accurate prediction, but requires two or more cycles to make the prediction. Both predictors are accessed for each branch. The processor uses the L1 predictor to begin speculative execution of the branch, but checks this prediction using the L2 predictor. If the L2 predictor disagrees with the L1, the branch is aborted and restarted using the L2 prediction. Assuming the L2 prediction is correct, the L1 misprediction penalty is much smaller than a full misprediction penalty. These hierarchical predictors can be better than a large single-level predictor because the latter may have a larger penalty on a correctly predicted branch. Consider a hierarchical predictor with the following performance: L1 Prediction L2 Prediction Stall Cycles Correct Correct 0 Correct Incorrect 11 Incorrect Correct 3 Incorrect Incorrect 8 Assume that one in 6 instructions are branch instructions and that the L1 and L2 predictions are independent. Assume that all branch prediction stalls directly impact performance (as they might in the MIPS 5 - stage pipeline). Thus we want to know the contribution to the CPI caused by branch mispredictions (i.e., the stall cycles per instruction). Assume the L1 predictor is right 80% of the time and the L2 predictor is right 95% of the time.
Instruction Scheduling (20 points) Using the same pseudo-assembly language, but adding floating point (i.e., the “.d” suffix means double precision), the questions below involve instruction schedules. 1 lw.d F0 = mem[R2 + 0] 2 mult.d F3 = F0 * F 3 sw.d F3 mem[R2 + 0] 4 lw.d F4 = mem[R3 + 0] 5 mult.d F5 = F4 * F 6 sw.d F5 mem[R3 + 0] 7 add.d F6 = F3 + F 8 sw.d F6 mem[R4 + 0] Assume the standard MIPS 5 - stage (single-issue) pipeline plus separate pipes for floating point multiply and floating point add. All loads and stores use the integer pipeline and the floating- point pipeline does not have an “M” stage. Load-use delay is one cycle, regardless of which pipeline uses the result. Floating point multiply has 3 execute cycles and floating point add takes two execute cycles, and both are fully pipelined.
From the readings (20 points)
(blank page for additional work)