Computer Architecture and Organization
Computer Architecture and Organization
Computer architecture and organization involve the design, functionality, and operation of computer systems,
including the CPU, memory, input/output (I/O) devices, and how they are connected and interact. Below is a
detailed explanation of the key components.
Machine Instructions are the basic commands executed by a computer's central processing unit (CPU). Each
instruction is composed of an opcode (operation code) and the operands (data or address of the data to be
operated upon).
Addressing Modes specify how to locate the operands for instructions. Common addressing modes include:
o Example: MOV R1, [1000h] (Move value at memory address 1000h to R1).
3. Indirect Addressing: The instruction specifies a register or memory location that contains the address
of the operand.
o Example: MOV R1, R2 (Move the value from register R2 to register R1).
5. Indexed Addressing: A register value is added to the base address to get the operand’s address.
o Example: MOV R1, [R2 + 5] (Move value from memory at address (R2+5) to R1).
The ALU performs arithmetic (addition, subtraction, multiplication) and logical (AND, OR, NOT) operations. It is
a critical component of the CPU.
Data Path:
The data path refers to the paths through which data flows between registers, ALU, memory, and I/O devices.
The data path involves various components:
• Multiplexers: Select data sources for different parts of the data path.
• Control Signals: Direct the flow of data and operations in the data path.
Register Transfer Language (RTL) is a formal way of describing the operations of a CPU in terms of data
transfer between registers. It specifies the movement of data, the operations performed on the data, and the
conditions under which these actions occur.
For example:
• R2 ← M[1000h] means "Transfer the value from memory location 1000h to register R2".
Control Unit manages the execution of instructions by generating control signals that coordinate the
operations of the CPU. There are two main types of control mechanisms:
• Hardwired Control: Uses fixed logic circuits to generate control signals based on the instruction type. It
is faster but less flexible.
5. Memory Interface
The memory interface facilitates communication between the CPU and memory. It includes:
• Memory Address Register (MAR): Holds the address of the memory location to read/write.
• Memory Buffer Register (MBR): Holds data being transferred to or from memory.
o Volatile memory, which loses its contents when the system is powered off.
o Used to store data and programs that are currently being executed.
o Types of RAM:
▪ Static RAM (SRAM): Faster than DRAM, does not need refreshing.
o Non-volatile memory, which retains its contents even when the system is powered off.
o Types of ROM:
Interrupts:
An interrupt is a signal that temporarily halts the CPU's current task to give priority to other tasks. The CPU
saves its current state, processes the interrupt, and then resumes the interrupted task.
• Types of Interrupts:
DMA is a mode of data transfer that allows peripherals to communicate with memory without involving the
CPU. It speeds up data transfer and reduces CPU load.
• Advantages: Fewer wires and simpler physical setup compared to parallel communication.
9. Instruction Pipelining
Instruction pipelining is a technique where multiple instruction stages are overlapped. It allows the CPU to
execute multiple instructions concurrently by breaking them into stages, such as:
Cache memory is a small, high-speed memory placed between the CPU and main memory to store frequently
accessed data or instructions. It helps reduce the time the CPU needs to access data from the slower main
memory.
• Levels of Cache:
• Main Memory (RAM): Volatile storage used to store data that is currently in use by the CPU.
o Examples: Hard Disk Drives (HDDs), Solid-State Drives (SSDs), optical discs, etc.
Disk drives are used for secondary storage. The basic components include:
• Platters: Disk surfaces where data is stored.
• Read/Write Head: A head that moves over the disk surface to read and write data.
RAID (Redundant Array of Independent Disks) is a technology used to combine multiple disk drives into a
single logical unit to improve performance, redundancy, or both.
4. RAID 10: Combination of RAID 1 and RAID 0, offering high performance and redundancy.
Microprocessors
Microprocessors are integrated circuits that contain the central processing unit (CPU) of a computer.
8085 Microprocessor:
The 8085 is an 8-bit microprocessor developed by Intel. It has the following features:
8086 Microprocessor:
Interfacing:
• The microprocessor interfaces with peripheral devices such as keyboards, displays, and printers.
• It also interfaces with memory through the use of buses and control signals.
Memory Addressing:
• 8086: Uses a 20-bit address bus, allowing access to 1MB of memory. It uses segmented addressing for
managing memory.
These notes provide a comprehensive understanding of computer architecture and organization, focusing on
key components like the ALU, registers, memory interfaces, microprocessors, and the control mechanisms that
govern their interactions.