ALU

From Rice Wiki

The arithmetic logic unit handles arithmetic operations in the CPU.

Operators

The main operators include

  • ADD
    • SUB: A - B = A + (-B)
    • MUL2: 2*A = A + A
  • XOR
    • NOT: ~A = A XOR 1
  • AND
  • OR

Circuit

Arrangement of instruction opcodes may ease circuit construction. By experience, arithmetic and logic instructions should be separated.