Modular Code Generation from Triggered and Timed Block Diagrams
Authors:
- Roberto LublinermanRLRoberto Lublinerman
- Stavros TripakisSTStavros Tripakis
- 1 April 2008
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 147-158
Abstract
In previous work we have shown how modular code can be automatically generated from a synchronous block diagram notation where all blocks fire at all times. Here, we extend this work to triggered and timed diagrams, where some blocks fire only when their trigger is true, or at statically specified times. We show that, although triggers can be eliminated, this is not desirable since it destroys modularity and may also result in rejecting some diagrams that could be accepted. To avoid this we propose a modular code generation method that directly accounts for triggers. We also propose methods specialized to timed diagrams. Although timed diagrams are special cases of triggered diagrams, treating them directly allows us to obtain efficient code. We achieve this by enriching the interface of a macro block with firing time information and using this information to avoid firing the block unnecessarily. Existing firing time representations are generally conservative, in the sense that they cannot represent the exact set of firing times of a macro block, but a super-set. To remedy this, we devise a novel and accurate (exact) representation. This representation uses finite automata and is amenable to algebraic manipulation and generation of efficient code.Keywords
This publication has 13 references indexed in Scilit:
- Leveraging synchronous language principles for heterogeneous modeling and design of embedded systems2007
- Translating discrete-time simulink to lustreACM Transactions on Embedded Computing Systems, 2005
- Distributing synchronous programs using bounded queues2005
- Composable code generation for distributed giotto2005
- The semantics and execution of a synchronous block-diagram languageScience of Computer Programming, 2003
- Constructive analysis of cyclic circuits2002
- Description and Schedulability Analysis of the Software Architecture of an Automated Vehicle Control SystemLecture Notes in Computer Science, 2002
- Cronos: a separate compilation tool set for modular esterel applications1999
- Analysis of cyclic combinational circuitsIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 1994
- Distributed implementation of SIGNAL: Scheduling & graph clustering1994