









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document from a cs 141 class by chien discusses pipelining in computer architecture, focusing on throughput, latency, and the hazards that can arise. It includes examples of pipelining in real life and in computer instruction execution, as well as contrasting latency and throughput. The document also touches upon the importance of multiple resources and parallelism in improving performance.
Typology: Exams
1 / 17
This page cannot be seen from the preview
Don't miss anything!










Instruction fetch
Reg ALU
Data access
Reg
Instruction fetch
Reg ALU
Data access
Reg
Instruction fetch
...
Instruction fetch
Reg ALU
Data access
Reg
Instruction fetch
Reg ALU
Data access
Reg
Instruction fetch
Reg ALU
Data access
Reg
Instruction memory
Address
Add (^) resultAdd
Shift left 2
Instruction
u x
Add
Write^0 data
u x
Registers
Read data 1
Read data 2
Read register 1 Read register 2
(^16) Sign extend
Write register
Write data
Read Address data Data memory 1
M result u x
Zero
Instruction memory
Address
4
32
0
Add
Add result Shift left 2
Instruction
IF/ID EX/MEM MEM/WB
M u x
0
1
Add
PC
0 Write data
M u x
1
Registers
Read data 1
Read data 2
Read register 1
Read register 2
16 Sign extend
Write register Write data
Read data
1
ALU result M u x
ALU
Zero
ID/EX
Data memory
Address
Instruction memory
Address
4
32
0
Add (^) resultAdd
Shift left 2
Instruction
IF/ID EX/MEM MEM/WB
M u x
0
1
Add
PC
0
Address
Write data
M u x
1
Registers
Read data 1
Read data 2
Read register 1 Read register 2
(^16) Sign extend
Write register
Write data
Read data Data memory 1
ALU M result u x
ALU
Zero
ID/EX
In s tr u c t io n m e m o ry
A d d re s s
A d d (^) re s u ltA d d
S h if t le ft 2
Ins truction
u x
A d d
W ri te d a t a
u x
R e g is t e rs
R e a d d a t a 1
R e a d d a t a 2
R e a d re g is t e r 1
R e a d re g is t e r 2
S i g n e x t e n d
W rite re g is t e r
W rite d a t a
R e a d d a t a
M re s u lt u x
Z e ro
D a ta m e m o ry
A d d re s s
In s tr u c t io n m e m o ry
A d d re s s
A d d
A d d re s u lt
S h if t le ft 2
Ins truction
u x
A d d
W ri te^0 d a t a
u x
R e g is t e rs
R e a d d a t a 1
R e a d d a t a 2
R e a d re g is t e r 1
R e a d re g is t e r 2
S i g n e x t e n d
W rite re g is t e r
W rite d a t a
R e a d d a t a
re s u lt M u x
Z e ro
D a ta m e m o ry
A d d re s s
In s tr u c t io n m e m o ry
A d d re s s
A d d (^) re s u ltA d d
S h if t le ft 2
Ins truction
u x
A d d
W ri te d a t a
u x
R e g is t e rs
R e a d d a t a 1
R e a d d a t a 2
R e a d re g is t e r 1
R e a d re g is t e r 2
S i g n e x t e n d
W rite re g is t e r
W rite d a t a
R e a d d a t a
M re s u lt u x
Z e ro
D a ta m e m o ry
A d d re s s
In s tr u c t io n m e m o ry
A d d re s s
A d d
A d d re s u lt
S h if t le ft 2
Ins truction
u x
A d d
W ri te^0 d a t a
u x
R e g is t e rs
R e a d d a t a 1
R e a d d a t a 2
R e a d re g is t e r 1
R e a d re g is t e r 2
S i g n e x t e n d
W rite re g is t e r
W rite d a t a
R e a d d a t a
re s u lt M u x
Z e ro
D a ta m e m o ry
A d d re s s
Reg
Reg
CC 1
Time (in clock cycles)
40 beq $1, $3, 7
Program
execution
order
(in instructions)
IM Reg
IM DM
IM DM
IM DM
DM
DM Reg
Reg Reg
Reg
Reg
IM Reg
44 and $12, $2, $
48 or $13, $6, $
52 add $14, $2, $
72 lw $4, 50($7)
CC 2 CC 3 CC 4 CC 5 CC 6 CC 7 CC 8 CC 9
Reg