Question: As you know, the MIPS processor described in this course employs a 5 - stage pipeline. The PC is incremented by 4 in stage 1
As you know, the MIPS processor described in this course employs a stage pipeline. The PC is incremented by in stage each time that an instruction is fetched. This incremented PC value is passed on to the following pipeline stages via the MIPS pipeline registers. When a MIPS beq instruction is in the execute stage the low bits in the instruction are shifted left bits and sign extended into an equivalent bit signed integer. This bit signed integer is added to the PC value from the IDEX pipeline register and the sum is used as the branch target address for the MIPS beq instruction.
The ARM processor employs a stage pipeline fetch decode, execute The ARM execute stage effectively combines the activity performed in the MIPS execute, memory and writeback stages. ARM CPU register is used as the PC program counter This ARM PC register is incremented by in the fetch stage each time that an instruction is fetched. The ARM beq instruction, contains a signed integer in its low bits. This bit signed integer is shifted left two bits and signed extended to an equivalent bit signed integer. The bit signed integer is added to the ARM PC register and the sum is used as the branch target address for the ARM beq instruction.
Assume that the MIPS processor and the ARM processor must each execute a beq instruction that resides within its memory at address xB The branch target address for each beq instruction is xB
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
