Processor Architectures 2 Schedule Exam 3 Tuesday, - - PowerPoint PPT Presentation

processor architectures
SMART_READER_LITE
LIVE PREVIEW

Processor Architectures 2 Schedule Exam 3 Tuesday, - - PowerPoint PPT Presentation

Computer Systems and Networks ECPE 170 Jeff Shafer University of the Pacific Processor Architectures 2 Schedule Exam 3 Tuesday,


slide-1
SLIDE 1

ì ¡

Computer ¡Systems ¡and ¡Networks ¡

ECPE ¡170 ¡– ¡Jeff ¡Shafer ¡– ¡University ¡of ¡the ¡Pacific ¡

Processor ¡ Architectures ¡

slide-2
SLIDE 2

Schedule ¡

ì Exam ¡3 ¡– ¡Tuesday, ¡December ¡6th ¡ ¡

ì Caches ¡ ì Virtual ¡Memory ¡ ì Input ¡/ ¡Output ¡ ì OperaKng ¡Systems ¡ ì Compilers ¡& ¡Assemblers ¡ ì Processor ¡Architecture ¡ ì Review ¡the ¡lecture ¡notes ¡before ¡the ¡exam ¡

(not ¡just ¡the ¡homework!) ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

2 ¡

slide-3
SLIDE 3

Homework ¡#15 ¡

ì Review ¡HW ¡#15 ¡

ì Amdahl’s ¡Law ¡ ì Disk ¡capacity ¡/ ¡access ¡Kme ¡

ì Hard ¡drive ¡prefixes ¡are ¡powers ¡of ¡10, ¡not ¡2 ¡

ì SSD ¡boYleneck ¡– ¡changing ¡a ¡byte! ¡ ì SSD ¡opKmizaKon ¡-­‑ ¡TRIM ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

3 ¡

slide-4
SLIDE 4

Homework ¡#16 ¡

ì Review ¡HW ¡#16 ¡

ì Real-­‑Kme ¡OS ¡(RTOS) ¡ ì Assembly ¡vs ¡High-­‑Level ¡Language ¡ ì Mobile ¡OS ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

4 ¡

slide-5
SLIDE 5

ì ¡

Database ¡Software ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

5 ¡

slide-6
SLIDE 6

Database ¡Software ¡

ì Database ¡systems ¡

contain ¡the ¡most ¡ valuable ¡assets ¡of ¡an ¡ enterprise ¡

ì Build ¡applicaKons ¡on ¡

top ¡of ¡databases ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

6 ¡

slide-7
SLIDE 7

Database ¡Software ¡

ì

Most ¡databases ¡support ¡transac'ons ¡to ¡assure ¡that ¡the ¡database ¡ is ¡always ¡in ¡a ¡consistent ¡state ¡

ì

TransacKon ¡is ¡a ¡group ¡of ¡related ¡updates ¡bundled ¡together ¡ ì

TransacKons ¡provides ¡the ¡following ¡properKes: ¡

ì

Atomicity ¡-­‑ ¡All ¡related ¡updates ¡occur ¡or ¡no ¡updates ¡occur ¡

ì

Consistency ¡-­‑ ¡All ¡updates ¡conform ¡to ¡defined ¡data ¡constraints ¡(i.e. ¡ data ¡types, ¡min/max ¡legal ¡values, ¡etc…) ¡

ì

IsolaKon ¡-­‑ ¡No ¡transacKon ¡can ¡interfere ¡with ¡another ¡transacKon ¡

ì

Durability ¡-­‑ ¡Successful ¡updates ¡are ¡wriYen ¡to ¡durable ¡media ¡as ¡ soon ¡as ¡possible ¡(i.e. ¡RAM ¡isn’t ¡safe ¡if ¡the ¡system ¡crashes ¡or ¡the ¡ power ¡fails) ¡ ì

These ¡are ¡the ¡ACID ¡properKes ¡of ¡transacKon ¡management ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

7 ¡

slide-8
SLIDE 8

Database ¡Software ¡

ì Without ¡the ¡ACID ¡properKes, ¡race ¡condiKons ¡can ¡occur ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

8 ¡

slide-9
SLIDE 9

Database ¡Software ¡

ì Record ¡

locking ¡ mechanisms ¡ assure ¡ isolated, ¡ atomic ¡ database ¡ updates: ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

9 ¡

slide-10
SLIDE 10

ì ¡

Processor ¡Architectures ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

10 ¡

slide-11
SLIDE 11

Processor ¡Architectures ¡

ì

StarKng ¡Chapter ¡9 ¡

ì

More ¡details ¡on ¡RISC ¡versus ¡CISC! ¡

ì

Leaving ¡the ¡safe, ¡familiar ¡world ¡of ¡the ¡von ¡Neumann ¡processor ¡

ì

What ¡is ¡the ¡von ¡Neumann ¡model? ¡

ì

Stored ¡program ¡computer ¡

ì

Three ¡systems: ¡CPU, ¡memory, ¡I/O ¡

ì

SequenKal ¡instrucKon ¡processing ¡

ì

Single ¡data ¡path ¡between ¡CPU ¡and ¡memory ¡– ¡von ¡Neumann ¡ boYleneck ¡ ì

More ¡than ¡one ¡processor! ¡

ì

MulKprocessor ¡architectures ¡– ¡different ¡types ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

11 ¡

slide-12
SLIDE 12

RISC ¡vs ¡CISC ¡Machines ¡

ì RISC ¡systems ¡access ¡memory ¡only ¡with ¡explicit ¡load ¡

and ¡store ¡instrucKons ¡

ì InstrucKon ¡length ¡is ¡fixed ¡ ì Fetch-­‑decode-­‑execute ¡Kme ¡is ¡constant ¡

ì CISC ¡systems ¡access ¡memory ¡with ¡many ¡different ¡

types ¡of ¡instrucKons ¡

ì InstrucKon ¡length ¡is ¡variable ¡ ì Fetch-­‑decode-­‑execute ¡Kme ¡is ¡unpredictable ¡ ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

12 ¡

slide-13
SLIDE 13

RISC ¡vs ¡CISC ¡Machines ¡

ì Basic ¡computer ¡performance ¡equaKon: ¡

¡ ¡

ì RISC ¡systems ¡shorten ¡execuKon ¡Kme ¡by ¡reducing ¡

the ¡clock ¡cycles ¡per ¡instrucKon ¡

ì CISC ¡systems ¡improve ¡performance ¡by ¡reducing ¡the ¡

number ¡of ¡instrucKons ¡per ¡program ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

13 ¡

slide-14
SLIDE 14

RISC ¡vs ¡CISC ¡Machines ¡

ì RISC ¡processors ¡have ¡a ¡simpler ¡instrucKon ¡set ¡

ì Build ¡a ¡hardwired ¡control ¡unit ¡(faster!) ¡ ì Easier ¡to ¡implement ¡pipelining ¡and ¡speculaKve ¡

execuKon ¡ ì CISC ¡processors ¡have ¡a ¡complex/variable ¡

instrucKon ¡set ¡

ì Build ¡a ¡microcode-­‑based ¡control ¡unit ¡to ¡interpret ¡

instrucKons ¡

ì Microcode ¡processing ¡takes ¡Kme ¡ ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

14 ¡

slide-15
SLIDE 15

RISC ¡vs ¡CISC ¡Machines ¡

ì Because ¡of ¡their ¡load-­‑store ¡ISAs, ¡RISC ¡architectures ¡

require ¡a ¡large ¡number ¡of ¡CPU ¡registers ¡

ì

Register ¡allow ¡fast ¡access ¡to ¡data ¡during ¡sequenKal ¡ program ¡execuKon ¡– ¡no ¡need ¡to ¡go ¡to ¡memory! ¡ ì Registers ¡can ¡also ¡be ¡used ¡to ¡reduce ¡the ¡overhead ¡of ¡

calling ¡subrouKnes ¡

ì

Contrast ¡this ¡to ¡MARIE, ¡where ¡you ¡had ¡to ¡store ¡all ¡your ¡ arguments ¡in ¡memory ¡before ¡jumping ¡to ¡a ¡subrouKne ¡ ì Instead ¡of ¡pulling ¡parameters ¡off ¡of ¡a ¡stack, ¡the ¡

subrouKne ¡is ¡directed ¡to ¡use ¡a ¡subset ¡of ¡registers ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

15 ¡

slide-16
SLIDE 16

Overlapping ¡Registers ¡– ¡“Windows” ¡

ì

Divide ¡all ¡the ¡registers ¡into ¡ “windows” ¡

ì

Your ¡subrouKne ¡only ¡ sees ¡one ¡window ¡ ì

The ¡current ¡window ¡ pointer ¡(CWP) ¡points ¡to ¡ the ¡acKve ¡register ¡window ¡

ì

Shij ¡when ¡calling ¡a ¡ subrouKne ¡

ì

Outputs ¡become ¡inputs ¡ ì

Global ¡registers ¡– ¡shared ¡ by ¡all ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

16 ¡

slide-17
SLIDE 17

RISC ¡vs ¡CISC ¡Machines ¡

ì It ¡is ¡becoming ¡increasingly ¡difficult ¡to ¡disKnguish ¡

RISC ¡architectures ¡from ¡CISC ¡architectures. ¡

ì Some ¡RISC ¡systems ¡provide ¡more ¡extravagant ¡

instrucKon ¡sets ¡than ¡some ¡CISC ¡systems ¡

ì Some ¡systems ¡combine ¡both ¡approaches ¡

ì Typical ¡differences ¡between ¡the ¡architectures ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

17 ¡

slide-18
SLIDE 18

18

RISC ¡vs ¡CISC ¡Machines ¡

RISC ¡

ì

MulKple ¡register ¡sets ¡

ì

Three ¡operands ¡per ¡instrucKon ¡

ì

Parameter ¡passing ¡through ¡ register ¡windows ¡

ì

Single-­‑cycle ¡instrucKons ¡

ì

Hardwired ¡control ¡

ì

Highly ¡pipelined ¡

CISC ¡

ì

Single ¡register ¡set ¡

ì

One ¡or ¡two ¡register ¡operands ¡ per ¡instrucKon ¡

ì

Parameter ¡passing ¡through ¡ memory ¡

ì

MulKple ¡cycle ¡instrucKons ¡

ì

Microprogrammed ¡control ¡

ì

Less ¡pipelined ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

18 ¡

slide-19
SLIDE 19

19

RISC ¡vs ¡CISC ¡Machines ¡

RISC ¡

ì Simple ¡instrucKons, ¡few ¡in ¡

number ¡

ì Fixed ¡length ¡instrucKons ¡ ì Complexity ¡in ¡compiler ¡ ì Only ¡LOAD/STORE ¡

instrucKons ¡access ¡memory ¡

ì Few ¡addressing ¡modes ¡

CISC ¡

ì Many ¡complex ¡instrucKons ¡ ì Variable ¡length ¡instrucKons ¡ ì Complexity ¡in ¡microcode ¡ ì Many ¡instrucKons ¡can ¡access ¡

memory ¡

ì Many ¡addressing ¡modes ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

19 ¡

slide-20
SLIDE 20

Intel ¡

ì So, ¡are ¡Intel ¡x86-­‑32 ¡or ¡x86-­‑64 ¡chips ¡RISC ¡or ¡CISC? ¡ ì Both! ¡ ì InstrucKon ¡set ¡is ¡“CISC-­‑like” ¡

ì Many ¡complex ¡instrucKons ¡ ì Variable ¡length ¡instrucKons ¡ ì Many ¡instrucKons ¡can ¡access ¡memory ¡(not ¡just ¡

load/store) ¡

ì MulKple ¡cycle ¡instrucKons ¡ ì etc… ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

20 ¡

slide-21
SLIDE 21

Intel ¡

ì But, ¡what ¡happens ¡internally ¡is ¡completely ¡different ¡

ì Dedicated ¡hardware ¡unit ¡that ¡decodes ¡the ¡“CISC-­‑

like” ¡x86 ¡instrucKons ¡and ¡replaces ¡them ¡with ¡a ¡ sequence ¡of ¡“RISC-­‑like” ¡micro-­‑ops ¡ ì Intel ¡has ¡been ¡RISC-­‑like ¡internally ¡since ¡the ¡PenKum ¡

Pro ¡era ¡(~1996) ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

21 ¡

slide-22
SLIDE 22

Intel ¡versus ¡ARM ¡

Intel ¡

ì “CISC-­‑like” ¡ISA ¡ ì Dominant ¡market: ¡

ì

Desktop ¡PCs ¡

ì

Laptop ¡PCs ¡

ì

Server ¡PCs ¡

ì

Performance ¡criKcal? ¡ ì Why ¡does ¡Intel ¡dominate ¡

these ¡markets? ¡

ARM ¡

ì “RISC-­‑like” ¡ISA ¡ ì Dominant ¡market: ¡

ì

Mobile ¡devices ¡(cell ¡ phones, ¡music ¡players, ¡ etc…) ¡

ì Power ¡criKcal? ¡

ì

Embedded ¡devices ¡ ì Why ¡does ¡ARM ¡dominate ¡

these ¡markets? ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

22 ¡

slide-23
SLIDE 23

Intel ¡versus ¡ARM ¡

Intel ¡

ì Manufacturing: ¡Every ¡chip ¡

made ¡by ¡Intel ¡

ì Performance ¡ ¡ ì Huge ¡amount ¡of ¡“legacy ¡

sojware” ¡for ¡desktops/ servers ¡wriYen ¡for ¡the ¡x86 ¡ ISA ¡

ARM ¡

ì

Manufacturing: ¡None ¡

ì

ARM ¡licenses ¡its ¡design ¡to ¡other ¡ companies ¡to ¡integrate/build ¡ ¡

ì

Apple, ¡NVIDIA, ¡IBM, ¡Texas ¡ Instruments, ¡Nintendo, ¡ Samsung, ¡Freescale, ¡Qualcomm ¡ and ¡VIA ¡Technologies, ¡and ¡… ¡ Intel! ¡ ì

Performance ¡per ¡waX ¡

ì

Huge ¡amount ¡of ¡“legacy ¡ sojware” ¡for ¡cell ¡phones ¡wriYen ¡ for ¡ARM ¡ISA ¡

Fall ¡2011 ¡ Computer ¡Systems ¡and ¡Networks ¡

23 ¡