I am trying to implement jr (jump register) command support for a single-cycle MIPS processor. In the following figure, I drew a simple multiplexer that allows you to choose between a regular chain PC or an instruction address (jr).

How can I find out what the JR instruction to select a multiplexer in is "1"? I already did jump and jump_and_link (although the image doesnβt display it, because I donβt have my project in my hands now), and to control them, I just check if the code is OP 10 (jump) or 11 (jal) in the main control and then set mux sel to '1'. But I think that I cannot do the same with jr, as the layout of the instruction is different.
user2509740
source share