Question: Modify the datapath and control for the multicycle implementation to add the jal (jump and link) instruction. Remember that the jal instruction is like a
Modify the datapath and control for the multicycle implementation to add the jal (jump and link) instruction.
Remember that the jal instruction is like a j (jump) instruction, but it also places the address of the instruction following the jal instruction in register $31 as a return address.
Examine the figures below and on the following page showing the datapath and the finite state machine (FSM) control for the multicycle implementation, respectively. Make the appropriate modifications to both the datapath and the FSM control figures to support the jal instruction. 

PCWriteCon PCSource PCWrit ALU orD/Outputs ALUSrcB MemRead MemWritdContol ALUSrcA RegWrite Dst Jump address 131-0 Shift Instruction [25-0 Instructio [31-261 PC [31-28] Read register 1 Reado data l register 2 Write Read register data 2 Write data [25-21] uAddress Zero ALU AL resul Memory [20-16) Registers MemDa Instructiou [15-11] Write data Instruction register [15-0] Memory 32Shift left 2 ALU contro 16 Sign extend register PCWriteCon PCSource PCWrit ALU orD/Outputs ALUSrcB MemRead MemWritdContol ALUSrcA RegWrite Dst Jump address 131-0 Shift Instruction [25-0 Instructio [31-261 PC [31-28] Read register 1 Reado data l register 2 Write Read register data 2 Write data [25-21] uAddress Zero ALU AL resul Memory [20-16) Registers MemDa Instructiou [15-11] Write data Instruction register [15-0] Memory 32Shift left 2 ALU contro 16 Sign extend register
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
