Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Notes  >  Computer Architecture & Organisation (CAO)  >  Basic Computer Model & Different Units of Computer - Computer Architecture & Organisation

Basic Computer Model & Different Units of Computer - Computer Architecture & Organisation

Different Units of Computer

The basic high-level model of a computer can be described by four principal units that work together to perform computing tasks. These units are the foundation of computer organisation and are present, in one form or another, in all digital computers.

  • Central Processing Unit (CPU)
  • Input Unit
  • Output Unit
  • Memory Unit
Different Units of Computer

Central Processing Unit (CPU)

The Central Processing Unit (CPU) is the primary component that executes instructions and controls the operation of the computer. It interprets program instructions, performs arithmetic and logic operations, and coordinates the activities of all other units by generating control signals.

Major blocks inside the CPU

  • Control Unit - Generates control signals to sequence and synchronise operations. It fetches instructions from memory, decodes them and issues the appropriate control signals for execution. The control unit contains registers and control circuitry that help manage the instruction cycle.
  • Execution Unit (Data Processing Unit) - Performs arithmetic and logical operations. It contains the Arithmetic and Logic Unit (ALU) and a set of registers used for temporary storage of data during execution.

Registers and their roles

  • Program Counter (PC) - Holds the address of the next instruction to be fetched.
  • Instruction Register (IR) - Holds the currently fetched instruction for decoding and execution.
  • Accumulator (AC) - Often used to store intermediate arithmetic and logic results (architecture dependent).
  • General Purpose Registers - Used by programs and the CPU to store operands and intermediate results.
  • Status / Flag Register - Stores condition bits (zero, carry, sign, overflow) set by the ALU.

Operation: The Instruction Cycle

The basic instruction cycle carried out by the CPU is commonly described as fetch → decode → execute. A typical sequence is:

  • Fetch the instruction from memory using the address in the Program Counter.
  • Increment or update the Program Counter to point to the next instruction.
  • Decode the instruction in the Instruction Register to determine the operation and operands.
  • Fetch any required operands from registers or memory.
  • Execute the operation in the ALU or other execution circuitry.
  • Store the result in the designated register or memory location and update status flags.

Control unit implementation styles

  • Hardwired control - Control signals are produced by fixed combinational and sequential logic. It tends to be faster but less flexible.
  • Microprogrammed control - Control signals are generated by a microcode stored in a control memory. It is more flexible and easier to modify or extend.

Input Unit

The Input Unit is responsible for accepting data and programmes from external sources (users or other systems) and converting these inputs into a binary form that the computer can process. Input devices connect to the computer through input controllers or device interfaces which handle signalling and data transfer under the control of the CPU.

Examples of input devices include:

  • Keyboard
  • Mouse
  • Scanner
  • Microphone
  • Hard disk (as a source of data/programs)
  • Floppy disk
  • CD-ROM drive

Typical methods used to manage input transfers are programmed I/O (polling), interrupt-driven I/O and Direct Memory Access (DMA).

Output Unit

The Output Unit converts processed binary information from the computer into human-readable form or into a form usable by other devices, and sends it to output devices or secondary storage for permanent retention. Output operations are performed under control of the CPU using output instructions or via DMA and controllers.

Examples of output devices include:

  • Monitor (display)
  • Printer
  • Plotter
  • Speakers
  • Hard disk (for persistent output storage)
  • Floppy disk

Memory Unit

The Memory Unit stores data and instructions that the CPU uses. Memory is organised in a hierarchy according to speed, cost and volatility. The main distinction is between primary (main) memory and secondary (auxiliary) memory.

Primary memory (Main memory)

Main memory is typically semiconductor-based and directly accessible by the CPU. It holds the programs and data currently in use. Primary memory is usually volatile, meaning it loses its contents when power is removed.

  • Volatile memory - RAM (Random Access Memory). RAM allows both read and write operations. Two common types are SRAM (faster, used for caches) and DRAM (higher density, used for main memory).
  • Non-volatile memory stored in semiconductor form - ROM (Read-Only Memory) and its variants:
  • PROM (Programmable ROM) - Can be programmed once after manufacture.
  • EPROM (Erasable Programmable ROM) - Can be erased (by ultraviolet light) and reprogrammed.
  • EEPROM (Electrically Erasable Programmable ROM) - Can be electrically erased and reprogrammed without removing the chip from the system.

Secondary memory (Auxiliary storage)

Secondary memories are non-volatile devices used for permanent or long-term storage of programs and data. They provide larger capacity at a lower cost per bit but are slower than primary memory.

Examples of secondary storage devices:

  • Magnetic devices: Hard disk, Floppy disk, Magnetic tape
  • Optical devices: CD-ROM
  • Semiconductor devices: Thumb drive (pen drive), SSDs (solid-state drives)

Memory hierarchy and trade-offs

  • Higher levels of the memory hierarchy (registers, caches) are faster and more expensive per bit and typically volatile.
  • Lower levels (main memory, secondary storage) offer larger capacities at lower cost but higher access times.
  • Cache memory is placed between CPU and main memory to reduce average access time by keeping frequently used data closer to the CPU.

How the units interact

The units interact through a system of buses and control signals. The system bus typically contains an address bus (to select memory or I/O locations), a data bus (to transfer data), and a control bus (to carry control and timing signals). The CPU issues memory read/write requests and I/O commands; data moves between memory, CPU registers and I/O devices according to these requests and the control signals generated by the control unit.

Summary

A practical understanding of the basic computer model emphasises the roles and coordination of the CPU, input, output and memory units. The CPU controls and executes instructions using registers and the ALU; the input and output units provide interfaces to the outside world; and the memory unit stores programs and data in a hierarchy that balances speed, capacity and cost. Together these units form the organised structure required to run programmes and solve computational problems.

The document Basic Computer Model & Different Units of Computer - Computer Architecture & Organisation is a part of the Computer Science Engineering (CSE) Course Computer Architecture & Organisation (CAO).
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
20 videos|115 docs|48 tests

FAQs on Basic Computer Model & Different Units of Computer - Computer Architecture & Organisation

1. What is the basic computer model?
Ans. The basic computer model refers to the foundational structure or architecture of a computer system. It includes components such as the central processing unit (CPU), memory, input/output devices, and storage units. This model forms the basis for understanding how computers function and interact with data.
2. What is a memory unit in a computer?
Ans. A memory unit in a computer is a component that stores data and instructions that the CPU needs to perform tasks. It is divided into two main categories: primary memory (RAM) and secondary memory (hard drives, solid-state drives). The memory unit is crucial for data processing and allows the computer to access and retrieve information quickly.
3. What are the different units of a computer?
Ans. A computer system consists of various units, including the CPU, memory unit, input/output devices, and storage units. The CPU (Central Processing Unit) is responsible for executing instructions and performing calculations. The memory unit stores data and instructions temporarily or permanently. Input/output devices allow interaction with the computer, such as keyboards, mice, and monitors. Storage units like hard drives and solid-state drives store data for long-term use.
4. How does the memory unit work in a computer?
Ans. The memory unit in a computer works by storing data and instructions in binary form. It allows the CPU to quickly access and retrieve information for processing. When a program is executed, the CPU fetches instructions from the memory unit, processes them, and stores the results back in memory. The memory unit's speed and capacity significantly impact the overall performance of a computer system.
5. What is the difference between primary and secondary memory?
Ans. Primary memory, also known as RAM (Random Access Memory), is a volatile memory unit that stores data and instructions temporarily while the computer is running. It provides fast access but loses its content when the power is turned off. On the other hand, secondary memory, such as hard drives or solid-state drives, is non-volatile and stores data for long-term use. It retains information even when the power is off but has slower access speeds compared to primary memory.
Related Searches
mock tests for examination, MCQs, Important questions, study material, past year papers, Semester Notes, Sample Paper, Exam, Basic Computer Model & Different Units of Computer - Computer Architecture & Organisation, Objective type Questions, Free, Extra Questions, Basic Computer Model & Different Units of Computer - Computer Architecture & Organisation, Viva Questions, shortcuts and tricks, Basic Computer Model & Different Units of Computer - Computer Architecture & Organisation, ppt, pdf , Previous Year Questions with Solutions, Summary, video lectures, practice quizzes;