1. Structure of CPU
CPU consists of many different components:
- Control Unit (CU)
- Arithmetic Logic Unit (ALU)
- Register
- Cache L1
- Cache L2
- Cache L3
- Instruction Decoder
- I/O (Input/Output) Bus
2. Components of CPU
CU – Control Unit
Control Unit is processing center, responsible for decoding commands, generating signals to control other components.
ALU – Arithmetic Logic Unit
ALU do the math operations (addition, subtraction, multiplication, division) and simple logic (AND, OR, XOR, NOT).
RF – Register Files
Register Files is used to store temporary information for operations of CPU.
Cache Memory
It located inside the CPU, has a small capacity, has an access speed approximately equal to the CPU’s working speed.
Cache memory helps CPU to work regularly without interrupting due to waiting for data. Cache memory is made of static Ram, which is very expensive.
There are types of cache: L1 (Level 1), L2 (Level 2), L3 (Level 3):
- Cache L1 (inside CPU) stores Data and Instruction.
- Cache L2 (near L1 cache) contains instructions and data to be executed next.
- Cache L3 (maybe) contains data from RAM, storage device store.
How to check cache memory capacity
- Use CPU-Z software to check cache memory.
- Download CPU-Z: https://www.cpuid.com/softwares/cpu-z.html
- View cache section and check the size of L1 Data, L1 Inst., Level 2, Level 3