FOC Full Notes - Module 1
FOC Full Notes - Module 1
MODULE-1
1.Computer Architecture
A computer system is organized into several key components that work together to perform operations.
These components are based on the Von Neumann architecture, which includes the CPU, memory,
input/output devices, and interconnections. Here is a detailed explanation of the core components:
1
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
o Decodes instructions fetched from memory and sends control signals to other
components (ALU, memory, I/O).
o Ensures instructions are executed in the correct sequence.
• Registers:
o Small, high-speed storage locations inside the CPU.
o Temporarily hold data, instructions, or intermediate results.
o Common registers include the Accumulator (ACC) for operations, Instruction
Register (IR) for holding current instructions, and Program Counter (PC) for tracking
the next instruction.
2. Memory
Memory stores data and instructions that the CPU needs to execute tasks. It is divided into:
• Primary Memory (RAM):
o Temporary storage that holds data and instructions while tasks are being executed.
o Volatile in nature; data is lost when the computer is turned off.
• Secondary Memory:
o Non-volatile storage like hard drives, SSDs, and external storage for long-term data
retention.
• Cache Memory:
o A small, fast memory inside or near the CPU.
o Holds frequently accessed data to speed up processing.
3. Input/Output (I/O) Devices
• Input Devices: Allow users to interact with the computer (e.g., keyboard, mouse, scanner).
• Output Devices: Display results of computations (e.g., monitor, printer, speakers).
I/O devices communicate with the CPU via I/O controllers and buses.
4. System Bus
The components communicate through buses, which are shared pathways for data transfer:
• Data Bus: Transfers actual data between CPU, memory, and I/O.
• Address Bus: Transfers memory addresses where data is stored.
• Control Bus: Transfers control signals from the Control Unit to other parts of the system.
2
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
Interaction Flow
1. Fetch: The CPU fetches instructions from memory using the address stored in the Program
Counter.
2. Decode: The Control Unit decodes the fetched instruction and prepares the ALU or other units
to execute it.
3. Execute: The ALU or other units perform the operation, and results may be stored in registers
or memory.
4. I/O: Data can be sent to output devices or received from input devices.
This architecture enables computers to execute tasks systematically and efficiently.
2. Memory Hierarchy
Memory Hierarchy: A Beginner's Explanation
The memory hierarchy in a computer system is a structured arrangement of different types of memory
based on speed, cost, and capacity. It ensures efficient data processing by providing faster, smaller
memory close to the CPU and larger, slower memory farther away.
Levels in the Memory Hierarchy
The memory hierarchy is typically represented as a pyramid with the fastest and smallest memory at the
top and the slowest and largest at the bottom. Let's explore each level:
1. Registers
• Location: Inside the CPU.
• Speed: Fastest memory, as they are part of the processor.
• Capacity: Very small (a few bytes or kilobytes).
• Cost: Extremely expensive per byte.
• Purpose:
o Temporary storage for data being processed.
o Hold immediate values like intermediate results, instructions, or addresses.
• Example: The Accumulator, Program Counter, and Instruction Register.
2. Cache Memory
• Location: Located between the CPU and main memory (or inside the CPU in modern systems).
• Speed: Very fast, though slower than registers.
• Capacity: Small (typically a few megabytes).
3
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
5. Tertiary Storage
• Location: External storage devices or cloud storage.
4
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
5
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
3. Registers
Registers in CPU Architecture:
Registers are small, high-speed storage locations inside a CPU. They temporarily hold data that the CPU
is currently processing. Let's explore their basic details and purposes:
1. What are Registers?
• Definition: Registers are small, high-speed storage locations within the Central Processing Unit
(CPU) that temporarily hold essential data and instructions for quick access during processing
operations.
Think of them as the CPU's personal scratchpad, allowing it to work with data at lightning speed.
6
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
7
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
8
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
9
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
4. Cache Memory
Cache Memory: A Beginner's Guide
Cache memory is a small, high-speed storage area located close to the CPU. It stores frequently
accessed data and instructions to speed up processing. Let’s dive into the basics:
1. What is Cache Memory?
• Definition: Cache memory is a type of volatile memory that provides faster data access than
RAM.
• Purpose: To reduce the time the CPU spends waiting for data from the main memory (RAM).
• Speed: Faster than RAM but slower than CPU registers.
2. Why Do We Need Cache Memory?
The CPU processes data very quickly, but fetching data from RAM can slow it down. Cache acts as a
"middleman" between the CPU and RAM, storing frequently accessed data to make the CPU's job
faster.
3. Levels of Cache Memory
Modern computers typically have multiple levels of cache, organized hierarchically:
a. L1 Cache (Level 1)
• Location: Built directly into the CPU core.
• Speed: Fastest among all cache levels.
• Size: Small, usually 16KB to 128KB.
• Purpose: Stores the most critical data and instructions.
b. L2 Cache (Level 2)
• Location: Located on the CPU chip but not in the core.
• Speed: Slightly slower than L1 but still faster than RAM.
• Size: Larger than L1, typically 128KB to 4MB.
• Purpose: Holds additional data and instructions not found in L1.
c. L3 Cache (Level 3)
• Location: Shared among all CPU cores.
• Speed: Slower than L1 and L2 but faster than RAM.
• Size: Larger, ranging from 4MB to 50MB.
10
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
11
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
5.RAM
RAM (Random Access Memory): A Beginner's Guide
RAM, or Random Access Memory, is one of the most important components in a computer. It plays a
key role in how fast your computer operates and how many tasks it can handle at once. Let’s break it
down in simple terms:
1. What is RAM?
• Definition: RAM is a type of volatile memory that temporarily stores data and instructions your
computer is currently using.
• Purpose: It allows the CPU to quickly access information for processing, making your computer
fast and responsive.
• Volatile Memory: Data in RAM is lost when the computer is turned off.
2. Why is RAM Important?
• RAM acts as a "working space" for your computer.
• The more RAM you have, the more applications or files you can open and use at the same time
without slowing down your system.
3. How Does RAM Work?
Think of your computer as an office:
• Hard Drive: A filing cabinet where all your data is stored permanently.
• RAM: Your desk, where you keep the files and tools you’re actively working on.
• CPU: The worker who processes the information on your desk.
When your desk (RAM) is too small, you have to go back to the filing cabinet (hard drive) more often,
which slows you down.
Types of RAM
Here are some subcategories of RAM and their specific uses:
Dynamic RAM (DRAM) Variants
• SDRAM (Synchronous DRAM): Operates in sync with the CPU clock. Common in older
systems.
• DDR SDRAM (Double Data Rate SDRAM): Modern standard for RAM. Transfers data
twice per clock cycle, increasing speed.
o DDR, DDR2, DDR3, DDR4, DDR5: Newer generations offer faster speeds and higher
capacities.
12
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
o Example: DDR5 RAM is the latest, offering improved performance and energy
efficiency.
Static RAM (SRAM)
• Use: Primarily in CPU cache due to its speed.
• Characteristics: Faster but more expensive and less dense than DRAM.
5. How is RAM Measured?
• Size: Typically measured in gigabytes (GB). Common sizes are 4GB, 8GB, 16GB, and higher.
• Speed: Measured in megahertz (MHz) or gigahertz (GHz). Faster RAM improves system
performance.
6. What Happens When You Don’t Have Enough RAM?
• Your computer might slow down or freeze.
• The system will use "virtual memory" (a portion of your hard drive) as a backup, but it is much
slower.
7. How Does RAM Affect Performance?
• Multitasking: More RAM allows you to open and use more applications at once.
• Gaming: Modern games require high amounts of RAM for smooth graphics and gameplay.
• Video Editing: Tasks like editing large video files are faster with more RAM.
8. RAM vs Storage
• RAM: Temporary memory; clears when the computer is off.
• Storage (HDD/SSD): Permanent memory; keeps data even when the computer is off.
9. Different Types of RAM Modules
RAM comes in different physical forms:
• DIMM (Dual Inline Memory Module): Used in desktops.
• SODIMM (Small Outline DIMM): Used in laptops.
Summary
RAM is the temporary workspace of your computer, crucial for its speed and multitasking ability. More
and faster RAM improves performance but is volatile, meaning it resets when your computer is turned
off.
13
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
6. Virtual Memory
Understanding Virtual Memory
Virtual memory is an essential concept in computer science and operating systems that allows computers
to use more memory than physically available in their hardware.
Memory in a Computer
• Physical Memory (RAM): This is the actual hardware (random access memory) inside your
computer. It temporarily stores data that the CPU (central processing unit) needs to access
quickly.
• Storage (HDD/SSD): Unlike RAM, storage devices like hard drives or SSDs hold data
permanently, even when the computer is turned off.
RAM is fast but limited in size. What happens if programs need more memory than your RAM can
provide? This is where virtual memory steps in.
What is Virtual Memory?
Virtual memory is a technique where the operating system uses a portion of your computer's storage (on
the hard drive or SSD) as if it were additional RAM. This extra "pretend RAM" is called the swap
space or page file.
14
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
15
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
Think of RAM as a librarian's desk and the hard drive as the library's archives. The desk is where the
librarian places books for immediate use (quick access), but it has limited space. When the desk is full,
the librarian moves some books back to the archives and retrieves others from the shelves. This process
represents how virtual memory swaps data between RAM and the hard drive.
Key Components of Virtual Memory
1. Page Table: Maintains the mapping of virtual addresses to physical addresses.
2. Swap Space: The reserved part of the hard drive used as virtual RAM.
3. MMU (Memory Management Unit): Handles the translation between virtual and physical
memory.
7. Motherboard
A motherboard is the main circuit board of a computer. It’s like the central hub that connects all the
components of your computer and allows them to communicate with each other. Without a motherboard,
your computer would just be a collection of parts with no way to work together.
16
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
• Connection Point: It links all hardware components like the CPU, RAM, storage drives, graphics
card, and peripherals.
• Communication Hub: It ensures that these components can send and receive data.
• Power Distribution: It delivers power from the power supply to various components.
Components of a Motherboard
Let’s break down the key parts of a motherboard and their functions:
1. CPU Socket
o This is where the central processing unit (CPU) is installed.
o It determines which type of processor the motherboard supports (e.g., Intel or AMD).
2. RAM Slots
o These slots hold the random access memory (RAM) modules.
o RAM is temporary storage used by the CPU to process data quickly.
3. Chipset
o The chipset manages the flow of data between the CPU, RAM, storage devices, and other
peripherals.
o It’s often divided into two parts:
▪ Northbridge: Handles high-speed components like the CPU and RAM.
▪ Southbridge: Manages lower-speed devices like USB ports and storage.
4. Storage Connectors
o SATA Ports: Connect traditional hard drives (HDDs) and solid-state drives (SSDs).
o M.2 Slots: Used for high-speed SSDs.
5. Expansion Slots
o PCIe Slots: Allow you to add components like a graphics card, sound card, or network
card.
o Different slots support different speeds (e.g., x1, x4, x8, x16).
6. Power Connectors
o The motherboard gets power from the power supply unit (PSU) (PSU uses switch mode
power supply(SMPS) technology) through these connectors.
17
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
18
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
3. Mini-ITX
• Compact form factor for small computers.
• Size: 6.7 x 6.7 inches (170 x 170 mm).
• Features:
o Limited space for ports and slots.
o Perfect for compact systems with minimal hardware.
• Used for: Home theater PCs (HTPCs) or portable builds.
3. Purpose: Your choice depends on whether you want a powerful gaming PC, a small home
computer, or a budget system.
How to Choose a Motherboard?
1. Compatibility: Ensure the motherboard supports your CPU and RAM.
2. Expansion Needs: Consider how many PCIe slots and storage connectors you’ll need.
3. Ports: Check for enough USB ports, display outputs, and other I/O options.
4. Future Upgrades: Choose a model that supports newer technologies for longevity.
Conclusion
The motherboard is the backbone of your computer. Understanding its components and functions can
help you build, upgrade, or troubleshoot your computer with confidence.
Input Devices
Input devices allow you to give information or instructions to the computer. Common examples include:
20
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
1. Keyboard
o The most basic input device used to type text, numbers, and symbols.
o Examples of keys: alphabets (A-Z), numbers (0-9), and special keys (Enter, Shift,
Spacebar).
2. Mouse
o A pointing device used to interact with the graphical user interface (GUI).
o Actions: clicking, dragging, and scrolling.
3. Microphone
o Captures audio and sends it to the computer.
o Used for voice commands, video calls, and recording sound.
4. Scanner
o Converts physical documents or images into digital format.
o Types: Flatbed scanners, handheld scanners.
5. Webcam
o Captures live video and images.
o Used for video conferencing, online classes, and streaming.
6. Touchscreen
o A display that also acts as an input device by detecting touch.
o Common in smartphones, tablets, and some laptops.
7. Joystick and Game Controller
o Used for gaming, controlling movements, or simulations.
8. Stylus
o A pen-like device for drawing or writing on a touchscreen.
21
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
22
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
23
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
Output Devices
Output devices display or present the results of computer processing. Examples include:
1. Monitor
o A screen that displays text, images, and videos.
o Types: LCD, LED, and OLED monitors.
2. Printer
o Converts digital documents into physical copies.
o Types:
▪ Inkjet Printers: Great for photos.
▪ Laser Printers: Fast and efficient for documents.
3. Speakers
o Produce sound output like music, notifications, or alerts.
4. Headphones/Earphones
o Provide private sound output directly to the user.
5. Projector
o Displays images or videos onto a large surface, like a wall or screen.
o Used in classrooms and presentations.
6. Plotter
o Used for printing large-scale graphics, like maps and architectural designs.
24
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
25
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
26
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
27
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
SSDs are modern storage devices that use flash memory to store data. They have no moving parts,
making them faster and more reliable than HDDs.
• Key Features:
o Speed: Much faster than HDDs, resulting in quicker boot times and faster file transfers.
o Durability: More resistant to physical shock since there are no moving parts.
o Capacity: Typically available in smaller capacities compared to HDDs, though high-
capacity SSDs exist at a premium price.
• When to use:
Ideal for operating systems, applications, and frequently accessed files for faster performance.
28
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
• When to use:
Best for distributing media, backups, or archival storage where cost-effectiveness and physical copies
are needed.
Just as DVD meant a 5 to 10 times increase in storage capacity compared to CD, Blu-ray Disc will
increase DVD capacity by 5 to 10 times. This is due, among other reasons, to the usage of a blue instead
of a red laser and improved lens specifications, allowing for a much smaller focus laser beam which
enables the recording of much smaller and higher density pits on the disc.
29
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
1. Specialized Functionality: Adds features not built into the motherboard, such as advanced
graphics or network capabilities.
2. Upgradability: Allows users to upgrade specific hardware without replacing the entire system.
3. Device Compatibility: Enables communication with external or legacy devices.
How Do Interface Cards Work?
• Interface cards are plugged into expansion slots on the motherboard, such as PCI (Peripheral
Component Interconnect), PCIe (PCI Express), or older standards like ISA.
• Once installed, the card's drivers are installed in the operating system to enable communication
and functionality.
Types of Interface Cards and Their Functions
1. Network Interface Card (NIC)
• Function: Provides a computer with the ability to connect to a network (LAN, WAN, or the
internet).
• Examples:
o Ethernet NIC: Enables wired network connections (e.g., Intel Gigabit Ethernet cards).
o Wi-Fi NIC: Provides wireless network connectivity (e.g., TP-Link Wireless USB
Adapter).
• Use Case: Connecting a desktop PC to the internet via Ethernet or Wi-Fi.
2. Graphics Card (GPU)
• Function: Enhances graphical processing capabilities, enabling better rendering of images,
videos, and 3D graphics.
• Examples:
o NVIDIA GeForce RTX series.
o AMD Radeon RX series.
• Use Case: Required for gaming, video editing, 3D modeling, and AI tasks.
3. Sound Card
• Function: Improves audio input/output quality, enabling high-fidelity sound.
• Examples:
o Creative Sound Blaster series.
o ASUS Xonar series.
30
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
• Use Case: Used by music producers or gamers for superior audio quality.
4. Storage Controller Card
• Function: Manages the connection between the computer and additional storage devices.
• Examples:
o RAID controller cards for managing RAID configurations.
o NVMe expansion cards for additional SSDs.
• Use Case: Expanding storage or improving data redundancy in servers and workstations.
5. TV Tuner Card
• Function: Allows a computer to receive TV signals for watching or recording television
broadcasts.
• Examples:
o Hauppauge WinTV.
• Use Case: Streaming and recording TV shows on a PC.
6. Capture Card
• Function: Enables the capture and recording of video input from external devices like cameras
or gaming consoles.
• Examples:
o Elgato HD60.
• Use Case: Live streaming and recording gameplay or video content.
7. RAID Controller Card
• Function: Configures and manages RAID (Redundant Array of Independent Disks) for data
redundancy and performance.
• Examples:
o Dell PERC series.
• Use Case: Used in servers and storage-intensive applications.
8. Modem Card
• Function: Connects the computer to the internet via a phone line.
• Examples:
o Internal 56K modems.
31
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
Example Scenarios
1. Gaming PC:
o A high-end graphics card like NVIDIA RTX 4090 enhances gaming visuals.
o A sound card provides immersive audio.
2. Server Setup:
o A RAID controller card ensures data redundancy.
o A network interface card with high-speed Ethernet connects the server to a data center.
3. Video Production:
o A capture card records 4K video from cameras.
o A graphics card accelerates rendering tasks.
32
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
11. Buses
In a computer system, buses are communication pathways that connect various components of the
computer, enabling data transfer between them. These buses are essential for the coordination of the
central processing unit (CPU), memory, input/output (I/O) devices, and storage. Each bus is a set of
wires or traces on a motherboard and is characterized by the data it can carry, speed, and the protocol
used for communication.
Types of Buses in a Computer System
Buses can be broadly categorized into three main types based on their function:
1. Data Bus
• Function: Transfers actual data between the CPU, memory, and I/O devices.
• Width: The width (number of lines) determines how much data can be transferred at one time
(e.g., 8-bit, 16-bit, 32-bit, or 64-bit).
• Bidirectional: Data can flow in both directions, allowing read and write operations.
2. Address Bus
• Function: Carries memory addresses from the CPU to other components, specifying where data
is to be read from or written to.
• Width: Determines the maximum addressing capability of the CPU. For example, a 32-bit
address bus can address up to 232232 memory locations.
• Unidirectional: Data flows only from the CPU to the memory or I/O.
3. Control Bus
• Function: Carries control signals issued by the CPU to coordinate and manage the operations of
the entire system.
• Signals: Includes commands like read/write signals, interrupt signals, and clock signals.
• Bidirectional: Some control signals may flow back to the CPU (e.g., acknowledgment signals
from devices).
Categories Based on Architecture
1. System Bus
• A combination of the data, address, and control buses, typically found on the motherboard to
connect the CPU to memory and I/O devices.
2. Internal Bus
• Connects internal components of the CPU, such as the Arithmetic Logic Unit (ALU), registers,
and the cache.
33
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
3. External Bus
• Facilitates communication between the CPU and external devices like keyboards, printers, and
external storage.
Specific Bus Types in Modern Systems
1. Front-Side Bus (FSB):
o Connects the CPU to the main memory and the northbridge chipset.
2. Back-Side Bus (BSB):
o Links the CPU to the cache memory (e.g., L2 or L3 cache).
3. Peripheral Component Interconnect (PCI):
o Used to connect peripheral devices like network cards and sound cards.
4. Universal Serial Bus (USB):
o A standardized bus for connecting external devices like flash drives and smartphones.
5. Serial ATA (SATA):
o Connects storage devices like hard drives and SSDs.
6. PCI Express (PCIe):
o A high-speed bus for GPUs, NVMe storage devices, and other high-performance
peripherals.
7. I2C (Inter-Integrated Circuit) and SPI (Serial Peripheral Interface):
o Common in embedded systems for low-speed peripherals like sensors.
8. HyperTransport (HT):
o Used in AMD systems for interconnecting the CPU and chipset.
By understanding buses, we can appreciate how the intricate components of a computer communicate
efficiently to perform complex tasks.
34
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
You have already seen that instructions are executed within the CPU by moving ‘‘data’’ in many
different forms from register to register and between registers and memory. The different forms that
the‘‘data’’ can take include instructions and addresses, in addition to actual numerical data. ‘‘Data’’
moves between the various I/O modules, memory, and the CPU in similar fashion. The physical
connection that makes it possible to transfer data from one location in the computer system to another
is called a bus.
The need to characterize buses comes from the necessity of interfacing the bus to other components that
are part of the computer system. Buses that are internal to the CPU are usually not characterized formally
at all, since they serve special purposes and do not interface to the outside world. Buses that are used in
this way are sometimes known as dedicated buses. Buses that are intended for more general use must
have a well-defined standard; standard buses generally have a name. PCI Express, USB, IDE, and SATA
are all examples of named buses.
Each conductor in the bus is commonly known as a line. Lines on a bus are often assigned names, to
make individual lines easier to identify. In the simplest case, each line carries a single electrical signal.
The signal might represent one bit of a memory address, or a sequence of data bits, or a timing control
that turns a device on and off at the proper time. Sometimes, a conductor in a bus might also be used to
carry power to a module. In other cases, a single line might represent some combination of functions.
The lines on a bus can be grouped into as many as four general categories: data, addressing, control,
and power. Data lines carry the ‘‘data’’ that is being moved from one location to another. Address lines
specify the recipient of data on the bus. Control lines provide control and timing signals for the proper
35
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
synchronization and operation of the bus and of the modules and other components that are connected
to the bus. A bus connecting only two specific 32-bit registers within a CPU, for example, may require
just thirty-two data lines plus one control line to turn the bus on at the correct time.The bus that connects
the CPU and memory, for example, needs address lines to pass the address stored in the MAR to the
address decoder in memory and data lines to transfer data between the CPU and the memory MDR. The
control lines provide timing signals for the data transfer, define the transfer as a read or write, specify
the number of bytes to transfer, and perform many other functions.
At their two extremes, buses are characterized as parallel or serial. By definition, a parallel bus is
simply a bus in which there is an individual line for each bit of data, address, and control being used.
This means that all the bits being transferred on the bus can be transferred simultaneously. A serial bus
is a bus in which data is transferred sequentially, one bit at a time, using a single data line pair.
A bus line may pass data in one direction only, or may be used to pass data in both directions. A
unidirectional line is called a simplex line. A bidirectional line may carry data one direction at a time,
in which case it is called a half-duplex line, or in both directions simultaneously, known as a full-
duplex line.
Buses are also characterized by the way that they interconnect the various components to which they
are attached. A bus that carries signals from a single specific source to a single specific destination is
identified as a point-to-point bus. Point-to-point buses that connect an external device to a connector
are often referred to as cables, as in a printer cable or a network cable. Thus, the cable that connects the
USB port in a personal computer from the computer to a printer is an example of a point-to-point bus.
The internal connectors into which external cables can be plugged are often called ports. Typical ports
on a personal computer might include parallel printer ports, network ports, USB ports, and firewire
ports.
Alternatively, a bus may be used to connect several points together. Such a bus is known as a multipoint
bus, or sometimes as a multidrop bus. It is also referred to as a broadcast bus, because the signals
produced by a source on the bus are ‘‘broadcast’’ to every other point on the bus in the same way as a
radio station broadcasts to anyone who tunes in. The bus in a traditional Ethernet network is an example
of a broadcast bus: the signal being sent by a particular computer on the network is received by every
other computer connected to the network.
36
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
A parallel bus that carries, say, 64 bits of data and 32 bits of address on separate data and address lines
would require a bus width of 96 lines, even before control lines are considered. The parallel bus is
characterized by high throughput capability because all the bits of a data word are transferred at once.
Virtually every bus internal to the CPU is a parallel bus, since the high speed is essential to CPU
operation.
To use a bus, the circuits that are connected to the bus must agree on a bus protocol. A bus protocol is
simply a specification that spells out the meaning of each line and each signal on each line for this
purpose. Thus, a particular control line on a bus might be defined as a line that determines if the bus is
to be used for memory read or memory write. Both the CPU and memory would have to agree, for
example, that a ‘‘0’’ on that particular line means ‘‘memory read’’ and a ‘‘1’’ on the line means
‘‘memory write’’. The line might have a name like MREAD/MWRITE, where the bar over MWRITE
means that a ‘‘0’’ is theactive state. The bar itself stands for ‘‘NOT’’.
37
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
11.Firmware
Firmware is a type of software that is permanently written into hardware devices. It provides the low-
level control necessary to operate the hardware and acts as the bridge between the device's physical
components and its higher-level software. Unlike regular software that can be easily modified or
updated by users, firmware is typically stored in non-volatile memory like ROM (Read-Only Memory),
EPROM (Erasable Programmable Read-Only Memory), or flash memory.
Functions of Firmware:
1. Hardware Initialization:
38
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
o It sets up the hardware and prepares it to work with higher-level software (e.g., booting
up a computer).
2. Device Control:
o It manages hardware-specific tasks, such as controlling the brightness of a screen or the
speed of a fan.
3. Interface Support:
o Enables communication between hardware and software, often via drivers or protocols.
4. Updates and Maintenance:
o Manufacturers release firmware updates to fix bugs, improve performance, or introduce
new features.
Examples of Firmware:
Here are some real-world examples to help beginners understand firmware better:
1. BIOS/UEFI (in Computers)
• What it does: The firmware in a computer's motherboard initializes hardware (like CPU, RAM,
and storage) during startup and provides an interface for the operating system to interact with
the hardware.
• Location: Stored on a chip in the motherboard.
• Example: The screen you see when you press F2 or DEL during startup to enter the setup menu.
2. Embedded Systems (e.g., Washing Machines, Microwave Ovens)
• What it does: Manages the specific operations of devices, like starting a washing cycle or setting
the timer for heating.
• Location: Stored directly in the device's microcontroller.
• Example: The buttons and settings you use on your microwave depend on its firmware.
3. Smartphones
• What it does: Controls essential hardware functions, such as the touchscreen, cameras, and
network radios.
• Location: Embedded in components like the camera sensor or modem.
• Example: The firmware in your phone's camera allows it to capture photos and videos.
4. Printers
39
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
• What it does: Manages the printer's hardware, like the movement of the ink cartridge and paper
feeding.
• Location: Stored inside the printer's control chip.
• Example: Printer firmware updates often improve compatibility with new operating systems.
5. Routers and Modems
• What it does: Manages data transmission and controls network settings.
• Location: Embedded in the device's flash memory.
• Example: Firmware updates for routers might improve security or add new features like parental
controls.
40
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
Importance of Firmware:
1. Critical for Device Functionality:
o Without firmware, hardware cannot operate or communicate with the software.
2. Efficiency:
o Optimized firmware ensures that hardware operates at peak efficiency.
3. Device Longevity:
o Firmware updates can extend the lifespan of a device by keeping it secure and functional.
12.Boot Process
The boot process refers to the sequence of steps a computer takes to load the operating system (OS) and
prepare it for user interaction after powering on. It involves hardware initialization, firmware execution,
and loading the OS.
2. BIOS/UEFI Initialization
• What happens:
1. The BIOS (Basic Input/Output System) or UEFI (Unified Extensible Firmware
Interface) firmware stored on the motherboard chip initializes hardware components.
2. It identifies connected devices like the hard drive, SSD, keyboard, and mouse.
3. It checks the boot order (a predefined sequence of devices to find the OS loader).
• Key Role: Prepares hardware and identifies the storage device containing the bootloader.
41
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
4. Bootloader Execution
• What happens:
1. The bootloader (e.g., GRUB, Windows Boot Manager) is responsible for loading the
operating system kernel.
2. If multiple operating systems are present, it may provide a menu for the user to choose
one.
3. The selected kernel is loaded into memory.
• Key Role: Bridges the gap between the firmware and the operating system.
5. Kernel Initialization
• What happens:
1. The kernel, which is the core of the operating system, takes over control.
2. It initializes essential system components:
▪ Device drivers
▪ Memory management
▪ CPU scheduling
3. The kernel mounts the root file system and starts the first process (e.g., init in Linux
or smss.exe in Windows).
• Key Role: Loads the core components of the OS and prepares the system environment.
42
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
o A program like GRUB, LILO, or Windows Boot Manager that loads the OS kernel.
3. Kernel:
o Core part of the OS responsible for managing hardware and basic system functions.
4. Init System:
o Launches background services and prepares the environment for user interaction.
+---------------------+ +---------------------+
| Power Supply Turns On |---> | BIOS/UEFI Firmware |
+---------------------+ +---------------------+
|
v
+------------------+
| Run POST |
+------------------+
|
v
+------------------+
| Locate Bootloader |
+------------------+
|
v
+--------------------+
| Bootloader Executes |
+--------------------+
|
v
+-------------------------+
| Kernel and OS Load |
+-------------------------+
44
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
|
v
+--------------------------------+
| User Interface Ready (Login) |
+--------------------------------+
Troubleshooting Boot Issues
1. POST Failure:
o Symptom: Beeping sounds or error messages.
o Fix: Check hardware connections, like RAM and storage.
2. Bootloader Issues:
o Symptom: "No bootable device found."
o Fix: Reinstall or repair the bootloader.
3. Kernel Panic:
o Symptom: System freezes during kernel load.
o Fix: Check for corrupted OS files or faulty drivers.
45
GXEST203 Foundations Of Computing: From Hardware Essentials To Web Design 2024 scheme
o Interrupt-Driven I/O: The device interrupts the CPU when it is ready for data transfer,
allowing the CPU to perform other tasks until the I/O operation requires attention.
o Direct Memory Access (DMA): A system that allows devices to transfer data directly
to or from memory without continuous CPU involvement, enhancing efficiency.
Device Management:
Device management is a core function of the operating system that handles the control and coordination
of hardware devices. It ensures that I/O operations are performed smoothly and that devices are used
efficiently without conflicts.
Objectives of Device Management:
• Device Independence: Providing a uniform interface to users and applications, regardless of the
specific device characteristics.
• Efficiency: Optimizing the performance of device operations to ensure minimal response time
and maximal throughput.
• Buffering: Using temporary storage areas to hold data during transfer between devices and
applications, which helps in accommodating speed differences between devices.
• Error Detection and Correction: Identifying and handling errors that occur during I/O
operations to maintain data integrity.
Key Components in Device Management:
1. Device Drivers: Software modules that act as translators between the operating system and
hardware devices, enabling communication by converting general I/O instructions into device-
specific operations.
2. I/O Scheduling: Determining the order in which I/O operations are processed to optimize
performance and resource utilization.
3. Spooling: A technique where data is temporarily held to be used and executed by a device,
program, or system. It is commonly used for managing printing tasks.
46