How The CPU Works

Control Unit

The Control Unit is a component of the CPU that directs operation of the processor. It tells the computer's memory, the ALU and input and output devices how to respond to a program's instructions.

ALU

The Arithmetic/Logic Unit is one of the many components within a computer processor. It performs mathematical, logical, and decision operations in a computer and is the final processing performed by the processor.

RAM

the Random Access Memory is a form of computer memory that can be randomly accessed. RAM is the most common type of computer memory.

Fetch-Decode-Execute Cycle

the CPU executes instructions in the same cycle again and again:


1.Fetch an instruction from memory

2.Decode the instruction into it’s required steps (Control Unit)

3.Execute the instruction – (ALU)