Lesson 4
Intended Learning Outcomes
- LO1: Understanding data/instructions read/write process with memory.
- LO2: Understanding system bus main components.
CPU Overview
- CPU is the brain of the computer; runs programs and executes instructions.
- Located on a microprocessor chip.
Main Components of CPU
- Registers: Temporary storage for data/instructions.
- Control Unit: Sends control signals, manages data transfer, interprets instructions, communicates with I/O devices.
- ALU (Arithmetic Logic Unit): Performs all calculations required by the CPU.
Control Unit Functions
- Directs and coordinates operations in the computer.
- Executes the Machine Cycle:
- Fetch instruction
- Decode instruction
- Execute instruction
- Store result if necessary
Machine Cycle Steps
- Fetching: Obtain instruction/data from memory.
- Decoding: Translate instruction into commands.
- Executing: Carry out commands.
- Storing: Write result back to memory.
Pipelining
- Technique allowing overlapping execution of instructions.
- Increases throughput; modern microprocessors can execute many instructions simultaneously.
Microprocessor Speed
- Measured in Hz (e.g., MHz, GHz).
- Higher clock rates mean faster execution of instructions.
Registers in CPU
- Program Counter (PC): Address of next instruction.
- Instruction Register (IR): Current instruction being executed.
- Memory Address Register (MAR): Address of data word to access.
- Memory Data Register (MDR): Holds data word in transfer.
- Accumulator (AC): Stores intermediate calculations.
Instruction Fetch Steps
- Control unit signals PC for next instruction address.
- Address moved to MAR.
- MAR accesses memory location via address bus.
- Copy instruction to MBR and IR.
- Increment PC.
Memory Write Steps
- Control signals MAR to copy address.
- Control signals MBR and AC to pass data.
- Request memory write to MAR, copy MBR to memory location.
Bus Interconnection
- A bus is a communication pathway connecting devices.
- Purpose: Reduces pathways needed for communication.
System Bus
- Connects major components (processor, memory, I/O).
- Comprised of multiple lines classified as control, address, and data buses.
Data Bus
- Bidirectional bus transferring actual data.
- Width of bus determines data transmission capacity (e.g., 16-bit, 32-bit).
Address Bus
- Unidirectional bus identifying memory locations.
- Width determines addressable memory capacity (e.g., 20 lines = 1MB).
Control Bus
- Carries control information between CPU and devices.
- Mainly unidirectional signals for system control.
Computer Bus Speed
- Fast bus transfers data quickly, improving application performance.
CPU Manufacturers
- Notable manufacturers include Intel, AMD, Motorola, and Cyrix.