Giotto is a programming model for embedded control systems that is applicable to hard real-time specifications that are periodic and feature multi-modal behavior. Examples of such systems include fly-by-wire or brake-by-wire systems where sensor readings must be periodic and there are multiple modes of operation.
Ptolemy II is a university based open source modeling and simulation framework that supports model-based design, and facilitates actor oriented and objected oriented programming. It serves as a laboratory for the modeling and simulation necessary in the design of a real-time embedded system. Ptolemy also has a C code generation framework that generates code for different targets.
Ptolemy II has an implementation of the Giotto programming model, that allows the simulation of Giotto models in Ptolemy II. In this report we discuss our ability to implement Giotto semantics using code generation and a real-time operating system. We illustrate these techniques with Ptolemy II and the FreeRTOS embedded operating system. To illustrate these techniques we extend the code generation framework within Ptolemy II to generate C code for the Giotto programming model. We have implemented a C code generation adapter in Ptolemy II for the Giotto model of computation targeted to systems capable of running the FreeRTOS operating system. We present an elevator controller as an example that uses the code generation framework.
Title
Real-time C Code Generation in Ptolemy II for the Giotto Model of Computation
Published
2009-05-20
Full Collection Name
Electrical Engineering & Computer Sciences Technical Reports
Other Identifiers
EECS-2009-76
Type
Text
Extent
40 p
Archive
The Engineering Library
Usage Statement
Researchers may make free and open use of the UC Berkeley Library’s digitized public domain materials. However, some materials in our online collections may be protected by U.S. copyright law (Title 17, U.S.C.). Use or reproduction of materials protected by copyright beyond that allowed by fair use (Title 17, U.S.C. § 107) requires permission from the copyright owners. The use or reproduction of some materials may also be restricted by terms of University of California gift or purchase agreements, privacy and publicity rights, or trademark law. Responsibility for determining rights status and permissibility of any use or reproduction rests exclusively with the researcher. To learn more or make inquiries, please see our permissions policies (https://www.lib.berkeley.edu/about/permissions-policies).