

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Computer Organization II; Subject: Electrical and Computer Engr; University: University of Illinois - Chicago; Term: Fall 2001;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Homework 3: Due Mon, Nov 19
provide all the logic equations and a logic gate schematic. 20
labeled rectangles with i/ps and o/ps without showing any internal details), design a full CLA 12-bit adder. 40 (c) Analyze the # of gate delays for the design of part[b]. 10
(e.g., CPI = 1.2) as it is an average. (a) If 20% of the instructions are branches, then compute the CPIs for architecture schemes (i) & (ii) above, for the NOP-filling or stalling strategy to tackle branch or control hazards. 40 (b) If 30% of the instructions are branches, then compute the CPIs for architecture schemes (i) & (ii) above, for the fetch-next, flush-if-true strategy to tackle branch or control hazards. Assume that a branch will evaluate to true 50% of the time and to false 50% of the time on the average. 50 Hint: Figure out the average amount of extra delay dav after a branch processing before which the correct instruction after a branch will exit the pipeline in each of the above 4 cases; note that dav
takes for a branch to exit from the pipeline after the previous instruction exited from the pipeline (for
non-branch instructions it would take 1cc to exit after the previous instruction assuming no data or structural hazards). Proceeeding this way, obtain the CPI.
Hint : If there are no multiplies, divides or branches, the CPI will be 2 cc’s. Treat multiplies and divides as instructions requiring stalls of an extra 3cc’s and 6cc’s so that they exit the pipeline 5 and 8 cc after the previous instruction, respectively (just like we treated branches requiring extra delays
instructions, so that they can now be looked upon as having 4 and 7 cc’s delay (after the prev. instr.) and all other instructions reverting back to a 2 cc delay—it is all a matter of which columns the credits and debits are allocated to, and as long as the total credits and debits are correct, the overall analysis will be correct. Finally, add in the extra delays for branch instructions in parts [b]-[c] as discussed earlier. After the CPI is computed in each case, you can obtain the total cc’s for 10K instructions.