+ All Categories
Home > Documents > The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram...

The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram...

Date post: 14-Dec-2015
Category:
Upload: lee-ford
View: 216 times
Download: 0 times
Share this document with a friend
Popular Tags:
18
THE VON NEUMANN ARCHITECTURE The fetch-execute cycle
Transcript
Page 1: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

THE VON NEUMANN

ARCHITECTURE

The fetch-execute cycle

Page 2: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

2VCN – ICT Department 2013 A2 Computing

Register Meaning Purpose PC Program Counter keeps track of where to find the next instruction so

that a copy of the instruction can be placed in the CIR

CIR Current Instruction Register holds the instruction that is to be executed

MAR Memory Address Register hold the memory address that contains either the next piece of data or an instruction that is to be used

MDR Memory Data Register acts like a buffer and holds anything that is copied from the memory ready for the processor to use it.

IR Index Register Used for vector/array operations, and for modifying operand addresses during the running of a program.

ALU Arithmetic Logic Unit This is where data is processed. This involves arithmetic and logical operations.

CU Control Unit fetches instructions from memory, decodes them and synchronises the operations before sending signals to other parts of the computer

Accumulator Holds results

Page 3: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

3VCN – ICT Department 2013 A2 Computing

A layout of the VNA also showing the data paths.

Page 4: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

4VCN – ICT Department 2013 A2 Computing

Computer buses

A bus is a set of parallel wires connecting two or more components of the computer.

Data bus – carries data from a given location to the CPU

Address bus – carries the address of a particular memory location during transfer of data to memory

Control bus – control signals are sent along this bus.

The data, address and control buses connect the processor, memory and I/O controllers. These are all system buses.

Page 5: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

5VCN – ICT Department 2013 A2 Computing

Failures of Von Neumann

Both data and programs share the same memory space.

This is a problem because it is quite easy for a poorly written or faulty piece of code to write data into an area holding other instructions, so trashing that program.

Page 6: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

6VCN – ICT Department 2013 A2 Computing

Every piece of data and instruction has to pass across the data bus in order to move from main memory into the CPU (and back again). This is a problem because the data bus is a lot

slower than the rate at which the CPU can carry out instructions.

This is called the 'Von Neumann bottleneck'.If nothing were done, the CPU would spend most

of its time waiting around for instructions. A special kind of memory called a 'Cache'

(pronounced 'cash') is used to tackle with this problem

Page 7: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

7VCN – ICT Department 2013 A2 Computing

The rate at which data needs to be fetched and the rate at which instructions need to be fetched are often very different. And yet they share the same bottlenecked data bus. To solve the problem idea of the Harvard

Architecture is considered that to split the memory into two parts.

One part for data and another part for programs. Each part is accessed with a different bus.

This means the CPU can be fetching both data and instructions at the same time.

Page 8: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

8VCN – ICT Department 2013 A2 Computing

Types of parallel processing

Type Class of computer Application

Pipeline Single Instruction Single Data (SISD)

Inside a CPU

Array Processor Single Instruction Multiple Data SIMD

Graphics cards, games consoles

Multi-Core Multiple Instruction Multiple Data MIMD

Super computers, modern multi-core chips

Page 9: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

9VCN – ICT Department 2013 A2 Computing

Parallel Processors

Parallel processing is the simultaneous processing of data.

The simultaneous use of more than one CPU or processor core to execute a program or multiple threads.

Hence this speeds up the rate at which processing occurs.

Page 10: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

10VCN – ICT Department 2013 A2 Computing

Advantages of parallel processing

Faster when handling large amounts of data

Is not limited by the bus transfer rate (the Von Neumann bottleneck)

Can make maximum use of the CPU (pipeline method) in spite of the bottleneck

Page 11: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

11VCN – ICT Department 2013 A2 Computing

Pipelining (SISD)

The Von Neumann architecture in microprocessor illustrates that an instruction can be in one of 3 phases/stages.

It could be being: fetched (from memory) decoded (by the control unit) executed (by the control unit)

Alternative is split the processor up into 3 parts

Each part handles one of the 3 stages.

Page 12: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

12VCN – ICT Department 2013 A2 Computing

The effect of pipe lining is that there are 3 instructions being dealt with at the same time.

This SHOULD reduce the execution times considerably

• This results in the situation shown in Fig below, which shows how this process known as pipelining, works.

Page 13: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

13VCN – ICT Department 2013 A2 Computing

Array or Vector processing

Has a number of ALUs that allows all the elements of an array to be processed at the same time.

A single instruction is issued by a control unit and that instruction is applied to a number of data sets at the same time.

It is a Single Instruction Multiple Data computer (SIMD)

Page 14: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

14VCN – ICT Department 2013 A2 Computing

An architecture of an array processor

Page 15: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

15VCN – ICT Department 2013 A2 Computing

Multiple Processors

Multiple instructions act upon multiple data sets (MIMD)

By having a number of CPUs being applied to a single problem

With each CPU carrying out only part of the overall problem.

Page 16: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

16VCN – ICT Department 2013 A2 Computing

An architecture of an array processor

Applied to problems such as predicting climate change or running new drug simulations.

Page 17: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

17VCN – ICT Department 2013 A2 Computing

Co-processor (Maths co-processor)

A processor used to supplement the functions of the primary processor (the CPU).

Is especially designed to carry out floating point arithmetic calculations extremely quickly.

Other operations performed by the co-processor are: graphics signal processing string processing encryption

Page 18: The fetch-execute cycle. 2 VCN – ICT Department 2013 A2 Computing RegisterMeaningPurpose PCProgram Counter keeps track of where to find the next instruction.

18VCN – ICT Department 2013 A2 Computing

Assignment 2

Qn 1: What are the disadvantages of parallel processing?

Qn 2: What are the applications and limitations of array, multiple and pipeline processors?


Recommended