Fos Module-1
Fos Module-1
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.3 Registers
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.
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.2.1 Registers
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.
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.
Input/Output (I/O) devices are essential for user interaction with a computer
system. These devices facilitate data input, system interaction, and data output.
5 Storage Devices
Storage devices are used to store data and programs. They can be categorized
into primary, secondary, and tertiary storage devices.
‹ 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).
HDDs store data magnetically by encoding binary data (0s and 1s) as patterns
of magnetic fields on the platters.
3. The head alters the magnetic alignment of the platter surface to encode the
data.
‹ 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.
HDDs offer a wide range of storage capacities, from a few hundred gigabytes
(GB) to tens of terabytes (TB).
HDDs are more affordable per GB of storage compared to SSDs, making them
an economical choice for mass storage.
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.
‹ 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.
‹ 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.
‹ 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.
‹ 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).
‹ 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.
‹ 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
5.3.5 Applications
‹ 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
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.
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.
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.
Storage interface cards allow the connection between the computer and external
storage devices like hard drives, SSDs, and optical drives.
These cards add additional USB ports to a system when the computer has
limited USB connectivity.
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:
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.
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.
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.
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.
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.
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.
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.
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
loading the operating system kernel into memory and passing control to the OS
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
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.
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.
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.