
Name: GTid:
Homework 2
Prof. Loh
CS6290 - Spring 2007
Handed Out: 05 Feb 2006 (Mon)
Due: 16 Sep 2006 (Fri - by email)
For problems 1-3, unless otherwise specified, make the following assumptions:
•One instruction can issue (allocate) per cycle
•Latencies: ADD (1), LOAD(4), MUL(8), DIV(20)
•There is one adder, one multiply/divide unit, one load port
•Functional units are not pipelined
•Write Result and Exec occur in the same cycle (i.e., an instruction writes to the CDB in cycle n, and
its dependent instruction can start execution in cycle nas well)
•There is a single CDB
•Reservation stations: ADD(3), LD(2), MD(2); call these AD1-AD3, LD1-LD2, MD1-MD2
•An instruction stalls at issue if an appropriate reserveration station (RS) is not available. It may issue
in the cycle after the previous instruction writesback (i.e., if ADD X is stalled because all add RS’s
are occupied, and then one of the ADD’s writes back on cycle n, then the ADD X can issue on cycle
n+1).
•If more than one reservation station is available (e.g., ADD1 and ADD3), issue the instruction to the
RS with the lower number (e.g., ADD1).
1