Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the execution of the following code segments in the MIPS multicycle datapath we developed in class . Assume branches take 3 cycles to complete.
Consider the execution of the following code segments in the MIPS multicycle datapath we developed in class. Assume branches take 3 cycles to complete.
Label: lw $t2, 0($t4) lw $t3, 4($t4) add $t5, $t2, $t3 sw $t5, 0($t6) addi $t4, 8 addi $t6, 4 bne $t6, $s0, Label
a) In what cycle does the actual comparison of $t6 and $s0 take place?
b) What exactly is happening during the 17th and 18th cycles of execution? Work out the values of the control signals relevant to this operation during the 17th and 18th cycles.
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