Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (20 pts) Consider a system employing Tomasulo's dynamic scheduling. Issue: issue only if RS is available; get an instruction from the instruction stack as

image text in transcribed

image text in transcribed

2. (20 pts) Consider a system employing Tomasulo's dynamic scheduling. Issue: issue only if RS is available; get an instruction from the instruction stack as well as read available operands. At an issue stage, if not all operands are available, stall and wait for operands on CDB. When operands are broadcast on CDB, grab them. When a reservation station obtains its last operand value, it can begin execution on the next cycle. Execute: If all operands are read, begin execution at the next cycle. Reservation stations are deallocated during the result writing cycle and can be reassigned on the following cycle. The floating point functional units are pipelined and can begin a new instruction every clock cycle. The Integer (load/store), FPAdd and FPMult units each have two reservation stations while FPDiv has only one reservation station. The functional unit latencies are FPAdd = 8, FPMult = 5, FPDiv = 10 execution cycles. (These latencies do not include writing the results to reservation stations and/or registers.) Reservation stations are deallocated during the result writing cycle and can be reassigned on the following cycle. Deallocated but not reassigned reservation stations should be indicated with null (empty) fields, denoted by "-". Initial Register File status FO F1 F2 F3 F4F5F6F7F8 Register Producer Value 10 15 20 25 30 35 40 8 0 Current Instruction status Issued? Exec. Complete? Results Written? Instruction DIVF F1,F2,FO MULTF F3,F4,F3 ADDF F1,F3,F1 SUBF F7,F6,F7 Y Y II: 12: 13: 14: Y Y Reservation Station status Busy? Oper Value 1 Value 2 Producer 1 Producer 2 FU# Addl Add2 Mult1 Mult2 Divl (a) 11 pts) Assume that instructions 1-4 have issued and instruction 2 has completed execution and has broadcast its results. No other instruction has completed execution. Fill in the register file status and reservation station status that would be consistent with this state. Current Register File status FO F1 F2 F3 F4F5F6 Register Producer Value Current Reservation Station status Busy? Oper Value 1 Value 2 Producer 1 Producer 2 FU# Addi Add2 Multi Mult2 Divl (6) Fill in the table below with the following information: (6-1) [3 pts] Suppose that instruction 1 issued in cycle 1. In which order does each of the remaining instructions issue? For any instructions whose issue is stalled, briefly explain why they are stalled below the table. (6-2)[3 pts] What is the order in which the instructions complete execution? (6-3) [3 pts Which instructions will write their results to the register file throughout all the executions? Instruction Order in which instructions are issued? Order of execution completion (e.g., 18, 2nd, 3rd) Are instruction's results written to the register file? Il: DIVF F1,F2,FO 12: 13: 14: MULTF F3,F4,F3 ADDF F1,F3,F5 SUBF F7,F6,F7 Cycles Inst 1 2 3 4 5 6 7 8 9 10 11 12 13 | 14 | 15 16 | 17 | 18 | 19 | 20 | (1) IRE (3) (4) Explanation of any instruction issue stalls: 2. (20 pts) Consider a system employing Tomasulo's dynamic scheduling. Issue: issue only if RS is available; get an instruction from the instruction stack as well as read available operands. At an issue stage, if not all operands are available, stall and wait for operands on CDB. When operands are broadcast on CDB, grab them. When a reservation station obtains its last operand value, it can begin execution on the next cycle. Execute: If all operands are read, begin execution at the next cycle. Reservation stations are deallocated during the result writing cycle and can be reassigned on the following cycle. The floating point functional units are pipelined and can begin a new instruction every clock cycle. The Integer (load/store), FPAdd and FPMult units each have two reservation stations while FPDiv has only one reservation station. The functional unit latencies are FPAdd = 8, FPMult = 5, FPDiv = 10 execution cycles. (These latencies do not include writing the results to reservation stations and/or registers.) Reservation stations are deallocated during the result writing cycle and can be reassigned on the following cycle. Deallocated but not reassigned reservation stations should be indicated with null (empty) fields, denoted by "-". Initial Register File status FO F1 F2 F3 F4F5F6F7F8 Register Producer Value 10 15 20 25 30 35 40 8 0 Current Instruction status Issued? Exec. Complete? Results Written? Instruction DIVF F1,F2,FO MULTF F3,F4,F3 ADDF F1,F3,F1 SUBF F7,F6,F7 Y Y II: 12: 13: 14: Y Y Reservation Station status Busy? Oper Value 1 Value 2 Producer 1 Producer 2 FU# Addl Add2 Mult1 Mult2 Divl (a) 11 pts) Assume that instructions 1-4 have issued and instruction 2 has completed execution and has broadcast its results. No other instruction has completed execution. Fill in the register file status and reservation station status that would be consistent with this state. Current Register File status FO F1 F2 F3 F4F5F6 Register Producer Value Current Reservation Station status Busy? Oper Value 1 Value 2 Producer 1 Producer 2 FU# Addi Add2 Multi Mult2 Divl (6) Fill in the table below with the following information: (6-1) [3 pts] Suppose that instruction 1 issued in cycle 1. In which order does each of the remaining instructions issue? For any instructions whose issue is stalled, briefly explain why they are stalled below the table. (6-2)[3 pts] What is the order in which the instructions complete execution? (6-3) [3 pts Which instructions will write their results to the register file throughout all the executions? Instruction Order in which instructions are issued? Order of execution completion (e.g., 18, 2nd, 3rd) Are instruction's results written to the register file? Il: DIVF F1,F2,FO 12: 13: 14: MULTF F3,F4,F3 ADDF F1,F3,F5 SUBF F7,F6,F7 Cycles Inst 1 2 3 4 5 6 7 8 9 10 11 12 13 | 14 | 15 16 | 17 | 18 | 19 | 20 | (1) IRE (3) (4) Explanation of any instruction issue stalls

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory And Application Bio Science And Bio Technology International Conferences DTA And BSBT 2011 Held As Part Of The Future Generation In Computer And Information Science 258

Authors: Tai-hoon Kim ,Hojjat Adeli ,Alfredo Cuzzocrea ,Tughrul Arslan ,Yanchun Zhang ,Jianhua Ma ,Kyo-il Chung ,Siti Mariyam ,Xiaofeng Song

2011th Edition

3642271561, 978-3642271564

More Books

Students also viewed these Databases questions