Question: Question 4 : Single Cycle Datapath Control ( 1 2 points ) a ) Modify the above datapath ( to the figure directly ) so
Question : Single Cycle Datapath Control points a Modify the above datapath to the figure directly so that it supports the
blez instruction. You need to add a single OR gate and an AND gate. finish
the connections from all the blue lines. add proper connections to the
givennewlyadded ANDOR gates in the figure.
Do not expand or add any new MUX or other components. Briefly explain how your
modification would support running blez. points
b Complete the table below for control signals, so that the instructions can be
executed correctly in the modified datapath. If a control signal is a "don't care", you
must put otherwise no mark will be given to it 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 rt 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
