Top Banner
Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan Singhal, Cadence Berkeley Labs, Berkeley Fabio Somenzi, Univ. of Colorado, Boulder Robert K. Brayton, Univ. of California, Berkeley
30

Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Rajeev K. RanjanAdvanced Technology Group

Synopsys Inc.

On the Optimization Power of Retiming and Resynthesis Transformations

On the Optimization Power of Retiming and Resynthesis Transformations

Joint work with:Vigyan Singhal, Cadence Berkeley Labs, BerkeleyFabio Somenzi, Univ. of Colorado, BoulderRobert K. Brayton, Univ. of California, Berkeley

Page 2: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

All circuit optimizations

(T+S)*

Re(T)iming

(S)ynthesis

MotivationMotivation

Optimization capability of retiming and resynthesis - an open question

Theoretical foundation for practical retiming and resynthesis based synthesis and verification

Page 3: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

This WorkThis Work

C1 C2(Retiming + Resynthesis)*

(special 2-way split + merge)*

Circuit

G1 G2StateGraph

Page 4: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

This WorkThis Work

(Retiming + Resynthesis)*

G2(special 2-way split + Merge)*

C1 C2Circuit

G1StateGraph

Page 5: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

OutlineOutline

Background

Complexity Result

Extensions to retiming and resynthesis

Summary

Page 6: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Background:Sequential CircuitBackground:Sequential Circuit

•Gates and memory elements

•Edge triggered

•Single global clock

Page 7: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Background:State Transition Graph (STG)Background:State Transition Graph (STG)

States(values of latches)

Transitions(input minterms)

baCIRCUIT:

0 1

11 0-, -00-, -0

11

STG:

Page 8: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Background:Combinational SynthesisBackground:Combinational Synthesis

Primary Inputs Primary Outputs

Latch InputsLatch Outputs

Page 9: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Background: RetimingBackground: Retiming

[Leiserson & Saxe]

Retime by +1

Retime by -1

Page 10: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Iterative Retiming and Resynthesis:(T + S) *Iterative Retiming and Resynthesis:(T + S) * Retiming changes interaction between different

combinational blocks

Combinational synthesis generates new candidate latch locations

Sequence of retiming and synthesis provides powerful sequential optimization technique [Malik and Sentovich] [Iyer and Ciesielski] [Hassoun and Ebling]

Page 11: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Retiming & Resynthesis:Optimization CapabilityRetiming & Resynthesis:Optimization Capability

Previous Work [Malik91]:

Fixed states and transitions:- arbitrary state encoding

General STG transformations:- incomplete classification

STG (states, transitions, encoding) transformation

Our Work:

General STG transformations:- Complete and tight classification

Page 12: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

State Transformations: Split and Merge [Malik91]State Transformations: Split and Merge [Malik91]

s

v

b

uac

d

s1

s2v

bb

ua

a

c

d

SPLIT

MERGE

Page 13: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Definition:1-Step Equivalence of StatesDefinition:1-Step Equivalence of States

Defined over a pair of states in an STG.

s

tv

bb

ua

a s and t indistinguishable

in 1 step

p

p

Page 14: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Definition:1-Step Equivalent TransformationDefinition:1-Step Equivalent Transformation

Defined as 2-way merge and split involving

1-step equivalent states

Page 15: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Definition:1-Step Equivalent GraphsDefinition:1-Step Equivalent Graphs

Class of graphs obtained by applying a

sequence of 1-step equivalent

transformations

1 Step Equivalence

Applied to sufficiently delayed configuration of circuits

Page 16: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Definitions: Summary Definitions: Summary

States Given an STG,states with identical transitions.

Transformations

Merge two states

Split a state into two states

Given an STG,

GraphsGiven two STG’s

transformations

G1 G2

Page 17: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

OutlineOutline

Background

Complexity Result

Extensions to retiming and resynthesis

Summary

Page 18: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

C1(S+T)*

C2G1 G2 Prove for single transformation (generalize by induction).

Prove for 2-way split.

2-way merge follows: C2 can generate C1 (reversible transformations). “2-way merge” on G2 leads to G1.

Strategy: Generate internal points for new codes. Move latches to these internal points.

Page 19: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Generate New State CodesGenerate New State Codes

Trivial mapping for all states except s

For s, split state (t or u) can be obtained by current state (s1) and input (c)

Trivial mapping back to original codes

s

s4b

s3ac,d

s2

s1

c,d

G1

t

us4

bb

s3a

a

s1

s2

c

d

c

d2-way split

G2

Page 20: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Implementing State SplitImplementing State Split

C1

IN

C

C’

Synthesis

C1

IN

C

C’

Retiming Synthesis

C1

IN

: Code for C1: Code for C2

C2

IN

Page 21: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

C1(S+T)*

C2 G1 G2

Synthesis does not change STG

Retiming = (Basic retiming) *

Basic retiming results in 1-step equivalent graphs

Composition:

G1 G2 G X G1 G X G2

Result follows by induction

Page 22: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Retiming Across NAND GateRetiming Across NAND Gate

Graphs are 1-step equivalent.

00

00

00

11 11

11

00 01

10 11

1

1

1

0

0 1

1111

0-, -0

0-, -0

10

Page 23: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Retiming Across Fanout JunctionRetiming Across Fanout Junction

0 1

01

1

0

00 110 0 11

01 1001 10

00 11

01

00 110

1

Graphs are 1-step equivalent.

Ignore transient states

Page 24: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

OutlineOutline

Background

Complexity Result

Extensions to retiming and resynthesis

Summary

Page 25: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

AnalysisAnalysis

Retiming and resynthesis optimization involves only a local notion of state equivalence

Covers only a subset of all valid STG transformations

Page 26: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Limitation of (S + T)* - 1st ExampleLimitation of (S + T)* - 1st Example

00 01 11 10

0 1 0 1

C1 C2

0 1

0 1

C1(S+T)*

C2 [Zhou97]

Page 27: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Extending Synthesis: Eliminate Floating LatchesExtending Synthesis: Eliminate Floating Latches

00 01 11 100 1 0 1

C1

0 10 1

00 11 01 100 1 0 1

Re-encoding

C2

Eliminate floating latch

Page 28: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Limitation of (S + T)* - 2nd ExampleLimitation of (S + T)* - 2nd Example

001

001

001

--0 --0

--0 --0

x

ye

eC1

xy

eC2

00 01

10 11

0

0

0

1

C1(S+T)*

C2

else else

0 1

111

0-1, -01

10

Page 29: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

Extending Retiming: Retiming Enabled LatchesExtending Retiming: Retiming Enabled Latches

ee

xy

e

RETIME

x

ye

e

xy

e e

xy

e

Page 30: Rajeev K. Ranjan Advanced Technology Group Synopsys Inc. On the Optimization Power of Retiming and Resynthesis Transformations Joint work with: Vigyan.

All circuit optimizations

SummarySummary

Characterized wrt STG transformations

(S+T)*

Re(T)iming

(S)ynthesis

Obtain tight bounds for extended transformations