31
2.1 2.1 Components of the CPU Components of the CPU Central Processing Unit (CPU) consists of Control Unit Arithmetic and Logic Unit Registers The components are connected by internal buses.

Chapter 2 The CPU and the Main Board 2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU 2.2Performance and Instruction Sets

Embed Size (px)

Citation preview

Page 1: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

2.12.1 Components of the CPUComponents of the CPUCentral Processing Unit (CPU) consists of

Control Unit

Arithmetic and Logic Unit

Registers

The components are connected by internal buses.

Page 2: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

2.12.1 Components of the CPUComponents of the CPU

Page 3: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Control Unit (CU)“nerve centre” of CPU

send control signals to other components

sense their states to coordinate their operations

Arithmetic and Logic Unit (ALU)perform arithmetical, comparison and logical operation

work closely with the accumulation

2.12.1 Components of the CPUComponents of the CPU

Page 4: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Registerhigh-speed storage locations

temporarily hold data and instructions during processing

2.12.1 Components of the CPUComponents of the CPU

Page 5: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

CPU

Machine CycleFetchDecodeExecute

2.12.1 Components of the CPUComponents of the CPU

CUALU

Memory Unit

(1) fetch

(2) decode(3) execute

Page 6: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Fetchingobtaining a program instruction or data item from memory

2.12.1 Components of the CPUComponents of the CPU

Page 7: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Decodingtranslating instructions into commands the computer can execute

2.12.1 Components of the CPUComponents of the CPU

Page 8: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Executingcarrying out the command

2.12.1 Components of the CPUComponents of the CPU

Page 9: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Storingwriting the result to the main memory

2.12.1 Components of the CPUComponents of the CPU

Page 10: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Determining factors of CPU performanceclock rate

word size

size of the cache

integrated circuit technology

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 11: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Clock ratenumber of pulses per second generated by an oscillator that sets the tempo for the CPU

measured in MHz or GHz

determine the number of executed instructions per second

not always directly proportional to its performance level

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 12: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Word sizenumber of bits the processor can interpret and execute at a given time

e.g. 64-bit processor manipulates 64 bits at a time

larger the word size, more data can be processed in the same amount of time

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 13: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Cachesmall amount of high-speed memory located inside or outside of the CPU

supply the processor with the most frequently requested data and instruction

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 14: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Integrated circuit technologysmaller process dimension smaller transistor gate lengths faster switching speed of transistor

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 15: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Complex instruction set Simple instruction set

Longer instruction execution cycle

Allow each instruction to do more

Shorter instruction execution cycle

Allow each instructionto do less

Page 16: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Complex Instruction Set Computer (CISC)computers designed with full set of computer instructionsCISC CPU executes complex instruction more quickly than RISC CPUe.g. Intel Pentium microprocessors

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 17: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Reduced Instruction Set Computer (RISC)microprocessor designed to perform a smaller number of simple computer instructionsreduce instructions to those used more frequentlyRISC CPU executes simple instruction more quickly than CISC CPUe.g. PowerPC microprocessor

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 18: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Advanced technology used in CPUPipeliningSuperscalarParallel processing

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 19: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

PipeliningCPU begins executing a second instruction before it completes the first instructionfaster processingeffective only if the CPU execute programs sequentially for most of the time

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 20: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Fetch Decode Execute Fetch Decode Execute

Instruction 1 Instruction 2

Instruction flow without pipelining

Page 21: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Fetch Decode Execute

Instruction flow with pipelining

Instruction 1

Instruction 2

Instruction 3

Page 22: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

Superscalarpossible for executing more than one instruction at a time during a single clock cycle

Parallel Processingallocation of program execution to many execution units to execute more than one instruction in one cycle

2.22.2 Performance and Instruction Sets Performance and Instruction Sets of the CPUof the CPU

Page 23: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

All the peripherals plug into the main board via various types of connector

Advantages of ATX main boardIntegrated I/O connectors

Reduced overlap between board and drivers

Reduced processor interference with add-on cards

User-friendly power connector

Better cooling conditions

2.32.3 Layouts of the Main BoardLayouts of the Main Board

Page 24: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

2.32.3 Layouts of the Main BoardLayouts of the Main Board

PCI slots

BIOS

Battery

Floppy drive

IDE connectors

I/O connectors

Memory

Power supply connector

Southbridge

CPU socket

Northbridge

AGP slot

Page 25: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

North Bridgecommunicate with CPU

control interaction with memory, PCI bus, Level 2 cache and AGP

communicate with the processor using Frontside Bus (FSB)

2.42.4 North Bridge / South BridgeNorth Bridge / South Bridge

Page 26: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

South Bridgemanage the basic forms of input/output (USB, serial, audio, IDE, ISA)

2.42.4 North Bridge / South BridgeNorth Bridge / South Bridge

Page 27: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

PCI (Peripheral Component Interconnect)

interconnection system between a CPU and attached devices

separate bus isolated from the CPU

use all active paths to transmit both address and data signals

2.52.5 I/O Expansion Slots of the Main I/O Expansion Slots of the Main BoardsBoards

PCI expansion slots

Page 28: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

AGP (Accelerated Graphics Port)enable 3-D graphics to display quickly and smoothly on ordinary personal computers

useful in gaming, 3-D video, scientific graphic programs

intended exclusively for visual display devices

2.52.5 I/O Expansion Slots of the Main I/O Expansion Slots of the Main BoardsBoards

AGP slot

Page 29: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

AGP (Accelerated Graphics Port)offer high-speed data transfer to and from RAM

optimize the use of memory

minimize the amount necessary for high-performance graphics

AGP data transfer rate is much greater than that of PCI video cards.

2.52.5 I/O Expansion Slots of the Main I/O Expansion Slots of the Main BoardsBoards

Page 30: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

PCI and AGP

2.52.5 I/O Expansion Slots of the Main I/O Expansion Slots of the Main BoardsBoards

Page 31: Chapter 2 The CPU and the Main Board  2.1 Components of the CPU 2.1 Components of the CPU 2.1 Components of the CPU  2.2Performance and Instruction Sets

ENDEND