Microprocessor Huwanotes 1
Microprocessor Huwanotes 1
- The Central Processing Unit (CPU) is an electronic device that takes input, processes data,
and delivers output.
- A calculator app: Takes user input (e.g., pressing "5"), processes it (calculation), and displays
the result.
- A gaming console: Takes controller inputs, processes game data, and provides audio-visual
output.
4. Terminology
- For simplicity, CPU and microprocessor are interchangeable terms in most cases.
5. Structure
1. Overview
- The CPU processes input, interacts with memory, and produces output in forms like visuals,
sound, or vibrations.
- This video introduces core CPU components, with later videos explaining how they work
together.
- Performs arithmetic (add, subtract, multiply, divide) and logic operations (AND, OR, NOT).
- Works with general-purpose registers, including the Accumulator (ACC).
- Accumulator (ACC):
- Data Bus (Bidirectional): Transfers actual binary data between CPU and memory.
- Clock: Synchronizes operations with pulses (measured in hertz). Higher clock speed means a
faster CPU.
- Cache Memory:
- Small, fast memory near the CPU for frequently used data.
1. Introduction
- The Von Neumann architecture is a stored-program computer design proposed by John von
Neumann in 1945.
- It allows computers to store programs in memory, unlike early fixed-program machines (e.g.,
calculators).
1. Fetch Stage
- The Program Counter (PC) holds the memory address of the next instruction.
- The Memory Address Register (MAR) uses this address to fetch the instruction from memory.
2. Decode Stage
3. Execute Stage
- Memory Address Register (MAR): Holds the address of memory location to read/write.
5. Summary
- Von Neumann architecture uses a single memory for both data and instructions.
- Registers (PC, MAR, MDR, ACC) help manage memory operations and processing.
28. Fetch-Decode-Execute Cycle
The Fetch-Decode-Execute (FDE) cycle is the fundamental process that a CPU follows to
execute instructions from a computer program. This cycle repeats billions of times per second,
allowing the CPU to carry out tasks efficiently.
The Program Counter (PC) holds the memory address of the next instruction.
The address in the PC is copied into the Memory Address Register (MAR).
The MAR sends this address through the Address Bus to main memory.
The Control Unit (CU) sends a read signal through the Control Bus, instructing the main
memory to send the instruction stored at the specified address.
The instruction is fetched from memory and sent through the Data Bus to the Memory
Data Register (MDR).
The instruction in MDR is copied into the Current Instruction Register (CIR).
The Control Unit (CU) decodes the instruction stored in the Current Instruction Register
(CIR).
The CU determines if the operand contains actual data or a memory address where data
is stored.
If the instruction involves data retrieval, the address is sent to the Memory Address
Register (MAR).
The Memory Data Register (MDR) receives the required data from main memory.