Menu

[Solved] Number Cycles Needed Following Instructions Multicycle Datapath Add Sub Addi 4 Lw 5 Sw 4 S Q37204117

1. (60 points) Consider the following code sequence: add $t0, $t1, $t2 lw Şt3, 10 ($t0) lw Şt4, 14 ($t0) sub $t5, $t4, $t3 sw

Number of cycles needed for the following instructions in amulticycle datapath:

add/sub/addi – 4

lw – 5

sw – 4

stli – 4

bne – 3

please use the cycles provided thank you will rate

1. (60 points) Consider the following code sequence: add $t0, $t1, $t2 lw Şt3, 10 ($t0) lw Şt4, 14 ($t0) sub $t5, $t4, $t3 sw $t5, 18 ($t0) addi $t2, $t2, 4 slti $t6, $t2, 200 bne $t6, Şzero, loop Loop: Assume that each datapath stage requires the following minimum amount of time to complete: Instruction fetch (IF): 30 ns Instruction decode (ID): 20 ns Execute / address calculation (EX): 25 ns Memory access (MEM): 30 ns Register write back (WB): 20 ns o o o o o (10 points) How long will one loop iteration take in a single-cycle datapath? a. b. (10 points) How long will one loop iteration take in a multi-cycle datapath? Show transcribed image text 1. (60 points) Consider the following code sequence: add $t0, $t1, $t2 lw Şt3, 10 ($t0) lw Şt4, 14 ($t0) sub $t5, $t4, $t3 sw $t5, 18 ($t0) addi $t2, $t2, 4 slti $t6, $t2, 200 bne $t6, Şzero, loop Loop: Assume that each datapath stage requires the following minimum amount of time to complete: Instruction fetch (IF): 30 ns Instruction decode (ID): 20 ns Execute / address calculation (EX): 25 ns Memory access (MEM): 30 ns Register write back (WB): 20 ns o o o o o (10 points) How long will one loop iteration take in a single-cycle datapath? a. b. (10 points) How long will one loop iteration take in a multi-cycle datapath?

Expert Answer


Answer to Number of cycles needed for the following instructions in a multicycle datapath: add/sub/addi – 4 lw – 5 sw – 4 stli – … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *