Processor Basics

Memory Access: load (copy bytes from DRAM address to register)

Store: reverse of above

Arithmetic & Logic: add/multiply, bitwise op, compare

Control Flow: branch, call handled by CPU

Cache: small local memory to buffer instructions/data

Reading memory: transfer data from CPU to memory (load)

Write: from memory to CPU

Reading Example

Screen Shot 2024-05-08 at 6.05.47 PM.png

Screen Shot 2024-05-08 at 6.05.55 PM.png

Screen Shot 2024-05-08 at 6.06.02 PM.png

Writing Example

Screen Shot 2024-05-08 at 6.06.34 PM.png

Screen Shot 2024-05-08 at 6.06.42 PM.png

Performance

Main Idea: Optimizing access to DRAM and use of processor caches is critical for processor performance!