1 / 68

Appearance-based Equivalence Checking

Appearance-based Equivalence Checking. Speaker: Ching -Yi Huang Advisor: Chun-Yao Wang Date : 2011/05/06. Outline. Introduction Approach Methodology Overview Observation and Transformation Rules Error Injection-based Rewiring (EIR) Circuit Optimization Flow Chart Implementation

Download Presentation

Appearance-based Equivalence Checking

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. Appearance-based Equivalence Checking Speaker: Ching-Yi Huang Advisor: Chun-Yao Wang Date: 2011/05/06

  2. Outline • Introduction • Approach • Methodology • Overview • Observation and Transformation Rules • Error Injection-based Rewiring (EIR) • Circuit Optimization • Flow Chart • Implementation • Correctness Verification • Circuit Simplification • Experiment Results • Future work

  3. Introduction • What is equivalence checking? • Given: • Two combinational circuits. Golden circuit and revised circuit. • Objective • Check whether the functionality of two given combinational circuits are equivalent.

  4. Introduction • Functionality equivalence I1 O1 C1 Im On o1 C2 on

  5. Introduction • Traditional methods • Truth table • ATPG-based • BDD-based • SAT-based

  6. Our Approach • Appearance-based approach • Don’t build BDDs • If two circuits are equivalent, there should be a rule to transform their appearance into the same one.

  7. Our Approach • Given: • Two combinational circuits. Golden circuit and revised circuit. • Objective • Observe their appearances • Transform the appearance (by rewiring techniques) of one circuit into a new circuit which is the same as the other according to the rules.

  8. Outline • Introduction • Approach • Methodology • Overview • Observation and Transformation Rules • Error Injection-based Rewiring (EIR) • Circuit Optimization • Flow Chart • Implementation • Correctness Verification • Circuit Simplification • Experiment Results • Future work

  9. Overview An action per round For eliminating the rectification networks

  10. Structure • AIG = AND-Inverter Graph • DAG = Direct Acyclic Graph • Two Inputs AND gate node • Inverter on the edge B C F A

  11. Outline • Introduction • Approach • Methodology • Overview • Observation and Transformation Rules • Error Injection-based Rewiring (EIR) • Circuit Optimization • Flow Chart • Implementation • Correctness Verification • Circuit Simplification • Experiment Results • Future work

  12. Observation • Examples B B C A F F A C

  13. Observation • Look at the nodes of the same level B B C A F F A C

  14. Observation • Create necessary node/ Delete surplus node B B C A F F A C B A C

  15. Observation • Create transform ID (TID) 1 1 1 B B A A F F A 2 A C 2 C

  16. Observation • Next level 1 1 F F A 2 2

  17. Observation • Observe next level 1 1 F F A 2 2

  18. Observation • Observe next level • Rewiring 1 1 F F A 2 2

  19. Observation • Observe next level • Gate Replacement (change phases) 1 1 v v F F 2 2

  20. Rule & Decision • So… let us conclude the rules • 1. Create node • Add wire when patch it • 2. Delete node • Remove wire • 3. Remove wire • 4. Change fanin • Remove wire • Add wire (could be more smart) • 5.Gate replacement

  21. Rule & Decision • 1. Create node B B A A F F A 1.Create node C 2. Add wire A C

  22. Rule & Decision • 2. Delete node B B C C F F A A Remove wire C

  23. Rule & Decision • 4. Change Fanin 1 1 F F 2 3

  24. Rule & Decision • 4. Change Fanin 1 1 F F 2 3 3

  25. Outline • Introduction • Approach • Methodology • Overview • Observation and Transformation Rules • Error Injection-based Rewiring (EIR) • Circuit Optimization • Flow Chart • Implementation • Correctness Verification • Circuit Simplification • Experiment Results • Future work

  26. EIR • Error Modeling • Removal • Addition • Replacement • Propagate fault • Find TAs • Choose destination • Rectification

  27. Model the errors (AIG format) • Remove wire

  28. Model the errors (AIG format) • Add wire a a a a b b

  29. Model the errors (AIG format) • Replacement

  30. Model the errors (AIG format) • Replacement

  31. EIR • Destination Ⅱ Ⅰ Ⅲ error effect . . . . . .

  32. EIR Algorithm • Region I/II • DON/DOFF = AND(TA) • If the error effect propagated to gd is 1/0, the corrected function for the error effect is • If the error effect propagated to gd is 0/1, the corrected function for the error effect is • If both 1/0 and 0/1 error effects are propagated to gd, the corrected function is either or

  33. EIR Algorithm • Region III gdg(TA)= the cofactor of gd with respect to TA in good circuit • DON: • DOFF: • Corrected function: or

  34. Rectification Issue • Choose where? • Considering that we want to eliminate the rectification networks in the future…

  35. Choose the PO as destination • Choose the PO as destination!? • PO is the common dominator! • How about the multi-PO circuit? B C D A E F G

  36. Partition • Multiple POs C1 i1 P1 i2 P2 i3 P3 i4

  37. Partition • Partition by POs • How about the overlapping part? • Duplicate the common part in both circuits! C1 i1 P1 i2 P2 i3 P3 i4

  38. Partition • Partition and duplicate C1 i1 i1 P1 P1 i2 i2 P2 P2 i3 i3 P3 P3 i4 i4 C2

  39. Partition • Partition and duplicate i1 C1-1 P1 i2 i2 C1-2 P2 i3 i3 P3 C1-3 i4 i1 C2-1 P1 i2 i2 C2-2 P2 i3 i3 P3 C2-3 i4

  40. Outline • Introduction • Approach • Methodology • Overview • Observation and Transformation Rules • Error Injection-based Rewiring (EIR) • Circuit Optimization • Flow Chart • Implementation • Correctness Verification • Circuit Simplification • Experiment Results • Future work

  41. Optimization • Node-merging w1 w1 w2 w2 nt nt w3 w3 w4 ns ns w4

  42. Outline • Introduction • Approach • Methodology • Overview • Observation and Transformation Rules • Error Injection-based Rewiring (EIR) • Circuit Optimization • Flow Chart • Implementation • Correctness Verification • Circuit Simplification • Experiment Results • Future work

  43. Flow chart Start N If now_leveli < max_level optimization End Y Collect the node of level i Mark the nodes Y N Are all nodes dealt with? Observe one node in the same level Decide the action now_level ++ EIR

  44. Flow chart (EIR) Start Receive Action Model error Fault Activation Fault Propagation Rectification & rewiring Re-levelization Circuit Simplification End

  45. Flow Chart Receive Action Start N Model error If now_leveli < max_level optimization End Y Collect the node of level i Fault Activation Mark the nodes Fault Propagation Y N Are all nodes dealt with? Observe one node in the same level Rectification & rewiring Decide the action now_level ++ Re-levelization Circuit Simplification

  46. Outline • Introduction • Approach • Methodology • Overview • Observation and Transformation Rules • Error Injection-based Rewiring (EIR) • Circuit Optimization • Flow Chart • Implementation • Correctness Verification • Circuit Simplification • Experiment Results • Future work

  47. Correctness Verification • Two-stage: • Stage 1: • Everywhere and every case • Recover the circuit every time • Stage 2: • Focus on checking the correctness in the condition that there are some new nodes in the circuit • No recovery • Need threshold • Verify by SIS tool (output and original)

  48. Correctness Verification • Removal • Stage 1 • For every node(source) to its every fanout(target) • Remove the wire(source->target) • Recover the circuit • Stage 2 • For every node to its every fanout (but not include the new fanouts patched in this round) • Remove the wire(source->target)

  49. Stage 1 B B B B B B A A A A A A F F F F F F C C C C C C

  50. Stage 2 Rectification network Rectification network B B B B A A A A F F F F C C C C Rectification network

More Related