Nepedia
Back to Discover
Independent Reader
💻

Arithmetic logic unit

technology Maturity 7-9 Next article →

An ALU is a key part of a computer. It stands for an arithmetic logic unit.

ALU block
ALU block

This unit does math and logic tasks. It works with binary numbers. These are numbers made of bits.

ALU data paths
ALU data paths

To work, the ALU needs three things. First, it needs two numbers called operands. Second, it needs an opcode. An opcode is a code that tells the ALU what task to do. For example, it might say "add these numbers." The ALU then gives back a result.

AluStatusRegister
AluStatusRegister

The ALU also sends out status signals. These signals give extra info about the result. A "carry-out" signal shows if a number was carried over during math. A "zero" signal shows if the answer is zero. It can also show if a number is negative or too big.

Some ALUs can do more tasks. They can shift bits left or right. This is called a shift operation. They can also do logic tasks like AND or OR. This helps the computer make quick choices. The ALU is a building block for CPUs and GPUs.

176 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (11)
File:ALU block.svg
ALU block.svg
File:74181aluschematic.svg
74181aluschematic.svg
File:Rotate left logically.svg
Rotate left logically.svg
File:Rotate right logically.svg
Rotate right logically.svg
File:Rotate right through carry.svg
Rotate right through carry.svg
File:Rotate left through carry.svg
Rotate left through carry.svg
File:Rotate left.svg
Rotate left.svg
File:Rotate right.svg
Rotate right.svg
File:Rotate right arithmetically.svg
Rotate right arithmetically.svg
File:AluStatusRegister.svg
AluStatusRegister.svg
File:ALU data paths.svg
ALU data paths.svg
More to explore

🔗 What's this?

Concepts mentioned in this article

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.