Title: Processing Unit
1Processing Unit
?????????????
IT201 Computer Information Technology
2Processing Unit CPUMemory
CPU
Register
Control U
ALU
Memory
Processor
3??????????? (Memory)
- ?????????????????????????????????????????????????
??????????????????????????? ??????????????????????
????????? ?????????????????????????? - ???????????? ??????????????
- ????????????? Memory ?????????????????? RAM
- Memory ???????????????????????? (chip)
????????????????????????????????????????
(Motherboard)
4Memory
5Motherboard CPU Memory
6??????????????????
- ?????????????????? 2 ???????? ???
- 1. ?????????????? (ROM Read-Only Memory)
- 2. ?????????????? (RAM Random Access Memory)
7ROM (Read-Only Memory)
- ??????????????????????????????????
????????????????????????????????????????????????
???????????????????????????? Bootstrap Loader - ?????????????????????? ROM ???????????????????????
???? ???????????????????????????????
8ROM (Read-Only Memory)
- ??????????? Nonvolatile ??????????????????????????
?????????????????????????? ???????????????????????
????????????????????????????
9RAM (Random Access Memory)
- ???????????????????????????????????????/??????????
??????????????? ??????????????????????????????????
- ??????????????? RAM ??????????????????????????????
??? ?????????????? Random Access Memory - ??????????? Volatile ??? ????????????????????????
????????????? ??????????? ??????????????????????
RAM ????????
10How does RAM work?
- ?????????????????????? ????????
- 1 ?????????????? 1 Byte (???? 1 ????????)
11??????? RAM
- ??????? 2 ???????? ???
- Static RAM (SRAM) -- ???????????????????????????
?????????????? (???????????????) - Dynamic RAM (DRAM) -- ??????????????????????????
??????????????? (??????????????????) - SRAM ???????????????? DRAM ?????????????? DRAM
12DRAM Technologies
single in-line memory module (SIMM)
dual in-line memory module (DIMM) Rambus Inline
Memory Module (RIMM)
- FPM-DRAM
- 30 ??????????????? (SIMM) 200 MBps 386 468
computer - EDO-DRAM
- 72 ????????????? (DIMM) 264 MBps
- SDRAM
- 168 ????????????? (DIMM) 528 MBps
- DDR-SDRAM
- 184 ????????????? (DIMM) 1-3.2 GBps
- RDRAM
- 184 ????????????? (RIMM) 1.6-10.7 GBps
13Example of memory speed
14Main memory trends
Try pantip market price
15RAM
16Central Processing Unit(?????????????????)
- CPU ?????????????????????????????? ?????????
????????????????????????????
17????????????? Central Processing Unit
- Control Unit (???????????)
- Arithmetic and Logic Unit (?????????????????)
- Register (???????????????????????????)
18Control Unit (???????????)
- ??????????????? RAM ?????????????????????
- ????????????????????????????????????????????
???????? ALU ??? Registers
19Arithmetic and Logic Unit (?????????????????)
- ??????????????????????????????????????????????????
? (???? ??? ?? ??? ???) ?????????????????????????
?? (???? ????????????????????? ???????? ????
??????? ) - ???????? CPU ????? ALU ???????????????
(?????????????????????????)
20Register
- ???????????????????????????????????????? CPU
????? ALU ????????? ?????????????????????????????
? ???????
21Memory Comparison
22????????????????????
- ?????????????????????????????? CPU
??????????????????????????????????? ????????????
Machine Cycle - ????? Machine Cycle ?????????? 2 ??????????? ???
Instruction cycle ??? Execution cycle
23????????????????????
- ???????????? Instruction cycle ??????????????? 2
??????????? - 1. Fetch ????????????????????? RAM ???????
Control Unit - 2. Decode - Control Unit ?????????
?????????????????? ?????????????? Register
???????????????????
24???????????????????? (???)
- ????????????????? Execution cycle ??????????????
- 3. Execute - ?????????????????????? ????
- ?????????????????? Register
- 4. Store - ????????????????????????????????? ??
RAM (???? Register ??????????????? ??????????????
???????????????)
25 Machine Cycle
Fetch Instruction RAM to Control Unit
Place Result in Memory ALU to RAM
Instruction Time
Decode Instruction Control Unit
Execution Time
Execute Instruction ALU
26 ( Note ) - ?????????? 1 ???????????
1 Machine Cycle - 1 Machine Cycle
Instruction cycle Execution cycle
Fetch Time Decode Time Execute Time
Store Time
27???????????????????? CPU
- ?? 2 ??? ???
- ????????????????????????????????????1 Machine
Cycle ??????????????????????????????????????
?????? - ???????? ??? second (1 ??????) , millisecond
(10-3), microsecond (10-6), nanosecond (10-9),
picosecond (10-12)
28???????????????????? CPU (???)
- ??????????????? Machine Cycle ??? CPU
?????????????????????? 1 ??????
????????????????????????? - ????????????????
- 100 MIPS (Millions of Instructions Per Second)
- 1200 MIPS (Millions of Instructions Per Second)
29???????????? (System clock)
- ???????????????????? ???????????????????????????
- ??????????? (Quartz Crystal) ?????????????????????
???? - ???????? ???? Control unit ??? ALU
????????????????????????????????? System clock - ???????????????????????? CPU ???????????
??????????? System clock - ??????????? Hz ???? P4 3.2 GHz
30??????????????????????????????????????????????????
?
31?????????????????????????????
- CISC (Complex Instructions Set Computing)
- ?????????????????????? (More tools)
- RISC (Reduced Instructions Set Computing)
- ??????????????????????
- ??????????????????????????? ?????????
32????????????????????????????
- ????????????? (Nanotechnology)
- ???????????????? (Bus bandwidth)
- ??? (Cache)
- ???????? (Pipeline)
- ?????????????????? (Parallel Processing)
33????????????????????????????
- ?????????????
- Pentium ??? ???????????? ???? 0.35 ?????? ?????
3.3 ??????? - Pentium 4 ??? ???????????? ???? 0.13 ?????? ?????
42 ??????? - ??????????????????? ???????????? ???? 0.09 ??????
???? 9 ????????
34????????????????????????????
- ?????????????????????
- Bus ??? ??????????????????????????????????????????
????????????????
35Bus Lines
- A bus line ????????????????????????????????
????????????????? ? ??????
???????????????????????????? 1 ??????
??????????????????????? Megabits per second
(Mbps)
36????????????????????????????
- ??? (Cache)
- ?????????????????????????? Static RAM
?????????????????????????????????? - ?????????????? CPU ??? Memory
37?????????????????? Cache
38????????????????????????????
- Pipelining
- 1 Machine Cycle ????????
- Fetch
- Decode
- Execute
- Store
- ???????????????????????????
39Example of Pipelining
Original Process - 3 sequences of 4 stages each
1 ??
????????
Original process takes 12 cycles Pipelined
process takes 6 cycles
????????
??????????????????? ?????????????????
???????????
??????????????
4 ??
40Example of Pipelining
Original Process - 3 sequences of 4 stages each
1 ??
Fetch
Original process takes 12 cycles Pipelined
process takes 6 cycles
Decode
??????????????????? ????????????????? ??? 20
????????????? ?
Execute
Store
4 ??
41???????????????????????????? Parallel Processing
- ?????????? Processor (CPU) ????????????????????
- 1 ??? ?????????????????? ?????????????????????????
?? processor ???????
42???????????????????????????????????
- Port ????????????????????????????????????????????
???????????????????????????? ?????????????????????
??? ???? ????????? ????? ????? ????????????
??????????? ??????? - ??????????????????? ??????
- Serial port
- Parallel port
- USB Port
43Ports
44Ports
45Serial Port
??????????????????????????????????????? (bit)
???????????????????????? ???????????? Port
??????????????? Mouse ??? MODEM (Transfer Rate
?????? 115 kbps)
46Parallel Port
- ??????????????????????????????????????
????????????????????? ??????????? 8 ??? - ?????????????????????????????????????????????????
?????????? ???? ???????????? ???????
Transfer Rate ?????? 150 - 1024 kbps
47Serial and Parallel Ports
48USB (Universal Serial Bus) Port
- ???? Serial port ???????????????? (12 Mbps)
??????? serial ??? pararell - ???????????????? 127 ?????, ?????-???????????????
?????????, ???????????????????,
???????????????????????
49IEEE 1394 Fire Wire
- ???????? 400 Mpbs
- ????????????? ????? ??? ??????
50????
- CPU ?????????????????????????
??????? ??????????????