Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

What is pipelining ? How the idea of pipelining used ina computer ?OR Write a short note on pipelining.

1.Pipelining is a technique of decomposing a sequential process into sub-operations, with each sub-process being executed in a special
dedicated segment that operates concurrently with all other segments.

    2. The processor executes a program by fetching and executing instructions, one after the other.

    3.Let Fi and Ei refer to the fetch and execute steps for instruction Ii.

    4.Execution of a program consists of a sequence of fetch and execute steps as shows is Fig. (A)

    Now consider a computer that has two separate hardware units, one for fetching instructions and another for executing them, as shown in Fig. (B).

    The instruction fetched by the fetch unit is deposited in an intermediated storage buffer Bi.

    The results of execution are deposited in the destination location specified by the instructions.

    For these purposes, we assume that both the source and destination of the data operated in by the instructions are inside the block labelled “Execution unit”.

    The computer is controlled by a clock whose period is such that the fetch and execute steps of any instruction can be completed in one clock cycle.

    Operation of the computer proceeds as in Fig. (C).

    In the first clock cycle, the fetch unit fetches an instruction I1(step F1) and stores it in buffer Bi at the end of the clock cycle.

    In the second clock cycle, the instruction fetch unit proceeds with the fetch operation for instruction I2 (Step F2). Meanwhile, the execution unit performs the operation specified by the instruction I1, which is available to it in buffer Bi(Step E1). By the end of the second clock cycle, the execution of instruction I1 is completed and instruction I2 is available.

    Instruction I2 is stored in Bi by replacing I1, which is no longer needed. Step E2 is performed by the execution unit during the third clock cycle, while instruction I3 is being fetched by the fetch unit. In this manner, both fetch and execute units are kept busy all the time.

    Leave a Comment