pipelining & retimingpipelining & retiming lecture...

65
Pipelining & Retiming Pipelining & Retiming Lecture 7 Dr. Shoab A. Khan

Upload: vantu

Post on 05-Apr-2018

239 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Pipelining & RetimingPipelining & RetimingLecture 7

Dr. Shoab A. Khan

Page 2: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Pipelining

Pipeline registers are added to reduce the critical path delay of a combinational cloud.Examplep

A combinational logic is pipelined with three levels of pipelining stages with two sets of p p g gpipeline registers

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 2

Page 3: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Pipelining & Retiming

Pipelining & RetimingRetiming is a mapping from a given DFG, G to

ti d DFT G h th t th dia retimed DFT, Gr such that the corresponding transfer function of G and Gr only differ by a pure delay z−Lp y

PurposesTo facilitate pipelining To reduce clock cycle timeTo reduce number of registers neededTo reduce number of registers needed.

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 3

Page 4: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Feed-forward Cut-set & Pipelining

Feed forward cut-setPipeline registers added on each edge of the cut-set

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 4

Page 5: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Pipelining using Feed-forward Cut-set

Two candidate cut-sets in the DFG implementing a 5-coefficient FIR filter.One level of pipelining registers added using cut-set 2

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 5

Page 6: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Cut-set Retiming

It involves transferring a number of delays from edges of the same direction across a cut set line of a DFG to all d f i di ti th liedges of opposing direction across the same line.

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 6

Page 7: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Cut-set Retiming: DF to TDF

A 4-coefficient FIR filter in DF. Reversing the direction of

xn

h h h h

additions in the DF and applying cut-set retiming.

x x x x

+ + +

h0 h1 h2 h3

yn

The retimed filter in TDF

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 7

Page 8: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Delay Transfer Theorem

Without affecting the transfer function of the system, N registers can be transferred from each incoming edge of

d f DFG t ll t i d f th da node of a DFG to all outgoing edges of the same node,

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 8

Page 9: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Node Transfer Theorem

Delay transfer theorem moves one register each from outgoing edges to incoming edges across N0

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 9

Page 10: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Pipelining using cut-set

Apply valid cut-set and add pipeline registers and then retime them if required

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 10

Page 11: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

A cut-set to pipeline a 4-bit RCA

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 11

Page 12: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Placing pipeline registers along the cut-set line

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 12

Page 13: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Three cut-sets for adding four pipeline stages in a 4-bit RCA

at[3] bt[3] at[2] bt[2] at[1] bt[1] at[0] bt[0]

st[1] st[0] st[2] st[3]

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 13

Page 14: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Four-stage pipelined 4-bit RCA

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 14

Page 15: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Following good design practice by lining up of different pipeline stages

cina3 a0a1a2 b0b1b2b3

FA0

FA1

FA2

FA3cout

s0s1s2s3

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 15

Page 16: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Pipelining Using Nodal Transfer Theorem

Add the desired number of registers to all input edges and then, by repeated application of the node transfer th t ti ll th i t t b k ththeorem, systematically move the registers to break the delay of the critical path

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 16

Page 17: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Original DFG

Node transfer theorem to add one level of pipeline registers in a 4-bit RCA

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 17

Page 18: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Node transfer theorem applied around node FA0

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 18

Page 19: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Node transfer theorem applied around FA1

cin

FA0FA1FA2FA3

cin

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 19

Page 20: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

RCA Example

Adding three stages of pipeline registers by applying the

node delay transfer theorem onnode delay transfer theorem on• Original DFG, around• FA0 • FA1 • FA2

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 20

Page 21: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Delay Transfer Theorem

Adding three stages of pipeline registers by applying the node delay transfer theorem on

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 21

Page 22: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Delay Transfer across FA0

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 22

Page 23: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Delay Transfer Across FA1

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 23

Page 24: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Delay Transfer across FA2

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 24

Page 25: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Pi li i O i i d DFGPipelining Optimized DFG

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 25

Page 26: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Direct-form FIR filter with three coefficients

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 26

Page 27: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Optimized implementation of 3-coefficient direct-form FIR filter

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 27

Page 28: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Possible locations to apply cut-set pipelining to a compression tree

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 28

Page 29: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Pipelining a 5-bit conditional sum adder (CSA)

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 29

Page 30: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Retiming to minimize the number of registers

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 30

Page 31: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Peripheral retiming

All the registers are moved to theAll the registers are moved to the periphery of the design either at the input or output of the logicor output of the logicThe combinational logic is then globally optimized and the registers are retimedoptimized and the registers are retimed into the optimized logic for best timing.

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 31

Page 32: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

The original design.

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 32

Page 33: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Moving registers to the periphery

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 33

Page 34: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Retiming and optimization

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 34

Page 35: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Shannon decomposition

Shannon decomposition removing the slowest input x0 to f0 and duplicating the logic in f0 with 0 and 1 fixed input values for x0

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 35

Page 36: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

The design is then retimed for effective timing

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 36

Page 37: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Iteration and Iteration Period

The iteration period is the time required forThe iteration period is the time required for execution of one iteration of the algorithm

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 37

Page 38: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Critical Path and Critical Path Delay

The critical path of a DFG is defined as the path with the longest computation time delay among g p y gall the paths that contain zero registersThe computation time delay in the path is called p y pthe critical path delay of the DFG

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 38

Page 39: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Loop and Loop Bound

A loop is defined as a directed path that begins and ends at the same nodeand ends at the same nodeThe loop bound of the ith loop is defined as

Ti/DiTi/Di where Ti is the loop computation time and Di is

the number of delays in the loop.the number of delays in the loop.

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 39

Page 40: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Critical Loop and Iteration Bound

A critical loop of a DFG is defined as theA critical loop of a DFG is defined as the loop with maximum loop bound. The iteration period of a critical loop is callediteration period of a critical loop is called the iteration period bound (IPB)

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 40

Page 41: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Dataflow graph with three loops

Mul 2 tuAdd 1 tuThe critical loop L2 has maximum loop bound of 3 5 tubound of 3.5 tuCritical path is 7 tu

IPB is the best achievable critical path for recursivepath for recursive designs

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 41

Page 42: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Retimed DFG with critical path of 4 timing units and IPB of 3.5 timing units

Apply nodal transfer theorem across N5

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 42

Page 43: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

DFG with critical path delay=IPB=3.5

Can still do betterRequires pipelining multiplier q p p g p

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 43

Page 44: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Achieving IPB

Let Mul and Add takes 1 tu eachIPB is 2/2 = 1 tuCritical path = 2 tuCan be retimed to get IPBIPB

Cut-set retiming

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 44

Page 45: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Retimed DFG using cut-set retiming

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 45

Page 46: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Critical path delay of a first-order IIR filter

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 46

Page 47: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Retiming with one register in a loop willresult in the same critical path

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 47

Page 48: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Recursive DFG

Let Mul = 2 tu and Add = 1 tuIPB = 4 tuCritical path = 5 tu

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 48

Page 49: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Two cut-sets are applied on the DFG.

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 49

Page 50: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

The registers are moved by applying feedback cut-set retiming

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 50

Page 51: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

B d IPBBeyond IPB

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 51

Page 52: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Improving beyond IPB

Each node takes 2 tuEach node takes 2 tuIPB of 8 timing units

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 52

Page 53: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Using Shannon decomposition the IPB is reduced to around 4 timing units

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 53

Page 54: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

C-Slow Retiming

Replaces every register in a dataflowReplaces every register in a dataflow graph with C registers. Retimed these registers to reduce theRetimed these registers to reduce the critical path delay. Th lt t d i t CThe resultant design can operate on C distinct streams of data

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 54

Page 55: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

C-slow Retiming

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 55

Page 56: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Retiming

2-Slow design working on two streams of datadata2 Registers are retimed for better timing

…..x'2x2x'1x1x'0x0

…..y'2y2y'1y1y'0y0

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

a

56

Page 57: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Original DFG with multiple nodes and few registers and large critical path.

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 57

Page 58: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

2-Slow Design

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 58

Page 59: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

The DFG partitioned into two equal sets oflogic where all the three nodes can be reused in a time-multiplexed design

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 59

Page 60: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

C-slow for an Instruction Set Processor

Any processor can be C-slowed and thenAny processor can be C slowed and then can run C parallel threads

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 60

Page 61: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Lookahead

Lookahead actually reduces the iteration period boundperiod bound

Pipelining and C-slow do not reduce the iteration period bounditeration period bound

Design FlowStep 1: Check if sample period is satisfied by IPBStep 2: Lookahead can be used to reduce IPBStep 3: Retiming can then be used to reduce h i i i d h f h IPB

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan

the iteration period to that of the IPB61

Page 62: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

What is Lookahead?

Current iteration :

Previous iteration:

Rewriting the current iteration

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 62

Page 63: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Look-ahead Transformation for IIR filters

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 63

Page 64: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Lookahead Factor

By an order of 3By an order of 3

By an order of M

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 64

Page 65: Pipelining & RetimingPipelining & Retiming Lecture 7drshoabkhan.com/_assets/chapter_7.pdf · Pipelining & Retiming Pipelining & Retiming Retiming is a mapping from a given DFG, G

Lookahead Transformation

Digital Design of Signal Processing Systems, John Wiley & Sons by Dr. Shoab A. Khan 65