Question: Use this bit of code: add $5, $7, $2 sw $9, 4($6) lw $4, 8($12) or $6, $5, $3 Assume that the code is stored
Use this bit of code:
add $5, $7, $2
sw $9, 4($6)
lw $4, 8($12)
or $6, $5, $3
Assume that the code is stored starting at 0x00600000, the values in the memory are all initially -1, and the register values are the same as the number (so $5 holds the value 5). Using the pipelined diagram, give the contents of each internal register at the end of the 4th clock cycle. Be specific and give the actual values placed into the register. The gray area indicates that there is no value at that point.
IF/ID ID/EX EX/MEM MEM/WB Register PC Read data 1 Read data 2 Sign Extend Zero ALU Result Read data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
