4. (10 pt) Shown on the right are instruction execution cycle of the Sequential
ID: 3891755 • Letter: 4
Question
4. (10 pt) Shown on the right are instruction execution cycle of the Sequential CPU.For the 'popl rA' instruction with the instruction format of specify operations to be performed in Execute and Memory stages of the SEQ control in terms of components in the diagram on the right stage popl rA Decode Execute 5. (15 pt) New PC block in the PC stage of the SEQ control takes three inputs: valM, valC, and valP. Which Y86 instruction(s) on the right generates the output of theie New PC block from valM ? You can use iCode values or instructions 0,1,2,3,6,7 Repeat the same for valC? a OOD call De zet popl tExplanation / Answer
You can do it by using taking various popl rA values .
popl rA value is:-
Stack Operations:
popl rA :
INSTRUCTION DECODING:
5=icode.
0=ifun
D=valC
Instruction format:
EXECUTING popl rA:
b) Write result to register.
STAGE COMPUTATION: popl rA
? New stack pointer.
FETCH:
icode:ifun ? M1[PC]! rA:rB ? M1[PC+1]
valP ? PC+2
Decode
valA ? R[%esp]
valB ? R [%esp]
Execute:
Memory:
Write Back:
R[%esp] ? valE
R[rA] ? valM
PC update :
a) Popped Value.
b) New Stack pointer.
b o rA FRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.