2. An ideal pipeline will run a sequence of instructions with no delay. As usual
ID: 3808509 • Letter: 2
Question
2. An ideal pipeline will run a sequence of instructions with no delay. As usual, suppose that each stage takes one clock cycle. That is, given instructions I1, · · · , Ik running in this ordering, in the first clock cycle, I1 is in the first stage of the pipeline, in the second clock cycle, I1 is in the second stage of the pipeline and I2 is in the first stage of the pipeline, etc. Let Nk be the number of cycles needed till the last instruction Ik moving out of the pipeline. Prove that lim k Nk k = 1.
Explanation / Answer
The first clock cycle will take the "lk" ordering and similarly, it will take l2 in the second clock cycle.
The main purpose of the pipeline is used to assemble the operations in a group based system.
Let us assume: Lim k = Nk / k =1,
Proof:
Step-1: Lim k = Nk / k,
Step-2: Lim k = Nk+1 / k+1,
Step-3: Lim k = Nk+1 / k + Nk+1 / 1,
Step-4: ( Lim k Nk+1 / k) ( Lim k Nk+1 / 1) = 1
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.