

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!


Computer Science 240 Fall 2008 Due: Monday, November 17 Reading. Patterson and Hennessy §5.1 -- §5.4, §A.9, §A. 8 .1. Exercises 5.1, 5.2, and 5.3 in the text help you learn yet another set of terminology and signal name helpers. Complete each exercise. 8 .2. Suppose we have a floating-point unit that requires 400 ps for a floating-point add and 600 ps for a floating-point multiply, not including the time to get the instruction or read and write any registers, which take the same as for an integer instruction. Use the functional unit times from the example on page 315. In these exercises, we will find the performance ratio between an implementation in which the clock cycle is different for each instruction class and an implementa- tion in which all instructions have the same clock cycle time. Assume the following:
Assignment 8 Page 2 Computer Science 240 8.6. Consider the single-cycle datapath fin Figure 5.17 on page 307. A friend is proposing to modify this single-cycle datapath by eliminating the control signal MemtoReg. The multiplexor that has MemtoReg as an input will instead use either the ALUSrc or the MemRad control signal. Will your friend’s modification work? Can one of th two signals (MemRead and ALUSrc) substitute for the other? Explain. 8 .7. MIPS chooses to simplify the structure of its instructions. The way we implement complex instructions through the use of MIPS instruction is to decompose such complex instruction into multiple simpler MIPS ones. Show how MIPS can implement the instruction swap $rs, $rt, which swaps the contents of registers $rs and $rt. Consider the case in which there is an available register that may be destroyed as well as the case in which no such register exists. If the implementation of this instruction in hardware will increase the clock period of a single-instruction implementation by 10%, what percentage of swap operations in the instruction mix would recommend implementing it in hardware?