bcc3
bcc3
➢ Internal memory
• Semiconductor Main Memory Organization
• DRAM and SRAM
• Types of ROM
• DDR DRAM
• Flash Memory
• Newer Nonvolatile Solid-State Memory Technologies- STT-RAM, PCRAM, ReRAM
➢ External memory
• Magnetic Disk
• Magnetic Read and Write Mechanisms
• Data Organization and Formatting Physical Characteristics
• Disk Performance Parameters
• Solid State Drives
• SSD Compared to HDD
• Optical Memory
• Compact Disk Digital Versatile Disk High-Definition Optical Disks
• Magnetic Tape
Modern computers are based on a stored-program concept introduced by John Von Neumann. In this stored-
program concept, programs and data are stored in the same memory. This novel idea meant that a computer
built with this architecture would be much easier to reprogram.
The basic structure is like this,
1. Registers
Registers refer to high-speed storage areas in the CPU. The data processed by the CPU are fetched from the
registers. Registers are small, fast storage locations within the CPU used to store data temporarily during
program execution. There are different types of registers used in architecture:
• Accumulator Registers: Stores the results of calculations made by ALU. It holds the intermediate of
arithmetic and logical operatoins.it act as a temporary storage location or device.
• Program Counter (PC): Keeps track of the memory location of the next instructions to be dealt with. The
PC then passes this next address to the Memory Address Register (MAR).
• Memory Address Register (MAR): It stores the memory locations of instructions that need to be fetched
from memory or stored in memory.
• Memory Data Register (MDR): It stores instructions fetched from memory or any data that is to be
transferred to, and stored in, memory.
• Current Instruction Register (CIR): It stores the most recently fetched instructions while it is waiting to be
coded and executed.
• General-Purpose Registers: These registers can store a variety of temporary values, such as the results of
computations or the addresses of memory locations and are essential for performing arithmetic and logic
operations within the CPU.
• Instruction Buffer Register (IBR): The instruction that is not to be executed immediately is placed in the
instruction buffer register IBR.
2. Flash Memory
Flash memory is a non-volatile storage medium, meaning data is retained even when power is turned off. It
is used in a variety of devices (e.g., SSDs, USB drives) for storing data persistently. It’s faster than
traditional secondary storage but slower than RAM.
3. PROM (Programmable Read-Only Memory)
PROM is a type of ROM that can be programmed once after manufacturing. Unlike regular ROM (which is
pre-programmed during manufacturing), PROM can be written by users for specific applications, but once
written, it cannot be modified or erased.
4. Secondary Storage
This refers to external memory devices like hard drives, SSDs, or CDs, where data can be stored long-term.
Unlike RAM (which is volatile and temporary), secondary storage is non-volatile and retains data even when
powered off.
5. Instruction Sets
An instruction set is a collection of instructions that the CPU can understand and execute. It defines the set
of operations the CPU can perform, such as adding numbers, moving data, or comparing values.
6. I/O Devices (Input/Output Devices)
These devices allow communication between the computer and the external environment. Input devices
(e.g., keyboard, mouse) send data to the computer, while output devices (e.g., monitor, printer) display or
send data from the computer to the user or another device.
7. Cache Memory
Cache memory is a small, high-speed memory located between the CPU and the main memory (RAM). It
stores frequently accessed data and instructions to speed up overall performance by reducing the time
needed to access data from RAM.
8. RAM - Random Access Memory
RAM is volatile memory, meaning it only stores data while the computer is powered on. It temporarily holds
data and programs that are actively being used or processed by the CPU, allowing fast access to this
information.
9. ROM (Read-Only Memory)
ROM is non-volatile memory that contains data and instructions that do not change. It typically stores
essential instructions needed for booting the computer and hardware initialization.
10. Decoders
The process of decoding involves receiving, interpreting and understanding an encoded message. In other
words, decoding involves interpretation and analysis of a message. In the communication process, it opens
in new window, and it is the message that is transferred, as meaning cannot be transferred from one person
to another.
Summary:
• Registers store temporary data.
A bus is a collection of electrical pathways or conductors that carry data, addresses, and control signals
between different hardware components. These components are linked to the bus, allowing them to interact
and collaborate effortlessly, and these all together are called bus architecture. The width (number of data
lines), speed, and protocols of bus architectures can vary. A bus's width refers to the number of parallel data
lines it contains, which defines how much data can be sent simultaneously. A wider bus offers faster data
transfer but may require more physical connections.
Some common control signals transmitted through control lines in a computer's bus architecture are as follows:
Control SignalDescription
Memory Write This command moves the data on the data bus to the addressed memory location.
Memory Read This instruction sends the data from the addressed memory location to the data bus.
I/O Read Enabling this control line sends data from the addressed I/O port to the data bus.
When a command is sent over this control line, data from the data bus is sent to the
I/O Write
designated I/O port.
The activation of this control line signifies that the component has signaled its desire
Bus Request
to take control of the bus.
The activation of this control line signifies that the bus has been allocated to the
Bus Grant
component that made the request.
Transfer ACK This control line indicates that data has been received or placed on the data bus.
Interrupt
This control line indicates that there are pending interrupts.
Request
Interrupt ACK When the pending interrupt is serviced, this control line acknowledges it.
Reset This control line's bit information initializes all modules.
Bus Timing
As observed, the control lines of the bus also convey timing details alongside commands. The methods for
obtaining timing information via the control line can be classified into two categories:
Synchronous Bus
• Timing synchronization for all connected devices or components is achieved in the synchronous bus
through a control line known as the bus clock.
• This bus clock line transmits a steady stream of alternating 1s and 0s, creating a recurring clock cycle
with specific intervals.
• Each clock cycle consists of a single transmission of the sequence 1-0. Any device or component
connected to the bus can read this bus clock line.
• Every operation, without exception, starts with the start of a clock cycle. The clock-based
synchronization ensures that the transmitting and receiving elements are precisely aligned.
• This steady clock-driven synchronization can achieve continuous data transmission. As a result, the
synchronous bus architecture can handle high-speed data transmission.
Asynchronous Bus
• The asynchronous bus configuration does not employ a clock signal to synchronize the transmitter
and receiver components. Instead, data transmission is controlled by a handshake protocol between a
master and a slave component.
• In this arrangement, the process of data transfer is initiated by the master component.
• It prepares itself for data exchange and signals its readiness by activating the master-ready line.
Concurrently, it transmits address and command details across the bus.
• Each connected component then evaluates the address provided on the address line to determine which
specific component is being addressed by the master.
• When the addressed component receives the command, it performs the required operation and notifies
the processor by activating its slave-ready line. When the slave-ready line is activated, the master
relinquishes control of the bus.
• When the addressed component receives the command, it performs the necessary function and alerts
the processor by activating its slave-ready line. The master relinquishes control of the bus when the
slave-ready line is enabled.
Question: Explain processors and its types.
A processor, also known as the Central Processing Unit (CPU), is the brain of a computer that executes
instructions from programs. It performs the basic arithmetic, logical, control, and input/output (I/O) operations
specified by the instructions. The processor interprets and carries out the basic instructions that operate the
computer and is essential for overall system performance.
Processors are critical to computing, executing tasks by performing billions of calculations per second. The
evolution of CPUs has been driven by the need for higher performance, greater efficiency, and the ability to
handle complex, multi-threaded tasks in today’s computing environment. The architecture, number of cores,
clock speed, and manufacturing process all contribute to how effectively a CPU can meet the demands of
modern applications.
CISC (Complex Instruction Set Computer)
Definition:
CISC is a type of microprocessor architecture where single instructions can execute multiple low-level
operations (such as load, store, and arithmetic operations) or multi-step operations within one instruction.
Key Features:
• Large and complex instruction set.
• Focuses on reducing the number of instructions per program, making the hardware complex.
Advantages:
• Fewer instructions needed to perform a task, simplifying the compiler’s job.
• Reduces the need for multiple instructions in code, leading to smaller program sizes.
Disadvantages:
• Complex hardware design, which can lead to increased cost and power consumption.
• Performance can be slower because of the time required to decode and execute the complex
instructions.
• Load/store architecture, meaning only load and store instructions can access memory.
Advantages:
• Faster execution of instructions due to simplified instruction set.
Disadvantages:
• Requires more instructions to perform complex tasks, leading to larger code size.
Advantages:
• High performance through parallel instruction execution.
Disadvantages:
• Complex compiler design is required to schedule instructions properly.
Multicore Processor
Definition:
A multicore processor is a single computing component with two or more independent central processing
units (CPUs) or "cores," which read and execute instructions.
Key Features:
• Multiple processing cores on a single chip.
• Each core can handle its own tasks, allowing for parallel processing.
Advantages:
• Improved performance for multitasking and parallel processing.
• Ideal for modern computing tasks such as gaming, video editing, and simulations.
Disadvantages:
• Requires software to be optimized for multithreading to fully utilize the cores.
1. Static RAM: SRAM stands for Static Random Access Memory. It is a type of semiconductor which
is widely used in computing devices and microprocessors.
Architecture: SRAM uses a flip-flop circuit to store each bit, consisting of 4-6 transistors, which retain
their state as long as power is supplied.
No Refresh: SRAM does not need to be refreshed, making it faster than DRAM.
Advantages:
Faster than DRAM because it doesn't require refreshing.
Used for cache memory in CPUs due to its speed.
Disadvantages:
More expensive and requires more physical space (lower density).
Volatile.
2. Dynamic RAM: DRAM stands for Dynamic Random Access Memory. It is made of Capacitors and has
smaller data life span than Static RAM.
(Learn all the full forms)
(Question – Write a note on DRAM and its types.)
DRAM stores the binary information in the form of electric charges applied to capacitors. The stored
information on the capacitors tends to lose over a period of time and thus the capacitors must be periodically
recharged to retain their usage. DRAM requires refresh time. The main memory is generally made up of
DRAM chips.
DRAM Memory Cell
Though SRAM is very fast, it is expensive because of its every cell requires several transistors. Relatively
less expensive RAM is DRAM, due to the use of one transistor and one capacitor in each cell, as shown in
the below figure., where C is the capacitor and T is the transistor. Information is stored in a DRAM cell in
the form of a charge on a capacitor and this charge needs to be periodically recharged.
For storing information in this cell, transistor T is turned on and an appropriate voltage is applied to the bit
line. This causes a known amount of charge to be stored in the capacitor. After the transistor is turned off,
due to the property of the capacitor, it starts to discharge. Hence, the information stored in the cell can be
read correctly only if it is read before the charge on the capacitors drops below some threshold value.
Types of DRAM
a. SDRAM (Synchronous Dynamic Random Access Memory):
• Overview: SDRAM is a type of DRAM that is synchronized with the system clock, meaning it
operates in sync with the CPU, allowing it to perform faster than traditional DRAM. The memory
read/write cycles are synchronized to the clock signal, making data transfer more efficient.
• These RAM chips’ access speed is directly synchronized with the CPU’s clock. For this, the memory
chips remain ready for operation when the CPU expects them to be ready. These memories operate at
the CPU-memory bus without imposing wait states. SDRAM is commercially available as modules
incorporating multiple SDRAM chips and forming the required capacity for the modules.
• Key Features:
o Synchronous Operation: SDRAM is synchronized with the processor clock, which helps to
coordinate data processing and allows higher throughput.
o Burst Mode: Supports burst data (A temporary high-speed data transfer mode that can
transfer data at a much faster rate than nonburst technology. It's a generic electronics term
that refers to any situation where a device transmits data repeatedly without going through all
the steps for each piece of data) access, enabling multiple data transfers in rapid succession
within a single clock cycle.
o Application: Commonly used in older computing systems (pre-2000), but was later replaced
by faster DDR technologies.
• Key Features:
o Double Data Rate: As the name suggests, DDR transfers data twice per clock cycle (once on
the rising edge and once on the falling edge), offering twice the bandwidth of SDRAM at the
same clock speed.
o Memory Types: Includes various versions such as DDR, DDR2, DDR3, DDR4, and DDR5,
with each successive version providing better speed, efficiency, and lower power
consumption.
o Application: Widely used in modern PCs, laptops, servers, and other devices requiring high-
speed memory access.
o NAND Flash: The most commonly used type for data storage devices like SSDs and memory
cards. It is known for its high storage density and fast write speed.
o NOR Flash: Provides faster random access times and is used for storing firmware, such as
BIOS chips in computers.
• Characteristics:
o Non-Volatile: Retains data without the need for power, making it ideal for permanent
storage.
o Endurance: Flash memory has a limited number of write/erase cycles, after which the
memory cells degrade. Wear leveling algorithms help extend the lifespan of flash memory by
distributing writes evenly across cells.
o Applications: Flash memory is used in a wide range of applications, from portable storage
devices (USB drives, SD cards) to embedded systems, mobile phones, and solid-state drives
(SSDs).
Question: Explain Newer Non-volatile Solid-State Memory Technologies OR Explain Nonvolatile
RAM within the Memory Hierarchy
The traditional memory hierarchy has consisted of three levels (Figure 5.18):
■ Static RAM (SRAM): SRAM provides rapid access time, but is the most expensive and the least dense
(bit density). SRAM is suitable for cache memory.
■ Dynamic RAM (DRAM): Cheaper, denser, and slower than SRAM, DRAM has traditionally been the
choice off-chip main memory.
■ Hard disk: A magnetic disk provides very high bit density and very low cost per bit, with relatively slow
access times. It is the traditional choice for external storage as part of the memory hierarchy
These memory technologies are designed to provide non-volatility with improved speed, endurance, and
scalability over traditional memory types such as DRAM and NAND flash. They are promising for next-
generation computing.
• Working Principle: Data is stored in magnetic layers. By passing a spin-polarized current, the
magnetic direction can be flipped, representing binary states (0 and 1). The state is read by detecting
the resistance across the junction.
• Advantages:
o Low Power: Consumes less power during standby mode, ideal for energy-efficient
applications.
• Applications: Being developed for high-speed cache memory, embedded systems, and other
applications where fast, non-volatile memory is critical.
• Working Principle: When the material is heated and cooled rapidly, it transitions between the
amorphous and crystalline phases, representing 0s and 1s. Data is read by measuring the electrical
resistance of the cell.
• Advantages:
o Scalability: PCRAM scales well to smaller process technologies, making it suitable for
future memory architectures.
o Endurance: More durable than flash memory, with the ability to handle a larger number of
write cycles.
• Applications: PCRAM is used in storage applications requiring fast performance and non-volatility,
such as mobile devices, embedded systems, and potentially as a replacement for NAND flash.
• Working Principle: Data is stored in a resistive element. Applying a voltage across this element
creates conductive filaments (low resistance state, or 1) or breaks them (high resistance state, or 0).
• Advantages:
o Fast Read/Write: ReRAM offers very fast data access times, often faster than NAND flash.
o Low Power: ReRAM is highly energy-efficient, making it suitable for low-power devices
like IoT sensors and wearables.
o High Endurance: Can withstand many write/erase cycles, making it more durable than flash
memory.
o Scalability: The simple structure of ReRAM cells allows for dense packing, improving
storage capacity.
• Applications: ReRAM is considered for storage-class memory and applications requiring both high-
speed access and low power consumption, such as embedded systems, mobile devices, and next-gen
computing.
Summary:
• SDRAM and DDR SDRAM represent synchronous, high-speed memory technologies, with DDR
evolving to increase speed and efficiency.
• Flash Memory is a widely used non-volatile storage solution found in various devices, from USB
drives to SSDs.
• Newer Non-Volatile Memory Technologies like STT-RAM, PCRAM, and ReRAM are poised to
offer faster, more reliable, and scalable memory solutions, potentially replacing or complementing
traditional memory types like DRAM and flash in high-performance applications.
• Memory Address Registers (MAR): It holds the address of the location to be accessed from memory.
MAR and MDR (Memory Data Register) together facilitate the communication of the CPU and the
main memory.
• Memory Data Registers (MDR): It contains data to be written into or to be read out from the
addressed location.
• General Purpose Registers: These are numbered as R0, R1, R2….Rn-1, and used to store temporary
data during any ongoing operation. Its content can be accessed by assembly programming. Modern
CPU architectures tend to use more GPR so that register-to-register addressing can be used more,
which is comparatively faster than other addressing modes.
• Program Counter (PC): Program Counter (PC) is used to keep the track of the execution of the
program. It contains the memory address of the next instruction to be fetched. PC points to the address
of the next instruction to be fetched from the main memory when the previous instruction has been
successfully completed. Program Counter (PC) also functions to count the number of instructions. The
incrementation of PCs depends on the type of architecture being used. If we are using a 32-bit
architecture, the PC gets incremented by 4 every time to fetch the next instruction.
• Instruction Register (IR): The IR holds the instruction which is just about to be executed. The
instruction from the PC is fetched and stored in IR. As soon as the instruction is placed in IR, the CPU
starts executing the instruction, and the PC points to the next instruction to be executed.
• Stack Pointer (SP): The stack PCs pointer points to the top of the stack, which is a part of the memory
used to store function calls and other operations.
• Flag Register: A flag register, also known as a status register or condition code register, is a special
type of register in a computer’s central processing unit (CPU) used to indicate the status of the CPU
or the outcome of various operations such as Zero Flag, Carry flag, Sign Flag, Overflow Flag, Parity
Flag, Auxiliary Carry Flag, and Interrupt Enable Flag.
• Condition code register ( CCR ): Condition code registers contain different flags that indicate the
status of any operation. For instance, let’s suppose an operation caused the creation of a negative result
or zero, then these flags are set high accordingly. and the flags are:
1. Carry C: Set to 1 if an add operation produces a carry or a subtract operation produces a borrow;
otherwise cleared to 0.
2. Overflow V: Useful only during operations on signed integers.
3. Zero Z: Set to 1 if the result is 0, otherwise cleared to 0.
4. Negate N: Meaningful only in signed number operations. Set to 1 if a negative result is produced.
5. Extend X: Functions as a carry for multiple precision arithmetic operations.
Most modern computers use 32-bit or 64-bit registers, and that’s why we call them 32-bit or 64-bit processors.
This terminology refers to the width of the processor’s registers and how much data it can handle at once.
In some specialized processors, you might see even larger registers like 128-bit or 256-bit. These are used for
specific tasks such as vector processing or cryptography where dealing with large data sets and parallel
processing is important.
Purpose of Registers
Registers play a very important role in computers, and they are used by CPU for various purposes.
• Storing Instruction: Registers are used to store the instruction from programs before the CPU follows
them. This helps the computer quickly find and follow the steps it needs to take.
• Holding Answer: When the computer does math calculations or other tasks, the register stores the
temporary answer.
• Quick Access to Important Stuff: Registers are like the computer’s quick-access shelves. They keep
important things nearby, so the computer can grab them fast without going far away to get them. It’s
like keeping your favourite tools on a shelf right next to you, instead of in a faraway closet.
So, registers are like the computer’s quick-access memory, helping it work faster and smarter.
Question : Explain Secondary Storage Memory Classification/ Secondary Storage devices
Primary memory has limited storage capacity and is volatile. Secondary memory overcomes this limitation
by providing permanent storage of data and in bulk quantity. Secondary memory is also termed external
memory and refers to the various storage media on which a computer can store data and programs. The
Secondary storage media can be fixed or removable. Fixed Storage media is an internal storage medium like
a hard disk that is fixed inside the computer. A storage medium that is portable and can be taken outside the
computer is termed removable storage media.
Secondary memory is a type of computer memory that is used for long-term storage of data and programs. It
is also known as auxiliary memory or external memory, and is distinct from primary memory, which is used
for short-term storage of data and instructions that are currently being processed by the CPU.
Secondary memory devices are typically larger and slower than primary memory, but offer a much larger
storage capacity. This makes them ideal for storing large files such as documents, images, videos, and other
multimedia content.
Some examples of secondary memory devices include hard disk drives (HDDs), solid-state drives (SSDs),
magnetic tapes, optical discs such as CDs and DVDs, and flash memory such as USB drives and memory
cards. Each of these devices uses different technologies to store data, but they all share the common feature
of being non-volatile, meaning that they can store data even when the computer is turned off.
Secondary memory devices are accessed by the CPU via input/output (I/O) operations, which involve
transferring data between the device and primary memory. The speed of these operations is affected by
factors such as the type of device, the size of the file being accessed, and the type of connection between the
device and the computer.
Overall, secondary memory is an essential component of modern computing systems and plays a critical role
in the storage and retrieval of data and programs.
Uses of Secondary Media:
• Permanent Storage: Primary Memory (RAM) is volatile, i.e. it loses all information when the
electricity is turned off, so in order to secure the data permanently in the device, Secondary storage
devices are needed.
• Portability: Storage mediums, like CDs, flash drives can be used to transfer the data from one
device to another.
Fixed and Removable Storage
Fixed Storage-
Fixed storage is an internal media device that is used by a computer system to store data, and usually, these
are referred to as the Fixed disk drives or Hard Drives.
Fixed storage devices are literally not fixed, obviously, these can be removed from the system for repairing
work, maintenance purposes, and also for an upgrade, etc. But in general, this can’t be done without a proper
toolkit to open up the computer system to provide physical access, and that needs to be done by an engineer.
Technically, almost all of the data i.e. being processed on a computer system is stored on some type of a
built-in fixed storage device.
Types of fixed storage:
• Internal flash memory (rare)
• SSD (solid-state disk) units
• Hard disk drives (HDD)
Removable Storage-
Removable storage is an external media device that is used by a computer system to store data, and usually,
these are referred to as the Removable Disks drives or the External Drives.
Removable storage is any type of storage device that can be removed/ejected from a computer system while
the system is running. Examples of external devices include CDs, DVDs, and Blu-ray disk drives, as well as
diskettes and USB drives. Removable storage makes it easier for a user to transfer data from one computer
system to another.
In storage factors, the main benefit of removable disks is that they can provide the fast data transfer rates
associated with storage area networks (SANs)
Types of Removable Storage:
• Optical discs (CDs, DVDs, Blu-ray discs)
• Memory cards
• Floppy disks
• Magnetic tapes
• Disk packs
• Paper storage (punched tapes, punched cards)
Secondary Storage Media
There are the following main types of storage media:
1. Magnetic storage media:
Magnetic media is coated with a magnetic layer that is magnetized in clockwise or anticlockwise directions.
When the disk moves, the head interprets the data stored at a specific location in binary 1s and 0s at
reading.
Examples: hard disks, floppy disks, and magnetic tapes.
• Floppy Disk: A floppy disk is a flexible disk with a magnetic coating on it. It is packaged inside a
protective plastic envelope. These are one of the oldest types of portable storage devices that could
store up to 1.44 MB of data but now they are not used due to very little memory storage.
• Hard disk: A hard disk consists of one or more circular disks called platters which are mounted on a
common spindle. Each surface of a platter is coated with magnetic material. Both surfaces of each
disk are capable of storing data except the top and bottom disks where only the inner surface is used.
The information is recorded on the surface of the rotating disk by magnetic read/write heads. These
heads are joined to a common arm known as the access arm.
Hard disk drive components:
Most of the basic types of hard drives contain a number of disk platters that are placed around a spindle
which is placed inside a sealed chamber. The chamber also includes read/write heads and motors. Data is
stored on each of these disks in the arrangement of concentric circles called tracks which are divided further
into sectors. Though internal Hard drives are not very portable and are used internally in a computer system,
external hard disks can be used as a substitute for portable storage. Hard disks can store data up to several
terabytes.
2. Optical storage media (This can be asked as a separate question as – Write a note on optical
memory)
In optical storage, media information is stored and read using a laser beam. The data is stored as a spiral
pattern of pits and ridges denoting binary 0 and binary 1.
Examples: CDs and DVDs
• Compact Disk: A Compact Disc drive (CDD) is a device that a computer uses to read data that is
encoded digitally on a compact disc (CD). A CD drive can be installed inside a computer’s
compartment, provided with an opening for easier disc tray access or it can be used by a peripheral
device connected to one of the ports provided in the computer system. A compact disk or CD can
store approximately 650 to 700 megabytes of data. A computer should possess a CD Drive to read
the CDs. There are three types of CDs:
CD- ROM CD-R CD-RW
It stands for Compact Disk – Read Only It stands for Compact Disk- It stands for Compact
Memory Recordable. Disk-Rewritable.
• Platters: Circular disks made of metal or glass, coated with magnetic material.
• Spindle: The platters are mounted on a spindle, which rotates them at high speeds.
• Read/Write Heads: Located close to the platters to read from and write to the surface.
• Actuator Arm: Moves the read/write heads over the disk surfaces.
The read/write mechanism in magnetic disks relies on the manipulation of magnetic fields:
• Writing: Data is written to a magnetic disk by altering the orientation of magnetic particles on the
surface. A write head generates a magnetic field that aligns these particles in specific patterns to
represent binary data (0s and 1s).
• Reading: During reading, a read head senses the orientation of these particles to retrieve the stored
data. Changes in the magnetic field induce electrical currents in the read head, which are converted
into the original binary data.
Before data can be written to a disk, the disk must be formatted, a process that prepares the surface by
organizing it into sectors and tracks. Logical formatting (or partitioning) creates a file system (e.g., NTFS,
FAT32), allowing the operating system to manage files on the disk.
• Rotational speed: Measured in revolutions per minute (RPM), typically ranging from 5400 to 7200
RPM in consumer HDDs.
• Area density: The number of bits stored in a given area on the disk's surface.
• Platter size: Commonly 2.5 inches for laptops and 3.5 inches for desktops.
• Access time: The time taken to read or write data, consisting of seek time (moving the actuator arm
to the correct track) and rotational latency (waiting for the desired sector to rotate under the
read/write head).
• Data transfer rate: The speed at which data is read from or written to the disk, typically measured
in megabytes per second (MBps).
• Seek time: The time it takes for the read/write head to move to the correct track, usually measured in
milliseconds (ms).
• Rotational latency: The delay caused by the rotation of the disk, which is dependent on the RPM.
• Access time: The total time taken to retrieve data, including both seek time and rotational latency.
Some important differences:
1. Difference between Primary Memory and Secondary Memory
Primary memory, i.e. Random Access Secondary memory provides a feature of being non-
Memory(RAM) is volatile and gets completely volatile, which means it can hold on to its data with
erased when a computer is shut down. or without electrical power supply.
Volatile memory is the type of memory in which Non-volatile memory is the type of memory in
data is lost as it is powered-off. which data remains stored even if it is powered-off.
Contents of Volatile memory are stored Contents of Non-volatile memory are stored
temporarily. permanently.
In volatile memory, data can be easily transferred In non-volatile memory, data can not be easily
in comparison to non-volatile memory. transferred in comparison to volatile memory.
In Volatile memory, process can read and write. In Non-volatile memory, process can only read.
Volatile memory generally has less storage Non-volatile memory generally has more storage
capacity. capacity than volatile memory.
In volatile memory, the program’s data are stored In non-volatile memory, any kind of data which has
which are currently in process by the CPU. to be saved permanently are stored.
Volatile memory is more costly per unit size. Non-volatile memory is less costly per unit size.
Volatile memory has a huge impact on the Non-volatile memory has a huge impact on a
system’s performance. system’s storage capacity.
In volatile memory, processor has direct access to In non-volatile memory, processor has no direct
data. access to data.
Volatile memory chips are generally kept on the Non-volatile memory chips are embedded on the
memory slot. motherboard.
Volatile Memory Non-Volatile Memory
Advantages- Advantages-
Disadvantages-
Disadvantages-
• Expensive
• Slow speed
• Limited storage space
• Can only read data
• Stores data temporarily
• Solid State: Refers to solid-state storage like SSDs and USB memory sticks.
• Virtual: A section of a storage drive used as temporary RAM to extend the capacity of actual
physical RAM.
===================
Few important concepts to go through:
Internal Memory:
• RAM: Random Access Memory
External Memory:
• Optical: Refers to optical storage devices such as CDs, DVDs, etc.
• Solid State: Refers to solid-state storage like SSDs and USB memory sticks.
• Virtual: A section of a storage drive used as temporary RAM to extend the capacity of actual
physical RAM.
• Sequential Access: A type of data access where data is read or written in a specific sequence (e.g.,
tape drives).
==
What is the main purpose of semiconductors?
A semiconductor is a substance often used in electrical circuits and components that partially conducts
electricity, allowing electrons to flow throughout the circuit when a certain voltage is applied
====
ARM(Advanced RISC Machines) uses Reduced Instruction Set Computing (RISC), while x86 uses
Complex Instruction Set Computing (CISC). RISC has far fewer instructions than CISC, and each basic
instruction is executed in a single clock cycle. CISC's instructions can be complex and perform multiple
tasks in a single instruction.
The x86 processors are CISC-based, while the ARM64 processors are RISC based. The terms RISC
(Reduced Instruction Set Computing architecture) and CISC (Complex Instruction Set Computing
architecture) look very straightforward, but when we dig deep, it shows how different and complex these are
at that micro level.
==============
Full forms:
1. ROM: Read-Only Memory
Characteristics of DRAM
1. It requires continuously refreshed to retain the data.
2. It is slower than SRAM
3. It holds a large amount of data
4. It is the combination of capacitor and transistor
5. It is less expensive as compared to SRAM
6. Less power consumption
SRAM: SRMA (Static Random-Access Memory) is a type of RAM used to store static data in the memory.
It means to store data in SRAM remains active as long as the computer system has a power supply.
However, data is lost in SRAM when power failures have occurred.
Characteristics of Static Ram
1. It does not require to refresh.
2. It is faster than DRAM
3. It is expensive.
4. High power consumption
5. Longer life
6. Large size
7. Uses as a cache memory
SRAM Vs. DRAM
SRAM DRAM
It is a Static Random-Access Memory. It is a Dynamic Random Access Memory.
The access time of SRAM is slow. The access time of DRAM is high.
It uses flip-flops to store each bit of information. It uses a capacitor to store each bit of information.
It does not require periodic refreshing to preserve the It requires periodically refreshing to preserve the
information. information.
It uses in cache memory. It is used in the main memory.
The cost of SRAM is expensive. The cost of DRAM is less expensive.
It has a complex structure. Its structure is simple.
It requires low power consumption. It requires more power consumption.
Advantages of RAM
o It is a faster type of memory in a computer.
o It requires less power to operate.
o Program loads much faster
o More RAM increases the performance of a system and can multitask.
o Perform read and write operations.
o The processor can read information faster than a hard disc, floppy, USB, etc.
Disadvantages of RAM
o Less RAM reduces the speed and performance of a computer.
o Due to volatile, it requires electricity to preserve the data.
o It is expensive than ROM
o It is unreliable as compared to ROM
o The Size of RAM is limited.
Read-Only Memory (ROM)
ROM is a memory device or storage medium that is used to permanently store information inside a chip. It is
a read-only memory that can only read stored information, data or programs, but we cannot write or modify
anything. A ROM contains some important instructions or program data that are required to start or boot a
computer. It is a non-volatile memory; it means that the stored information cannot be lost even when the
power is turned off or the system is shut down.
Types of ROM
There are five types of Read Only Memory:
1. MROM (Masked Read Only Memory):
MROM is the oldest type of read-only memory whose program or data is pre-configured by the
integrated circuit manufacture at the time of manufacturing. Therefore, a program or instruction
stored within the MROM chip cannot be changed by the user.
2. PROM (Programmable Read Only Memory):
It is a type of digital read-only memory, in which the user can write any type of information or
program only once. It means it is the empty PROM chip in which the user can write the desired
content or program only once using the special PROM programmer or PROM burner device; after
that, the data or instruction cannot be changed or erased.
3. EPROM (Erasable and Programmable Read Only Memory):
It is the type of read only memory in which stored data can be erased and re-programmed only once
in the EPROM memory. It is a non-volatile memory chip that holds data when there is no power
supply and can also store data for a minimum of 10 to 20 years. In EPROM, if we want to erase any
stored data and re-programmed it, first, we need to pass the ultraviolet light for 40 minutes to erase
the data; after that, the data is re-created in EPROM.
4. EEPROM (Electrically Erasable and Programmable Read Only Memory):
The EEROM is an electrically erasable and programmable read only memory used to erase stored
data using a high voltage electrical charge and re-programmed it. It is also a non-volatile memory
whose data cannot be erased or lost; even the power is turned off. In EEPROM, the stored data can
be erased and reprogrammed up to 10 thousand times, and the data erase one byte at a time.
5. Flash ROM:
Flash memory is a non-volatile storage memory chip that can be written or programmed in small
units called Block or Sector. Flash Memory is an EEPROM form of computer memory, and the
contents or data cannot be lost when the power source is turned off. It is also used to transfer data
between the computer and digital devices.
Advantages of ROM
1. It is a non-volatile memory in which stored information can be lost even power is turned off.
2. It is static, so it does not require refreshing the content every time.
3. Data can be stored permanently.
4. It is easy to test and store large data as compared to RAM.
5. These cannot be changed accidently
6. It is cheaper than RAM.
7. It is simple and reliable as compared to RAM.
8. It helps to start the computer and loads the OS.
Disadvantages of ROM
1. Store data cannot be updated or modify except to read the existing data.
2. It is a slower memory than RAM to access the stored data.
3. It takes around 40 minutes to destroy the existing data using the high charge of ultraviolet light.
RAM Vs. ROM
RAM ROM
It is a Random-Access Memory. It is a Read Only Memory.
Read and write operations can be performed. Only Read operation can be performed.
Data can be lost in volatile memory when the Data cannot be lost in non-volatile memory when
power supply is turned off. the power supply is turned off.
It is a faster and expensive memory. It is a slower and less expensive memory.
Storage data requires to be refreshed in RAM. Storage data does not need to be refreshed in
ROM.
The size of the chip is bigger than the ROM The size of the chip is smaller than the RAM chip
chip to store the data. to store the same amount of data.
Types of RAM: DRAM and SRAM Types of ROM: MROM, PROM, EPROM,
EEPROM
Secondary Memory
Secondary memory is a permanent storage space to hold a large amount of data. Secondary memory is also
known as external memory that representing the various storage media (hard drives, USB, CDs, flash drives
and DVDs) on which the computer data and program can be saved on a long term basis. However, it is
cheaper and slower than the main memory. Unlike primary memory, secondary memory cannot be accessed
directly by the CPU. Instead of that, secondary memory data is first loaded into the RAM (Random Access
Memory) and then sent to the processor to read and update the data. Secondary memory devices also include
magnetic disks like hard disk and floppy disks, an optical disk such as CDs and CDROMs, and magnetic
tapes.
Features of Secondary Memory
o Its speed is slower than the primary/ main memory.
o Store data cannot be lost due to non-volatile nature.
o It can store large collections of different types, such as audio, video, pictures, text, software, etc.
o All the stored data in a secondary memory cannot be lost because it is a permanent storage area; even
the power is turned off.
o It has various optical and magnetic memories to store data.
Types of Secondary Memory
The following are the types of secondary memory devices:
Hard Disk
A hard disk is a computer's permanent storage device. It is a non-volatile disk that permanently stores data,
programs, and files, and cannot lose store data when the computer's power source is switched off. Typically,
it is located internally on computer's motherboard that stores and retrieves data using one or more rigid fast
rotating disk platters inside an air-sealed casing. It is a large storage device, found on every computer or
laptop for permanently storing installed software, music, text documentation, videos, operating system, and
data until the user did not delete.
Floppy Disk
A floppy disk is a secondary storage system that consisting of thin, flexible magnetic coating disks for
holding electronic data such as computer files. It is also known as Floppy Diskette that comes in three sizes
like 8 inches, 5.5 inches and 3.5 inches. The stored data of a floppy disk can be accessed through the floppy
disk drive. Furthermore, it is the only way through a new program installed on a computer or backup of the
information. However, it is the oldest type of portable storage device, which can store data up to 1.44 MB.
Since most programs were larger, that required multiple floppy diskettes to store large amounts of data.
Therefore, it is not used due to very low memory storage.
CD (Compact Disc)
A CD is an optical disk storage device, stands for Compact Disc. It is a storage device used to store various
data types like audio, videos, files, OS, Back-Up file, and any other information useful to a computer. The
CD has a width of 1.2 mm and 12 cm in height, which can store approximately 783 MB of data size. It uses
laser light to read and write data from the CDs.
Types of CDs
1. CD-ROM (Compact Disc Read Only Memory): It is mainly used for bulk size mass like audio CDs,
software and computer games at the time of manufacture. Users can only read data, text, music,
videos from the disc, but they cannot modify or burnt it.
2. CD-R (Compact Disc Recordable): The type of Compact Disc used to write once by the user; after
that, it cannot be modified or erased.
3. CD-RW (Compact Disc Rewritable): It is a rewritable CD disc, often used to write or delete the
stored data.
DVD Drive/Disc
DVD is an optical disc storage device, stands for Digital Video Display or Digital Versatile Disc. It has the
same size as a CD but can store a larger amount of data than a compact disc. It was developed in 1995 by
Sony, Panasonic, Toshiba and Philips four electronics companies. DVD drives are divided into three types,
such as DVD ROM (Read Only Memory), DVD R (Recordable) and DVD RW (Rewritable or Erasable). It
can store multiple data formats like audio, videos, images, software, operating system, etc. The storing
capacity of data in DVD is 4.7 GB to 17 GB.
1. L1 Cache: The L1 cache is also known as the onboard, internal, or primary cache. It is built with the
help of the CPU. Its speed is very high, and the size of the L1 cache varies from 8 KB to 128 KB.
2. L2 Cache: It is also known as external or secondary cache, which requires fast access time to store
temporary data. It is built into a separate chip in a motherboard, not built into the CPU like the L1
level. The size of the L2 cache may be 128 KB to 1 MB.
3. L3 Cache: L3 cache levels are generally used with high performance and capacity of the computer. It
is built into a motherboard. Its speed is very slow, and the maximum size up to 8 MB.
Advantages of Cache Memory
1. Cache memory is the faster memory as compared to the main memory.
2. It stores all data and instructions that are repeatedly used by the CPU for improving the performance
of a computer.
3. The access time of data is less than the main memory.
Disadvantage of Cache Memory
1. It is very costly as compared to the Main memory and the Secondary memory.
2. It has limited storage capacity.
Register Memory
The register memory is a temporary storage area for storing and transferring the data and the instructions to
a computer. It is the smallest and fastest memory of a computer. It is a part of computer memory located in
the CPU as the form of registers. The register memory is 16, 32 and 64 bits in size. It temporarily stores data
instructions and the address of the memory that is repeatedly used to provide faster response to the CPU.