Question
Given the following MIPS code: OR $8, $14, $16 ADDI $12, $14, 55 SUB $14, $12, $16 NOR $15, $16, $12 LW $10, 44($12) AND
Given the following MIPS code:
OR $8, $14, $16 ADDI $12, $14, 55 SUB $14, $12, $16 NOR $15, $16, $12 LW $10, 44($12) AND $14, $10, $12
a) Is the LW instruction dependent upon any data from a previous instruction? If so, enter the register number of the value that will need to be forwarded to the LW instruction
(or NONE, if no forwarding will be necessary)
b) If the AND instruction is dependent upon data from previous instruction. during ANDI's EX stage, what control signal will be set, and what value will it be set to?
Enter the control signal and its value, separated by a space example: FORWARDA 1 (or NONE, if no forwarding will be necessary)
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