


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!



CS433: Computer System Organization – Spring 2008 Homework 1 Total Points: 29 Points (undergrad), 39 Points (graduate) Due Date: Feb 7, 2008 by 2:00 pm (See course information handout for more details on late submissions) Directions:
Problem 2 (2 points) Two enhancements are proposed: one that can enhance 60% of execution time with a speedup of 1.5, and another that can enhance a different 25% of execution time with some greater speedup value. Only one of these two can be implemented. How much of a speedup is necessary in the second enhancement to give a better enhancement than the first? Problem 3 (2 points) Several researchers have suggested that adding a register memory addressing mode to a load store machine might be useful. The idea is to replace sequences of LOAD R1, 4(R8) ADD R2, R2, R with ADD R2, 4(R8) Adding the new instruction will cause the clock cycle time to increase by 15% and does not affect CPI. If 26% of all instructions are loads, what percentage of these loads must be eliminated for the machine with the new instruction to have at least the same performance? Problem 4 (7 points) Identify the data hazards in the code below. Assume the 5 stage pipeline from A.1. For each hazard, state whether it requires a stall to be handled, or can be handled via forwarding. 1: LD.D R1, 0(R6) 2: LD.D R2, 4(R6) 3: DADD R1, R1, R 4: DMUL R3, R2, R 5: DSUB R2, R2, R 6: DSUB R1, R4, R 7: ST.D R1, 0(R6) 8: ST.D R2, 4(R6) Problem 5 (11 points) This problem concerns Tomasulo’s algorithm. Consider the following architecture specifications: Functional Unit Type Cycles in EX Number of Functional Units Integer 1 1 FP Divider 15 1
GRADUATE PROBLEM (all graduate students should solve this problem) Problem 6 (10 points) We will now add support for register-memory ALU operations to the classic five stage RISC pipeline. To offset this increase in complexity, all memory addressing will be restricted to register indirect (i.e., all addresses are simply a variable held in a register: no offset or displacement may be added to the register value). For example, the register- memory instruction ADD R4,R5,(R1) means add the contents of register R5 to the contents of the memory location with address equal to the value in register R1 and put the sum in register R4. Register-register ALU operations are unchanged. Answer the following for the integer RISC pipeline. a) List a rearranged order of the five traditional stages of the RISC pipeline that will support register-memory operations implemented exclusively by register indirect addressing. b) Describe what new forwarding paths are needed for the rearranged pipeline by stating the source, destination, and information transferred on each needed new path c) For the reordered stages of the RISC pipeline, what new data hazards are created by this addressing mode? Give an instruction sequence illustrating each new hazard. d) List any two ways that the RISC pipeline with register-memory ALU operations can have a different instruction count for a given program than the original RISC pipeline. Give a pair of specific instruction sequences, one for the original pipeline and one for the rearranged pipeline, to illustrate each way. e) Assume all instructions take 1 clock cycle per stage. List all ways that the register-memory RISC can have a different CPI for a given program as compared to the original RISC pipeline.