Computer Architecture
1. Computer Architecture¶
Computers use bits (0 or 1) to represent data and commands
bit- 0 or 1byte- 8 bitsKB- 1024 bytesMB- 1024 KBsGB- 1024 MBsTB- 1024 GBs- etc...
1.1. Storage¶
Arranged from slowest to fastest and largest to smallest possible size:
HDD|SSD- Non-volatile (retains data without power)RAM- Volatile (loses data without power)Cache- Order of CPU looking for data in cache (L1 -> L2 -> L3 -> RAM)
1.2. CPU¶
CPU Functions
- Fetches, decodes, and executes instructions
- Can read/write from RAM/Disk/Cache data
Memory Access
CPU accesses memory in this order:
- L1 Cache
- L2 Cache
- L3 Cache
- RAM
Faster access, but smaller capacity as you go up the list