HOME       UP       PREV       FURTHER NOTES       NEXT (Synthesis from Rules (SAT-based idea).)  

Synthesis/Refinement from Formal Specifications

For instance, an inverter with input A and output B, expressed declaratively as predicates of time, can be specified as (FOR CORRECT TYPESETTING PLEASE SEE PREVIOUS SLIDE)

Here the logic levels of the circuit have the same notation as the logic values in the proof system, but an approach where they are separate might is typically needed when don't care states are encompassed. (FOR CORRECT TYPESETTING PLEASE SEE PREVIOUS SLIDE)

When time is quantised in units equal to a tick of the global clock then a D-type flip-flop can be expressed: (FOR CORRECT TYPESETTING PLEASE SEE PREVIOUS SLIDE) Here we have dropped the implied, leading \forall t.

Refinement outline:

  1. Start with a formal spec plus a set of refinement rules,
  2. Apply a refinement rule to some part of the spec,
  3. Repeat until everything is executable.

A complex formal specification does not necessarily describe the algorithm and hence does not describe the logic structure that will be used in the implementation. Therefore, synthesis from formal specification involves a measure of inventiveness on the part of the tool.

» Wikipedia: program refinement

29: (C) 2008-11, DJ Greaves, University of Cambridge, Computer Laboratory.