Retiming and Resynthesis with Sweep Are Complete for Sequential - - PowerPoint PPT Presentation

retiming and resynthesis with sweep are complete for
SMART_READER_LITE
LIVE PREVIEW

Retiming and Resynthesis with Sweep Are Complete for Sequential - - PowerPoint PPT Presentation

Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations Hai Zhou EECS Northwestern University Nov. 18, 2009 Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential


slide-1
SLIDE 1

Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

Hai Zhou EECS Northwestern University

  • Nov. 18, 2009

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

1 / 19

slide-2
SLIDE 2

The Transformations

Retiming

Relocate registers from fanins of a subcircuit to fanouts, or vice versa.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

2 / 19

slide-3
SLIDE 3

The Transformations

Retiming

Relocate registers from fanins of a subcircuit to fanouts, or vice versa.

Resynthesis (aka Combinational Synthesis)

Restructure combinational circuit without changing its function.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

2 / 19

slide-4
SLIDE 4

The Transformations

Retiming

Relocate registers from fanins of a subcircuit to fanouts, or vice versa.

Resynthesis (aka Combinational Synthesis)

Restructure combinational circuit without changing its function.

Sweep (aka Register Sweep)

Remove registers not observable by output.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

2 / 19

slide-5
SLIDE 5

The Transformations

Retiming

Relocate registers from fanins of a subcircuit to fanouts, or vice versa.

Resynthesis (aka Combinational Synthesis)

Restructure combinational circuit without changing its function.

Sweep (aka Register Sweep)

Remove or insert registers not observable by output.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

2 / 19

slide-6
SLIDE 6

Power of Retiming and Resynthesis (RnR)

Iterative retiming and resynthesis [Malik et al. 90] provide a powerful structural transformation

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

3 / 19

slide-7
SLIDE 7

Power of Retiming and Resynthesis (RnR)

Iterative retiming and resynthesis [Malik et al. 90] provide a powerful structural transformation Retiming gives combinational synthesis larger subcircuit to restructure

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

3 / 19

slide-8
SLIDE 8

Power of Retiming and Resynthesis (RnR)

Iterative retiming and resynthesis [Malik et al. 90] provide a powerful structural transformation Retiming gives combinational synthesis larger subcircuit to restructure Resynthesis gives retiming more signals to put registers on

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

3 / 19

slide-9
SLIDE 9

Power of Retiming and Resynthesis (RnR)

Iterative retiming and resynthesis [Malik et al. 90] provide a powerful structural transformation Retiming gives combinational synthesis larger subcircuit to restructure Resynthesis gives retiming more signals to put registers on

How Powerful are Retiming and Resynthesis?

Are they complete for all sequential transformations?

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

3 / 19

slide-10
SLIDE 10

A Little Bit History

Leiserson & Saxe 83

A circuit transformed by retiming is steady state equivalent to original circuit.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

4 / 19

slide-11
SLIDE 11

A Little Bit History

Leiserson & Saxe 83

A circuit transformed by retiming and resynthesis is steady state equivalent to original circuit.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

4 / 19

slide-12
SLIDE 12

A Little Bit History

Leiserson & Saxe 83

A circuit transformed by retiming and resynthesis is steady state equivalent to original circuit.

Malik et al. 90

Asking whether reverse is true, proved that any state re-encoding can be done by RnR.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

4 / 19

slide-13
SLIDE 13

A Little Bit History

Leiserson & Saxe 83

A circuit transformed by retiming and resynthesis is steady state equivalent to original circuit.

Malik et al. 90

Asking whether reverse is true, proved that any state re-encoding can be done by RnR.

Malik 90

Proved (wrongly) that any cycle-preserving (CP) transformation can be done by RnR.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

4 / 19

slide-14
SLIDE 14

A Little Bit History

Zhou, Singhal, Aziz 98

Showed that there are equivalent (and CP) circuits that cannot be transformed by RnR.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

5 / 19

slide-15
SLIDE 15

A Little Bit History

Zhou, Singhal, Aziz 98

Showed that there are equivalent (and CP) circuits that cannot be transformed by RnR. Somenzi suggested sweep to get it done.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

5 / 19

slide-16
SLIDE 16

A Little Bit History

Zhou, Singhal, Aziz 98

Showed that there are equivalent (and CP) circuits that cannot be transformed by RnR. Somenzi suggested sweep to get it done.

Ranjan et al. 98

Corrected Malik’s result to transformations only by 1-step merging, splitting, or switching.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

5 / 19

slide-17
SLIDE 17

A Little Bit History

Zhou, Singhal, Aziz 98

Showed that there are equivalent (and CP) circuits that cannot be transformed by RnR. Somenzi suggested sweep to get it done.

Ranjan et al. 98

Corrected Malik’s result to transformations only by 1-step merging, splitting, or switching.

Jiang & Brayton 06

RnR are exactly transformations by a sequence of 1-step merging and splitting.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

5 / 19

slide-18
SLIDE 18

Main Result

Theorem

Retiming and Resynthesis with Sweep are complete for steady state equivalent sequential transformations

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

6 / 19

slide-19
SLIDE 19

Main Result

Theorem

Retiming and Resynthesis with Sweep are complete for steady state equivalent sequential transformations if one-cycle reachability is allowed in synthesis.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

6 / 19

slide-20
SLIDE 20

Verification Side of Story

Zhou, Singhal, Aziz 98

Proved that steady state equivalence checking is PSPACE-complete; but conjectured RnR checking is easier.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

7 / 19

slide-21
SLIDE 21

Verification Side of Story

Zhou, Singhal, Aziz 98

Proved that steady state equivalence checking is PSPACE-complete; but conjectured RnR checking is easier.

Jiang & Brayton 06

Proved that RnR checking is also PSPACE-complete, disproving the conjecture.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

7 / 19

slide-22
SLIDE 22

Verification Side of Story

Zhou, Singhal, Aziz 98

Proved that steady state equivalence checking is PSPACE-complete; but conjectured RnR checking is easier.

Jiang & Brayton 06

Proved that RnR checking is also PSPACE-complete, disproving the conjecture.

We point out in paper

Re-encoding checking is PSPACE-hard, but the complexity of RnR checking is still open.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

7 / 19

slide-23
SLIDE 23

Circuits Demonstrating Incompleteness of RnR

s s a a b b

1 1 1

first pair second pair

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

8 / 19

slide-24
SLIDE 24

Sweep is Necessary

00 01 11 10 1 1 00 01 11 10 1 1

1

1

RnR sweep (re-encoding)

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

9 / 19

slide-25
SLIDE 25

Is Sweep Sufficient?

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

10 / 19

slide-26
SLIDE 26

Is Sweep Sufficient?

s s a a b b

1 1 1

s a

1

b

1

re-encoding sweep

1 00 01 11 10

0,-- 0,-- 0,-- 0,-- 1

000 001 111 010

0,-- 0,-- 0,-- 0,-- 1

1

0,-- 1 1,11 1,11 1,00 1,01 1,11 1,10 1,00 1,01 1,11 1,10

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

10 / 19

slide-27
SLIDE 27

Is Sweep Sufficient?

s s a a b b

1 1 1

s a

1

b

1

re-encoding sweep

1 00 01 11 10

0,-- 0,-- 0,-- 0,-- 1

000 001 111 010

0,-- 0,-- 0,-- 0,-- 1

1

0,-- 1 1,11 1,11 1,00 1,01 1,11 1,10 1,00 1,01 1,11 1,10

Warning

Re-encoding with different length is needed!

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

10 / 19

slide-28
SLIDE 28

Is RnR Complete for Re-encoding with Different Length?

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

11 / 19

slide-29
SLIDE 29

Is RnR Complete for Re-encoding with Different Length?

Proof Sketch f f-1 C I O f f-1 C I O D I O n bits m bits n bits m n m n

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

11 / 19

slide-30
SLIDE 30

Re-encoding with Different Code Length

Extra shadow states are introduced:

100 101 011 110

0,-- 0,-- 0,-- 0,-- 1 1 1

000 001 111 010

0,-- 0,-- 0,-- 0,-- 1 1,00 1,01 1,11 1,10

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

12 / 19

slide-31
SLIDE 31

Re-encoding with Different Code Length

Extra shadow states are introduced:

100 101 011 110

0,-- 0,-- 0,-- 0,-- 1 1 1

000 001 111 010

0,-- 0,-- 0,-- 0,-- 1 1,00 1,01 1,11 1,10 They cannot be generated by 1-step mergings or splittings!

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

12 / 19

slide-32
SLIDE 32

Re-encoding with Different Code Length

Extra shadow states are introduced:

100 101 011 110

0,-- 0,-- 0,-- 0,-- 1 1 1

000 001 111 010

0,-- 0,-- 0,-- 0,-- 1 1,00 1,01 1,11 1,10 They cannot be generated by 1-step mergings or splittings!

Contradicting w/ Jiang & Brayton 06

What is wrong?

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

12 / 19

slide-33
SLIDE 33

Encoding Representation Is Important

f f-1 C I O f f-1 C I O D I O n bits m bits n bits m n m n

Observation

Treating Boolean functions as abstract discrete functions turns to boast the power of synthesis! A discrete function may have a range of 2n + 1 symbols, but a corresponding Boolean one will have 2n+1 values.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

13 / 19

slide-34
SLIDE 34

Solution

f f-1 C I O f f-1 C I O D I O n bits m bits n bits m n m n

One-Cycle Reachability (OCR)

We need to look into previous cycle to find the domain of f −1 which was the range of f !

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

14 / 19

slide-35
SLIDE 35

Solution

f f-1 C I O f f-1 C I O D I O n bits m bits n bits m n m n

One-Cycle Reachability (OCR)

We need to look into previous cycle to find the domain of f −1 which was the range of f !

Lemma

Without OCR, RnR is not complete for transforming between two given circuits that are re-encodings with different code lengths.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

14 / 19

slide-36
SLIDE 36

Inspiration by Abadi & Lamport 91

The existence of refinement mappings, TCS, 82(2), 1991

Under three general hypotheses about the specifications, if S1 implements S2 then one can add auxiliary history and prophecy variables to S1 to form equivalent specification Shp

1

and find a refinement mapping from Shp

1

to S2.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

15 / 19

slide-37
SLIDE 37

Completeness for Sequential Transformation

Theorem

Retiming and Resynthesis with Sweep are complete for steady state equivalent sequential transformations, if OCR is allowed.

Proof.

  • 1. Circuits C and D are steady state equivalent ⇒ every steady state of C

maps to at least one D state.

  • 2. Use sweep (inverse) to add registers in C to make an “onto” refinement

function F from C states to D states (Abadi & Lamport 91)

  • 3. Bypass signals to make F into a bijection
  • 4. Resynthesis F −1 ◦ F at the register output of C
  • 5. Retime registers to outputs of F
  • 6. Resynthesis with OCR
  • 7. Sweep to remove unobservable registers to get D

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

16 / 19

slide-38
SLIDE 38

Completeness for Sequential Transformation

Theorem

Retiming and Resynthesis with Sweep are complete for steady state equivalent sequential transformations, if ORC is allowed.

C Vc I O C Vc I O H Vh C Vc O H Vh F F-1 C Vc O H Vd F F-1 C Vc I O D Vd I D Vd I O sweep-1 resynthesis retiming resynthesis-OCR sweep I I

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

17 / 19

slide-39
SLIDE 39

Completeness for Sequential Transformation

C Vc I O C Vc I O H Vh C Vc O F sweep-1 resynthesis -

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

17 / 19

slide-40
SLIDE 40

Completeness for Sequential Transformation

C Vc I O H Vh C Vc O H Vh F F-1 - resynthesis retiming - I

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

17 / 19

slide-41
SLIDE 41

Completeness for Sequential Transformation

C Vc O H Vh F F-1 C Vc O H Vd F F-1 - resynthesis retiming resynthesis- I I

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

17 / 19

slide-42
SLIDE 42

Completeness for Sequential Transformation

C Vc O H Vd F F-1 C Vc I O D Vd I - retiming resynthesis-OCR sweep I

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

17 / 19

slide-43
SLIDE 43

Completeness for Sequential Transformation

C Vc I O D Vd I D Vd I O - resynthesis-OCR sweep

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

17 / 19

slide-44
SLIDE 44

Implications and Future Work

RnR-Sweep provide powerful sequential transformations, thus need to be developed as a main sequential optimization tool.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

18 / 19

slide-45
SLIDE 45

Implications and Future Work

RnR-Sweep provide powerful sequential transformations, thus need to be developed as a main sequential optimization tool. OCR needs to be used commonly.

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

18 / 19

slide-46
SLIDE 46

Implications and Future Work

RnR-Sweep provide powerful sequential transformations, thus need to be developed as a main sequential optimization tool. OCR needs to be used commonly. Efficiently verifiable subset of RnR-Sweep transformations?

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

18 / 19

slide-47
SLIDE 47

Implications and Future Work

RnR-Sweep provide powerful sequential transformations, thus need to be developed as a main sequential optimization tool. OCR needs to be used commonly. Efficiently verifiable subset of RnR-Sweep transformations? How powerful are RnR-Sweep without OCR?

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

18 / 19

slide-48
SLIDE 48

Implications and Future Work

RnR-Sweep provide powerful sequential transformations, thus need to be developed as a main sequential optimization tool. OCR needs to be used commonly. Efficiently verifiable subset of RnR-Sweep transformations? How powerful are RnR-Sweep without OCR? What is complexity of RnR equivalence checking?

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

18 / 19

slide-49
SLIDE 49

Q & A

Hai Zhou EECS Northwestern University () Retiming and Resynthesis with Sweep Are Complete for Sequential Transformations

  • Nov. 18, 2009

19 / 19