Formal Refinement Checking in a System-level Design Methodology

Jean-Pierre Talpin, Paul Le Guernic, Sandeep K. Shukla, Frederic Doucet, Rajesh K. Gupta

TL;DR

This paper introduces a formal methodology for checking the correctness of design refinements in system-level design. By leveraging the polychronous model of computation and the SIGNAL language within the POLYCHRONY workbench, they provide a way to automatically verify that a lower-level implementation preserves the properties of its higher-level specification. This addresses a critical gap in current design practices, where refinement is often a manual and error-prone process.

What Problem Does This Paper Address?

Modern embedded systems are becoming increasingly complex, demanding higher performance and faster time-to-market. This has led to the adoption of system-level design methodologies that emphasize higher levels of abstraction, IP reuse, and refinement-based design. However, a major challenge is ensuring the correctness of these refinements, especially when components from different designers and using heterogeneous models of computation are integrated. Proving that an implementation faithfully preserves the properties of its higher-level abstraction is a significant outstanding problem. The lack of formal models, methods, and tools for this purpose makes refinement a largely manual process, prone to errors.

Methods

The authors propose a formal refinement-checking methodology based on the polychronous model of computation, implemented in the SIGNAL data-flow synchronous language and the POLYCHRONY workbench. Key aspects of their approach include:

  • Polychronous Model of Computation: This model handles both synchronous and asynchronous aspects of system design using timing equivalence relations (clock equivalence and flow equivalence). It allows for modeling partially clocked specifications and multi-clocked architectures.
  • SIGNAL Language: Used as the specification formalism, SIGNAL is a multi-clocked synchronous data-flow language that supports expressing simultaneous equations over signals.
  • POLYCHRONY Workbench: This workbench implements the polychronous model and provides tools for modeling, verification, and transformation.
  • Finite Flow-Preservation and Flow-Invariance: The core of their methodology relies on these properties. A process is "finitely flow-preserving" if equivalent inputs produce finitely flow-equivalent outputs. A refinement is "finitely flow-invariant" if it preserves this property.
  • Observer-Based Verification: They define a template SIGNAL process called an "observer" that takes two processes (a specification and its refinement) and checks if their outputs are finitely flow-equivalent given finitely flow-equivalent inputs. This observer is then used with model checking tools.
  • SPECC Program Translation: A technique is presented to automatically translate SPECC programs (a system-level design language) into the SIGNAL formalism, enabling the application of their methodology to SPECC designs.

Datasets

Not discussed in the paper. The paper focuses on a methodology and its application to a case study.

Key Insights and Ideas

  • Bridging Synchrony and Asynchrony: The polychronous model is crucial for handling systems that exhibit both synchronous and asynchronous behaviors, which is common in modern embedded systems.
  • Formalizing Refinement: The paper provides a concrete mathematical framework (finite flow-preservation and flow-invariance) to formally define and check the correctness of design refinements.
  • Language and Tool Integration: The combination of SPECC, SIGNAL, and the POLYCHRONY workbench demonstrates a practical approach to applying formal methods in a system-level design flow.
  • Traceability through Clocks: The use of SIGNAL's clock expressions and the translation of program labels into clocks provides a mechanism for traceability, linking design errors back to their original blocks.
  • Generality of the Approach: While demonstrated with SPECC, the methodology is presented as generic and language-independent, applicable to other high-level system description languages.

Key Results

The paper demonstrates the effectiveness of their approach through a case study of an even-parity checker (EPC). They successfully:

  • Modeled SPECC programs in the SIGNAL formalism.
  • Defined a methodology to compare system-level models at different abstraction levels.
  • Validated behavioral equivalence relations between these models.
  • Showed that their approach can formally check design refinements from specification to architecture and then to implementation.
  • The methodology is shown to be capable of detecting local design errors and supporting compositional design refinement.

Limitations and Future Work

The authors acknowledge the following limitations and suggest future work:

  • Dynamic Resource Management: The current approach lacks support for reasoning on dynamic resource management (memory or threads).
  • Interfacing with Other Models: There is a lack of connections to other models of computation (untimed, real-timed, continuous).
  • Larger Case Studies: While the EPC is a simple example, larger case studies (e.g., a finite input response filter and an ARM bus) are mentioned as ongoing work to demonstrate the technique's scalability.
  • Co-simulation: The integration of controller synthesis techniques with co-simulation for large SYSTEMC designs is being investigated.
  • Modular Verification: The authors envision modular verification by checking properties against specific components while abstracting others, which is a promising direction.

Summary updated

BibTeX
@article{talpin2004formal,
  author = {Jean-Pierre Talpin and Paul Le Guernic and Sandeep K. Shukla and Frederic Doucet and Rajesh K. Gupta},
  title = {{Formal Refinement Checking in a System-level Design Methodology}},
  journal = {Fundam. Informaticae},
  year = {2004},
}

Loading related content...

Figure