4. Reminder: Let's imagine we have an instruction pipeline consisting of 4 steps (instruction pipeline): • fetch instruc
Posted: Fri Jul 08, 2022 6:35 am
4. Reminder: Let's imagine we have an instruction pipelineconsisting of 4 steps (instruction pipeline):
• fetch instruction (FI) (get command)• decode instruction and calculate address (DA)• fetch operand (get operand) (FO)• execute (EX)
Prepare the command pipeline chart for the 7 commands andconsider the 4th command branching to the 15th command. Pleaseexplain briefly. (Branching occurs when the 5th command isfinished. When the branching occurs, the process in that command isexpected to finish!)
a) Let's have a command pipeline of 4 steps again. The followingtable gives the number of clock cycles required in each instructionstep. For example, if it says 2 for FI, it means that FI is beingprocessed in Steps 1 and 2. The first instruction is given as anexample. Reminder: Keep in mind that the same type of operationscannot be performed simultaneously in the pipeline.
• FI: Fetch Instruction (Take Command)• DA: Decode code and Calculate Address,• EX: Execute• WR: Write
HDBHEGIG I1 12 13 14 15 16 17 I15 1 FI 2 DA FI 3 FO DA FI 4 EX FO DA 5 EX FO FI 6 EX DA FI 7 8 FO EX DA FO FI DA FI 9 10 11 12 FI DA FO EX
FI 123 LL2LL 14 15 1 1 2 1 1 DA EX WR 22L3N 12322 1 1 2 3 2 2 21221 1 2
I1 22H5 12 13 14 15 1 FI 54 2 3 4 6 DA DA EX WR WR 7 8 9 10 11 12 13 14 15
• fetch instruction (FI) (get command)• decode instruction and calculate address (DA)• fetch operand (get operand) (FO)• execute (EX)
Prepare the command pipeline chart for the 7 commands andconsider the 4th command branching to the 15th command. Pleaseexplain briefly. (Branching occurs when the 5th command isfinished. When the branching occurs, the process in that command isexpected to finish!)
a) Let's have a command pipeline of 4 steps again. The followingtable gives the number of clock cycles required in each instructionstep. For example, if it says 2 for FI, it means that FI is beingprocessed in Steps 1 and 2. The first instruction is given as anexample. Reminder: Keep in mind that the same type of operationscannot be performed simultaneously in the pipeline.
• FI: Fetch Instruction (Take Command)• DA: Decode code and Calculate Address,• EX: Execute• WR: Write
HDBHEGIG I1 12 13 14 15 16 17 I15 1 FI 2 DA FI 3 FO DA FI 4 EX FO DA 5 EX FO FI 6 EX DA FI 7 8 FO EX DA FO FI DA FI 9 10 11 12 FI DA FO EX
FI 123 LL2LL 14 15 1 1 2 1 1 DA EX WR 22L3N 12322 1 1 2 3 2 2 21221 1 2
I1 22H5 12 13 14 15 1 FI 54 2 3 4 6 DA DA EX WR WR 7 8 9 10 11 12 13 14 15