Professional Documents
Culture Documents
Output
`
Input Processing
How the PC Works
• Software
– Operating system (Windows, MAC OS X, Linux)
– Applications (PowerPoint, Word, Outlook, Internet
Explorer)
• Hardware
– Pieces you can touch (mouse, monitor,
motherboard, etc.)
How the PC Works
Computer functions through four stages:
Input provides the computer with data
Keyboard and mouse
` `
– Newer High-Definition
Multimedia Interface (HDMI)
Sound Cards
• Sound cards
– Convert digital information into sound
– Convert sound from a microphone into digital data
– Mini-audio jacks for speakers and microphones
– DB-15 connector for a joystick or musical instrument
– Newer Sony/Phillips Digital Interface Format (S/PDIF)
Network Cards
• Networks: groups of PCs connected together
Also called a
microprocessor
Performs calculations
• Models
– Celeron
– Athlon
– Sempron
– Pentium
RAM
• Random access memory (RAM)
– Stores programs and data currently used by the
CPU
– Safety Alert
• High voltage capacitor holds power after
unplugged
Floppy Drive
• The floppy drive uses floppy diskettes to store data
– Connects to the computer via a ribbon cable
– CD
• Stores about 700 MB
• CD-ROM (read only)
• CD-R, CD-RW (allows writing to
CD)
– DVD
• Stores about 4 GB of data
• DVD-ROM, DVD+R, DVD-R,
DVD+RW, DVD-RW
Chapter 3.
Microprocessors
Overview
• In this Schapter, you will learn how to
– Identify the core components of a CPU
– Describe the relationship of CPUs and RAM
– Explain the varieties of modern CPUs
– Identify specialty CPUs
– Install and upgrade CPUs
Central Processing Unit (CPU)
Core Components
Concepts
• The CPU (Central Processing Unit) works as a
very powerful calculator
– He will gladly perform anything you want him to do, but he can’t see
or hear anything outside the box.
Is anyone out
there?
We need some
way to talk to the
guy inside the box
Talking to the Man
• Imagine 16 lights
– 8 on the inside and 8 on the outside
– When an inside light is on, the corresponding outside
light is on. We can switch these lights on and off.
– This communication system is like the external data bus
Talking to the Man
• In reality, a lot of little wires flash on or off
– Voltage is applied or not
– Represented not as on, on, off, off…
but as 1, 1, 0, 0…
1 1 0 0 0 1 1 1
External Data Bus
• The CPU communicates with the outside
world using the external data bus (EDB)
• The four general-purpose registers found in all CPUs are AX, BX, CX,
and DX
10000101 11001001
00110101 10100001
Codebook
• The man in the box needs one more tool: the
codebook or instruction set
– Called machine language
– One command is a line of code
– The complete set of commands for a processor is
its instruction set
Instruction Meaning
1000 0000 Store next line in AX
1001 0000 Store next line in BX
1011 0000 Add AX to BX & store in AX
1100 0000 Place AX on EDB
Codebook (Instruction Set)
Instruction Meaning
1000 0000 Store next line in AX
1001 0000 Store next line in BX
1011 0000 Add AX to BX & store in AX
1100 0000 Place AX on EDB
10000101 11001001
00110101 10100001
Chapter 4
Memory
Memory
• Memory is a device that holds binary data
• Memory was first stored on paper cards and then on magnetic
cards and magnetic tapes
• Problems
– Serial access
– Slow
• Random access memory (RAM) to the rescue!
RAM
• RAM is organized similar to a spreadsheet
• Volatile—zeroes out
when power lost
Memory Controller Chip
• The memory controller chip (MCC) is a device that
facilitates the flow of data from the RAM to the CPU
MCC
Address Bus
• The address bus enables
the CPU to control the MCC
100 10 1 4 2 1
6 4 3 0 1 1
600 + 4+
40 + 0+
3 1+
643 5 Decimal
Modern CPUs
CPU Overview
• Several specification are used to describe and
compare CPUs:
– Make (Intel, AMD)
– Model (Pentium, Athlon, etc.)
– Packages, or how it’s mounted (PGA, SEC, SEP)
– External speed (speed of crystal)
– Multiplier (applied to crystal)
– Cache (L1 and L2)
– Internal speed (speed when crystal multiplied)
– Pipelining
– Hyper-threading
• We’ll cover these in older and newer CPUs
Manufacturers
• Two main CPU makers
– Intel
– AMD
• CPUs might look similar, but they are not
interchangeable
Common CPU Packages
• Pin grid array (PGA)
– Most common
– Number of pins vary by processor
– Plugs into sockets that vary by processor
• Single edge cartridge (SEC)
– Single edge processor (SEP) is similar
– Processor mounted on board
– Board plugs into motherboard
• Zero insertion force (ZIF)
– Allows processor to be easily inserted
– Arm locks processor in place
Pentium CPU—The Early Years
Original clock
• Clock is multiplied and
CPU runs at quicker
speed
– CPU runs at much quicker
multiplied speed
• 66 MHz crystal
Clock with 2x multiplier
• Sent through a 2X multiplier
• Gives a 132 MHZ CPU Has twice as many cycles
for CPU to operate with
CPU Voltages
• Older CPUs needed 5 volts
– CPU voltage was reduced to 3.3 volts
• Later improvements reduced voltage even more
with no single standard
– Smaller size resulted in lower voltage and smaller
chips
– Voltage regulator module (VRM) is a small card that
enables a CPU to standardize voltage regulators
– CPU reports voltage requirements with CPUID
Older CPUs
• On-chip L2 cache
– On the same package, but not necessarily on the
same chip
Bus Types
• Frontside bus
– Address bus and external data bus are combined
together between the CPU, MCC, and RAM
• Backside bus
– Connection between the CPU and L2 cache
• Remember that L2 cache used to be external cache
but is now internal to the CPU housing
CPU
MCC RAM
Backside
bus L2 Cache
Frontside bus
Older CPUs
• Pentium II
– Faster than Pentium Pro
– Used SEC
• AMD K6
– Proprietary 3DNow!
– Requires a Super Socket 7
Older CPUs
• Pentium III
– Intel’s answer to 3DNow!
by AMD
• AMD Athlon
– SEC package used slot A
More Current CPUs
• Processing
– Measures thickness of wafers
– Some of today’s processors are 65 nanometers
• About as thick as 455 hydrogen atoms
• Or 1/3077th of the width of a human hair
Pentium Competitors
• AMD Athlon Thunderbird
– Double-pumped frontside bus doubled the data rate without increasing
the clock speed
– Returned to PGA with Socket A
• AMD Duron
– Generic name given to all lower-end Athlon processors
– AMD’s competitor to Intel’s Celeron for the low-end PC
• Hyperthreading
– Looks like two CPUs
to the operating system
More Current CPUs
Athlon XP Pentium 4
Codename Thorton/Barton Extreme Edition
Process 130 nm 130, 90 nm
Wattage 60–70 85–115
Ext. speed 133, 166, 200 MHz 200, 266 MHz
Int. speed 1.6–2.2 GHz 3.2–3.7 GHz
Multiplier 10x to 16x 14x to 17x
L1 128 KB 128 KB
L2 256, 512 KB 512 KB
L3 2 MB
Package PGA PGA
Socket Socket A Socket 478 or 775
Mobile Processors
• Mobile processors
– For laptops
– Use less power to overcome problems of heat and
power requirements
• Utilize throttling
– Previously called system management mode (SMM)
– Allows a CPU to slow down during low demand times
– Intel calls it SpeedStep
– AMD calls it PowerNow!
More Processors
• Intel Xeon processors
• Athlon 64
– First desktop 64-bit processor
– Backward-compatible with 32-bit programs
– Two main groups (130 nm and 90 nm)
– Pentium D
– Athlon Dual Cores
Dual-core CPUs
• Cooling
– Faster CPUs will probably need better cooling
• Performance
– Faster CPUs may not be the best answer to speeding
up your PC
• Many times you really need more RAM
The Right CPU
• Consult your motherboard manual
– You need a CPU that will fit
in the socket or slot on
your motherboard
• Buying a CPU
– Most stores will not accept
returns
– Retail-boxed CPUs are genuine and come
with a fan
– Lots of illegal CPUs on the market
CPU Installation Guidelines
• Don’t touch the pins
(ESD)
• Match the notch and
dot printed on the
corners of the CPU…
they must line up
– Incorrectly installing
your CPU may destroy
the CPU and/or
motherboard!
CPU Installation Guidelines
• Use a heat sink compound
1011 0101
1100 1010
1001 1111
1100 0111
1101 1101
0001 1101
1011 0110
1001 0001
Organizing DRAM
• DRAM is considered the standard
– Low cost, high speed, and able to store data in a relatively
small package
– Many varieties of DRAM
• 72-pin SIMMs
– Modern CPUs have 64-bit external data buses
– 72-pin SIMMs have a notch in the middle
– Each 72-pin SIMM is 32 bits wide (two required)
Banking
• Combining the widths of DRAM to match the
width of the external data bus is called banking
• PC Speed Rating =
Clock speed × 2 × 8
Dual-Channel Architecture
• Dual-channel architectures
use two sticks of RAM
together to increase
throughput
– Similar to RAMBUS
• PC Speed Rating =
Clock speed × 2 × 2 × 8
Double-Sided DIMMS
• Almost all sticks come as
single-sided or double- sided
Word
Disk drive
Browser
E-mail
System RAM Recommendations
• Task Manager
– Ctrl-Shift-Esc
Getting the Right RAM
• Identify capacity
– What can the motherboard handle (look at the manual)
• Phantom errors
– Random memory addresses
– Due to power issues, dust, heat
Check the RAM
• A halt before the RAM check could indicate improperly installed RAM
Testing RAM
• Hardware RAM testing devices can be used to
troubleshoot errors