12
CPU Architecture - Basic Yong Heui Cho @ Mokwon University Some of slides are referred to: [1] The CPU, slideshare.

CPU Architecture - Basic

Embed Size (px)

Citation preview

Page 1: CPU Architecture - Basic

CPU Architecture - Basic

Yong Heui Cho @ Mokwon University

Some of slides are referred to:[1] The CPU, slideshare.

Page 2: CPU Architecture - Basic

Basic Computer Design

4. Combinational Logic Circuit5. Sequential Logic Circuit

6. CPU Architecture - Ba-sic7. CPU Architecture - Ad-vanced

Page 3: CPU Architecture - Basic

CPU?

3□ Courtesy to The CPU, slideshare.

• The CPU is short for the Central Processing Unit.

• It is the main part of the computer where instructions are processed.

• The central processing unit includes the main memory.

• Now a day’s most computers have more than one CPU to provide better speed.

Page 4: CPU Architecture - Basic

4

Microprocessor• Small computerised devices such

as washing machines have small specialised CPUs known as micro-processors.

• It is an integrated circuit as a single unit which includes all that the CPU needs excluding main memory.

□ Courtesy to The CPU, slideshare.

Page 5: CPU Architecture - Basic

5

Components of CPU• The CPU is made up of many com-

ponents such as 1. Arithmetic logic unit (ALU)2. Control unit (CU)3. Registers (Program Counter and Instruc-

tion Register)4. Cashes5. Buses

□ Courtesy to The CPU, slideshare.

Page 6: CPU Architecture - Basic

6□ Courtesy to The CPU, slideshare.

Page 7: CPU Architecture - Basic

7

Control Unit (CU)• The CU is considered the manager of the CPU

• The CU’s jobs1. decode instructions within a computer2. plan the reading and writing of data 3. control the order in which instructions are executed 4. control the operations performed by the ALU

• In the CU you will fine two registers;1. Instruction Register: stores a copy of the current in-

struction being performed2. Program Counter

□ Courtesy to The CPU, slideshare.

Page 8: CPU Architecture - Basic

8

Arithmetic Logic Unit• The ALU is that part in the CPU where arithmetic and

logic operations are carried out in other words all mathematical calculations. The result of the calcula-tions are sent to the main memory.

• The ALU is capable of performing:1. Addition, Subtraction, Multiplication, Division2. Greater Than (>), Smaller Than (<)’ Equal (=),Greater Than

or Equal To (>=), Smaller Than or Equal To (<=), Not Equal (<>)

3. AND, OR, NOT

• Within the ALU we will find the register known as the Accumulator. The accumulator stores the result of the current calculation.

□ Courtesy to The CPU, slideshare.

Page 9: CPU Architecture - Basic

9

Program Counter• The program counter is sometimes known as the

instruction pointer.

• The PC indicates where the computer is in its in-struction set. If the instruction set has 5 steps the PC will point to which step the computer has ar-rived.

• Depending on the device the PC could hold1. the address of the instruction being executed 2. the address of the next instruction to be executed

• The program counter is automatically incremented (increased by 1) after each step (instruction cycle).

□ Courtesy to The CPU, slideshare.

Page 10: CPU Architecture - Basic

10

Instruction Register• The instruction register (IR) is also

found with the control unit

• The IR is used to store a copy of the current instruction being performed

• This instruction is stored in the for of operator and operand (covered later on)

□ Courtesy to The CPU, slideshare.

Page 11: CPU Architecture - Basic

11

Buses• All data traffic with the CPU takes place across

the computer’s bus

• A computer bus is a set of parallel electrical tracks connecting components within a computer

• The width of the data bus determines the word length

• The width of the address bus determines how many addresses the computer can send at a time

□ Courtesy to The CPU, slideshare.

Page 12: CPU Architecture - Basic

12

Simplified Architecture

□ Courtesy to The CPU, slideshare.

IR

data

Control Unit (CU)

ALU