



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!




CISC662 - COMPUTER SYSTEMS: ARCHITECTURE - Fall 2009
Assignment 2
IMPORTANT: Write your name at the beginning of the manuscript containing your summary and answers. Name the pdf file with your name and the content of the file, e.g., homework1_mtaufer.pdf. Send the file to the instructor per e-mail before the deadline.
1.1 Read the paper:
Amdahl’s Law in the Multicore Era by Mark D. Hill and Michael R. Marty, IEEE COMPUTER 2008.
You can download the paper from the IEEE library available at UD.
1.2 Write the summary of the paper. To address this part of the assignment you have to follow the instructions below. First of all, print the paper and carefully read it. Use the 6 questions below to summarize the paper. Mark the part(s) of the text that helps you to answer the six questions. Match questions with answers and mark the related text with the question number. Answer the questions. Your answers to each of the questions/statements should be as comprehensive as possible; several sentences should be used for each question. The answers should result in your summary.
(What consequences are likely to follow if people take the author’s reasoning seriously? Trace the implications and consequences that follow from your reasoning. Search for negative as well as positive implications. Consider all possible consequence. )
Summary format and submission (mandatory):
bottom and sides.
the summary to the instructor.
name should contain your family name and should indicate the content of the paper. Do not use spaces in the name.
1.3 Complete the evaluating reasoning below
You are required to answer the questions below and come up with a final evaluation of the paper assessing whether: (a) the paper properly addresses the element of reasoning (Yes); (b) the paper does not properly address the element of reasoning (No); or (c) the element of reasoning is not addressed in the paper (NA). Students need to substantiate their answers.
Elements of reasoning Yes No NA 1 Purpose: What is the purpose of the reasoner? Is the purpose stated clearly or clearly implied? Is it justifiable? 2 Question: Is the question at issue well stated? Is it clear and unbiased? Does the expression of the question do justice to the complexity of the matter at issue? Are the question and purpose directly relevant to each other? 3 Information: Does the writer cite relevant evidence, experiences, and/or information essential to the issue? Is the information accurate? Does the writer address the complexities of the issue? 4 Concepts: Does the writer clarify key concepts when necessary? Are the concepts used justifiably? 5 Assumptions: Does the writer show sensitivity to what he or she is taking for granted or assuming (insofar as those assumptions might reasonably be questioned)? Does the writer use questionable assumptions without addressing problems that might be inherent in those assumptions? 6 Inferences: Does the writer develop a line of reasoning explaining well how s/he is arriving at her or his main conclusions? 7 Point of View: Does the writer show sensitivity to alternative relevant points of view or lines of reasoning? Does s/he consider and respond to objections framed from other relevant points of view? 8 Implications: Does the writer show sensitivity to the implications and consequences of the position s/he is taking?
Overall, is this a well-written paper? Briefly substantiate your answer.
IMPORTANT NOTES: Write clearly, be concise, and report only the information asked. Additional information (not required) will be considered as the indication that you have not correctly understood the question and therefore will penalize your final score.
SUGGESTION: If you are planning to take the preliminary exam, try to answer these questions with the book close. Take the time it will take your to answer the questions.
A: Exploring the Impact of Microarchitectural Techniques
You are tasked with designing a new processor microarchitecture, and you are trying to figure out how best to allocate your hardware resources. Which of the hardware and software techniques you learned in Chapter 2 should you apply? You have a list of latencies for the functional units and for memory, as well as0 some representative code. Your boss has been somewhat vague about the performance requirements of your new design, but you know from experience that, all else being equal, faster is usually better. Start with the basics. Figure 2.35 provides a sequence of instructions and list of latencies.
1.1 What would be the baseline performance (in cycles, per loop iteration) of the code sequence in Figure 2.35, if no new instruction’s execution could be initiated until the previous instruction’s execution had completed? Ignore front-end fetch and decode. Assume for now that execution does not stall for lack of the next instruction, but only one instruction/cycle can be issued. Assume the branch is taken, and that there is a one cycle branch delay slot.
1.2 Think about what latency numbers really mean—they indicate the number of cycles a given function requires to produce its output, nothing more. If the overall pipeline stalls for the latency cycles of each functional unit, then you are at least guaranteed that any pair of back-to-back instructions (a “producer” followed by a “consumer”) will execute correctly. But not all instruction pairs have a0 producer/consumer relationship. Sometimes two adjacent instructions have nothing to do with each other. How many cycles would the loop body in the code sequence in Figure 2. require if the pipeline detected true data dependencies and only stalled on those, rather than blindly stalling everything just because one functional unit is busy? Show the code with
1.3 Consider a multiple-issue design. Suppose you have two execution pipelines, each capable of beginning execution of one instruction per cycle, and enough fetch/decode bandwidth in the front end so that it will not stall your execution. Assume results can be immediately forwarded from one execution unit to another, or to itself. Further assume that the only reason an execution pipeline would stall is to observe a true data dependency. Now how many cycles does the loop require?
1.4 In the multiple-issue design of Exercise 1.3, you may have recognized some subtle issues. Even though the two pipelines have the exact same instruction repertoire, they are neither identical nor
interchangeable, because there is an implicit ordering between them that must reflect the ordering of the instructions in the original program. If instruction N + 1 begins execution in Execution Pipe 1 at the same time that instruction N begins in Pipe 0, and N + 1 happens to require a shorter execution latency than N, then N + 1 will complete before N (even though program ordering would have implied otherwise). Recite at least two reasons why that could be hazardous and will require special considerations in the microarchitecture. Give an example of two instructions from the code in Figure 2.35 that demonstrate this hazard.
1.5 Reorder the instructions to improve performance of the code in Figure 2.35. Assume the two- pipe machine in Exercise 1.3, and that the out-of-order completion issues of Exercise 1.4 have been dealt with successfully. Just worry about observing true data dependencies and functional unit latencies for now. How many cycles does your reordered code take?
C - Dynamic Programming with Tomasulo’s Approach
A major limitation of the simple five-stage pipeline is that it uses in order instruction issue, execution, and completion. The Tomasulo’s schema combines key elements of the scoreboard schema with the introduction of register renaming.
3.1 List the three steps in the Tomasulo’s approach and briefly describe them. Clearly identify what hazards are resolved in each step (if any).
3.2 Describe how the Tomasulo’s schema eliminates WAW and WAR.
3.3 Tomasulo’s algorithm has a major disadvantage versus scoreboard: only one result can complete per clock, due to the CDB. Assume the hardware configuration in Figure 1 and Figure 2 for the scoreboard and the Tomasulo’s schema respectively. Assume the latencies from Table 1. Give a code fragment that uses no more than 10 instructions and shows the problem, i.e., the scoreboard does not stall and the Tomasolo’s algorithm stall. Show the Tomasolo’s instruction status table with the status of the instructions immediately after the problem occurs. Explain with your words how the execution will be handled and the conflict will be solved.
Figure 1. Scoreboard schema
Figure 2. Tomasulo’s schema
Table 1. Pipeline latencies where latency is the number of cycles between producing and consuming instruction.
Instruction producing result Instruction using result Latency in clock cycles
FP multiply FP ALU op 6
FP add FP ALU op 4
FP multiply FP store 5
FP add FP store 3
Integer operation (including load) Any 0
HINT: In such a code, two instructions attempt to write their results in the same cycle, and do not use the same group of functional units in the scoreboard system.