Download presentation
Presentation is loading. Please wait.
Published byKiley Gilstrap Modified over 9 years ago
1
Computer Architecture and the Fetch-Execute Cycle Parallel Processor Systems
2
Learning Objectives Discuss parallel processing systems (co- processor, parallel processor and array processor), their uses, their advantages and their disadvantages.
3
A Von Neumann Architecture instruction can be in one of three phases: 1.Fetched (from memory). 2.Decoded (by the control unit). 3.Executed (by the control unit).
4
Disadvantages of Von Neumann Architecture Executes instructions serially. Limited by the time it takes to process each instruction. Some registers are idle (not being used) during the Fetch - Decode - Execute - Reset cycle.
5
Pipelining Overlaps the three phases of a Von Neumann Architecture instruction and uses idle registers.
6
This helps with the speed of throughput unless the next instruction in the pipe is not the next one that is needed. E.g. Instruction 2 is a jump to Instruction 10. E.g. Instruction 2 is a jump to Instruction 10. Then Instructions 3, 4 and 5 need to be removed from the pipe & Instruction 10 needs to be loaded into the fetch part of the pipe. Thus, the pipe will have to be cleared and the cycle restarted.
7
Effect of pipe lining Three instructions dealt with at the same time. Registers no longer idle. This SHOULD reduce the execution times considerably (to approximately 1/3 of the standard times), however, this would only be true for a very linear program. Once jump instructions are introduced the problem arises that the wrong instructions are in the pipe line waiting to be executed, so every time the sequence of instructions changes, the pipe line has to be cleared and the process started again.
8
Parallel Processor Systems An alternative to Von Neumann Architecture (serial processors) with many independent processors (or ALUs – see array processor later in this presentation ) working in parallel on the same run of a program / job. array processor array processor
9
Parallel Processing is needed when applications are: Time sensitive (results are needed in a very short period of time). Contain vast quantities of data. Require large amounts of processing / calculations. Processes are interrelated. Calculations can be done at same time which speeds up processing. e.g. Weather Forecasting (next slide)
10
Weather Forecasting Data collected about present conditions to include wind / speed / humidity / temperature / pressure. Also details about conditions close to required location. Predictions made (forecast) matched against actual results. Hone predictions next time. Data collected by weather balloons / satellites / weather stations.
11
Types of “Parallel Processing System” Processors
12
“Parallel Processing System” Processors True Parallel Processors (serial processors in parallel) Array Processor (one serial type processor with multiple ALUs) Coprocessors (Not general-purpose processors in their own right) Maths Coprocessors Floating Point Coprocessors
13
True Parallel Processor s Many processors to perform a single job / program. Each processor is a general-purpose processor in its own right. Each processor is a general-purpose processor in its own right. Serial processors in parallel. Used to perform any task which is a part of the entire problem.
14
An Array processor One main processor but with many ALUs. Allows a single instruction to be carried out simultaneously on a number of data locations in an array and is used to process all the values in the array at the same time. Note: A kind of sub form of a parallel processing system: not a true parallel processor as cannot process all tasks which are part of an entire problem, only multiple values in an array (e.g. cannot fetch multiple instructions from memory, execute multiple program flow control instructions, do multiple input/output operations, etc…).
15
Coprocessor/ s Not general-purpose processors in their own right (a kind of sub form of a parallel processing system). Cannot fetch instructions from memory, execute program flow control instructions, do input/output operations, etc…. They require the host main processor to fetch the instructions and handle all other operations aside from the coprocessor’s specific functions. They basically offload the burden of carrying out certain operations from the main processor. There are two types: There are two types: Maths Coprocessors Separate units which carry out all mathematical operations. Separate units which carry out all mathematical operations. e.g. floating point arithmetic, graphics, signal processing, string processing or encryption. Floating Point Coprocessors Separate units which can carry out only calculations on floating point values. Separate units which can carry out only calculations on floating point values. These only carry out all mathematical operations including floating point calculations whereas Floating Point Coprocessors can only carry out floating point calculations but not other mathematical operations.
16
What's a bus? Early computer buses were literally parallel electrical wires with multiple connections, but the term is now used for any transmission path. A wire basically. A wire basically.
17
Types of Buses 1.Address 2.Data 3.Control
18
1 2 3 4 Address Data Control Single headed arrow = Uni -directional Double headed arrow = Bi -directional Control
19
http://en.wikipedia.org/wiki/File:Computer_system_bus.svg
20
Types of Buses 1.Address Carries the address of a memory location. Carries the address of a memory location. e.g. Address of location in memory from MAR. 2.Data To carry data from one location to another in processor. To carry data from one location to another in processor. e.g. from MDR to CIR 3.Control Carries control signals around processor to synchronise the operation of the processor components. Carries control signals around processor to synchronise the operation of the processor components. e.g. Memory read/write completed. In reality there are many lines/wires and each line carries a different signal. In reality there are many lines/wires and each line carries a different signal.
21
Plenary How does pipelining speed up the processing done by a computer?
22
Plenary All instructions have three phases which are treated separately, by different parts of the processor so that more than one instruction can be being dealt with simultaneously.
23
Plenary What type of instruction would cause the pipeline system to be reset and why?
24
Plenary Jump instruction The instructions in the pipeline are no longer the ones to be dealt with next so the pipeline has to be reset.
25
Plenary How does parallel processing differ from serial processing?
26
Plenary Many processors are used simultaneously all doing some processing required by the application. Special non-linear programs must be produced.
27
Plenary Why is parallel architecture needed when processing some simulations? Give an example application.
28
Parallel Processing is needed when applications are: Time sensitive (results are needed in a very short period of time). Contain vast quantities of data. Require large amounts of processing / calculations. Processes are interrelated. Calculations can be done at same time which speeds up processing. e.g. Weather Forecasting.
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.