Search Header Logo
Pipelining

Pipelining

Assessment

Presentation

Computers

University

Medium

Created by

Monisa Wahab

Used 4+ times

FREE Resource

18 Slides • 10 Questions

1

Pipelining

Computer Organization

Slide image

2

What is pipelining?

  • Pipelining is the process of accumulating instruction from the processor through a pipeline. It allows storing and executing instructions in an orderly process. It is also known as pipeline processing.

  • Before moving forward with pipelining, check these topics out to understand the concept better :

    1. Memory Organization 2. Memory Mapping and Virtual Memory 3. Parallel Processing

3

Pipelining

Pipelining is a technique where multiple instructions are overlapped during execution. Pipeline is divided into stages and these stages are connected with one another to form a pipe like structure. Instructions enter from one end and exit from another end.

4

Pipelining

  • Pipelining increases the overall instruction throughput.

  • In pipeline system, each segment consists of an input register followed by a combinational circuit. The register is used to hold data and combinational circuit performs operations on it. The output of combinational circuit is applied to the input register of the next segment.

5

Pipeline

Pipeline system is like the modern day assembly line setup in factories. For example in a car manufacturing industry, huge assembly lines are setup and at each point, there are robotic arms to perform a certain task, and then the car moves on ahead to the next arm.

Slide image

6

Types of Pipeline

  • Arithmetic Pipeline

  • Instruction Pipeline

7

Arithmetic Pipeline

Arithmetic pipelines are usually found in most of the computers. They are used for floating point operations, multiplication of fixed point numbers etc. For example: The input to the Floating Point Adder pipeline is:

Slide image

8

Arithmetic Pipeline

  • The floating point addition and subtraction is done in 4 parts:

    1. Compare the exponents. 2. Align the mantissas. 3. Add or subtract mantissas 4. Produce the result.

  • Registers are used for storing the intermediate results between the above operations.

9

Instruction Pipeline

  • In this a stream of instructions can be executed by overlapping fetchdecode and execute phases of an instruction cycle. This type of technique is used to increase the throughput of the computer system.

  • An instruction pipeline reads instruction from the memory while previous instructions are being executed in other segments of the pipeline. Thus we can execute multiple instructions simultaneously. The pipeline will be more efficient if the instruction cycle is divided into segments of equal duration.

10

Pipeline Conflicts

There are some factors that cause the pipeline to deviate its normal performance. Some of these factors are given below:


11

1. Timing Variations

All stages cannot take same amount of time. This problem generally occurs in instruction processing where different instructions have different operand requirements and thus different processing time.

12

2. Data Hazards

All stages cannot take same amount of time. This When several instructions are in partial execution, and if they reference same data then the problem arises. We must ensure that next instruction does not attempt to access data before the current instruction, because this will lead to incorrect results.

13

3. Branching

All stages cannot take same amount of time. This In order to fetch and execute the next instruction, we must know what that instruction is. If the present instruction is a conditional branch, and its result will lead us to the next instruction, then the next instruction may not be known until the current one is processed.

14

4. Interrupts

Interrupts set unwanted instruction into the instruction stream. Interrupts effect the execution of instruction.

15

5. Data Dependency

Interrupts set unwanted instruction into the It arises when an instruction depends upon the result of a previous instruction but this result is not yet available.

16

Advantages of Pipelining

  • The cycle time of the processor is reduced.

  • It increases the throughput of the system

  • It makes the system reliable.

17

Disadvantages of Pipelining

  • The design of pipelined processor is complex and costly to manufacture.

  • The instruction latency is more.

18

Time to test your knowledge

Are you ready for the quiz? If yes, click next!

Slide image

19

Multiple Choice

1. How many types of Pipelining exist?

1

2

2

3

3

4

4

5

20

Multiple Choice

2. Arithmetic Pipeline is used for?

1

floating point operations

2

interger operations

3

character operations

4

None of the above

21

Multiple Choice

3. Which of the following is not a Pipeline Conflicts?

1

Timing Variations

2

Branching

3

Load Balancing

4

Data Dependency

22

Multiple Choice

4. Which of the following is disadvantage of Pipelining?

1

cycle time of the processor is reduced.

2

The design of pipelined processor is complex and costly to manufacture.

3

The instruction latency is more.

4

Both B and C

23

Multiple Choice

5. Which of the following is an advantage of pipelining?

1

Instruction throughput increases.

2

Faster ALU can be designed when pipelining is used.

3

Pipelining increases the overall performance of the CPU.

4

All of the above

24

Multiple Choice

6. The processor contends for the usage of the hardware and might enter into a

1

hazard state

2

Stalk State

3

. Deadlock State

4

None of the above

25

Multiple Choice

7. The Tomasulo algorithm is a hardware algorithm developed ___________.

1

1966

2

1967

3

1968

4

1969

26

Multiple Choice

8. In Arithmetic Pipeline, the floating point addition and subtraction is done in ____________ parts.

1

2

2

3

3

4

4

5

27

Multiple Choice

9. ______ have been developed specifically for pipelined systems.

1

Utility software

2

Speed up utilities

3

Optimizing compilers

4

None of the above

28

Multiple Choice

10. The pipelining process is also called as ______

1

Assembly line operation

2

Von Neumann cycle

3

Superscalar operation

4

None of the above

Pipelining

Computer Organization

Slide image

Show answer

Auto Play

Slide 1 / 28

SLIDE