08. Central Processing Unit (CPU)

akiladj 30,830 views 36 slides Sep 10, 2013
Slide 1
Slide 1 of 36
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36

About This Presentation

CPU - Central Processing Unit
-
Computer, Hardware, පරිගණක, දෘඩාංග, Information Technology, තොරතුරු තාක්ෂණය
:)


Slide Content

CPU
Central Processing Unit

Central Processing Unit
Microprocessor
The Chip
The Processor
2

CPUs
3

CPU
Thebrainofacomputersystemwhere
calculationsanddecisionsaremade
Themainpartofthecomputerthat
manages,stores,andusesdata
Asiliconchipwhichnormallycontains
millionsoftransistors
https://duckduckgo.com/?q=define+centralprocessingunit
https://www.google.com/search?q=CPU&tbs=dfn :1
4

Components of a CPU
Twomaincomponents
ArithmeticLogicUnit
ControlUnit
Othercomponents
Registers
Cache
…etc
5

Theunitthatperformsarithmeticandlogicoperations
suchasaddition,subtraction,shiftingoperationsand
logicinstructions(booleancomparisons,suchasAND,OR,
XOR,andNOToperations)
ALUsaredesignedtoperformintegercalculations.
Therefore,besidesaddingandsubtracting,ALUsoften
handlethemultiplications,sincetheresultisalsoan
integer
FPU(Floating-PointUnit)
●ALUstypicallydonotperformdivisionoperations,asthe
resultmaybeafraction,ora"floatingpoint"number.
Instead,divisionoperationsareusuallyhandledbytheFPU,
whichalsoperformsothernon-integercalculations
6
ALU (Arithmetic Logic Unit)

7
ALU (Arithmetic Logic Unit)

ThecontrolunitisbasicallycircuitryinsidetheCPU,
controllingtheoperationsinsidetheCPUand
"directingtraffic"inasense.Thefunctionsacontrol
unitperformscandependonthetypeofCPU,since
thevaryingdegreesofarchitecturebetweenallthe
differentCPUswilldeterminethefunctionsofthe
controlunit
Handlesallprocessorcontrolsignals.Itdirectsall
inputandoutputflow,fetchescodeforinstructions
frommicroprogramsanddirectsotherunitsand
modelsbyprovidingcontrolandtimingsignals
8
Control Unit (CU)

Registers
LocalstoragespaceonaCPUthatholdsdatathatisbeing
processed.Registersgenerallyoccupythetop-mostpositionin
thememoryhierarchy,providinghigh-speedandfastaccess
Generallymeasuredintermsofbitstodeterminetheamount
ofdatatheycanhold.Forexample,thetwomostfrequently
usedterms,32-bitprocessor’and64-bitprocessor,generally
refertothesizeoftheregisterontheprocessor
Processorregistersarenormallymadeofstaticordynamic
randomaccessmemory(RAM)cells.StaticRAMoffersfaster
accesstodatathandynamicRAM,whichisrelativelyslow
CategoriesofRegisters
●http://en.wikipedia.org/wiki/Processor_register#Categories_of_registers
9

Cache
CPUCacheisadatastoragesectionofaCPUorprocessor.Itspurpose
isto"cache"(or"keepinhand")thenextsetofinstructionsanddata
thatiscurrentlyneeded
SlowerthanRegisters,FasterthanMainMemory
Comesindifferentlevels.L1,L2,L3
L3normallyusedtofoundoutsidetheCPUusuallyinMotherboardof
HighEndmachines(Gaming,Serversetc.).CertainnewerCPUs
containon-dieL3cache
Speed(performance):L1>L2>L3
Size(capacity):L1<L2<L3
TypicalCoreICPUcontains
●L1cache 64kBpercore
●L2cache 256kBpercore
●L3cache 1MBto8MBshared
55 10

CPU Diagrams
11

CPU Vendors
Intel
AMD
(Advanced Micro Devices)
12

CPU Vendors
ListofIntelmicroprocessors
http://en.wikipedia.org/wiki/List_of_Intel_microprocessors
ListofAMDmicroprocessors
http://en.wikipedia.org/wiki/List_of_AMD_microprocessors
DifferentmanufacturersusedifferentCPUarchitectures
andtechnologies.ThereforesimilarCPUrelatedterms
suchasCachemaydifferentaswell…
13

Microarchitecture
Themicroworddefinition,dataflow,timing
constraints,andprecedenceconstraintsthat
characterizeagiven microprogrammed
computer
●http://en.wikipedia.org/wiki/Comparison_of_CPU_architectures
●http://en.wikipedia.org/wiki/Comparison_of_CPU_architectures#Microa
rchitectures
●http://en.wikipedia.org/wiki/List_of_AMD_CPU_microarchitectures
14

Intel Microarchitectures
http://en.wikipedia.org/wiki/List_of_Intel_CPU_microarchitectures
Semiconductor devicefabrication
●Semiconductormanufacturingprocessesmeasuredbynanometers
●http://en.wikipedia.org/wiki/Semiconductor_device_fabrication
IntelTick-Tock
●Every"tick"isashrinkingofprocesstechnologyofthe
previousmicroarchitectureandevery"tock"isanew
microarchitecture
●http://en.wikipedia.org/wiki/Intel_Tick-Tock
15

Intel Microarchitectures
16
Microarchitecture
Fabrication
process
Major CPUs
NetBurst 65 nm Pentium 4
Core 65 nm, 45 nm Core 2
Nehalem 45 nm, 32 nm
Core i3
Core i5
Core i7
Sandy
Bridge
Sandy Bridge 32 nm
Ivy Bridge 22 nm
Haswell
Haswell 22 nm
Broadwell 14 nm
Notable Microarchitectures

Intel Core CPU Generations
ProcessorGenerationofaCoreICPUisatermusedto
identifycertainCPUfamilies
Insteadofusingmicroarchitecturenames,simplya
generationnameisused
GenerationcanbedeterminedbytherelevantSub
MicroarchitectureCodename orCPUmodelno.
1
st
Generation: Nehalem (~45nm)
2
nd
Generation: SandyBridge (~32nm)
3
rd
Generation: IvyBridge (~22nm)
4
th
Generation: Haswell (~22nm)
17

1
st
, 2
nd
, 3
rd
, 4
th
Core Generations
18
Generation CPU Model No. Sample
1
st
Core i# -### Core i5 -750
2
nd
Core i# -2### Core i5 -2310
3
rd
Core i# -3### Core i5 -3450
4
th
Core i# -4### Core i5-4570
CPUGenerationoritsMicroarchitectureCodename
canbedeterminedbytheCPUmodelno.
Here#isanumber.Notaletter

CPU Socket
ACPUsocketorCPUslotisamechanicalcomponent
thatprovidesmechanicalandelectricalconnections
betweenamicroprocessorandthemotherboard
Typicallymadeofplastic.Hasaleverorlatchandmetal
contactsforeachofthepinsorlandsontheCPU.Many
packagesarekeyedtoensuretheproperinsertion
EarlierSocketshadholes,asolderCPUshadpins,and
newersocketshavepinsasnewerCPUsarepin-less
●http://en.wikipedia.org/wiki/CPU_socket
●http://www.cpu-world.com/Sockets/
19

CPU Socket
20
Socket Major CPUs
Socket 478 Pentium 4
LGA 775 Core 2 Duo
LGA 1156 Core i3, i5 (1st Gen)
LGA 1155 Core i3, i5 (2nd, 3rd Gen)
Notable Intel CPU Sockets

CPU Socket
21

Threads
Incomputerscience,athreadofexecutionisthesmallest
sequenceofprogrammed instructionsthatcanbemanaged
independentlybyanoperatingsystemscheduler
Multithreading
●MultithreadingCPUshavehardwaresupporttoefficiently
executemultiplethreads
Hyperthreading
●Hyper-Threading Technology orHTTechnology is
Intel'sproprietarysimultaneousmultithreading(SMT)
implementation usedtoimprove parallelizationof
computations
HereaLogicalCoreiscalledasathread
22

Multicore
Amulti-coreprocessorisasinglecomputing
component withtwoormoreindependent
actualprocessingunits(PhysicalCores)
NormallyaCoremeansaPhysicalCoreanda
ThreadmeansaLogicalCore
MulticoresystemshavemorethanoneCores
Dual-CoreandQuad-CoreCPUsarecommon
23

Multicore
Dual-Core
●Pentium D
●Core 2 Duo
●Core i3 Dual Core
Quad-Core
●Core 2 Quad
●Core i5 Quad Core
Intel's Core i#numbering scheme
oi#-6##and down: dual core
oi#-7##and up: quad core
24

Multicore
Multicore Cache Distribution
25

Multicore
26Multicore Cache Distribution

Processor Types
Server Processors
Desktop Processors
Mobile (Notebook) CPUs
CPUs for other Mobile Devices
27

Server Processors
HighSpeed
MultipleCPUsused
BiggerCache
Examples
●IntelXeon,AMDOpteron
28

Mobile (Notebook) CPUs
Compared to Desktop CPUs
●Smaller Cache
●Less Power Consumption
●Less Performance
Typically vendors include special
letters like M(for mobile) in notebook
CPUs
29

CPUs for other Mobile Devices
Mobile Devices like Mobile Phones, Tabs use
CPUs
Newer high end devices use Multicore CPUs
Examples
●Sony XperiaZ:
1.5GHzquad-core QualcommKrait
●Samsung Galaxy S4
1.2GHz quad-core Cortex-A7, 1.6GHz quad-core 1.6GHz
quad-core Cortex-A15+
30

Future: SoC
ASystemonaChiporSystemonChip(SoC)isan
integratedcircuit(IC)thatintegratesallcomponentsof
acomputerorotherelectronicsystemintoasinglechip
Integratesalmostallcomponentsintoasinglesilicon
chip.AlongwithaCPU,anSoCusuallycontainsaGPU,
memory,USBcontroller,powermanagement circuits,
andwirelessradios.
WhereasaCPUcannotfunctionwithoutdozensofother
chips,it’spossibletobuildcompletecomputerswithjust
asingleSoC
●http://en.wikipedia.org/wiki/System_on_a_chip
31

SoC(System on a Chip)
SoCvs.CPU
●CPUsareonthewayout.Eventually,SoCswillalmostcompletely
consumeCPUs
●http://www.extremetech.com/computing/126235-soc-vs-cpu-the-
battle-for-the-future-of-computing
32

SoC(System on a Chip)
33ARMserver SoC: CalxedaEnergyCoreECX-1000 Block Diagram

CPU: Considerations
Motherboard
●Socket
●Chipset
34

More Links and References
http://en.wikipedia.org/wiki/Comparison_
of_Intel_processors
https://duckduckgo.com/?q=CPU
https://www.google.com/search?q=CPU
35

Thank You!
Ayubowan!