I am trying to implement the junior (jump register) instruction for a single-cycle MIPS processor. In the following image, I have drawn a simple mix that allows to choose between the normal series PC or Direction (JR) address.
How can I know that the instructions are JR To set Mux selection to '1'? I have already jumped and jump_and_link (although the image does not show up, because I do not have a project in my hand right now), and to control them, I just check that the OP code is 10 (jump) or Set the music cell for 11 (burn) in main control and then '1'. But I think I can not do this with JR, because the instructions layout is different.
A JR direction of opcode
instructions [31:26] == 0 (special) and
instructions [5: 0] == 0x08 (JR). You need to look at both of these situations to decide that this is a
JR instruction on your drawing with the
control block
one of the instructions Additional input is required [5: 0].
Instructions in the field
rs [25:21] selects the source register for this instruction. A PC is required to assign to
rs when a
JR instruction is executed.
No comments:
Post a Comment