




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





UTT
Department of Electrical and Computer Engineering
University of Illinois, Chicago
Phone: (312) 355-1314;
e-mail: [email protected]
URL: http://www.eecs.uic.edu/
dutt
Shantanu Dutt
UIC
1
Pipelining Introduction
(^) Pipelining
(^) is the processing concept in which the entire processing flow is
broken up into multiple
(^) stages
, and a new data/instruction is processed by
which then goes onto the next stage for further processing.a stage potentially as soon as it is done with the current data/instruction,
Instr. Data/
Instr.Data/
k stages each of delay D/k
"fill", a data/instr. is done every D/k secsis inputted every D/k secs. After initial (b) Pipelined processing: new data/instr.
data/instr. is done evry D secs.data/instr. inputted every D secs. A(a) Non-pipelined processing; new
Processing Path Delay = D
(^) k (^) stages each of equal delay, then the processing
throughput
(^) (# of data/instruction processed per second) increases roughly
by a factor of
(^) k .
E.g., water/oil pipelineâprocessing
tination.communicationâprocessing is sending all the signals from source to des-is sending all the fluid from source to destination, TV/radio signal
of the Decode stage will store instruction
(^) i (^) 1, the input register of the
Read stage will store instruction
(^) i (^) 2, the input register of the Execute
stage will store the opcode and write register fields of instruction
(^) i (^) 3 as
processing of nstructionwell as the twi input operands generated by the Read stage in its previous
(^) i (^) 3, while the Write stageâs input register would
store the ALU output and the write register field of instruction
(^) i (^)
Further, the C.U. of stage
(^) j (^) can only store new data.instruction in the input
register of stage
(^) j ^ 1 after it receives a signal (
done
j^ (^1) ) from stage
(^) j ^ 1
informing it that it is done with its current processing (much like
(^) wait
(^) is
used to communicate between the memory unit and the processor).
(^) j (^) can only start processing new data/instruction
in its input register when it receives a signal
(^) new
j^ (^1) from stage
(^) j (^) 1 in-
(which, will be done, of course, only after stageforming it that new data/instruction has been written into its input register
(^) j (^) asserts signal
(^) done
j to
stage
(^) j (^)
Some extra delay has been added to the total delay/latency for processing delay in our discussions.that is needed in the pipelined version. We will, however, ignore this extraa single instruction due to the writing and reading of the stage registers
Pipeline ThroughputâNon-branching model
(^) t i be the delay of stage
(^) i
. Then, non-pipelined time
(^) no
pipe
for
processing
(^) n (^) instruction is
(^) no
pipe
n
i^ t
(^) pipe
for processing
(^) n (^) instruction is
(^) pipe
Fill Time
n
k i^ max (^1) it
where the
(^) Fill Time
(^) is the time taken to âfillâ the pipeline, i.e., the time
theall pipeline stages ate âfilledâ or busy processing some instruction; beforetaken for the first instruction to emerge from the pipeline, by which time, (^) Fill Time
, some stages may be idle. The
(^) Fill Time
(^) is given by
Fill Time
sum
i k (^1) t i
throughput is 1
(^) kt (^) instr/sec, while the pipelined throughput is 1
(^) t (^) in-
str/sec, which is
(^) k (^) times more than the non-pipelined version.
(^) no pipe n^
n 6 cc
(^) s
(^) pipe
n^
6 n (^) 1 ^ 3 cc
(^) s
Pipelined throughput =
(^) n 6 n (^) 1 ^ 3
1 (^) 3 instr/cc.
Non-pipeline throughput is 1/6 instr/cc.
Pipelined Myth8 Processor
Register File
O2 O
O2 O
O2 O
O2 O
ALU
alu_sel[0..2] cin
cout, m7, v
StageDecode & ALU
register ALU o/p
8
o/p regsReg. file
MEMORY SYSTEM
Memory Data Bus
CPU
read
write
dr_enb
Mux
b_sel[0..2] a_sel[0..2]
dr_sel[0..1]
result_sel[0..1]
MAR
mar_sel
8
8
Memory Address Bus
MDR
rk_selrj_sel ri_selr0write r0write
(^8)
8 Write Bus
Read Bus A
Read Bus B
IR
IR ir1_sel
ir0_sel
CUWrite CUALU CURead CUFetch
Opcode register^ opcode
StageWriteDecode & StageDecode & Read^ Fetch Stage
The Myth8 Pipelined Processor