ALU

From Rice Wiki
Revision as of 15:29, 26 April 2024 by Rice (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.