Chapter-4 and 5
Chapter-4 and 5
• RAM is Random Access Memory which loses its contents when the
computer is switched off (it is volatile).
• This memory can be written to, plus instructions and data can be loaded
into it.
• The kind of memory used for holding programs and data being executed
is called RAM.
• RAM differs from ROM in that it can be both read and written; it is
considered volatile storage because unlike ROM, the components of
RAM are lost when the power is turned off.
• Common RAM sizes are such as 2GB, 4GB, 8GB, 16GB & more (in
multiples of 2)
4.2 Physical memory packaging
• The Signal Inline Memory Module or SIMM appears with a 30 pin and 72
pin variants.
• The gold or tin pins on the lower edge of the front and back of a SIMM
are connected, providing a single line of communication paths between
the module and system. But the pins in DIMM are not connected,
providing two line of connection paths between the module and the
system one in the front and on in the back.
SIMM vs DIMM
• The main difference between SIMM and DIMM is that SIMM has pins
installed on their sides, while in DIMM, the pins are independent. SIMM
provides a maximum of 32-bit of channel for the data transfer while DIMM
allows 64-bit for the data transfer through them. The power consumption
of them is also different SIMM uses 5 volts while DIMM uses 3.3 volts.
4.3. Types of Memory
Cache Memory
Cache Memory
• It acts as a buffer between the CPU and main memory. It is used to hold
those parts of data and program which are most frequently used by CPU.
The parts of data and programs are transferred from disk to cache
memory by operating system, from where CPU can access them.
Primary Memory (Main Memory)
• It has limited capacity and data is lost when power is switched off.
• SDRAM runs in sync with the system clock. Which is faster than DRAM
• In RAM we have the term 64 or 32 bit data path that refers to the number
of bits of data that are transferred in 1 clock cycle.
• The more bits that are transferred in one clock cycle, the faster the
computer will be.
• 8 byte wide bus (SDIMM), So the total bandwidth is 100 * 8 = 800 MB/s
SDR (Single Data Rate) vs DDR (Double Data Rate)
• As technology increased and processor and bus speeds have gotten
faster a new RAM technology was developed to keep up with the faster
speeds of computer.
• SDR uses only the rising edge of the clock signal to transfer data.
• DDR uses both the rising and falling edge which gives DDR the ability to
send twice the amount of data.
DDR Labels
• DDR may include both the clock speed and the total bandwidth in its
name.
Can I mix different types, speeds & sizes?
• You can not mix different types of memory. There are three common
types of memory used, the oldest being DDR (sometimes referred to as
DDR1), then DDR2, DDR3 and the most recent being DDR4.
• When the programs and data files (known as the software) are not in
RAM, they are stored on backing store such as tapes or discs. The tape
or disc drives and any input and output devices connected to the CPU
are known collectively as peripherals.
• Rom is typically a read only memory that is most commonly used to store
system – level programs that we want to have available to the PC at all
times.
ROM Types
• Such internal caches are often called Level 1 (L1) caches. Most modern
PCs also come with external cache memory, which is located on the
motherboard, called Level 2 (L2) caches.
• These caches sit between the CPU and the DRAM. Like L1 caches, L2
caches are composed of SRAM but they are much larger.
• Disk caching works under the same principle as memory caching, but
instead of using high-speed SRAM, a disk cache uses conventional main
memory. The most recently accessed data from the disk (as well as
adjacent sectors) is stored in a memory buffer.
• When a program needs to access data from the disk, it first checks the
disk cache to see if the data is there. Disk caching can dramatically
improve the performance of applications, because accessing a byte of
data in RAM can be thousands of times faster than accessing a byte on a
hard disk.
• When data is found in the cache, it is called a cache hit, and the
effectiveness of a cache is judged by its hit rate. Many cache systems
use a technique known as smart caching, in which the system can
recognize certain types of frequently used data.
Advantage and Disadvantage of cache memory
Advantage Disadvantage
Cache memory is faster than main Cache memory has limited capacity
memory.
It consumes less access time as It is very expensive.
compared to main memory.
It stores the program that can be
executed within a short period of time.
It stores data for temporary use.
Secondary Memory
• CPU directly does not access these memories instead they are accessed
via input-output routines.
• For example: Hard disk, flash drive, CD-ROM, DVD etc. We will see them
in detail in chapter six.
4.5 Identify memory problems and upgrading
• Perform a virus scan. Viruses can cause symptoms that mimic those of
faulty memory.
• Verify that your memory modules are fully seated. Check your
documentation for your computer system, or contact your computer
manufacturer if you are unsure how to do this.
• Try swapping memory module slots - or - try booting with only one
memory module if you have two modules installed.
• Open the computer case and locate the SIMM or DIMM slots on the
system board.
• Determine how many RAM modules you need to fill a bank. Remember
you should fill an entire bank memory errors may occur.
• Excessive heat can cause RAM and many other computer parts to wear
out overtime.
• Your memory module may have some fault that did not become apparent
immediately or worsened over time.
• It is also possible that the memory module is not the problem at all
IBM BIOS
AMI BIOS
AWARD BIOS
Chapter 5
Power Supply Unit
38
Objective
• Recognize batteries
39
About power supply
40
Linea PSU
• The computer system has a centralized power supply unit that provides
electrical power to various internal components (CPU, expansion cards,
RAM, Chipsets, etc…) .
• In desktop and tower PCs, the power supply is the shiny metal box
located at the rear of the system unit.
43
5.1Power Supplies
• The desktop power supply produces four (or five) different levels of
efficiently regulated DC voltage.
• These are +5V, –5V, +12V and –12V. (The ATX design also provides a
+3.3V level to the system board.)
• The power-supply unit also provides the system’s ground (0V).
• The +3.3V level is used by the microprocessor.
• The +5V level is used by the IC devices on the system board and
adapter cards.
• The +12V levels are typically used to power the motors used in hard and
floppy disk drives and cooling fans.
45
5.1. Power Supplies
46
5.1Power Supplies
• The basic four voltage levels are available for use through the system
board’s expansion slot connectors.
• Several bundles of cable emerge from the power supply to provide power
to the components of the system unit and to its peripherals.
• The power supply delivers power to the system board, and its expansion
slots, through the system board power connectors.
47
5.1. Power Supplies
• On the back-end of the power supply is where you connect the power
cord to the computer. On the front end, which is not visible unless the
computer is opened is several dozen other cables that connect the power
supply to each of the devices and the computer motherboard.
48
5.1. Power Supplies
49
5.2 Components of PSU
52
AT Power Supply
• This is an older design in which the connector to the system board uses
two 6-pin (P8/P9) system board connections. It is important that the 2
connectors are plugged into the system board correctly and not switched.
• In the AT-compatible power supply, the cooling fan pulls air through the
case from the front and exhausts it out the rear of the power-supply unit.
Conversely, the ATX design pulls air in through the rear of the power
supply unit and blows it directly on the ATX system board.
53
• The P8/P9 connectors are normally keyed and numbered. However, their
construction and appearance are identical. The voltage levels associated
with each plug differ and severe damage could result to the computer by
reversing them.
• The power connector labeled P8 should be plugged into the circuit board
power connector labeled P1, whereas connector P9 should be plugged
into the P2 connector next to it. A good rule of thumb to remember when
attaching these two connectors to the system board is that the black
wires in each bundle should be next to each other in the middle.
• Note: Don’t Switch the P8/P9 Connectors! Although they look alike, the
voltage levels of each plug differ. Reversing them can cause severe
damage.
54
ATX Power Supply
Yellow: +12V
Blue: -12V
Red: +5V
White: -5V
Circuitry (ICs): +/- 5V
Motor: +/- 12V
Microprocessor: +3.3V
55
ATX Power Connector
• The P1 has a notched connector that allows you to insert it one way only-
you cannot install the P1 connector incorrectly.
56
• Power-supply units come in a variety of shapes and power ratings. The
shapes of the power supplies are determined by the type of case in which
they are designed to be used.
• Note: Be aware that power supply’s form factor and wattage ratings must
be taken into account when ordering a replacement power supply for a
system.
57
1.2 Power supplies cabling type
Modular: With the exception of connections for main power and disk drives,
modular PSUs have detachable power cables. You can save space by
removing cables that won’t be connected to any components, or attach
more cables when you add new components.
Non-Modular: Non-modular PSUs are “as is.” The cables are permanently
built into the power supply and cannot be moved. The benefit is they are
generally cheaper than most modular PSUs of the same quality.
Semi-Modular: Some cables are detachable and some aren’t. For some
brands you can buy separate cables to meet your size requirements.
Fully-Modular: All cables are detachable – even the main power cable.
58
1.3 Batteries
60
Select batteries
63
• NOTE: Always follow the instructions provided by the manufacturer when
charging a new battery. The laptop can be used during an initial charge,
but do not unplug the AC adapter. Ni-Cad and NiMH rechargeable
batteries should occasionally be discharged completely to remove the
charge memory. When the battery is completely discharged, it should
then be charged to maximum capacity.
64
1.4 Troubleshooting the power supply
Pull power supply out of the computer and replace it with the new one
65