4. Pipelines

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/7

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:08 PM on 5/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

8 Terms

1
New cards
What are the 5 stages of an ideal processor pipeline?

The ideal 5-stage processor pipeline consists of:

  • Stage 1: Instruction Fetch (IF)

  • Stage 2: Instruction Decode (ID)

  • Stage 3: Execution (EX)

  • Stage 4: Memory Access (MEM)

  • Stage 5: Write Back (WB)

<p>The ideal <strong>5-stage</strong> processor pipeline consists of:</p><ul><li><p>Stage 1: Instruction Fetch (IF)</p></li><li><p>Stage 2: Instruction Decode (ID)</p></li><li><p>Stage 3: Execution (EX)</p></li><li><p>Stage 4: Memory Access (MEM)</p></li><li><p>Stage 5: Write Back (WB)</p></li></ul><p></p>
2
New cards
What occurs during Stage 1 — Instruction Fetch (IF)?

Stage 1 — Instruction Fetch (IF):

  • Fetches the next instruction.

  • Uses: PC (Program Counter) as instruction memory address.

  • Instructions are: 32-bit=4 bytes32\text{-}bit = 4\ bytes

  • PC increases by: 44 after each instruction fetch.

3
New cards
What occurs during Stage 2 — Instruction Decode (ID)?

Stage 2 — Instruction Decode (ID):

  • Instruction is decoded.

  • Registers are read.

4
New cards
What occurs during Stage 3 — Execution (EX)?

Stage 3 — Execution (EX):

  • ALU operations execute.

  • Load/store addresses are computed.

5
New cards
What occurs during Stage 4 — Memory Access (MEM)?

Stage 4 — Memory Access (MEM):

  • Accesses data memory.

  • Used for:  

    • Load instructions

    • Store instructions

6
New cards
What occurs during Stage 5 — Write Back (WB)?

Stage 5 — Write Back (WB):

  • Results are written to registers.

  • Applies to:

    • ALU results

    • Load results

  • Note: Memory is not written in this stage.

7
New cards
What are the specific hardware components and timing rules associated with each pipeline stage?

Pipeline Component Stages:

  • Stage 1: Instruction Memory (IM)

    • Instruction fetch

  • Stage 2: Register read and Instruction decode

    • Written in the first half of the cycle

    • Read in the second half

    • If a register is written and read in the same cycle, the read returns the new value

  • Stage 3: ALU execution

  • Stage 4: Data Memory (DM) access

  • Stage 5: Register write-back

<p>Pipeline Component Stages:</p><ul><li><p><strong>Stage 1</strong>: Instruction Memory (<strong>IM</strong>)</p><ul><li><p>Instruction fetch</p></li></ul></li><li><p><strong>Stage 2</strong>: Register read and Instruction decode</p><ul><li><p>Written in the first half of the cycle</p></li><li><p>Read in the second half</p></li><li><p>If a register is written and read in the same cycle, the read returns the new value</p></li></ul></li><li><p><strong>Stage 3</strong>: ALU execution</p></li><li><p><strong>Stage 4</strong>: Data Memory (<strong>DM</strong>) access</p></li><li><p><strong>Stage 5</strong>: Register write-back</p></li></ul><p></p>
8
New cards
What is the role of Pipeline Registers between stages?

Pipeline Registers:

  • Registers are added between stages.

  • At the end of each clock cycle:

    • Stage outputs are stored in registers.

    • Stored values become inputs for the next sta