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.
Inputs:
• zero - 1 if R[rs1] - R[rs2] = 0, 0 otherwise
• lt - 1 if R[rs1] < R[rs2], 0 otherwise
• opcode (2b) - 00: beq (==), 01: bne (!=), 10: blt (<), 11: bge (>=)
Output:
• branch - 1 if branch should be taken, 0 if not