Page 1 of 1

Q1: (10 marks): Assume the following latencies for a single issue processor. cing Result Instruction Using Result Latenc

Posted: Mon Jun 06, 2022 1:53 pm
by answerhappygod
Q1 10 Marks Assume The Following Latencies For A Single Issue Processor Cing Result Instruction Using Result Latenc 1
Q1 10 Marks Assume The Following Latencies For A Single Issue Processor Cing Result Instruction Using Result Latenc 1 (53.5 KiB) Viewed 22 times
Q1: (10 marks): Assume the following latencies for a single issue processor. cing Result Instruction Using Result Latency in Clock Cycl 1 of 3 DIV Another FP ALU op 4 SUB 2 Another FP ALU op or Store Dobule FP ALU op Load Double 1 Load Double 0 Store Double Branch Int ADD 1 You are provided with 34 FP registers but you can only use even registers and any used register ca be reused again for unrolling. Schedule and unroll the following code a maximum number of ti 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, 0(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