This is an old version, saved 4 Dec 2026, 14:33 by TechWritereditor. It is the current version.

Arithmetic logic unit

An arithmetic logic unit (ALU) is the part of a computer's central processing unit (CPU) that performs arithmetic and logic operations on binary numbers.[1][2] Some processors divide it into an arithmetic unit, which handles operations such as addition, subtraction and comparison, and a logic unit, which handles operations such as AND, OR and NOT.[1]

Contents
  1. How it works
  2. History
  3. See also
  4. References

How it works

An ALU is a combinational circuit: its output depends only on the inputs it is given at that moment.[1] It receives an instruction made up of an opcode, which names the operation, and one or more operands, the values to work on; in the sum 1 + 2, the operands are 1 and 2 and the opcode is addition.[1] Alongside the result, the ALU produces status signals that flag, for example, a negative result, an overflow beyond the size of the register, or a carry, and later instructions can act on these signals.[1] Many ALUs can also shift the bits of an operand left or right, and multiplication and division can be carried out as a series of additions or subtractions and shifts.[2]

The speed and efficiency of the ALU strongly affect the performance of the whole CPU.[1] Designs vary: some processors contain several ALUs, some ALUs handle floating-point numbers while others leave that to a separate floating-point unit, and graphics processing units also contain ALUs.[1]

History

John von Neumann described the workings of the modern ALU in his unfinished 1945 "First Draft of a Report on the EDVAC".[1] Because electronic circuits were expensive and power-hungry, early ALUs processed one bit at a time; the Whirlwind computer of 1948 used 16 single-bit circuits to handle 16-bit words.[1]

In the late 1960s and early 1970s ALUs became available as integrated circuits, such as the 8-bit Fairchild 3800 and the 4-bit Texas Instruments 74181.[1] Texas Instruments introduced the 74181 in March 1970; it offered 32 arithmetic and logic functions on one fast chip and was used in machines including the PDP-11, the Xerox Alto and the VAX-11/780.[3] As transistors shrank, ALUs moved inside the Microprocessor and became steadily more complex and faster.[1]

See also

References

  1. ^ Arithmetic logic unit. Encyclopaedia Britannica. britannica.com
  2. ^ What is an arithmetic-logic unit (ALU)?. TechTarget. techtarget.com
  3. ^ Inside the vintage 74181 ALU chip: how it works and why it's so strange. Ken Shirriff's blog. 2017-03. righto.com