


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
Practice problem set 1 for the cs433g course on computer system organization, offered in fall 2005. It includes 6 questions related to computer system organization, amdahl's law, instruction set architectures, and memory transfer. The questions cover topics such as speedup, enhanced mode, clock cycle time, and autoincrement addressing mode.
Typology: Assignments
1 / 4
This page cannot be seen from the preview
Don't miss anything!



CS433g: Computer System Organization – Fall 2005 Practice Problem Set 1
Question 1
Assume that we make an enhancement to a computer that improves some mode of execution by a factor of 10. Enhanced mode is used 60% of the time, measured as a percentage of the execution time when the enhanced mode is in use. Recall that Amdahl’s Law depends on the fraction of the original un-enhanced execution time that could make use of enhanced mode. Thus, we cannot directly use this 60% measurement to compute speedup with Amdahl’s Law. a. What is the speedup we have obtained from the enhanced mode (relative to the original)? b. What percentage of the original execution time has been converted to enhanced mode?
Question 2
Three enhancements with the following speedup are proposed for a new architecture (assume they apply to non-overlapping parts of the execution):
Speedup 1 = 30 Speedup 2 = 25 Speedup 3 = 15
a. If enhancements 1 and 2 are each usable for 30% of the time, what fraction of the time must enhancement 3 be used to achieve an overall speedup of 10? b. Assume the three enhancements are respectively used over 40%, 30%, and 20% of the original execution. Now consider the enhanced version. For what fraction of the new execution time is no enhancement in use? c. Assume for some benchmark, enhancement 1 is used for 15% of the original execution, enhancement 2 is used for 20% of the original execution, and enhancement 3 is used for 65% of the original execution. We want to maximize performance. If only one enhancement can be implemented, which should it be? If two enhancements can be implemented, which should be chosen?
Consider the following types of instruction set architectures:
We have the following high-level code sequence: C = A + B D = C + A
a. Write the assembly code sequence for the above code sequence for the three instruction set architectures. You can use the assembly language mnemonics given above. The assembly code you write must use as few instructions as possible.
b. Assume that every access to memory for data reads/writes 4 bytes. How many bytes of data are transferred between memory and processor for each of the three ISAs in the code sequence (show the data bytes transferred for each instruction in the code)? Which architecture transfers the least amount of data between memory and processor?
Compute the effective CPI for MIPS using figure 2.32 of the textbook. Suppose we have made the following measurements of average CPI for instructions:
Instruction Clock cycles
Assume that 60% of conditional branches are taken and that all instructions in the ‘other’ category of Figure 2.32 of the textbook are ALU instructions. Use the average of the instruction frequencies of gap and gcc to obtain the instruction mix. Conditional move and load immediate should be treated as ALU instructions.