Main Functions:
- Fetch Instruction from instruction Memory
- Read Register Operands
- Compute with ALU
- Access data memory for load / store
- Store the result of computation or loaded data into destination register
- Update Program Counter
Datapath Components :
Simply: Handles and manipulates the data as instructed by the program being executed.
- Registers → Store the data being used by CPU. The ALU can access quickly.
- ALU → Performs operations on the data in registers
- Multiplexor (Mux) → Decide which data should be sent where
- Buses (Circuits) → The highways of data transfers, connecting the CPU to different parts of the computer
- Program Counter → Seen in (MIPS) Assembly Language.
- Instruction Register
- Data Memory
Control Path:
- Control Unit →
- Retrieves instructions from DRAM
- Decodes the Instruction
- Does a lot more lol
- Circuit Clock
- Instruction decoder
- Instruction Decoder
- Status Flags or Condition Codes
- Finite State Machine
Diagram:
Processor Speed:
Important Theorem