Computer Architecture Notes AYAN
Computer Architecture Notes AYAN
FOR 1ST UNIT BASIC STRUCTURE AND FUNCTIONAL INTERCONNECTION AND INSTRUCTION CYCLE
1. Input Unit:
2. Memory Unit:
• Two types:
o Primary Memory:
▪ RAM (temporary)
▪ ROM (permanent)
o Secondary Memory:
5. Output Unit:
2. Functional Interconnection
System Buses are used to carry data and signals between units:
3. Instruction Cycle
1. Fetch:
2. Decode:
3. Execute:
• Perform the operation (like add, move, etc.).
4. Store (optional):
Definition:
The Von Neumann Architecture is a computer design model that uses a single memory for storing both instructions
(program) and data.
Main Components:
Key Features:
Definition:
It refers to the layered organization of different components (functional units) in a computer system based on their
role and abstraction level.
Hierarchy Levels:
2. Level 2 – Microarchitecture:
Interconnections:
Data Bus:
Address Bus:
Control Bus:
Carries control signals (read/write/interrupts).
You said:
ChatGPT said:
Great! Here's a simple and clear explanation of the System Bus and its various implementations:
Definition:
A System Bus is a communication pathway used to transfer data between different components of a computer, like
the CPU, memory, and input/output (I/O) devices.
1. Data Bus
o Width (e.g., 8, 16, 32, 64 bits) determines how much data is transferred at once.
2. Address Bus
o Size determines the maximum addressable memory (e.g., 32-bit = 2³² locations).
3. Control Bus
• Uses separate buses (e.g., one for memory, one for I/O).
3. Dedicated Buses:
4. Multiplexed Bus:
• Same bus lines used for data and addresses (at different times).
Summary Table:
The CPU is the brain of the computer. It processes all instructions, performs calculations, and manages data flow.
Main Components of the CPU:
• Examples:
3. Registers
• Types:
o Memory Data Register (MDR) – holds data fetched from or to be written to RAM.
4. Cache Memory
• Levels:
o L1 (fastest, smallest)
o L2 (slower, bigger)
o Data Bus
o Address Bus
o Control Bus
CPU in a Nutshell:
Part Function
Memory Buffer Register (or Memory Data Temporarily holds data read from or written to
MBR / MDR
Register) memory.
1. Fetch Phase:
2. Decode Phase:
3. Execute Phase:
o CPU carries out the instruction (using ALU, memory, or I/O depending on what’s required).
Summary Points:
1. Fetch:
o CPU uses the Program Counter (PC) to fetch the next instruction from memory.
2. Decode:
3. Execute:
Definition:
Components of ISA:
• Instruction types:
• Registers available
Instruction Cycle
The Instruction Cycle is the complete process by which the CPU fetches, decodes, and executes an instruction.
Phases:
CISC vs RISC
Feature CISC (Complex Instruction Set Computer) RISC (Reduced Instruction Set Computer)
Instruction Size Large and variable length Small and fixed size
Instruction Count Fewer instructions needed per task More instructions, but simpler
Speed Slower (due to instruction decoding time) Faster (one instruction per clock cycle possible)
Memory Use Less program memory required More program memory due to more instructions
Summary:
• RISC: Many simple instructions. Faster, efficient for modern embedded systems.
Quick Summary Table: