Question: Question 4 : Single Cycle Datapath Control ( 1 2 points ) We wish to support the MIPS instruction blez ( branch on less than
Question : Single Cycle Datapath Control points
We wish to support the MIPS instruction blez branch on less than or equal to zero
as an Itype instruction in the modified singlecycle datapath below.
The blez instruction is with opcode It compares the values in the rs and
rt registers, where rt register is fixed to be $ zero in the instruction encoding.
If the value in register is less than or equal to the value in register ie
it will use PCrelative addressing mode to calculate the branch target
address and update PC just like the beq instruction:
BranchAddr
Otherwise ie then:
Updates in the modified datapath above are marked in blue, including
a newly added bit control signal called blez;
a new output that extract bit ie sign bit from the ALU result;
and
a newly added OR gate being connected to PCSrc
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
