ALU: Difference between revisions
From Rice Wiki
(Created page with "= Suboperator = Sometimes, free bits in an instruction allows for suboperator. This involves additional parsing on the circuit, such as another MUX under NOT.") |
No edit summary |
||
Line 1: | Line 1: | ||
= | 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 | |||
[[Category:Computer Architecture]] |
Revision as of 15:27, 26 April 2024
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