Description:

  • Combinational logic circuit that combines a variety of operations into a single unit.
  • Has:
  • Inputs: A, B and the code for OPeration
  • Outputs: Y (output) and result flag

ALU Operation Encoding in Control Logic:

  • BSEL: B’s selector
  • LOP: logical operation
  • SOP: Bit Shifter op
  • OSEL: Output selector
OP NameOPBSELCILOPSOPOSELOperation
ADD000000XX00Y = A + B + CI
SUB001011XX00Y = A + +1
AND01100X0X01Y = A and B
OR10000X1X01Y = A OR B
SHL101XXX010Y = A >> 1
SHR110XXX110Y = A << 1
PASS A111100XX00Y = A