The arithmetic logic unit/arithmetic-logic unit (ALU) of a computer's CPU is a part of the execution unit, a core component of all CPUs. ALUs are capable of calculating the results of a wide variety of basic arithmetical computations. Virtually all modern computer ALUs use the two's complement binary number representation. Early computers used a wide variety of number systems, including one's complement, sign-magnitude format, and even true decimal systems, with ten tubes per digit.
Von Neumann stated that an ALU is a necessity for a computer because it is guaranteed that a computer will have to compute basic mathematical operations, including addition, subtraction, multiplication, and division Stallings page 19. He therefore believed it was "reasonable that computer should contain specialized organs for these operations" Stallings page 19.
A Control Unit controls the ALU, by setting circuits that tell the ALU what operations to perform.
Many standard ALUs do not handle integer division or any floating point operations since they can be emulated in software. However, several algorithms do exist for implementing division in hardware. Optional methods for these types of calculations include:
In many designs the ALU also takes or generates as inputs or outputs a set of condition codes from or to a status register. These codes are used to indicate cases such as carry-in or carry-out, overflow, divide-by-zero, etcStallings page 290-291.
Digital circuits | Central processing unit | Computer arithmetic | Computer architecture
Aritmeticko-logická jednotka | Arithmetisch-logische Einheit | Unidad aritmético-lógica | Unité arithmétique et logique | Unidade aritmético-lóxica | ALU | Arithmetic Logic Unit | יחידה אריתמטית-לוגית | Aritmetikai logikai egység | Arithmetic Logic Unit | 演算論理装置 | Jednostka arytmetyczno-logiczna | Unidade lógica e aritmética | Арифметическо-логическое устройство | Aritmeticko-logická jednotka | 整数运算器
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Arithmetic logic unit".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world