Computer Architecture Notes
Computer Architecture Notes
Definition of CPU
The CPU (Central Processing Unit) is the brain of the computer that carries out instructions from programs by
It is a computer architecture that uses a single memory for both data and instructions. It consists of a CPU, memory,
CU (Control Unit): Directs operations in the CPU and controls data flow.
IAS (Immediate Access Store): The memory where data and instructions are stored temporarily.
CIR (Current Instruction Register): Holds the current instruction being executed.
MAR (Memory Address Register): Stores the address of the memory location to be accessed.
MDR (Memory Data Register): Temporarily holds data read from or written to memory.
Address Bus: Carries memory addresses from the CPU to other parts.
Data Bus: Carries actual data between CPU, memory, and devices.
The instruction set is a group of commands a CPU can understand and execute, like add, move, jump, etc.
An embedded system is a computer system designed to do one specific task within a larger device, like a washing
machine or ATM.
1. Low cost
2. Fast performance
3. Small size
4. Energy efficient
5. Reliable
1. Hard to upgrade
2. Limited storage
3. Fixed function
4. Debugging is difficult
Data storage refers to saving digital information in a device for future use.
Primary Memory: Fast, temporary storage (e.g., RAM) used by the CPU.
Computer Architecture & Storage Notes
Secondary Memory: Permanent storage (e.g., HDD, SSD) for long-term data.
RAM (Random Access Memory): Temporary memory used while the computer is on.
RAM vs ROM:
DRAM vs SRAM:
Usage: DRAM is used for main memory, SRAM is used for cache memory
Offline Storage: External storage used when needed (e.g., USB drive).