


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Sequential^
Parallel Pipelined
CIT 595^
3
CIT 595^
CIT 595^
5
Pipelined Laundry ^ Pipelined Laundry takes only 3.5 hours ^ Speedup = 6/3.5 = 1.7 ^ Pipelining did not reduce completion time for one task but it helps thethroughput of the entire workload in turn decreasing the completion time
CIT 595^ Instruction Level Pipelining: Big Picture We exploit idleness of instruction cycle to allow instructions to beexecuted in parallel (exploit parallelism at instruction level) For each stage, one phase of instruction is carried out, and the stagesare overlapped Each stage of the Instruction Processing Cycle takes 1 clock cycle^ S1. Fetch instruction
S4. Fetch operands S2. Decode opcode
S5. Execute S3. Evaluate Address
S6. Store result
Theoretical Speedup due to Pipelining The theoretical speedup offered by a pipeline can bedetermined as follows: Let^ k^ be total number of stages and CIT 595
t be the time per stage p^ ^ Let^ n^ be the total number of tasks ^ The first task (instruction) requires
k^ รรรร^ t time to complete in a p^ k -stage pipeline. The remaining (
n^ - 1) tasks emerge from the pipeline
one per
cycle^ So the total time to complete the remaining tasks is
( n^ -
tasks using a^ k -stage pipeline requires: ( k^ รร^ t ) + ( n^ - 1) t รร p
= ( k^ +^ n^ - 1) tp p
CIT 595^ Theoretical Speedup due to Pipelining If we take the time required to complete
n^ tasks without a pipeline and divide it by the time it takes to complete
n^ tasks using a pipeline, we find: If we take the limit as
n^ approaches infinity, (
k^ +^ n^ - 1) approaches
n,
which results in a theoretical speedup of:
CIT 595^
13
Impact on Clock cycle time due to Pipelining ^ Recall^ timeprogram ^ Lower time per cycle ->lower CPU time ->improvesperformance ^ This implies that we if we shorten the time per pipelinestages, we will lower clock cycle time^ ^ This can be achieved by adding more pipe stages ofshorter duration
cycle
cyclesinstructionstimeinstruction
program x^ = x^ Instruction CountCPI Clock Cycletime CPU Time^ =
CIT 595^
Impact on Clock cycle time due to Pipelining
CIT 595^
15
Impact on CPI
CIT 595
Limitations ^ The buffers (registers) to hold data & control adddelay ^ We assume that the pipeline can be kept filled atall times^ ^ However, this is not always the case due to what isknown as