<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Pipelining on Sanketh's Blog</title><link>https://sankethbk.github.io/blog/tags/pipelining/</link><description>Recent content in Pipelining on Sanketh's Blog</description><generator>Hugo -- 0.166.0</generator><language>en-us</language><lastBuildDate>Wed, 19 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://sankethbk.github.io/blog/tags/pipelining/index.xml" rel="self" type="application/rss+xml"/><item><title>CPU Pipelining</title><link>https://sankethbk.github.io/blog/posts/cpu/2026-08-19-cpu-pipelining/</link><pubDate>Wed, 19 Aug 2026 00:00:00 +0000</pubDate><guid>https://sankethbk.github.io/blog/posts/cpu/2026-08-19-cpu-pipelining/</guid><description>&lt;h1 id="pipelining--first-principles"&gt;Pipelining — First Principles&lt;/h1&gt;
&lt;h2 id="what-is-pipelining"&gt;What is pipelining?&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Pipelining is the technique of overlapping the execution of multiple instructions.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;An instruction consists of multiple pieces of work. Instead of completing one instruction entirely before starting the next, we divide the work into &lt;strong&gt;stages&lt;/strong&gt; and let different instructions occupy different stages simultaneously.&lt;/p&gt;
&lt;p&gt;For a simple example:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; IF ID EX MEM WB
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Instruction 1 → → → → →
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Instruction 2 → → → →
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Instruction 3 → → →
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Instruction 4 → →
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;At any moment, several instructions are being worked on, but each is at a different stage.&lt;/p&gt;</description></item></channel></rss>