0% found this document useful (0 votes)
10 views30 pages

Fos Module-1

The document provides an overview of computer hardware, focusing on the Central Processing Unit (CPU), memory, motherboards, peripherals, and storage devices. It details the components and functionalities of the CPU, the organization of memory into a hierarchy, the role of the motherboard in connecting components, and the types of peripherals and storage devices used in computing. Understanding these elements is essential for grasping how computers operate and their performance optimization.

Uploaded by

rohithk3470
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views30 pages

Fos Module-1

The document provides an overview of computer hardware, focusing on the Central Processing Unit (CPU), memory, motherboards, peripherals, and storage devices. It details the components and functionalities of the CPU, the organization of memory into a hierarchy, the role of the motherboard in connecting components, and the types of peripherals and storage devices used in computing. Understanding these elements is essential for grasping how computers operate and their performance optimization.

Uploaded by

rohithk3470
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

1 Computer Hardware
Computer hardware refers to the physical components of a computer system.
These include the central processing unit (CPU), memory, storage devices,
in-put/output (I/O) devices, and various interface components that ensure the
system operates effectively.

1.1 Central Processing Unit (CPU)


The Central Processing Unit (CPU), often referred to as the ”brain” of the
computer, is a crucial component responsible for executing instructions from
programs. It performs the arithmetic, logical, control, and input/output (I/O)
operations as specified by the instructions. The CPU’s performance greatly
influences the overall speed and efficiency of a computer.
The CPU is generally divided into three main components:

1.1.1 Arithmetic Logic Unit (ALU)

‹ Functionality: The ALU performs arithmetic operations (e.g., addition,


subtraction, multiplication, division) and logical operations (e.g., AND, OR,
NOT).
‹ Signi��cance: It handles all the calculations and logical decisions within the
CPU.
‹ Example: If a program requires calculating 5 + 3, the ALU performs the
addition and returns the result.

1.1.2 Control Unit (CU)

‹ Functionality: The CU coordinates the CPU’s operations by interpreting


instructions, directing the ALU, and managing data flow between the CPU,
memory, and input/output devices.
‹ Processes:
1. Fetch: Retrieves the instruction from memory.
2. Decode: Interprets the instruction.
3. Execute: Directs the appropriate action based on the instruction.
‹ Signi��cance: Synchronizes the functioning of all computer components.

Dr. Biju V.G. Page 5 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

1.1.3 Registers

‹ Functionality: Registers are small, high-speed storage locations within the


CPU that temporarily hold data, instructions, or results.
‹ Types:
– Instruction Register (IR): Holds the current instruction being
executed.
– Program Counter (PC): Tracks the next instruction to be executed.
– Accumulator (ACC): Stores intermediate results from the ALU.
– General-Purpose Registers: Temporarily hold data for various
operations.

‹ Signi��cance: Enables quick data access and processing.

Figure 1: Block Diagram of a CPU

1.2 Working of the CPU


The CPU operates in four primary steps:
1. Fetch: The CU retrieves the next instruction from memory.
2. Decode: The instruction is interpreted into executable signals.

Dr. Biju V.G. Page 6 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

3. Execute: The ALU performs the required operation, and the result is
stored. Page 7
4. The result is written back to memory or a register for further use. Figure
Store:
2 shows the block diagram of a computer system. The directed lines represent
the flow of data and signals between the components.

Figure 2: Block Diagram of a Computer System

In conclusion the CPU is the cornerstone of computing devices, enabling data


processing and efficient task execution. Its components include ALU, CU, and
registers along with advanced features. Understanding the CPU’s structure and
functionality provides insights into how computers operate and advance.

2 Memory
Memory is a critical component of any computer system, serving as a storage
medium for data and instructions that the Central Processing Unit (CPU) can
access. The design and organization of memory greatly influence a computer’s
performance. To optimize speed and efficiency, a memory hierarchy is
implemented, consisting of various types of memory with differing speeds, sizes,
and costs.

2.1 Types of Memory


Memory can be broadly classified into two categories:

Dr. Biju V.G. Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

1. Primary Memory: Directly accessible by the CPU, including:


‹ Random Access Memory (RAM): Volatile memory used for temporary
storage during program execution.
‹ Read-Only Memory (ROM): Non-volatile memory storing essential
programs like the BIOS.
2. Secondary Memory: Non-volatile memory for long-term storage, such as
hard drives, solid-state drives, and optical discs. Figure 3 shows the
classification of primary and secondary memory.

Figure 3: Memory classification

2.2 Memory Hierarchy


The memory hierarchy organizes different types of memory in a system based
on speed, cost, and size. It aims to balance performance and cost-efficiency. The
levels in the hierarchy include:
The figure4 shows the memory hierarchy.

2.2.1 Registers

‹ De��nition: Small, high-speed storage within the CPU.


‹ Characteristics: Extremely fast but very limited in size.
‹ Purpose: Temporarily store instructions or data being processed.

Dr. Biju V.G. Page 8 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

Figure 4: Memory hierarchy

2.2.2 Cache Memory

‹ De��nition: High-speed memory located close to the CPU.


‹ Levels:
– L1 Cache: Smallest and fastest, located within the CPU core.
– L2 Cache: Larger and slower than L1, shared by cores or dedicated.
– L3 Cache: Largest and slowest, shared by all cores.
‹ Purpose: Stores frequently accessed data to reduce delays caused by
accessing main memory.

2.2.3 Main Memory (RAM)

‹ De��nition: Primary storage for active programs and data.


‹ Characteristics: Larger than cache but slower and more affordable.
‹ Purpose: Provides data to the CPU and acts as a buffer between cache and
secondary storage.

Dr. Biju V.G. Page 9 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

2.2.4 Secondary Storage

‹ De��nition: Non-volatile storage for long-term data retention.


‹ Examples: Hard drives (HDDs), solid-state drives (SSDs), and optical
discs. Page 10
‹ Characteristics: Larger in capacity but significantly slower than main
memory.
‹ Purpose: Stores operating systems, applications, and user data.

2.2.5 Tertiary and O��line Storage

‹ De��nition: Removable or remote storage for archival purposes.


‹ Examples: Magnetic tapes, external drives, and cloud storage.
‹ Purpose: Used for backups, data archiving, and disaster recovery.

2.3 Memory Access Times and Performance


‹ Registers: Nanoseconds (ns) range, fastest.
‹ Cache Memory: Slightly slower than registers but faster than RAM.
‹ Main Memory: Access times in the range of 10-100 ns.
‹ Secondary Storage: Milliseconds (ms) range, significantly slower.
‹ Tertiary Storage: Minutes or hours for retrieval in some cases.

2.4 Bene��ts of Memory Hierarchy


‹ Cost-E�fectiveness: Combines expensive high-speed memory with
affordable large-capacity storage.
‹ Performance Optimization: Reduces latency by keeping frequently
accessed data in faster memory.
‹ Scalability: Allows systems to handle varying workloads efficiently.

In conclusion the memory hierarchy is an essential design principle in modern


computer systems, balancing speed, cost, and capacity. Understanding its
structure and functionality provides insights into optimizing computational
performance and efficient resource utilization.

Dr. Biju V.G. Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

3 Motherboard
The motherboard is the main printed circuit board (PCB) in a computer. It
serves as the backbone of the computer, connecting and allowing communication
between all components, including the CPU, memory, storage devices, and
peripherals.

3.1 Key Components of a Motherboard


The motherboard includes several critical components that contribute to the
functionality and performance of the computer system:
‹ CPU Socket: The CPU socket is where the central processing unit (CPU) is
installed. It ensures secure attachment and efficient communication between
the CPU and the motherboard.
‹ Chipset: The chipset controls data flow between the CPU, memory, and
peripherals. It typically includes two parts:
– Northbridge: Handles communication between the CPU, RAM, and
graphics card.
– Southbridge: Manages connections to storage devices, I/O devices, and
other peripherals.
‹ BIOS/UEFI Firmware: This firmware initializes hardware during the boot
process and provides an interface for system configuration.
‹ Memory Slots: Slots for installing RAM modules. The number of slots and
supported types (e.g., DDR4, DDR5) vary by motherboard.
‹ Expansion Slots: Used for installing additional cards, such as graphics
cards, sound cards, and network interface cards (NICs). Common types
include PCIe (Peripheral Component Interconnect Express) slots.
‹ Storage Interfaces: Connectors for storage devices, such as SATA (Serial
ATA) ports for HDDs and SSDs and M.2 slots for NVMe SSDs.
‹ Power Connectors: Provide power to the motherboard and connected
components from the power supply unit (PSU).
‹ I/O Ports: External connectors for peripherals, such as USB ports, HDMI
ports, Ethernet ports, and audio jacks.

The figure5 shows the layout of mother board in a PC.

Dr. Biju V.G. Page 11 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

Figure 5: Mother Board

3.2 Motherboard Form Factors


Motherboards are available in various form factors, which determine their size,
layout, and compatibility with computer cases and components. Common form
factors include:
‹ ATX (Advanced Technology Extended): The most common form factor,
offering multiple expansion slots and ports.
‹ Micro-ATX: A smaller version of ATX, with fewer expansion slots but more
compact.
‹ Mini-ITX: A compact form factor suitable for small form factor (SFF) PCs.
‹ Note:-Balanced technology extended(BTX), Socket technology
extended(STX) , Low-Profile EXtended (LPX), Information technology
extended (ITX)

3.3 Importance of the Motherboard


The motherboard plays a crucial role in the functionality of a computer system
by:
‹ Providing Connectivity: Acts as a central hub for all components to
communicate effectively.

Dr. Biju V.G. Page 12 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

‹ Enhancing Performance: Features like high-speed chipsets and support for


advanced technologies improve overall system performance.
‹ Enabling Upgradability: Expansion slots and upgradeable components
allow users to enhance the system’s capabilities over time.

3.4 Popular manufacturers of the motherboard


‹ ASUS
‹ Intel
‹ Gigabyte
‹ MSI
‹ ABIT

4 Computer Peripherals
Computer peripherals are external devices that are connected to a computer to
either provide input, retrieve output, or store data. They play a crucial role in
enhancing the functionality and usability of computer systems.

4.1 I/O Devices


Input and output devices allow users to interact with the computer. Examples
include:
‹ Input Devices: Keyboard, mouse, scanner.
‹ Output Devices: Monitor, printer, speakers.

Input/Output (I/O) devices are essential for user interaction with a computer
system. These devices facilitate data input, system interaction, and data output.

4.2 Input Devices


Input devices are used to send data or control signals to a computer system.
Examples include:
‹ Keyboard: A primary device for entering text and commands.
‹ Mouse: A pointing device used to interact with graphical user interfaces.
‹ Scanner: Converts physical documents into digital format.
‹ Microphone: Captures audio input for communication or recording.
‹ Webcam: Captures video input for video calls or recordings.

Dr. Biju V.G. Page 13 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

4.3 Output Devices


Output devices present data to the user. Examples include:
‹ Monitor: Displays visual information to users.
‹ Printer: Produces physical copies of digital documents.
‹ Speakers: Output audio for entertainment or alerts.
‹ Projectors: Display enlarged visual content for presentations.

4.4 Input-Output Devices


Some devices function as both input and output devices. Examples include:
‹ Touchscreen: Allows both input via touch and output as a display.
‹ External Storage Devices: Facilitate both data input and output.
‹ Network Adapters: Enable data communication over networks.

5 Storage Devices
Storage devices are used to store data and programs. They can be categorized
into primary, secondary, and tertiary storage devices.

5.1 Hard Disk Drive (HDD)


A Hard Disk Drive (HDD) is a non-volatile storage device that uses magnetic
storage to store and retrieve digital information. It is one of the most common
storage mediums for computers, servers, and other devices due to its
affordability and high storage capacity.

5.1.1 Structure of an HDD

An HDD comprises the following key components:


‹ Platters: Thin, circular disks coated with a magnetic material. Data is
stored in concentric circles called tracks, which are further divided into
sectors.
‹ Read/Write Heads: Hover above the platter surfaces to read data by
detecting magnetic polarities and write data by altering the magnetization
of the surface.

Dr. Biju V.G. Page 14 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

Figure 6: Hard Disk

Figure 7: Hard Disk Platter

‹ Actuator Arm and Actuator Motor: The actuator arm holds the read/write
heads and moves them across the platters with precise positioning to access
specific data.
‹ Spindle Motor: Spins the platters at constant speeds (e.g., 5400 RPM, 7200
RPM, or higher).

Dr. Biju V.G. Page 15 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

Figure 8: Hard Disk parts arrangement

Figure 9: Hard Disk Read/Write head

‹ Controller Board: Manages data caching, error correction, and


communication protocols between the computer and the HDD.
‹ Enclosure: Protects sensitive components from dust and contaminants.

5.1.2 Working Principle

HDDs store data magnetically by encoding binary data (0s and 1s) as patterns
of magnetic fields on the platters.

5.1.3 Writing Data

1. Data is sent from the computer to the HDD controller.


2. The controller processes the data and directs the read/write head to the
appropriate platter and sector.

Dr. Biju V.G. Page 16 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

3. The head alters the magnetic alignment of the platter surface to encode the
data.

5.1.4 Reading Data

1. The read/write head detects magnetic polarities on the platter.


2. These magnetic signals are converted into electrical signals and sent back
to the computer.

5.1.5 Data Access

‹ The actuator arm positions the read/write heads over the required track.
‹ The rotational motion of the platters ensures the desired sector passes
under the read/write head.

5.1.6 Key Features


5.1.7 Storage Capacity

HDDs offer a wide range of storage capacities, from a few hundred gigabytes
(GB) to tens of terabytes (TB).

5.1.8 Cost E���ciency

HDDs are more affordable per GB of storage compared to SSDs, making them
an economical choice for mass storage.

5.1.9 Durability and Longevity

While HDDs are durable under normal use, they are susceptible to physical
damage due to their moving parts.

5.1.10 Speed

HDDs are slower than solid-state drives (SSDs) in terms of data transfer rates
and access times because of their mechanical nature.

5.1.11 Types of HDDs

‹ Desktop HDDs: Designed for personal computers with moderate storage


capacity and performance.
‹ Enterprise HDDs: Built for servers and data centers, offering high
reliability, better performance, and longer lifespans.

Dr. Biju V.G. Page 17 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

‹ Portable HDDs: External drives connected via USB or other interfaces for
convenient backup and portable data storage.
‹ Hybrid HDDs (SSHDs): Combine traditional HDD storage with a small
amount of SSD storage to improve speed.

5.1.12 Advantages of HDDs

1. High storage capacity at a relatively low cost.


2. Cost-effective for mass storage applications.
3. Compatible with most modern and legacy systems.
4. Long lifespan under optimal conditions.

5.1.13 Disadvantages of HDDs

1. Slower speeds compared to SSDs.


2. Vulnerability to physical damage due to moving parts.
3. Higher power consumption.
4. Noise and heat generation during operation.

5.1.14 HDD vs. SSD

Feature HDD SSD


Speed Slower Much faster
Durability Susceptible to physical damage More durable (no moving parts)
Cost Lower cost per GB Higher cost per GB
Power Usage Higher Lower
Weight Heavier Lighter

Table 1: Comparison of HDD and SSD

5.1.15 Applications of HDDs

‹ Personal Computing: Storing operating systems, applications, and personal


files.
‹ Enterprise Storage: Used in servers, data centers, and cloud storage for
large-scale data management.
‹ Backup Solutions: Commonly used as external storage for backing up
critical data.
‹ Media Storage: Ideal for storing large multimedia files, such as videos and
high-resolution images.

Dr. Biju V.G. Page 18 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

5.1.16 Future of HDDs

While SSDs are gradually replacing HDDs in consumer-grade devices due to


their superior speed and durability, HDDs remain relevant for applications
requiring cost-effective, high-capacity storage. Advancements such as shingled
magnetic recording (SMR) and helium-filled drives are extending the relevance
and lifespan of HDDs in the storage market.

5.2 SSD Storage


Solid-State Drive (SSD) storage is a type of data storage device that uses
NAND flash memory (non-volatile memory) to store data persistently, even
without power. Unlike traditional Hard Disk Drives (HDDs) that rely on
spinning disks and moving read/write heads, SSDs have no moving parts,
making them faster, more durable, and energy-efficient.

5.2.1 Key Components of SSDs

‹ NAND Flash Memory: The primary storage medium where data is stored
in cells. These cells can be single-level (SLC), multi-level (MLC),
triple-level (TLC), or quad-level (QLC), based on how many bits are stored
per cell. More bits per cell reduce cost but affect speed, endurance, and
reliability. Figure 11 shows a floating gate transistor used in flash memory
to store a binary data.
‹ Controller: The brain of the SSD, managing how data is read, written, and
erased. It includes features like error correction, wear leveling, and garbage
collection.
‹ DRAM Cache: Temporary storage used to enhance speed by caching
frequently accessed data or metadata.

5.2.2 How SSDs Work

‹ Writing Data: Data is written to pages within a block. If a block already


has data, it must first be erased before new data can be written.
‹ Reading Data: The controller retrieves data stored in the cells.
‹ Garbage Collection: Automatically reclaims space from blocks with invalid
data to prepare them for reuse.
‹ Wear Leveling: Distributes write/erase cycles evenly across cells to extend
the drive’s lifespan.

Dr. Biju V.G. Page 19 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

Figure 10: Block Diagram of a Solid state hard disk

Figure 11: Floating Gate Transistor

5.2.3 Advantages of SSDs

‹ Speed: Offers significantly faster read/write speeds compared to HDDs.


‹ Durability: No moving parts make SSDs resistant to physical shocks and
vibrations.
‹ Energy E���ciency: Consumes less power, improving battery life in laptops.
‹ Noise-Free Operation: Completely silent due to the absence of spinning
disks or moving heads.
‹ Compact Size: Ideal for slim devices like ultrabooks and tablets.

Dr. Biju V.G. Page 20 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

5.2.4 Disadvantages of SSDs

‹ Cost: More expensive per GB compared to HDDs, although prices have


decreased over time.
‹ Limited Write Cycles: NAND cells have a finite number of program/erase
cycles. Modern SSDs mitigate this with wear leveling and advanced
algorithms.
‹ Storage Capacity: Typically offers lower storage capacities compared to
HDDs at the same price point.

5.2.5 Common Use Cases for SSDs

‹ Personal Use: Laptops, desktops, gaming systems for faster boot times and
quick data access.
‹ Enterprise Use: Servers and data centers for high-speed data access and
reduced latency.
‹ Creative Professionals: Video editing, 3D rendering, and high-resolution
image processing.
‹ Embedded Systems: IoT devices, smart appliances, and industrial
automation.

5.3 Optical Drives


Optical drives use a laser beam to read or write data. The surface of an optical
disc contains tiny pits and lands (flat areas), which encode data in binary form
(0s and 1s). Pits and lands do not directly represent 0s and 1s but are
interpreted based on transitions. A laser beam is directed onto the spinning disc.
When the laser hits a land, it reflects strongly into a sensor. When the laser hits
a pit, the light scatters, reducing reflection. Transitions (pit to land or land to
pit) represent binary ”1”, while no transition represents binary ”0”
Figure 12 shows the optical system used in CD and DVD for reading and
writing the data.

‹ Reading Data: A low-powered laser beam scans the surface of the disc.
When the beam hits a pit, it reflects differently compared to when it hits a
land. A photodetector captures these reflections and converts them into
electrical signals, which are processed as digital data.
‹ Writing Data: A high-powered laser beam alters the surface of the disc to
create pits. This process is common in writable or rewritable discs (e.g.,
CD-R, DVD-R, Blu-ray BD-R).

Dr. Biju V.G. Page 21 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

5.3.1 Components of an Optical Drive

‹ Laser Diode: Generates the laser beam to read or write data.


‹ Lens System: Focuses the laser beam on the disc surface.
‹ Spindle Motor: Rotates the disc at a high speed.
‹ Tracking Mechanism: Moves the laser assembly precisely across the disc’s
surface.
‹ Photodetector: Detects reflected light and converts it into electrical signals.

Figure 12: Optical system used in CD and DVD

5.3.2 Types of Optical Drives

‹ CD Drive
– Capacity: Up to 700 MB.
– Use: Mostly used for music, small software programs, and basic data
storage.
– Formats: CD-ROM (Read-Only), CD-R (Recordable), CD-RW (Rewritable).

‹ DVD Drive
– Capacity: Up to 4.7 GB for single-layer discs, 8.5 GB for dual-layer
discs.

Dr. Biju V.G. Page 22 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

– Use: Movies, software, games, and larger data storage.


– Formats: DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW,
DVD-RAM.

‹ Blu-ray Drive
– Capacity: 25 GB for single-layer discs, 50 GB for dual-layer discs.
– Use: High-definition (HD) video, large-scale backups, gaming.
– Formats: BD-ROM, BD-R, BD-RE (Rewritable).

5.3.3 Advantages

‹ Cost-E�fective Storage: Optical discs are cheap and ideal for archiving.
‹ Durability: Resistant to water, dust, and electromagnetic interference.
‹ Portability: Lightweight and easy to carry.

5.3.4 Limitations

‹ Lower Storage Capacity: Compared to USB drives, SSDs, and cloud


storage.
‹ Slower Speeds: Reading and writing data is slower than modern
alternatives.
‹ Fragility of Discs: Scratches or damage can make discs unreadable.
‹ Obsolescence: Optical drives are becoming less common as digital
downloads and streaming services dominate.

5.3.5 Applications

‹ Entertainment: Watching movies or listening to music.


‹ Software Distribution: Installing operating systems or software from discs.
‹ Backup Storage: Archiving important documents or media files.
‹ Gaming: Especially for older game consoles like PlayStation 3 or Xbox
360.

Dr. Biju V.G. Page 23 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

5.3.6 HDD Vs SSD Vs Optical Drive

HDD (Hard Disk SSD (Solid State


Feature Optical Drive
Drive) Drive)
Moderate (100–200 Very Fast (500 MB/s
Speed Slow (1–30 MB/s)
MB/s) to several GB/s)
Limited (CD: 700MB,
Storage Large (500GB to Moderate to Large
DVD: 4.7–8.5GB,
Capac-ity 20TB+) (128GB to 8TB)
Blu-ray: 25–100GB)
Discs can get
Prone to mechanical More durable, no
Durability scratched, but drive is
failure moving parts
durable
More expensive than
Cost per GB Cheapest option Low per-disc cost
HDD
Power Con Low (only when in
High Low, more efficient
sumption use)
Discs are portable,
Lightweight and
Portability Portable but fragile but drives are less
compact
common
Media playback,
Bulk storage, gaming, OS, high-performance
Usage backups, software
media libraries computing, gaming
installation
Shorter due to Longer, limited by Discs degrade over
Lifespan
mechanical wear write cycles time, drives last long

Table 2: Comparison of HDD, SSD, and Optical Drives

6 Communication and device management


I/O (Input/Output) communication and device management are crucial
components of an operating system (OS), ensuring smooth interaction between
the computer and its peripheral devices. It provides a detailed explanation of
these concepts.

6.1 I/O Communication


I/O communication refers to the exchange of data between the computer system
(CPU, memory) and its peripheral devices (e.g., keyboard, mouse, printers, hard
disks, network cards). The OS acts as an intermediary to manage this
communication.

6.2 Components of I/O Communication


‹ I/O Devices: The physical hardware (e.g., monitors, USB drives).

Dr. Biju V.G. Page 24 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

‹ Device Controllers: Hardware interfaces that connect devices to the


computer. Controllers perform low-level operations like sending or
receiving data.
‹ I/O Ports: Logical communication channels used by the OS to access device
controllers. Page 25
‹ Communication Protocols: Rules for data exchange (e.g., USB, SATA,
PCIe).

6.3 Techniques for I/O Communication


‹ Programmed I/O (Polling):
– The CPU actively waits for the I/O device to become ready by
continuously checking its status.
– Suitable for simple devices but inefficient due to CPU idling.
‹ Interrupt-Driven I/O:
– Devices send an interrupt signal to the CPU when ready to transfer data.
– More efficient as the CPU can perform other tasks while waiting for I/O.

‹ Direct Memory Access (DMA):


– A specialized hardware mechanism allowing devices to transfer data
directly to/from memory without CPU intervention.
– Reduces CPU workload and speeds up data transfer.

‹ Memory-Mapped I/O:
– Certain memory addresses are assigned to device controllers, allowing the
CPU to interact with devices as though they were memory locations.
‹ Port-Mapped I/O:
– Devices have dedicated I/O ports accessed using specific instructions
(e.g., in and out in assembly language).

7 Device Management
Device management refers to how the operating system manages hardware
devices to ensure efficient and secure operation. It involves the allocation of
resources, handling device drivers, and maintaining communication between the
CPU and devices. The main responsibilities of Device Management are Device

Dr. Biju V.G. Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

Identification, Device Allocation, Device Scheduling, Error Handling and Device


Deallocation.
In conclusion, I/O communication and device management are critical to
ensuring that computer systems can efficiently interact with external devices. By
leveraging device drivers, communication protocols, and scheduling algorithms,
the OS provides a seamless interface between hardware and software.

8 Interfacing cards
Interfacing cards, also known as interface cards or expansion cards, are
hardware components that allow computers to connect with external devices or
other hardware components. These cards are typically inserted into expansion
slots on a computer’s motherboard and extend the system’s functionality. They
enable communication with peripherals such as printers, storage devices,
displays, or network equipment.

8.1 Types of Interfacing Cards


There are various types of interfacing cards that serve different functions.
Below are some common types:

8.1.1 Network Interface Cards (NICs)

Network Interface Cards enable computers to connect to networks (LANs, the


internet, etc.) for data exchange.

‹ Ethernet NIC: Used for wired network connections.


‹ Wireless NIC: Used for Wi-Fi or wireless network connections.

Protocols Supported: Ethernet, Wi-Fi, Bluetooth, etc.


Ports: RJ45 (Ethernet), Wireless Antennas (Wi-Fi).

8.1.2 Graphics Cards (GPUs)

Graphics cards are used to render images, video, and animations on a monitor.
They are crucial for high-end gaming, video editing, 3D modeling, and other
graphics-intensive tasks.

‹ Integrated Graphics: Built into the motherboard or CPU.


‹ Dedicated Graphics: A separate card with higher performance.

Ports: HDMI, DisplayPort, VGA, DVI.

Dr. Biju V.G. Page 26 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

8.1.3 Sound Cards

Sound cards process audio signals, converting digital data into analog sound
waves. They are used to improve sound quality and provide additional audio
input/output options.

‹ Integrated Sound: Built into the motherboard.


‹ Dedicated Sound Cards: Provide higher audio quality and surround sound
support.

Ports: 3.5mm audio jacks, optical audio, MIDI ports.

8.1.4 Storage Interface Cards

Storage interface cards allow the connection between the computer and external
storage devices like hard drives, SSDs, and optical drives.

‹ SATA Controllers: For connecting internal storage devices.


‹ RAID Cards: Manage multiple storage drives for performance improvement
or redundancy.

Ports: SATA, SCSI, eSATA.

8.1.5 USB Interface Cards

These cards add additional USB ports to a system when the computer has
limited USB connectivity.

‹ USB 2.0 Cards: Older, slower transfer rates.


‹ USB 3.0/3.1 Cards: Faster data transfer rates.

Ports: USB-A, USB-C, USB 3.0.

8.1.6 FireWire (IEEE 1394) Cards

FireWire cards provide high-speed data transfer, especially in applications like


audio/video processing.

‹ FireWire 400: Older version with lower data transfer speeds.


‹ FireWire 800: Newer version with faster transfer rates.

Ports: FireWire 400, FireWire 800.

Dr. Biju V.G. Page 27 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

8.1.7 TV Tuner Cards

TV tuner cards allow a computer to receive television signals, enabling it to


function as a TV receiver.

‹ Analog TV Tuner Cards: Support for analog TV signals.


Page 28
‹ Digital TV Tuner Cards: Support for digital TV signals like DVB-T,
ATSC.

Ports: Antenna or cable input, USB connection.

8.1.8 Bluetooth Cards

Bluetooth interface cards provide Bluetooth connectivity, allowing wireless


communication with Bluetooth-enabled devices.

‹ Integrated Bluetooth: Built into the motherboard.


‹ Dedicated Bluetooth: A separate expansion card providing Bluetooth
functionality.

Ports: USB ports or internal headers for integration.

In conclusion, Interfacing cards are crucial components that extend the


functionality of a computer, enabling it to communicate with external devices or
enhance specific tasks such as networking, graphics processing, and audio
enhancement. They are essential for building or upgrading computers to meet
specific needs.

9 Buses
A bus in computer architecture is a set of physical pathways used to transfer
data, addresses and control signals between various components of the system,
such as the processor (CPU), memory and peripheral devices. A bus is a
collection of electrical pathways that allow data to flow between various
components of a computer system. Buses are essential for communication
between different parts of a computer and play a crucial role in the overall
performance of a system.
9.1 Types of Buses
Buses in a computer system can be divided into several types, based on their
function. These include:

Dr. Biju V.G. Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

9.1.1 Data Bus

The data bus is responsible for transferring the actual data between the CPU,
memory, and peripheral devices. It is a bidirectional bus, meaning that data can
travel in both directions—either from the CPU to memory or from memory to
the CPU. The width of the data bus, typically measured in bits (e.g., 8, 16, 32,
or 64 bits), determines how much data can be transferred at once. A wider data
bus allows for faster data transfer, enhancing the system’s overall performance.

9.1.2 Address Bus

The address bus carries the address of the memory location or the I/O device
where data should be read from or written to. Unlike the data bus, the address
bus is unidirectional, meaning it transmits data in one direction only, from the
CPU to memory or peripherals. The size of the address bus (in bits) determines
how many memory locations the system can address. For example, a 32-bit
address bus can address 232 memory locations.

9.1.3 Control Bus

The control bus is responsible for sending control signals to manage the operations
of the CPU, memory, and other components. It provides signals such as:
‹ Read/Write signal: Indicates whether data is being read from or written to
memory.
‹ Clock signal: Synchronizes the system’s operations.
‹ Interrupt signal: Notifies the CPU of events or requests from external
devices.
‹ Reset signal: Resets the system or a device.

9.2 How a Bus Works


A bus cycle involves several steps to transfer data between components:
1. Address Phase: The CPU places the address of the memory location or I/O
device on the address bus.
2. Control Phase: The CPU sends control signals via the control bus,
indicating the type of operation (read/write).
3. Data Phase: Data is transferred across the data bus. If it’s a read
operation, data flows from memory to the CPU. In a write operation, data
flows from the CPU to memory.

Dr. Biju V.G. Page 29 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

9.3 Bus Standards


Various bus standards exist depending on the type of communication required:
‹ PCI (Peripheral Component Interconnect): A high-speed bus standard for
connecting peripherals such as sound cards and network cards.
‹ USB (Universal Serial Bus): A serial bus standard for connecting external
devices like keyboards, mice, and printers.
‹ SATA (Serial Advanced Technology Attachment): A bus standard for
connecting storage devices like hard drives and SSDs.
‹ PCIe (PCI Express): A high-speed bus standard for devices such as
graphics cards and SSDs.
‹ IDE (Integrated Drive Electronics): An older standard used for connecting
storage devices.

In conclusion, buses are fundamental components of computer systems, enabling


communication between the CPU, memory, and peripheral devices. By
understanding the different types of buses, bus architectures, and how buses
function, it becomes clear how essential they are for efficient data transfer and
overall system performance. Advances in bus design and optimization continue
to improve computing speeds, handling greater amounts of data and devices with
minimal contention.

10 Firmware
Firmware refers to a specialized type of software that provides low-level control
for a device’s hardware. It is a set of instructions or programs that are
permanently or semi-permanently stored in a hardware device, such as a
microcontroller, memory chip, or any device with embedded systems. Unlike
regular software that can be installed, uninstalled, or updated by the user,
firmware is often embedded directly into the device’s read-only memory (ROM)
or flash memory. It provides the necessary instructions for the device to perform
basic functions and interface with other hardware components.

10.1 Types of Firmware


There are various forms of firmware, depending on the device and its purpose:

Dr. Biju V.G. Page 30 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

10.1.1 Boot Firmware

This firmware is responsible for initializing hardware components when a device


powers up. It’s often stored in a read-only memory (ROM) chip and executes the
first tasks that prepare the device for operation.

10.1.2 System Firmware

This provides a more extensive set of functionalities, such as managing


interactions between the device’s hardware and its operating system (e.g., BIOS
or UEFI in computers).

10.1.3 Application Firmware

This type of firmware runs applications or services on embedded systems and


controls the device’s features, such as controlling a smart home device, camera,
or smartwatch.

10.1.4 Device-Speci��c Firmware

Found in specific devices like printers, network adapters, or consumer


electronics. It allows the device to function and communicate with other devices
or systems.
10.2 Firmware vs. Software
‹ Firmware is more closely tied to the hardware and provides low-level
control, while software generally refers to applications that run on an
operating system and interact with the hardware indirectly.
‹ Firmware typically doesn’t interact with the user directly but enables the
hardware to function correctly.
‹ Software can be easily updated, while firmware updates tend to be more
complex, often requiring special procedures.

10.3 Examples of Firmware in Use


‹ BIOS/UEFI in Computers: This firmware controls the basic functions of a
computer before the operating system starts.
‹ Smartphone Firmware: This controls low-level features like screen touch
recognition, camera operation, and hardware integration.
‹ Printer Firmware: Manages print jobs, ink levels, and communication with
the computer.

Dr. Biju V.G. Page 31 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

‹ Networking Devices (Routers, Switches): Firmware enables the device to


manage network traffic, security protocols, and other network features.

In conclusion, Firmware is a critical component in modern devices, enabling the


hardware to function efficiently. It is embedded into devices to provide low-level
control and is often more stable and secure than traditional software. However,
its limited flexibility and update process can present challenges, requiring users
to be cautious when performing firmware updates.

11 Boot process
The boot process refers to the sequence of steps a computer follows to load the
operating system (OS) into memory, starting from a powered-off state until the
system is ready for use. The process involves hardware initialization, loading the
OS kernel, and starting system services.

11.1 Steps in the Boot Process


11.1.1 Power On

When a computer is powered on, the power supply unit (PSU) provides power to
the motherboard, CPU, RAM, and other hardware components. The CPU
immediately takes control of the initial process.

11.1.2 POST (Power-On Self Test)

The system undergoes a self-test known as the POST, where the CPU checks
essential hardware components like the CPU, RAM, and storage devices to
ensure they are functioning correctly. If any issues are detected, an error
message or beep code is emitted.

11.1.3 BIOS/UEFI Initialization

After POST, the system searches for the BIOS (Basic Input/Output System) or
UEFI (Unified Extensible Firmware Interface). BIOS is the older standard,
while UEFI is a modern alternative offering advanced features like secure boot.
The BIOS/UEFI initializes hardware and manages the boot sequence by
selecting which device to boot from (e.g., hard drive, USB, CD/DVD, or
network).
11.1.4 Bootloader Phase

The BIOS/UEFI looks for a bootloader stored on the selected boot device. In
legacy systems, the bootloader resides in the MBR (Master Boot Record), while
UEFI systems store it in the EFI partition. The bootloader is responsible for

Dr. Biju V.G. Page 32 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

loading the operating system kernel into memory and passing control to the OS
kernel.

11.1.5 Loading the Operating System Kernel

The bootloader loads the operating system kernel (e.g., vmlinuz in Linux or
ntoskrnl.exe in Windows) into memory. After the kernel is loaded, it
initializes the system’s memory management, device drivers, and other essential
infrastructure. The kernel takes control of the system and prepares it for full
operation.
11.1.6 Kernel Initialization

Once the kernel is loaded, it sets up system services such as memory


management (paging, segmentation), the process scheduler, and mounts the root
file system. The kernel also initializes essential hardware drivers, allowing the
OS to interact with devices like the keyboard, mouse, display, and storage
devices.
11.1.7 System Services (init Process or Windows Session Manager)

After kernel initialization, the init process (on Unix/Linux systems) or the
Windows Session Manager begins running. The init process is responsible for
launching additional system services and background processes, such as network
configuration, system daemons(Programs that run in background), and user
login services.

11.1.8 Login and User Space Initialization

Once the essential system services are up and running, the user is presented
with a login prompt or login screen. After the user logs in, their environment
(desktop, preferences, etc.) is initialized.

11.1.9 Running User Applications

After the login process, the user can start running applications, and the system
is fully operational. At this stage, the OS manages resources like memory, CPU,
and storage, allowing the user to interact with the system and run programs.

11.2 Summary of Key Boot Process Stages


‹ Power On: Initial power supply to the system.
‹ POST: Hardware self-test to verify basic functionality.
‹ BIOS/UEFI Initialization: Low-level hardware initialization and boot
device selection.

Dr. Biju V.G. Page 33 Associate Professor & Head, ECE


GYEST203 FOUNDATIONS OF COMPUTING, Module-1 CE Munnar

‹ Bootloader: Loads the OS kernel from the boot device.


‹ Kernel Initialization: OS kernel is loaded and essential system
infrastructure is set up.
‹ System Services: Launching of critical system processes and user-space
services.
‹ Login: User authentication and environment setup.
‹ User Applications: System ready for user interaction with running
applications.

In conclusion, the boot process is a crucial procedure that ensures a computer is


correctly initialized and ready for use. Each stage in the boot process is essential
to the proper functioning of the system, from hardware checks to loading the
operating system and user applications.

Dr. Biju V.G. Page 34 Associate Professor & Head, ECE

You might also like