Chapter 02 m
-
Upload
muslim-guy -
Category
Documents
-
view
220 -
download
0
Transcript of Chapter 02 m
-
8/19/2019 Chapter 02 m
1/45
Today and Tomorrow 12th Edition
Understanding Computers
Chapter 2
The System Unit:
Processing and Memory
-
8/19/2019 Chapter 02 m
2/45
Chapter 2 Understanding Computers, 12th Edition 2
Data and Program Representation• In order to be understood by a computer, data and
programs need to be represented appropriatey• Coding systems! Used to represent numeric, te"t#
based, and mutimedia data, as we as to representprograms
• Digita computers! Can ony understand two states, o$$and on %& and 1'
• Digita data representation! The process o$representing data in digita $orm so it can be used by acomputer
-
8/19/2019 Chapter 02 m
3/45
Chapter 2 Understanding Computers, 12th Edition (
Digita Data Representation• )it! The smaest unit o$ data
that a binary computer canrecogni*e %a singe 1 or &'
• )yte + bits
• )yte terminoogy used to
e"press the si*e o$documents and other $ies,programs, etc-
• Pre$i"es are o$ten used toe"press arger .uantities o$bytes! /iobyte %0)',megabyte %)', gigabyte%)', etc-
-
8/19/2019 Chapter 02 m
4/45
Chapter 2 Understanding Computers, 12th Edition 3
The )inary 4umbering 5ystem• 4umbering system! 6 way o$ representing numbers
• Decima numbering system
7 Uses 1& symbos %'
• )inary numbering system
7 Uses ony two symbos %1 and &' to represent apossibe numbers
• In both systems, the position o$ the digits determinesthe power to which the base number %such as 1& or 2'is raised
-
8/19/2019 Chapter 02 m
5/45
Chapter 2 Understanding Computers, 12th Edition 9
The )inary 4umbering 5ystem
-
8/19/2019 Chapter 02 m
6/45
Chapter 2 Understanding Computers, 12th Edition :
Coding 5ystems $or Te"t#)ased Data
• 65CII and E)CDIC
7 65CII %6merican 5tandard Code $or In$ormationInterchange'! coding system traditionay used withPCs
7 E)CDIC %E"tended )inary#Coded Decima
Interchange Code'! de;eoped by I), primariy $ormain$rame use
• Unicode! newer code %(2 bits per character iscommon'< uni;ersa coding standard designed to
represent te"t#based data written in any anguage
-
8/19/2019 Chapter 02 m
7/45Chapter 2 Understanding Computers, 12th Edition =
Coding 5ystems $or Te"t#)ased Data
-
8/19/2019 Chapter 02 m
8/45Chapter 2 Understanding Computers, 12th Edition
Coding 5ystems $or >ther
Types o$ Data• 6udio data! ust be in digita $orm in order to be
stored on or processed by a PC 7 >$ten compressed when sent o;er the Internet
• P( $ies
• ?ideo data! Dispayed using a coection o$ $rames,each $rame containing a singe graphica image
7 6mount o$ data can be substantia, but can becompressed
• PE#2 $ies
-
8/19/2019 Chapter 02 m
9/45Chapter 2 Understanding Computers, 12th Edition 8
Representing Programs! achine
@anguage• achine anguage! )inary#based anguage $or
representing computer programs the computer cane"ecute directy
7 Eary programs were written in machine anguage-
7 TodayAs programs sti need to be transated into
machine anguage in order to be understood by thecomputer
• ost program are written in other programminganguages
7 @anguage transators are used to transate theprograms into machine anguage
-
8/19/2019 Chapter 02 m
10/45Chapter 2 Understanding Computers, 12th Edition 1&
Inside the 5ystem Unit
• 5ystem unit! The main case o$ a computer
7 Bouses the processing hardware $or a computer
7 6so contains memory, the power suppy, cooing$ans, and inter$aces to connect periphera de;ices
7 Bouses the dri;e bays in which storage de;ices%hard dri;es, D?D dri;es, etc-' are ocated
7 ith a des/top PC, usuay oo/s i/e a rectanguarbo"
-
8/19/2019 Chapter 02 m
11/45Chapter 2 Understanding Computers, 12th Edition 11
Inside the 5ystem Unit
-
8/19/2019 Chapter 02 m
12/45Chapter 2 Understanding Computers, 12th Edition 12
The otherboard• Computer chip! 6 ;ery sma pieces o$ siicon or other
semi#conducting materia onto which integratedcircuits are embedded
• Circuit board! 6 thin board containing computer chipsand other eectronic components
• otherboard or system board! The main circuit boardinside the system unit
7 6 computer components must connect to themotherboard
7 E"terna de;ices %monitors, /eyboards, mice,
printers' typicay connect by pugging into a porte"posed through the e"terior o$ the system unit
-
8/19/2019 Chapter 02 m
13/45Chapter 2 Understanding Computers, 12th Edition 1(
The CPU
• Centra processing unit %CPU'! circuitry and
components pac/aged together and attached to themotherboard
7 Does the ;ast maority o$ processing $or acomputer
7 6so caed a processor< caed a microprocessorwhen ta/ing about PCs
• Dua#core CPU! Contain the processing components%cores' o$ two separate processors on a singe CPU
• uad#core CPU! Contains 3 cores• Typicay designed $or des/top PCs, portabe PCs, or
ser;ers
• >$ten made by Inte or 6D
-
8/19/2019 Chapter 02 m
14/45Chapter 2 Understanding Computers, 12th Edition 13
The CPU
-
8/19/2019 Chapter 02 m
15/45Chapter 2 Understanding Computers, 12th Edition 19
The CPU
-
8/19/2019 Chapter 02 m
16/45Chapter 2 Understanding Computers, 12th Edition 1:
Processing 5peed
• CPU coc/ speed! >ne measurement o$ processing
speed 7 easured in megahert* %B*' or gigahert* %B*'
7 Bigher CPU coc/ speed + more instructionsprocessed per second
• 6ternate measure o$ processing speed is the numbero$ instructions a CPU can process per second
7 ega$ops, giga$ops, tera$ops
• >ther $actors %CPU architecture, memory, bus speed,
etc-' aso a$$ect the o;era processing speed o$ acomputer
• )enchmar/ tests! Can be used to e;auate o;eraprocessing speed
-
8/19/2019 Chapter 02 m
17/45Chapter 2 Understanding Computers, 12th Edition 1=
ord 5i*e and Cache emory• ord si*e! The amount o$ data that a CPU can
manipuate at one time 7 Typicay (2 or :3 bits
• Cache memory! 5pecia group o$ ;ery $ast memorychips ocated on or cose to the CPU
7 @e;e 1 is $astest, then @e;e 2, then @e;e (
7 ore cache memory typicay means $asterprocessing
7 Usuay interna cache today
)us idth )us 5peed and
-
8/19/2019 Chapter 02 m
18/45Chapter 2 Understanding Computers, 12th Edition 1
)us idth, )us 5peed, and
)andwidth• )us! 6n eectronic path o;er
which data can tra;e• )us width! The number o$
wires in the bus o;er whichdata can tra;e
• )us width and speeddetermine the throughput %orbandwidth' o$ the bus
-
8/19/2019 Chapter 02 m
19/45Chapter 2 Understanding Computers, 12th Edition 18
emory
• R6 %random access memory'! Temporary memory
that the computer uses 7 Consists o$ chips connected to a memory modue
which is connected to the motherboard
7 5I, DI, RI
7 Bods data and program instructions whie they areneeded-
7 6de.uate R6 is needed to run programs
7 ?oatie! Contents o$ R6 is ost when thecomputer is shut o$$
7 5ome $orms o$ non;oatie R6 are underde;eopment
-
8/19/2019 Chapter 02 m
20/45Chapter 2 Understanding Computers, 12th Edition 2&
emory
-
8/19/2019 Chapter 02 m
21/45Chapter 2 Understanding Computers, 12th Edition 21
emory
• Registers! Bigh#speed memory buit into the CPU<
used by the CPU• R> %read#ony memory'! Read#ony chips ocated on
the motherboard into which data or programs ha;ebeen permanenty stored
7 Retrie;ed by the computer when needed
7 )eing repaced with $ash memory
• Fash memory! Type o$ non;oatie memory that canbe erased and reprogrammed
7 5ome $ash memory chips are used by the PC
7 Fash memory chips are aso used in $ash memorystorage media %stic/s, cards, and dri;es'
Fans Beat 5in/s and
-
8/19/2019 Chapter 02 m
22/45Chapter 2 Understanding Computers, 12th Edition 22
Fans, Beat 5in/s, and
>ther Cooing Components• Beat! 6 continuing probem $or CPU and computer
manu$acturers• Fans! Used on most PCs
• Beat sin/s! 5ma components typicay made out o$auminum with $ins that hep to dissipate heat
• ater cooing systems! Coo the PC with i.uid#$iedtubes
• >ther cooing methods %such as ion pump cooingsystems' are under de;eopment
Fans Beat 5in/s and
-
8/19/2019 Chapter 02 m
23/45
Chapter 2 Understanding Computers, 12th Edition 2(
Fans, Beat 5in/s, and
>ther Cooing Components
E"pansion 5ots E"pansion Cards
-
8/19/2019 Chapter 02 m
24/45
Chapter 2 Understanding Computers, 12th Edition 23
E"pansion 5ots, E"pansion Cards,and E"pressCards
• E"pansion card! 6 circuit board used to add additiona
$unctionaity or to attach a periphera de;ice• E"pansion sot! 6 ocation on the motherboard into
which e"pansion cards are inserted
• E"pressCard modues! Designed $ornoteboo/ computer e"pansion
-
8/19/2019 Chapter 02 m
25/45
Chapter 2 Understanding Computers, 12th Edition 29
)uses
• )us! 6n eectronic path within a computer o;er which
data tra;es 7 5ystem bus! o;es data bac/ and $orth between
the CPU and memory
7 E"pansion buses! Connect the CPU to periphera%typicay input and output' de;ices
• PCI and PCI E"press %PCIe' bus
• 6P bus
• ByperTransport bus
• Uni;ersa 5eria )us %U5)'
• FireireGIEEE 1(83 bus
-
8/19/2019 Chapter 02 m
26/45
Chapter 2 Understanding Computers, 12th Edition 2:
)uses
-
8/19/2019 Chapter 02 m
27/45
Chapter 2 Understanding Computers, 12th Edition 2=
Ports and Connectors
• Port! 6 connector on the e"terior o$ a PCAs system unit
to which a de;ice may be attached
7 5eria
7 Parae
7 4etwor/
7 0eyboardGouse
7 onitor %?6,
D?I, BDI' 7 odemGPhone
7 U5)
7 Fireire
7 5C5I
7 IDI
7 IrD6
7 ame 7 e56T6
-
8/19/2019 Chapter 02 m
28/45
Chapter 2 Understanding Computers, 12th Edition 2
Ports and Connectors
-
8/19/2019 Chapter 02 m
29/45
Chapter 2 Understanding Computers, 12th Edition 28
Ports and Connectors
• any des/top PCs come
with a ;ariety o$ ports onthe $ront o$ the systemunit $or easy access
• 6 wired or wireess hubcan connect manyde;ices to a singe U5)or Fireire port
-
8/19/2019 Chapter 02 m
30/45
Chapter 2 Understanding Computers, 12th Edition (&
Ports and Connectors
• 4oteboo/ computers
ha;e ports simiar todes/top PCs, but o$tennot as many
• Bandhed computers andmobie de;ices typicayha;e ess ports
7 6n 5D sot iscommon $or bothmemory cards
and to connectperiphera de;ices
-
8/19/2019 Chapter 02 m
31/45
Chapter 2 Understanding Computers, 12th Edition (1
Bow the CPU or/s
• CPU! Consists o$ a ;ariety o$ circuitry and
components pac/aged together 7 Transistor! 0ey eement o$ the microprocessor
• ade o$ semi#conductor materia that acts i/e aswitch controing the $ow o$ eectrons inside a
chip• TodayAs CPUs contain hundreds o$ miions o$
transistors< the number doubes about e;ery 1months %ooreAs @aw'
-
8/19/2019 Chapter 02 m
32/45
Chapter 2 Understanding Computers, 12th Edition (2
Typica CPU Components
• 6rithmeticG@ogic Unit %6@U'! Per$orms integer
arithmetic and ogica operations• Foating Point Unit %FPU'! Per$orms decima arithmetic
• Contro unit! Coordinates and contros acti;ities
• Pre$etch unit! Tries to $etch data and instructions
be$ore they are needed
• Decode unit! Transates instructions so they are
understood by the contro unit, 6@U, and FPU
• Interna cache and registers! 5tore data and
instructions needed by the CPU
• )us inter$ace unit! here data and instructions $ow in
and out o$ the CPU
-
8/19/2019 Chapter 02 m
33/45
Chapter 2 Understanding Computers, 12th Edition ((
Typica CPU Components
The 5ystem Coc/ and the achine
-
8/19/2019 Chapter 02 m
34/45
Chapter 2 Understanding Computers, 12th Edition (3
The 5ystem Coc/ and the achineCyce
• 5ystem coc/! Timing mechanism within the computer
system that synchroni*es the computerAs operations 7 Each signa is a cyce
7 4umber o$ cyces per second + hert* %B*'
7 any PC system coc/s run at 2&& B*
7 Computers can run at a mutipe or $raction o$ thesystem coc/
• For instance, with a CPU coc/ speed o$ 2 B*,the CPU coc/ Htic/s 1& times during each
system coc/ tic/ 7 During each CPU coc/ tic/, one or more pieces o$
microcode are processed
The 5ystem Coc/ and the achine
-
8/19/2019 Chapter 02 m
35/45
Chapter 2 Understanding Computers, 12th Edition (9
The 5ystem Coc/ and the achineCyce
• achine cyce! The series o$ operations in;o;ed in
the e"ecution o$ a singe machine e;e instruction 7 Fetch! The program instruction is $etched
7 Decode! The instructions are decoded so thecontro unit, 6@U, and FPU can understand them
7 E"ecute! The instructions are carried out
7 5tore! The origina data or the resut $rom the 6@Uor FPU e"ecution is stored either in the CPUAsregisters or in memory, depending on the
instruction
The 5ystem Coc/ and the achine
-
8/19/2019 Chapter 02 m
36/45
Chapter 2 Understanding Computers, 12th Edition (:
The 5ystem Coc/ and the achineCyce
The 5ystem Coc/ and the achine
-
8/19/2019 Chapter 02 m
37/45
Chapter 2 Understanding Computers, 12th Edition (=
The 5ystem Coc/ and the achineCyce
a/ing Computers Faster and )etter
-
8/19/2019 Chapter 02 m
38/45
Chapter 2 Understanding Computers, 12th Edition (
a/ing Computers Faster and )etter4ow and in the Future
• Impro;ing per$ormance today
7 6dd more memory 7 Per$orm system maintenance
• Uninsta programs propery
• Consider pacing arge $ies on e"terna storage
de;ices• Deete temporary $ies
• 6rrange $ies e$$icienty
• 5can $or ;iruses and spyware
• Empty the Recyce )in 7 )uy a arger or second hard dri;e
7 Upgrade your Internet connection
7 Upgrade your ;ideo graphics card
a/ing Computers Faster and )etter
-
8/19/2019 Chapter 02 m
39/45
Chapter 2 Understanding Computers, 12th Edition (8
a/ing Computers Faster and )etter4ow and in the Future
• 5trategies $or $aster and better computers
7 Impro;ed architecture! 5maer components, $asterbus speeds, mutipe CPU cores, etc-
7 Impro;ed materias! 4ew bac/ing materias, $e"ibecircuits, etc-
7 Pipeining! 6ows mutipe
7 instructions to be processed
7 at one time
7 utiprocessing and parae
7processing! Use mutipe 7 processors to speed up processing
-
8/19/2019 Chapter 02 m
40/45
Chapter 2 Understanding Computers, 12th Edition 3&
Pipeining
P P i
-
8/19/2019 Chapter 02 m
41/45
Chapter 2 Understanding Computers, 12th Edition 31
Parae Processing
F t T d
-
8/19/2019 Chapter 02 m
42/45
Chapter 2 Understanding Computers, 12th Edition 32
Future Trends• 4anotechnoogy! The science o$ creating tiny
computers and components ess than 1&&nanometers in si*e
• Carbon nanotubes used in many products today
• 4anopartices and nanocrystas
• In the $uture, components may be buit bywor/ing at the indi;idua atomic and moecuare;es
F t T d
-
8/19/2019 Chapter 02 m
43/45
Chapter 2 Understanding Computers, 12th Edition 3(
Future Trends
• uantum computing! 6ppies the
principes o$ .uantum physics and.uantum mechanics to computers
7 Utii*es atoms or nucei wor/ingtogether as .uantum bits%.ubits'
7 ubits $unction simutaneousyas the computerAs processorand memory and can representmore than two states
7 E"pected to be used $orspeciai*ed appications, suchas encryption and codebrea/ing
F t T d
-
8/19/2019 Chapter 02 m
44/45
Chapter 2 Understanding Computers, 12th Edition 33
Future Trends
• >ptica computer! Uses ight, such as $rom aser
beams or in$rared beams, to per$orm digitacomputations
7 >pto#eectronic computers use both optica andeectronic components
• 5iicon photonics! The process o$ ma/ing opticade;ices using siicon manu$acturing techni.ues
7 Bybrid siicon aser
• Terascae computing! The abiity to process one triion
$oating#point operations per second 7 E"pected to be needed $or $uture appications
• (D chips! Contain transistors that are ayered to cutdown on the sur$ace area re.uired
5
-
8/19/2019 Chapter 02 m
45/45
5ummary
• Data and Program Representation
• Inside the 5ystem Unit
• Bow the CPU or/s
• a/ing Computers Faster and )etter 4ow and Inthe Future