Docsity

Computer Organization and Architecture: CPU, Memory, and I/O Systems, Summaries of Computer System Design and Architecture

Toggle sidebar
bg1
Computer Organization and
Architecture - Unit 1 Notes
1. Structure of Desktop Computers
A desktop computer is a personal computer designed for regular use at a single location. It
includes the CPU, memory (RAM/ROM), storage devices (HDD, SSD), motherboard,
input/output devices, power supply unit, and expansion cards.
Key Components:
- CPU: Executes instructions and processes data.
- RAM: Volatile memory for currently used data.
- Storage: Non-volatile memory (HDD, SSD).
- Motherboard: Connects and integrates all components.
- Input/Output Devices: Interface for user interaction.
- Bus System: Transfers data, addresses, and control signals among components.
Working:
- User inputs data.
- Data processed by CPU using memory.
- Results sent to output or stored.
Buses:
- Data Bus: Transfers actual data.
- Address Bus: Transfers memory addresses.
- Control Bus: Transfers control signals.
2. CPU Organization
The CPU (Central Processing Unit) is composed of several sub-units that handle different
aspects of data processing.
General Register Organization:
- Uses a set of registers for data manipulation.
- ALU connected to input and output buses through multiplexers.
- Registers store intermediate results and control information.
Memory Register and Instruction Register:
- Memory Address Register (MAR): Holds the address of data.
- Memory Buffer Register (MBR): Temporarily stores data.
- Instruction Register (IR): Stores current instruction being executed.
pf3
pf4

Partial preview of the text

Download Computer Organization and Architecture: CPU, Memory, and I/O Systems and more Summaries Computer System Design and Architecture in PDF only on Docsity!

Computer Organization and

Architecture - Unit 1 Notes

1. Structure of Desktop Computers

A desktop computer is a personal computer designed for regular use at a single location. It includes the CPU, memory (RAM/ROM), storage devices (HDD, SSD), motherboard, input/output devices, power supply unit, and expansion cards. Key Components:

  • CPU: Executes instructions and processes data.
  • RAM: Volatile memory for currently used data.
  • Storage: Non-volatile memory (HDD, SSD).
  • Motherboard: Connects and integrates all components.
  • Input/Output Devices: Interface for user interaction.
  • Bus System: Transfers data, addresses, and control signals among components. Working:
  • User inputs data.
  • Data processed by CPU using memory.
  • Results sent to output or stored. Buses:
  • Data Bus: Transfers actual data.
  • Address Bus: Transfers memory addresses.
  • Control Bus: Transfers control signals.

2. CPU Organization

The CPU (Central Processing Unit) is composed of several sub-units that handle different aspects of data processing. General Register Organization:

  • Uses a set of registers for data manipulation.
  • ALU connected to input and output buses through multiplexers.
  • Registers store intermediate results and control information. Memory Register and Instruction Register:
  • Memory Address Register (MAR): Holds the address of data.
  • Memory Buffer Register (MBR): Temporarily stores data.
  • Instruction Register (IR): Stores current instruction being executed.

Control Word:

  • Binary encoded value defining micro-operations.
  • Controls how data moves in the CPU. Stack Organization:
  • Data is accessed in LIFO (Last In First Out) order.
  • Stack Pointer (SP): Points to top of stack. This modular design allows efficient data processing and instruction execution.

3. Instruction Format

An instruction format defines the layout of bits in an instruction word. Common Fields:

  • Operation Code (Opcode): Specifies the operation.
  • Address Field: Points to operand's location.
  • Mode Field: Specifies the addressing mode. Types of Instruction Formats:
  • Zero, One, Two, Three address formats.
  • Variable vs. fixed length instructions. Importance:
  • Affects complexity of CPU and instruction decoding.

4. Arithmetic Logic Unit (ALU)

The ALU performs arithmetic and logical operations. Functions:

  • Arithmetic: Add, subtract, multiply, divide.
  • Logical: AND, OR, NOT, XOR. Structure:
  • Operands from registers.
  • Operation controlled by control unit.
  • Result stored back in a register. Efficient ALU design is critical for processor performance.

5. I/O System and Bus

The I/O system enables communication between CPU and external devices.

Basic Concept:

  • Decodes instructions and generates control signals. Instruction Types:
  • Data transfer, arithmetic, logical, branching. Microinstruction Formats:
  • Horizontal: One control signal per bit.
  • Vertical: Encoded signals, smaller size. Fetch and Execute Cycle:
  1. Fetch: PC to MAR; Instruction to IR.
  2. Decode: IR is decoded.
  3. Execute: Operation performed.
  4. Update PC. Types:
  • Hardwired CU: Uses logic circuits; faster.
  • Microprogrammed CU: Uses control memory and microinstructions. Microprogram Sequencer:
  • Determines next microinstruction.
  • Supports conditional branching. Control Memory:
  • Stores microprograms for control unit. This organization ensures correct operation sequencing of the CPU.