Question: Problems in this exercise assume that the logic blocks used to implement a processor's datapath ( COD Figure 4 . 2 3 ) have the
Problems in this exercise assume that the logic blocks used to implement a processor's datapath COD Figure have the following latencies:
"Register read" is the time needed after the rising clock edge for the new register value to appear on the output. This value applies to the PC only. "Register setup" is the amount of time a register's data input must be stable before the rising edge of the clock. This value applies to both the PC and Register File.
a Although the control unit as a whole requires ps it so happens that we can extract the correct value of the RegLoc control wire directly from the instruction. Thus, the value of this control wire is available at the same time as the instruction. Explain how we can extract this value directly from the instruction. Hints: Carefully examine the opcodes shown in COD Figure LEGv instruction encoding Also, remember that LSR and LSL do not use the Rm field. Finally, ignore STXR
b What is the latency of an Rtype instruction ie how long must the clock period be to ensure that this instruction works correctly
c What is the latency of LDUR? Check your answer carefully. Many students place extra muxes on the critical path.
d What is the latency of STUR? Check your answer carefully. Many students place extra muxes on the critical path.
e What is the latency of cBz
f What is the latency of B
g What is the latency of an Itype instruction?
h What is the minimum clock period for this CPU? Figure : The simple control and datapath are extended to handle the unconditional branch instruction COD Figure
An additional ORgate at the upper right is used to control the multiplexer that chooses between the branch target and the sequential instruction following this one. One input to the ORgate is the Uncondbranch control signal. Although not shown, the Signextend logic would recognize the unconditional branch opcode and signextend the lower bits of the branch instruction to form a bit address to be added to the PC
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
