Please help me with this question as I do not understand. Assume the following i
ID: 3570056 • Letter: P
Question
Please help me with this question as I do not understand.
Assume the following instruction are to be executed using the 5-cycle pipeline architecture explained in class:
LW R1, 500(R2)
Assume Reg[R1] = 6, Reg[R2] = 100, and Mem[600] = 50. Fill out the following table, showing the
microinstructions executed and the values of the registers at the end of each pipeline cycle. Use "?" for
registers whose values are not known in a cycle. Assume this is the only instruction entering into the
pipeline, so no other instructions can affect the outcomes of the registers.
Explanation / Answer
This is a microcode table.
LW R1, 500(R2)
LW is an instruction.
LW is Load Word.
Think Load like you "Load" a truck therefore R1 is being Loaded.
R1 is a register with a word.
Now all there is 500(R2).
The thing about this format 500(R2) is R2 is always R2.
500 may change because that is the "address" where you will load R1.
Think of 500 as a parking space. You have to park your loaded truck into parking space 500.
Well now ask yourself. What the hell is in the truck? It's R1!
Pipelining is like doing laundary. You don't take a "load" and wash then dry then fold before you wash another load.
You just wash wash, dry dry, fold fold in succession.
The first step is arbitrary so I skipped it and I accidently added an extra row to the table.
Since your not calcluating anything ALU is ?
and then you have ? because of Pipelining
Look at this resource
http://www.math.uaa.alaska.edu/~afkjm/cs448/handouts/pipelining.pdf
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.