Professional Documents
Culture Documents
Pipeline
Conventional Datapath
11-1
2.4 ns is 0.6 ns
3
0.6
required to Clock WB
Register file OF Register file
perform a single 0.6 ns 0.6
operation (i.e. 1
416.7 MHz). MUX B 0.2 ns MUX B 0.2
OF
EX
0.2
EX
MUX D 0.2 ns
WB 0.2
3 MUX D 0.2
0.6 ns 0.6 ns
3
Clock WB
A Pipelined DatapathRegister
is donefile by OF Register file
breaking a conventional datapath0.6into ns 0.6 ns
parts by inserting registers as pipeline
platforms between these parts
1
These registers provide temporary
MUX B 0.2 ns MUX B 0.2 ns
storage for data passing through the
pipeline OF
Data moves synchronously with the EX
clock 0.2 ns
Constant in
OF consists of reading 1
Operand Fetch (OF)
register values (A&B), or MUX B MB
operand(s) to be used in
EX during next clock cycle A B
2 FS
In EX a function unit Execute (EX)
V Function
operation occurs, and the C
unit
WB is the write-back EX
Data out R3 5 OF EX WB
R4 Data in 6 OF EX WB
R5 0 7 OF EX WB
Microoperation
execution?
à (9 cycles)× 1 = 9 ns
Pipelined Execution Pattern
Clock cycle
1 2 3 4 5 6 7 8 9
R1 R2 R3 1 OF EX WB
R4 sl R6 2 OF EX WB
R7 R7 1 3 OF EX WB
R1 R0 2 4 OF EX WB
Data out R3 5 OF EX WB
R4 Data in 6 OF EX WB
R5 0 7 OF EX WB
Microoperation
Maximum improvement of pipelined over conventional can
be obtained when the pipeline if fully utilized (all stages are
active) e.g. over the 5 clock cycles, 3 to 7 (the pipeline is
full),Mano &5 operations
© 2008 Pearson Education, Inc.
M. Morris Charles R. Kime are completed in 5 ns. While in the same
time the conventional can execute 5ns ÷2.6 ns/
LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 4e
Address
Stage Instruction
1 memory
Instruction
AA BA MB
DOF Data A Data B
EX Address out
FS MW
4 A B
FS Address
C
Function
Stage V Data
unit
3 memory
N
Z F Data out
Data in
Data out MW
EX Data F Data I
Data in Address
WB
Stage DA MD RW Data
4 MD MUX D memory
(same as
above)
WB RW D data
© 2008 Pearson Education, Inc. DA Register
file (same
M. Morris Mano & Charles R. Kime CONTROL DATAPATH as above)
LOGIC AND COMPUTER DESIGN FUNDAMENTALS,4e
11-5
2 IF DOF EX WB
3 IF DOF EX WB
4 IF DOF EX WB
5 IF DOF EX WB
6 IF DOF EX WB
7 IF DOF EX WB
Instruction
R1 = 0 evaluated
PC set to 20
1 2 3 4 5 6 7
No change
1 BZ R1, 18 IF DOF EX WB
2 MOVA R2 R3 IF DOF EX WB No change
3 MOVA R1 R2 IF DOF WB
20 MOVA R5 R6 IF DOF EX WB
Branch detected
and bubbles launched
Instruction MOV R5, R6
fetched from target address