Question: In this problem, you will design ( draw a datapath ) for a block that will help your processor decide whether to take a branch

In this problem, you will design (draw a datapath) for a block that will help your
processor decide whether to take a branch for different conditions. As input, your block
will be given an opcode for the type of branch and signals from the ALU which perform
the actual comparisons. Your block will produce a single signal branch as output. The
internals of your block should be combinational (logic gates and possibly muxes).
Inputs:
zero -1 if R[rs1]- R[rs2]=0,0 otherwise
lt -1 if R[rs1]< R[rs2],0 otherwise
opcode (2b)-00: blt (<),01: bge (>=),
10: beq (==),11: bne (!=)
Output:
branch -1 if branch should be taken, 0 if not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!