Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 t

Explanation / 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 F
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote