1 / 24

Logic Synthesis for Asynchronous Circuits Based on Petri Net Unfoldings and Incremental SAT

Logic Synthesis for Asynchronous Circuits Based on Petri Net Unfoldings and Incremental SAT. Victor Khomenko , Maciej Koutny , and Alex Yakovlev University of Newcastle upon Tyne. Talk Outline. Introduction Asynchronous circuits Logic synthesis based on state graphs

caesar
Download Presentation

Logic Synthesis for Asynchronous Circuits Based on Petri Net Unfoldings and Incremental SAT

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Logic Synthesis for Asynchronous Circuits Based on Petri Net Unfoldings and Incremental SAT Victor Khomenko, Maciej Koutny, and Alex Yakovlev University of Newcastle upon Tyne

  2. Talk Outline • Introduction • Asynchronous circuits • Logic synthesis based on state graphs • State graphs vs. net unfoldings • Logic synthesis based on net unfoldings • Experimental results • Future work

  3. Asynchronous Circuits Asynchronous circuits – no clocks: • Low power consumption • Average-case rather than worst-case performance • Low electro-magnetic emission • Modularity – no problems with the clock skew • Hard to synthesize • The theory is not sufficiently developed • Limited tool support

  4. Data Transceiver Device Bus d lds dsr VME Bus Controller ldtack dtack dtack- dsr+ lds+ d- lds- ldtack- ldtack+ dsr- dtack+ d+ Example: VME Bus Controller

  5. 10000 dtack- dsr+ 00100 00000 lds+ ldtack- ldtack- ldtack- dtack- dsr+ 10010 01100 01000 11000 ldtack+ lds- lds- lds- dtack- dsr+ 11010 01110 11010 M’’ M’ 01010 d+ d- dsr- dtack+ 01111 11111 11011 Example: CSC Conflict

  6. M’’ M’ Example: Enforcing CSC dtack- dsr+ csc+ 001000 100000 000000 100001 lds+ ldtack- ldtack- ldtack- dtack- dsr+ 011000 100101 010000 110000 ldtack+ lds- lds- lds- dtack- dsr+ 110101 011100 110100 010100 d+ d- dsr- dtack+ csc- 011111 111111 110111 011110

  7. Example: Deriving Equations

  8. Example: Resulting Circuit Data Transceiver Device Bus d lds dtack dsr csc ldtack

  9. State Graphs vs. Unfoldings State Graphs: • Relatively easy theory • Many efficient algorithms • Not visual • State space explosion problem

  10. State Graphs vs. Unfoldings Unfoldings: • Alleviate the state space explosion problem • More visual than state graphs • Proven efficient for model checking • Quite complicated theory • Not sufficiently investigated • Relatively few algorithms

  11. DATE’02 & ACSD’03   DATE’03  ACSD’04 State Graphs vs. Unfoldings SG Unf Checking consistency   Checking semi-modularity   Deadlock detection   Checking CSC   Enforcing CSC   Deriving equations   Technology mapping   Complex-gate synthesis

  12. Synthesis using unfoldings Outline of the algorithm: for each output signal z compute (minimal) supports of z for each ‘promising’ support X compute the projection of the set of reachable encodings onto X sorting them according to the corresponding values of Nxtz apply Boolean minimization to the obtained ON- and OFF-sets choose the best implementation of z

  13. CSCz property X • The CSC property: the next-state function of every output signal is a well-defined Boolean function of encoding of current state, i.e., all the signals can be used in its support • The CSCz property: Nxtz is a well-defined Boolean function of encoding of current state; again, all the signals can be used in its support • The CSCz property: Nxtz is a well-defined Boolean function of projection of the encoding of the current state on set of signals X; i.e., X is a support X

  14. CSCz conflicts X • States M’ and M’’ are in CSCz conflict if • Codex(M’)=Codex(M’’) for all xX, and • Nxtz(M’) Nxtz(M’’) • Nxtz can be expressed as a Boolean function with support X iff there are no CSCz conflicts X X

  15. M’’ X={dsr, ldtack} M’ Nxtcsc(M’)=1 Nxtcsc(M’’)=0 Example: CSCz conflict X dtack- dsr+ csc+ 001000 100000 000000 100001 lds+ ldtack- ldtack- ldtack- dtack- dsr+ 011000 100101 010000 110000 ldtack+ lds- lds- lds- dtack- dsr+ 110101 011100 110100 010100 d+ d- dsr- dtack+ csc- 011111 111111 110111 011110

  16. dsr ldtack dtack lds d csc Code(C’) 1 1 0 1 0 1 Code(C’’) 1 1 0 0 0 0 C’ C’’ X Example: CSCz conflict in unfolding X dtack- dsr+ e14 e1 e2 e3 e4 e5 e6 e7 e8 e9 e10 e12 csc+ dsr+ lds+ ldtack+ dtack+ csc+ csc- d+ dsr- d- e11 e13 lds- ldtack- Nxtcsc(C’)=1Nxtcsc(C’’)=0 Nxtcsc= dsr  (ldtack  csc)

  17. Computing supports • Using unfoldings, it is possible to construct a Boolean formula CSCz(X,…)such that CSCz(X,…)[Y/X]is satisfiable iff Yis not a support • The projection of the set of satisfying assignments of CSCz(X,…)onto X is the set of all non-supports of z (it is sufficient to compute the maximal elements of this projection) • The set of supports can then be computed as { Y | YX, for all maximal non-supports X }

  18. Outline of the algorithm for each output signal z compute (minimal) supports of z for each ‘promising’ support X compute the projection of the set of reachable encodings onto X sorting them according to the corresponding values of Nxtz apply Boolean minimization to the obtained ON- and OFF-sets choose the best implementation of z Need to know how to compute projections!

  19. max Proj{a,b,c} a b c 0 1 1 1 0 1 min Proj{a,b,c} a b c 0 1 0 1 0 0 Example: projections a  b =(a  b)(a  b)(c  d  e) a b c d e 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 1 0 1 0 1 1 0 1 1 0 1 0 1 1 1 Proj{a,b,c} a b c 0 1 0 0 1 1 1 0 0 1 0 1

  20. a  b (abc) (abc) (abc) (abc) 0 1 0 0 1 0 1 1 0 0 1 0 0 0 1 =(ab)(ab)(cde) 1 0 1 0 0 Computing projections Proj{a,b,c} a b c d e UNSAT • Incremental SAT

  21. Optimizations • Triggers belong to every support – significantly improves the efficiency • Further optimizations are possible for certain net subclasses, e.g. unique-choice nets

  22. Experimental Results • Unfoldings of STGs are almost always small in practice and thus well-suited for synthesis • Huge memory savings • Dramatic speedups • Every valid speed-independent solution can be obtained using this method, so no loss of quality • We can trade off quality for speed (e.g. consider only minimal supports): in our experiments, the solutions are the same as Petrify’s (up to Boolean minimization) • Multiple implementations produced

  23.   Future Work SG Unf Checking consistency   Checking semi-modularity   Deadlock detection   Checking CSC   Enforcing CSC   Deriving equations   Technology mapping   Timing assumptions?

  24. Thank you! Any questions?

More Related