Arithmetic Logic Unit
Subject: Computer and Technology noun /əˈrɪθ.mə.tɪk ˈlɑː.dʒɪk ˈjuː.nɪt/ 1 definition
- computer-architecture
- computer-hardware
- digital-logic
- processor-design
-
Definition (noun)
Entry #103 · UpdatedAn Arithmetic Logic Unit (ALU) is a combinational digital circuit within a Central Processing Unit (CPU), Graphics Processing Unit (GPU), or microcontroller that executes integer arithmetic, bitwise logical, and bit-shift operations on binary data. Guided by opcode control signals from the control unit, it takes operands from processor registers, computes the requested result, and emits condition status flags—such as zero, carry, negative, and overflow—used for comparisons and conditional branching. Unlike the control unit that directs instruction flow or a dedicated Floating-Point Unit (FPU) built for fractional real-number math, a standard ALU acts purely as a stateless combinational engine focused on fast integer and Boolean computation rather than instruction sequencing or long-term data storage.
Common Types
Scalar Integer ALU: Processes a single pair of fixed-width binary words (typically 32-bit or 64-bit) per operation inside general-purpose CPU cores, handling everyday arithmetic, memory address offsets, and branch tests.
SIMD and Vector ALU: Partitions wide registers (such as 128-bit to 512-bit widths) into parallel execution lanes so a single instruction performs identical arithmetic or bitwise logic across multiple integers simultaneously in media, graphics, and cryptography workloads.
Saturating DSP ALU: Clamps overflowing arithmetic results to the maximum or minimum representable value instead of wrapping around, preventing severe signal distortion in real-time audio, image, and digital signal processing.
Bit-Slice ALU: Cascades narrow modular ALU integrated circuits (historically 4-bit chips such as the 74181) with shared carry-lookahead logic to construct processors of custom word widths.
Example
When an x86-64 processor evaluates a loop countdown by executing
sub rcx, 1followed byjz loop_end, the control unit routes thercxregister value, the constant1, and a subtraction opcode into the ALU. The ALU computes the decremented 64-bit integer and sets the Zero Flag (ZF) in theRFLAGSregister when the result reaches0, enabling the conditional jump to exit the loop.