Presentation is loading. Please wait.

Presentation is loading. Please wait.

Specification mining for asynchronous controllers Javier de San Pedro† Thomas Bourgeat ‡ Jordi Cortadella† † Universitat Politecnica de Catalunya ‡ Massachusetts.

Similar presentations


Presentation on theme: "Specification mining for asynchronous controllers Javier de San Pedro† Thomas Bourgeat ‡ Jordi Cortadella† † Universitat Politecnica de Catalunya ‡ Massachusetts."— Presentation transcript:

1 Specification mining for asynchronous controllers Javier de San Pedro† Thomas Bourgeat ‡ Jordi Cortadella† † Universitat Politecnica de Catalunya ‡ Massachusetts Institute of Technology 1

2 Specification mining FIFO ctrl FIFO ctrl lr rr lara lr+ la+ lr- la- rr+ ra+ rr- ra- C C lr rr ra la Synthesis Specification mining Specification mining 2 Resynthesis

3 Outline Overview of specification mining Modeling behavioral properties Mining algorithm Results and conclusions 3

4 a b x y Background a+ b+ y+ b− x+ y+ x− a− y- a+ x+ y+ y- a− x− b+ b- Signal Transition Graph State Graph Netlist Synthesis Specification Mining 4 (Labeled Transition System - LTS) (Petri Net)

5 Specifications with properties Mined specifications must satisfy a set of behavioral properties – E.g., only show hazard-free behavior Nothing is known about the environment – Initially assume free (unrestricted) env. – Circuit may exhibit hazards under free env. To ensure the specification satisfies the set of properties… – Circuit behavior cannot be changed  Discover constrained environment where the circuit satisfies all properties 5 Environment Input netlist a b x y Free environment × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × ××× × × Hazard

6 LTS under free environment Free environment a b x y a+ a− a+ a− x− x+ 6 a x × x+ is not persistent under free environment Free environment × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × ××× × × × x+? Select a subset of input transition arcs that satisfy all behavioral properties Constrained env.

7 Hazards under free environment 7 Free environment a b x y b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+a− b+ b− a+ a− y− y+ y− x− x+ x− x+ x− y+ x− x+ Free environment × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × ××× × × × × x+ × × × × × × × × × × ×

8 Constraining the environment 8 Constrained env. a b x y b− a+ b+ a− y− y+ x+ y+ x− Free environment × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × ××× × × Constrained env. Select a subset of input transition arcs that satisfy all behavioral properties

9 More than one specification 9 Constrained env. #2 a b x y b− a+ b+ a− y− y+ x− Free environment × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × ××× × × x+ Constrained env. #2 There might more than one environment that satisfies the properties

10 Overview of mining flow 10 Circuit LTS (free env.) LTS (free env.) LTS snippet 1 (constrained env.) LTS snippet 1 (constrained env.) STG 1 LTS snippet 2 (constrained env.) LTS snippet 2 (constrained env.) STG 2 Properties SI DI interfacing … Free environment × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × × Constrained env. #2 Constrained env. #1

11 Outline Overview of specification mining Modeling behavioral properties Mining algorithm Results and conclusions 11

12 Properties Behavioral properties – Speed-independence – Delay-insensitive interfacing – Multiple independent environments – … Properties of the specification model – Marked Graph – Free Choice – …  All properties modeled using SAT 12

13 Modeling properties using SAT 13 a+ a− a+ x− x+ a−

14 Causality patterns in LTS 14 x y y y is persistent x y y x triggers y x y y x disables y Conflict/choiceConcurrencyOrder

15 Behavioral properties Speed-independence (SI) – Insensitive to gate delays – Property: Only inputs can disable inputs Delay insensitive interfacing (DII) – Insensitive to arrival order of input transitions – Property: Inputs cannot trigger other inputs 15 xy x triggers yx disables y Input Violates DII Output Violates SI InputOutputViolates SI OutputInputViolates SI H. Saito, A. Kondratyev, J. Cortadella, L. Lavagno and A. Yakovlev, What is the cost of delay insensitivity? ICCAD 1999

16 Example: speed-independence For every state, for every pair (x, y) where x input, y output: 16 x y y x disables y x y y y is persistent xy x triggers yx disables y Input Violates DII Output Violates SI InputOutputViolates SI OutputInputViolates SI

17 Multi-environments 17 Circuit Environment 1 Environment 2 Environment 3 xy x triggers yx disables y Input Violates DII Only if same env. Output Violates SI InputOutputViolates SI OutputInput Only if same env. Violates SI × × FIFO ctrl FIFO ctrl lr rr lara Left environment Right environment ×

18 Properties of the specification model Enforce specific structural types of STGs – Enhances visualization, computational cost, … Marked graph – Property: No two signals are in conflict Free choice – Property: Signals in conflict must have the same excitation set (see article) 18 E. Best and R. Devillers, Characterization of the state spaces of live and bounded marked graph Petri nets, Language and Automata Theory 2014.

19 Outline Overview of specification mining Modeling behavioral properties Mining algorithm Results and conclusions 19

20 SAT model 20 a+ a− a+ x− x+ a−

21 Mining algorithm: MaxSAT 21 Free environment Constrained env. #2 Constrained env. #1 No single specification may cover all behavior without violating some property E.g., marked graphs  Discover a set of maximal specifications Except those already in previous snippets!

22 Overview of mining flow 22 Circuit LTS (free env.) LTS (free env.) LTS snippet 1 (constrained env.) LTS snippet 1 (constrained env.) STG 1 LTS snippet 2 (constrained env.) LTS snippet 2 (constrained env.) STG 2 Properties SI DI interfacing … Petrify

23 Outline Overview of specification mining Modeling behavioral properties Mining algorithm Results and conclusions 23

24 Case study: 4-phase latch controller 137 possible speed-independent specifications Synthesized with Petrify, then STGs mined assuming: – Speed-independence – Delay insensitive interfacing – Multi-environment (L, R) All mined STGs identical to original ones 24 G. Birtwistle and K. Stevens Modelling mixed 4-phase pipelines: structures and patterns, ASYNC 2014. FIFO ctrl FIFO ctrl lr rr lara

25 Some 4-phase examples 25

26 Why multi-environment constraint? 26 FIFO ctrl FIFO ctrl lr rr lara Without multi-environments, 2 snippets are obtained Right env. is triggering left env.

27 Controllers with choice BenchmarkNum. of snippets Gurobi runtime [seconds] Num. of signals in orig. circuit SM-latch10.103 RLM40.146 1-bit variable10.316 i/o + 2 internal alloc-outbound30.737 i/o + 2 internal vmebus40.126 i/o + 1 internal A/D converter ctrl.10.437 tsend-csm-> 1 hour9 i/o + 2 internal 27 For each benchmark one snippet was identical to the original specification

28 Example: alloc-outbound 28

29 Resynthesis: 1-bit variable 29 K. v. Berkel. Handshake Circuits: an Asynchronous Architecture for VLSI Programming Cambridge University Press, 1993. Spec. mining Resynthesis (Petrify)

30 Conclusions Specifications can be successfully recovered for several types of controllers Useful for reverse engineering, resynthesis, compositional verification, … Future work: – Heuristics to handle large exploration spaces – Circuits with bounded delays 30

31 31

32 BACKUP 32

33 OLD 33

34 34 Big LTS template x+ b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+a− b+ b− a+ a− y− y+ y− x− x+ x− x+ x− y+ x− x+

35 Snippet 2 35 a+ b+ y+ b− x+ y+ x− a− y- b+ y+ b− y- a+ x+ a− x− a+ x+ y+ a− x− b+ b- b+ y+ b- y- a+ x+ a- x-

36 LTS under free environment a b x y b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− y− y+ 36 y− x− x+ x− x+ x− y+ x− x+ Nothing is known from the environment  Assume free environment All input transitions enabled Reset state Environment Original specification

37 Constraining environment a b x y b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− b+ b− a+ a− y− y+ 37 y− x− x+ x− x+ x− y+ x− x+  Speed-independent  Delay-insensitive interfacing Environment Original specification ✓ ✓

38 Objectives of this work Can we discover a specification of the interface that guarantees a speed-independent behavior of the circuit? 38 a+ b+ y+ b− x+ y+ x− a− Removing input transitions only


Download ppt "Specification mining for asynchronous controllers Javier de San Pedro† Thomas Bourgeat ‡ Jordi Cortadella† † Universitat Politecnica de Catalunya ‡ Massachusetts."

Similar presentations


Ads by Google