Quiz on fourth week's material.
The following ask about timing of circuit components. The options are
Question 1: (see above) You change the input of a register such as the PC or a condition code. The output changes
Question 2: (see above) You provide a new register value to the register file. The value in that register changes
Question 3: (see above) You request access to a new register value from the register file. The value becomes available to you
Question 4: (see above) You read an address from memory. The value read becomes available to you
Question 5: (see above) You write a value to an address in memory. The value written enters memory
The following ask about mux inputs in order to implement various instructions. Each one assumes that some given signal has a mux in front of it and asks what set of inputs that mux would need. Your answer should consider only data inputs, not selector wires and should be consistent with the presentation in the textbook.
Question 6: (see above) Consider the data-memory touching instructions (pushq
, popq
, rmmovq
, mrmovq
, call
, and ret
). What inputs are needed for the address to for data memory?
Select all that apply
Question 7: (see above) Consider the data-memory writing instructions (pushq
, rmmovq
, and call
). What inputs are needed for the value written into data memory?
Select all that apply
Question 8: (see above) Consider the unconditional move instructions (irmovq
, rrmovq
, rmmovq
, and mrmovq
). What inputs are needed for the register destinations dstE and dstM?
Select all that apply