Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following code sequence: loop: add $t0, $t1 $t2 lw $t3, 10($t0) lw $t4, 14($t0) sub $t5, $t4, $t3 sw $t5, 18($t0) addi $t2,
Consider the following code sequence: loop: 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 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 a. How long will one loop iteration take in a single-cycle datapath? b. How long will one loop iteration take in a multi-cycle datapath
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started