aımnova
DashboardMy LearningCrash CoursesStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Crash Courses
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Teachers
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aımnova

IB study, practice and feedback built around the real exam.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.c1e448f

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 1.1Pipelining
Back to Computer Science HL Topics
1.1.64 min read

Pipelining (Computer Science HL)

IB Computer Science · Unit 1

Exam preparation

Practice the questions examiners actually ask

Our question bank mirrors real IB exam papers. Practice under timed conditions and track your progress across topics.

Start Practicing

Contents

  1. 1Start the next one before this one finishes
  2. 2Where the speed-up comes from
  3. 3What stalls it
  4. 4Exam-style question
The big idea: The fetch–decode–execute cycle has stages, and each uses different parts of the processor.

Pipelining overlaps them: while one instruction is executing, the next is being decoded and a third is being fetched. No stage sits idle waiting for the others.

The stages pipelining overlaps — fetch, decode, execute, each using different parts of the processor.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic

The four stages of one instruction

1

Fetch

Copy the next instruction from memory into the CPU.

2

Decode

The control unit works out what the instruction means.

3

Execute

The ALU or other unit carries it out.

4

Write-back

The result is written to a register or to memory, ready for the next instruction.

Each stage uses different hardware, so all four can be busy at once.

A grid of clock cycles with four instructions, each shifted one cycle to the right
Four instructions finish in 7 cycles instead of 16: each still takes 4 cycles, but they overlap.

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime
Without pipeliningWith a 3-stage pipeline
Stages busy at onceOneThree
3 instructions take9 stage-times5 stage-times
100 instructions take300102
One instruction still takes3 stage-times3 — unchanged
What improvesNothingThroughput, not latency
Throughput, not latency: Pipelining does not make any single instruction finish sooner — it still passes through every stage.

What improves is how many complete per second. This distinction is the most reliably examined point in the topic.
The laundry analogy, precisely: Washing, drying and folding one load takes the same time however you organise it. But you can dry load 1 while washing load 2.

The machines are the stages; one load is one instruction; four loads finish far sooner even though each still takes as long.

Memorize terms 3x faster

Smart flashcards show you cards right before you forget them. Perfect for definitions and key concepts.

Try Flashcards FreeYour first topic is free to keep • No credit card required

Branches

  • An if means the next instruction is not yet known
  • The pipeline has already fetched the wrong ones
  • They must be discarded and the pipeline refilled
  • This is the expensive one

Data dependency

  • An instruction needs the result of the one before it
  • It must wait until that result exists
  • The pipeline holds a bubble while it does

Resource conflict

  • Two stages want the same hardware at once
  • One waits — the other proceeds
  • Eased by duplicating the contended unit
Branch prediction, and why it is a guess: Processors guess which way a branch will go and fetch accordingly. Guess right and nothing is lost; guess wrong and the pipeline must be flushed and refilled.

A deeper pipeline overlaps more — but a wrong guess then costs more, because there is more to throw away.

Pipelining: inside ONE core

  • The stages of different instructions overlap
  • More instructions finish per second (throughput)

Multi-core: MANY cores

  • Each core has its own pipeline and runs its own thread
  • The cores work independently and in parallel, e.g. four clips exported on four cores
  • They only slow each other down when they share data or memory

How this is tested — you must compute the saving and be precise that throughput improves while latency does not. It comes up two ways:

Paper 1 Section A

  • Describe the process of pipelining, 3-4 marks
  • Calculate how long n instructions take
  • State one cause of a stall

Paper 1 Section B — case study

  • Explain why a branch is expensive
  • Explain why one instruction is no faster
The classic trap: Saying pipelining "makes instructions faster". Each instruction takes exactly as long. More of them complete per second — that is throughput, not latency.
IB-style questionDetermine[5 marks]

A processor has a 4-stage pipeline, each stage taking 1 ns. Determine how long 50 instructions take with and without pipelining, and explain why the saving is not 4×.

Model answer plan

See the answer broken into clear points, with guidance on how each point earns marks.

Claim your free topic

Try an IB Exam Question — Free AI Feedback

Test yourself on Pipelining. Write your answer and get instant AI feedback — just like a real IB examiner.

A core has a four-stage pipeline (fetch, decode, execute, write-back) and each stage takes one clock cycle. how many cycles 20 instructions take to complete, with no stalls. [2 marks]

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

1.1.1CPU components1.1.2The GPU1.1.3CPU vs GPU1.1.4Primary memory
View all Computer Science HL topics
Improve your exam techniqueCommand terms, paper structure, and mark-scheme tips for Computer Science HL
Previous1.1.5Fetch–decode–executeNextSecondary storage1.1.7

4 exam-style questions ready for you

Students who practice on Aimnova improve their scores by 15% on average. Get instant feedback that shows exactly how to improve your answers.

Practice Now — FreeView All Computer Science HL Topics