Tải bản đầy đủ (.ppt) (29 trang)

Bai 8 CPU

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (1.22 MB, 29 trang )

<span class='text_page_counter'>(1)</span><div class='page_container' data-page=1>

<b>Bộ xử lý trung tâm CPU</b>



<b>(Central Processing Unit )</b>


<b>Tạm dịch là đơn vị xử lý trung tâm </b>


<b>Có thể được xem như là não bộ của máy tính</b>


<b>Một trong những phần tử cơ bản nhất của máy tính</b>
<b>Nhiệm vụ: Xử lý các chương trình trong bộ nhớ</b>


<b>Chương trình gồm có Lệnh và Số liệu</b>


<b>Lệnh được bộ xử lý trung tâm (CPU) giải mã để biết </b>


<b>cách thức xử lý số liệu </b>


<b>Có nhiều kiểu dáng khác nhau qua nhiều thế hệ khác </b>


<b>nhau</b>


<b>Đặc trưng cơ bản:</b>


<b>Tốc độ xung nhịp </b>
<b>Bộ nhớ Cache</b>


</div>
<span class='text_page_counter'>(2)</span><div class='page_container' data-page=2>

<b>Bộ xử lý trung tâm CPU</b>



<b>(Central Processing Unit )</b>


<b>các bộ phận chủ yếu sau: </b>



<b>Bộ điều khiển (CU: Control Unit): Lấy lệnh từ bộ nhớ, </b>


<b>giải mã lệnh.</b>


<b>Bộ số học và luận lý (ALU: Arithmetic Logic Unit): Thực </b>


<b>hiện các phép tính số học và luận lý.</b>


<b>Các thanh ghi (Register): Bộ nhớ tốc độ cao, dung </b>


<b>lượng nhỏ dùng dể lưu trữ các kết quả tạm thời và các </b>
<b>thông tin điều khiển.</b>


<b>Bộ xử lý trung tâm thực hiện một chương trình bằng </b>


<b>cách lặp lại các bước sau :</b>


<b>Đọc lệnh từ bộ nhớ.</b>


<b>Giải mã lệnh & đọc tốn hạng (nếu có)</b>
<b>Thực hiện lệnh</b>


</div>
<span class='text_page_counter'>(3)</span><div class='page_container' data-page=3>

<b>Bộ xử lý trung tâm CPU</b>



<b>(Central Processing Unit )</b>


<b>các bộ phận chủ yếu : </b>


Bộ điều khiển




ALU



</div>
<span class='text_page_counter'>(4)</span><div class='page_container' data-page=4>

<b>Bộ xử lý trung tâm CPU</b>



<b>(Central Processing Unit )</b>


<b>Cấu trúc CPU : </b>


<b>B</b>
<b>Ộ</b>
<b>Đ</b>
<b>I</b>
<b>Ề</b>
<b>U</b>
<b>K</b>
<b>H</b>
<b>I</b>
<b>Ể</b>
<b>N</b>
Thanh ghi


Các thanh ghi đa dụng


Các toán hạng


<b>ALU</b>


Cờ



Thanh ghi đoạn
(Segment Register)
Thanh ghi đếm lệnh


(PC)


Kiểm soát Bus và
Phát địa chỉ


Đuôi lệnh


Bus đa hợp


</div>
<span class='text_page_counter'>(5)</span><div class='page_container' data-page=5>

<b>Các loại CPU </b>



<b>Có nhiều loại CPU qua các thế hệ CPU như CPU 80xxx, </b>


</div>
<span class='text_page_counter'>(6)</span><div class='page_container' data-page=6>

<b>What is a personal computer processor?</b>



 <b><sub>The single processor chip found in personal </sub></b>


<b>computers</b>


 <b>Sometimes called a microprocessor</b>
 <b>Processors identified by </b>


• <b>Manufacturer</b>


• <b>Model name or </b>
<b>model number</b>



<b>Pentiumđ 4</b>


</div>
<span class='text_page_counter'>(7)</span><div class='page_container' data-page=7>

ã<b>Who are the personal computer processor manufacturers?</b>


•<b>Note: Apple Computer, Inc began using Intel microprocessors in 2005</b>


<b>Intel</b>


<b>Pentium®</b>


<b>Pentium®<sub> II </sub></b>


<b>with </b>
<b>MMX™</b>
<b>Celeron™</b>
<b>Xeon™</b>
<b>Itanium™</b>
<b>Used in PCs</b>


<b>AMD</b>


<b></b>
<b>(Intel-compatible)</b>
<b>Duron™</b>
<b>AMD-K6®</b>
<b>Athlon™ </b>
<b>with 3DNow! </b>
<b>™</b>


<b>Used in PCs</b>



</div>
<span class='text_page_counter'>(8)</span><div class='page_container' data-page=8></div>
<span class='text_page_counter'>(9)</span><div class='page_container' data-page=9>

Microprocessor



Microprocessor



s



</div>
<span class='text_page_counter'>(10)</span><div class='page_container' data-page=10>

Microprocessors



Microprocessors





A microprocessor is a small calculating device usually used in our
home PCs which can easily fit in the palm of your hand. A


</div>
<span class='text_page_counter'>(11)</span><div class='page_container' data-page=11>

Devices with microprocessors



Devices with microprocessors



</div>
<span class='text_page_counter'>(12)</span><div class='page_container' data-page=12>

Microprocessors Companies



Microprocessors Companies



• There are many microprocessor companies in market
• but the two well recognized are Intel and AMD


</div>
<span class='text_page_counter'>(13)</span><div class='page_container' data-page=13>

<b>Processor</b>
<b>Processor</b>
<b>Control </b>
<b>Control </b>


<b>Unit</b>
<b>Unit</b>
<b>Arithmetic </b>
<b>Arithmetic </b>


<b>Logic Unit (ALU)</b>


<b>Logic Unit (ALU)</b>


<b>Arithmetic </b>


<b>Arithmetic </b>


<b>Logic Unit (ALU)</b>


<b>Logic Unit (ALU)</b>


• What is the

central processing unit (CPU)?



<b>Input</b>
<b>Input</b>
<b>Devices</b>
<b>Devices</b>
<b>Storage</b>
<b>Storage</b>
<b>Output</b>
<b>Output</b>
<b>Devices</b>
<b>Devices</b>



<b>Interprets and carries out basic instructions that </b>



<b>operate a computer</b>



<b>Memory</b>
<b>Memory</b>


<b>Data</b>


<b>Data</b> <b>InformationInformation</b>
<b>Informatio</b>
<b>Informatio</b>
<b>n</b>
<b>n</b>
<b>Data</b>
<b>Data</b>
<b>Informatio</b>
<b>Informatio</b>
<b>n</b>
<b>n</b>
<b>Informatio</b>
<b>Informatio</b>
<b>n</b>
<b>n</b>
<b>Data</b>
<b>Data</b>
<b>Informatio</b>
<b>Informatio</b>
<b>n</b>
<b>n</b>


<b>Control </b>
<b>Control </b>
<b>Unit</b>
<b>Unit</b>


<b><sub>Control unit</sub></b><sub> directs </sub>


and coordinates


operations in computer


<b><sub>Arithmetic logic unit </sub></b>
<b>(ALU)</b> performs


arithmetic, comparison,
and logical operations<sub></sub> <b><sub>Also called the</sub></b>


</div>
<span class='text_page_counter'>(14)</span><div class='page_container' data-page=14>

• What is a

machine cycle?



<b>Processor</b>


<b>Control Unit</b>


<b>Memory</b>


<b>ALU</b>


<b>Step 1. Fetch</b>


Obtain program instruction or


data item from memory


<b>Step 2. </b>


<b>Decode</b>


Translate
instruction into
commands
<b>Step 4. Store</b>


Write result to memory


<b>Step 3. Execute</b>


Carry out command


</div>
<span class='text_page_counter'>(15)</span><div class='page_container' data-page=15>

• What is

pipelining?



<b>CPU begins fetching second instruction before completing </b>



<b>machine cycle for first instruction</b>



</div>
<span class='text_page_counter'>(16)</span><div class='page_container' data-page=16>

• What is a

register

?



<b>Stores location </b>
<b>Stores location </b>
<b>from where instruction </b>
<b>from where instruction </b>



<b>was fetched</b>
<b>was fetched</b>
<b>Stores </b>


<b>Stores </b>


<b>instruction while it is </b>
<b>instruction while it is </b>


<b>being decoded</b>
<b>being decoded</b>
<b>Stores data </b>
<b>Stores data </b>
<b>while ALU </b>
<b>while ALU </b>
<b>computes it</b>
<b>computes it</b>
<b>Stores results </b>
<b>Stores results </b>
<b>of calculation</b>
<b>of calculation</b>


<b>Temporary high-speed storage area that holds </b>



</div>
<span class='text_page_counter'>(17)</span><div class='page_container' data-page=17>

• What is thesystem clock ?
[Not the real-time clock!]


<b>Each tick </b>
<b>Each tick </b>
<b>is a </b>


<b>is a </b>
<b>clock cycle</b>
<b>clock cycle</b>


<b>Pace of system </b>
<b>Pace of system </b>
<b>clock is </b>


<b>clock is clock speedclock speed</b>


<b>Most clock speeds are </b>
<b>Most clock speeds are </b>
<b>in the gigahertz (GHz) </b>
<b>in the gigahertz (GHz) </b>


<b>range (1 GHz = one </b>
<b>range (1 GHz = one </b>
<b>billion ticks of system </b>
<b>billion ticks of system </b>


<b>clock per second)</b>
<b>clock per second)</b>


<b>Processor speed can </b>
<b>Processor speed can </b>
<b>also be measured in </b>
<b>also be measured in </b>
<b>m</b>


<b>millions of iillions of instructions nstructions </b>


<b>p</b>


<b>per er ssecond econd (MIPS)(MIPS)</b>


 <b>Controls timing of all computer operations</b>


 <b>Generates regular electronic pulses, or ticks, that set </b>


</div>
<span class='text_page_counter'>(18)</span><div class='page_container' data-page=18>

Overclocking a Microprocessor



• <b>Overclocking is the process of making your computer </b>


• <b>run faster than it was when you first bought it.</b>


• <b>Warning: Don’t do this if you a Pentium 4 w/HT because </b>


• <b>you will burn up the processor !</b>


• <b>If you bought a Pentium 4 running at 3.2 GHz and you </b>


• <b>want it to run faster, you could overclock the processor </b>


</div>
<span class='text_page_counter'>(19)</span><div class='page_container' data-page=19>

Microprocessors: Which one ?



• Which processor should you select?



 <b><sub>The faster the processor, the more expensive the computer</sub></b>


<b>Celeron</b>



<b>Itanium or Xeon </b>


<b>Pentium family</b>


1.3 GHz and up


3.0 GHz and up
2.4 GHz to 3.0 GHz


Up to 2.4 GHz
2.2 GHz and up


</div>
<span class='text_page_counter'>(20)</span><div class='page_container' data-page=20>

Microprocessors from the Recent Past



• How do personal computer processors compare?


<b>Comparison of Widely Used</b>
<b>Personal Computer Processors</b>


<b>Name</b> <b>Date</b> <b>Clock</b> <b>Introduced</b> <b>Speed</b>


Itanium 2 2002 1.3–1.5 GHZ
Xeon 2001 1.4–3.06 GHZ


Itanium 2001 733–800 MHZ
Pentium 4 2000 1.4–3.2 GHZ
Pentium III Xeon 1999 500–900 MHZ
Pentium III 1999 400 MHZ–1.4 GHZ
Celeron 1998 266 MHZ–2.6 GHZ
Operon 2003 2–2.4 GHZ


Athlon MP 2002 1.53–2.25 GHZ
Athlon XP 2001 1.33–2.26 GHZ
Athlon 1999 500 MHZ–1.4 GHZ


</div>
<span class='text_page_counter'>(21)</span><div class='page_container' data-page=21>

• What is a

<b> zero-insertion force (ZIF) </b>

socket?



<b>Step </b>


<b>2.</b>



Insert the
chip.


<b>Step 1.</b>



Lift the lever on
the socket.


<b>lever</b>


<b>Step 3.</b>


Push the lever
down.


<b>lever</b>


</div>
<span class='text_page_counter'>(22)</span><div class='page_container' data-page=22>

• What are

heat sinks

and

heat pipes

?



<b>Heat sink</b>

<b>—component </b>




<b>with fins that cools </b>


<b>processor</b>



<b>heat sink fan</b>


<b>heat sink</b>


<b>Heat pipe</b>

<sub>e</sub>

<b>—smaller </b>



</div>
<span class='text_page_counter'>(23)</span><div class='page_container' data-page=23>

• What are

heat sinks, heat pipes, and liquid


cooling?



<b>Heat sink</b>

<b> — </b>

<b>component with fins that cools processor</b>



<b>Heat pipe</b>

<sub>e</sub>

<b>—smaller </b>



<b>device for notebook </b>


<b>computers</b>



<b>Liquid cooling—</b>



</div>
<span class='text_page_counter'>(24)</span><div class='page_container' data-page=24>

• What is

parallel processing

?


<b>Control Processor</b>
<b>Control Processor</b>
<b>Processor 1</b>
<b>Processor 1</b>
<b>Memory</b>
<b>Memory</b>
<b>Processor 2</b>
<b>Processor 2</b>

<b>Memory</b>
<b>Memory</b>
<b>Processor 3</b>
<b>Processor 3</b>
<b>Memory</b>
<b>Memory</b>
<b>Processor 4</b>
<b>Processor 4</b>
<b>Memory</b>
<b>Memory</b>


 <b>Using multiple processors simultaneously to execute a </b>


<b>program faster</b>


 <b>Requires special software to divide problem and bring </b>


</div>
<span class='text_page_counter'>(25)</span><div class='page_container' data-page=25>

<b>Sockets supporting Intel processors</b>


<b>Socket 6 - 80486DX4 </b>


<b>Socket 7 - Intel Pentium and Pentium MMX, AMD K6 </b>


<b>and some Cyrix CPUs) </b>


<b>Socket 8 - Intel Pentium Pro </b>


<b>Slot 1 - Intel Pentium II, older Pentium III, and </b>


<b>Celeron processors (233 MHz - 1.13 GHz) </b>



<b>Slot 2 - Intel Xeon processors based on Pentium II/III </b>


<b>cores </b>


<b>Socket 370 - Celeron processors and newer </b>


<b>Pentium IIIs (800 MHz - 1.4 GHz) </b>


<b>Socket 423 - Intel Pentium 4 and Celeron processors </b>


</div>
<span class='text_page_counter'>(26)</span><div class='page_container' data-page=26>

<b>Sockets supporting Intel processors </b>


<b>Socket 478 - Intel Pentium 4 and Celeron processors </b>


<b>(based on Northwood, Prescott, and Willamette cores) </b>


<b>Socket 479 - Intel Pentium M and Celeron M </b>


<b>processors (based on the Banias and Dothan cores) </b>


<b>Socket 480 - Intel Pentium M processors (based on the </b>


<b>Yonah core) </b>


<b>Socket 603/604- Intel Xeon processors based on the </b>


<b>Northwood and Willamette Pentium 4 cores </b>


<b>Socket LGA 775 (Land Grid Array) - Intel Pentium 4 </b>



</div>
<span class='text_page_counter'>(27)</span><div class='page_container' data-page=27>

<b>Sockets supporting AMD CPUs</b>


<b>Slot A - original AMD Athlon processors </b>


<b>Socket 462 (aka Socket A) - newer AMD Athlon, Athlon </b>


<b>XP, Sempron, and Duron processors </b>


<b>Socket 754 - lower end AMD Athlon 64 and Sempron </b>


<b>processors with single-channel memory support </b>


<b>Socket 939 - AMD Athlon 64, AMD Athlon 64 FX, AMD </b>


<b>Athlon 64 X2, and AMD Opteron processors with </b>
<b>dual-channel memory support </b>


<b>Socket 940 - AMD Opteron and early AMD Athlon FX </b>


<b>processors </b>


<b>Socket AM2 - Sempron, AMD Athlon 64, AMD Athlon 64 </b>


</div>
<span class='text_page_counter'>(28)</span><div class='page_container' data-page=28>

<b>Nâng cấp CPU</b>


<b>Thay thế CPU “mạnh” hơn về tốc độ xử lý và dung </b>


<b>lượng Cache </b>



<b>Một số lưu ý khi nâng cấp CPU: Xem kỹ tài liệu về bo </b>


<b>mạch chính đang sử dụng:</b>


<b>Tốc độ CPU có thể hoạt động </b>
<b>Điện thế lõi </b>


<b>Dạng đế cắm</b>


<b>Một số vấn đề phát sinh khi thay thế CPU</b>
<b>Thay thế bo mạch chính</b>


<b>Thay thế Ram</b>


<b>Thay thế cấp nguồn</b>
<b>Thay thế ổ đĩa cứng</b>


</div>
<span class='text_page_counter'>(29)</span><div class='page_container' data-page=29>

<b>Lưu ý khi thao tác với CPU</b>


<b>Dễ hỏng khi bị va chạm</b>


<b>Chân CPU dễ bị gãy </b>


<b>Cẩn thận, nhẹ nhàng, tránh làm rơi CPU </b>


<b>CPU thường bị hỏng do quá nóng hoặc sai điện thế </b>


<b> V core cung cấp cho CPU</b>


<b>Trước khi thay thế cần xem xét nguyên nhân gây hỏng </b>



<b>CPU:</b>


<b>Điện thế ra của bộ nguồn</b>


</div>

<!--links-->
<a href=' /><a href=' /><a href=' /><a href=' /><a href=' /><a href=' />

Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×