- Comp 452 Computer Architecture Assignment 2 Deadline Monday June 6th Total Marks 25 Roll No Instructions Failure T 1 (48.27 KiB) Viewed 31 times
COMP 452 - Computer Architecture Assignment 2 Deadline: Monday June 6th Total Marks: 25 Roll No. Instructions (Failure t
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
COMP 452 - Computer Architecture Assignment 2 Deadline: Monday June 6th Total Marks: 25 Roll No. Instructions (Failure t
COMP 452 - Computer Architecture Assignment 2 Deadline: Monday June 6th Total Marks: 25 Roll No. Instructions (Failure to follow instructions may result in mark deduction): 1. Show complete working of your solution. 2. You are supposed to submit the handwritten solution. You can take print out of this document and solve the assignment on that print out. Q1: (10 marks): Assume the following latencies for a single issue processor. Instruction Producing Result Instruction Using Result Latency in Clock Cycles Another FP ALU op 4 FP MUL/DIV FP ADD/SUB Load Double Another FP ALU op or Store Dobule 2 1 Load Double FP ALU op Store Double Branch 0 Int ADD 1 You are provided with 34 FP registers but you can only use even registers and any used register cannot be reused again for unrolling. Schedule and unroll the following code a maximum number of times. Write down the code and give clock cycles/iteration for the following: A) (4 marks) Unscheduled and without unrolling B) (6 marks) Scheduled and maximally unrolled Loop: LD FO, O(R4) LD F2, 0(R3) DIV.D F6, FO, F4 // F4 carries a scalar constant SUB.D F8, F2, FO ADD.D F10, F8, F12 // F12 carries a scalar constant S.D F10, 0(R4) S.D F8, 0(R3) DADDI R3, R3, -8 DADDI R4, R4, -8 BNEQZ R4, Loop