15
D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor Nyssen/Aberdeen College 2003 images © C Nyssen /Aberdeen College unless otherwise stated ared 2/9/03

D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

Embed Size (px)

Citation preview

Page 1: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

D75P 34 – HNC Computer Architecture

Week 1Main Components Of A

Processor

© C Nyssen/Aberdeen College 2003All images © C Nyssen /Aberdeen College unless otherwise statedPrepared 2/9/03

Page 2: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

In this lecture we will examine the various

components of the Central Processing Unit (CPU).

Page 3: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

This is the “classic” diagram of a CPU.It is not based on any particular model, but most

will have these seven components.

Page 4: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

The CPU contains of a number of registers. A register is an area for storing information in a binary format. They are typically made of tiny capacitors (a component capable of holding an

electrical charge).

Capacitors can be either charged (1) or discharged (0) allowing the storage of binary

values.

Various types of capacitor, used for different purposes. An old name for a capacitor is a condenser.

Page 5: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

The Control Unit.

An average, modern Control Unit uses about

27 million transistors and

capacitors.

It will also contain a

Decoder unit and the System

Clock.

Page 6: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

The clock is a tiny crystal of pure silicon,

with an electrical current passed across it. This

makes it oscillate at very high speeds - in a 1 GHz processor it will vibrate

1,000,000,000 times per second.

The decoder consists of transistors and capacitors. When it receives a program instruction, it interprets the binary code.

Page 7: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

The CU needs a “workspace” where it can decode any instructions it receives.

This is called the Instruction Register.

Page 8: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

Whenever a program is about to be run, the binary code is first loaded into the RAM (Random

Access Memory). The CU then “imports” it’s instructions from the

RAM.

Page 9: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

But the CPU needs to know from which address in the RAM - the Memory Address Register

points to the right one.

Page 10: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

But how does the MAR know where to point?(Sometimes) the Program Counter tells it.

The Program Counter also keeps track of what point in the program we have reached.

Page 11: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

The data and instructions may only enter or leave the CPU by one “portal” or buffer.

This is the Memory Data (Memory Buffer) Register.

Page 12: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

When performing calculations or Boolean logic, data is sent to the Arithmetic and Logic Unit.

The ALU also consists of capacitors and transistors. It is usually depicted as a “V” shape

in diagrams.

Page 13: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

Like the CU, the ALU needs a “workspace” to manipulate values.

This is called the Accumulator.

Page 14: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

The seven components shown are essential to the CPU. Different models will have many,

more registers in addition to those shown here.

Page 15: D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless

Summary

The CPU contains a number of registers. These consist of capacitors and transistors.

The CU is the overall controller. It decodes instructions held in the IR. It also contains the

system clock.

The PC and MAR are pointer registers. They keep track of where the program has reached and which

RAM cell is being currently addressed.

The MDR acts as a point of entry/exit to/from the CPU.

The ALU performs arithmetic and logic operations. It manipulates data in the Acc.