EECE 353-01    Real-Time Systems
 
T. John Koo, Ph.D.
 
5306 Stevenson Center
Monday & Wednesday
2:10pm-3:30pm


Real-time systems are computing systems that must react to the dynamic environments under timing constraints.  Real-time systems are pervasive since many societal-scale infrastructure systems, such as manufacturing systems, power networks and transportation systems, require real-time computing. The correctness of the systems depends on not only how correct the computation is but also how accurate the computation can satisfy the timing constraints.  However, most of the real-time systems are still designed and implemented using low-level programming and empirical techniques. The resulting real-time systems produced can be highly unpredictable. The consequences of a failure can be catastrophic, such as the accidents happened on the Mars Polar Lander, the Ariane rocket and the Patriot Missile system.

This course focuses on the analysis and design of real-time systems. The course covers topics on system modeling using the tagged signal models and timed models of computation [1], specifications and scheduling techniques for real-time tasks [2], simulation and verification of real-time systems, software architecture and language for constructing real-time systems [3,4,5]. Special attention is paid to computational and simulation tools for real-time systems. Applications ranging from robotics, embedded control systems, drive-by-wire systems, space missions, telecommunication systems, industrial automation, and middleware software systems will be covered. 

[1] E. A. Lee and A. Sangiovanni-Vincentelli, "A Framework for Comparing Models of Computation," IEEE Trans. CAD, Vol. 17, No. 12, December 1998.

[2] Giorgio C. Butazzo, Hard Real-Time Computing Systems, 2nd Edition, Springer, 2005.

[3] H. Kopetz, “The Time Triggered Architecture,” Proceedings of the IEEE,  Vol. 91, No. 1, January 2003.

[4] Thomas A. Henzinger, Benjamin Horowitz, and Christoph M. Kirsch, “Giotto: A Time-Triggered Language For Embedded Programming,” Proceedings of the IEEE,  Vol. 91, No. 1, January 2003.

[5] B. Horowitz, J. Liebman, C. Ma, T. J. Koo, A. Sangiovanni-Vincentelli, S. Sastry, “Platform-Based Embedded Software Design and System Integration for Autonomous Vehicles,” Proceedings of the IEEE, Vol. 91, No. 1, January 2003.

Prerequisite: consent of instructor.

Breaking News

1/21/2005 Lecture 1 and HW1 are ready uploaded on the webpage. Please go to the Class Schedule to download the documents. The due date for the HW 1 is 1/24/2005.

Useful Links on this webpage has been updated. 

Please read Chapter 1 and 2 for the background on Real-Time Systems.

Please read the information regarding the mini-project. The due date of the project is 2/28/04. There are three robots available  so please form into three groups. For each group, please submit 1) the name of your group and the list of your group members by  1/26/2005.

To read more about models of computation, please go to the Useful Links and read a chapter on Models of Computation from Embedded, Everywhere, National Research Council.

1/26/2005 Lecture 2 and HW2 are ready uploaded on the webpage. Please go to the Class Schedule to download the documents. The due date for the HW 2 is 2/2/2005.

Please download Ptolemy II and participate the lecture on Ptolemy II on 1/31 and 2/2.
2/7/2005 Lecture 3 & 4 are ready for download. The lecture presentations are made by Prof. Edward Lee, UC Berkeley.

Ptolemy II models presented in the lectures by Dr. Eric-Jan Manders are available for download. The links have been modified and should be working properly now. 

HW 2 is due on 2/9/05 and HW 3 is due on 2/16/05.
2/14/2005 Lecture 5 is ready for download.

Grading criteria for the Mini-Project is presented.

Reading Assignment has been updated, please read the following materials: Lectures Notes on Hybrid Systems by Prof. John Lygeros
Hybrid System Modeling: Operational Semantics Issues by Prof. Edward Lee
2/15/2005 Lecture 6 is ready for download.

HW4 are uploaded on the webpage. Please download the document. The due date for the HW 4 is 2/23/2005.
2/28/2005 Lecture 7 is ready for download.
3/14/2005 Lecture 8 is ready for download.
4/17/2005 Final Presentation will be held on May 2 (Monday) in FGH 308 between 9:00am and 12:00pm.

 


Instructor Information

Name: T. John Koo, Ph.D.

Office: FGH 376

Office Hours: Wednesday 3:30pm-4:30pm

Email: john.koo@vanderbilt.edu

URL: http://www.vuse.vanderbilt.edu/~kootj/


Textbook

Hard Real-Time Computing Systems, Giorgio C. Butazzo, Kluwer, 2nd Edition, Springer, 2005.


Recommended Texts

Real-Time Systems, Jane W. S. Liu, Prentice Hall.
Real-Time Systems and Software, Alan C. Shaw, Wiley.
Real-Time Systems: Design Principles for Distributed Embedded Applications, Hermann Kopetz.
Computer as Components, Principles of Embedded Computing System Design, Wayne Wolf, Morgan Kaufmann.

Prerequisites

Students should have basic concepts in Scheduling, Programming and System Science.


Grading

Homework 20%
Mini Project 30%
Project 50%
   

Mini Project

Objective 1. Learn how to use  Timed Automata for modeling real-time systems and learn about the capabilities and limitations of the modeling paradigm.

2. Learn how to specify timing specifications for real-time systems by using temporal logic formula.

3. Develop technical skills for analyzing and synthesizing  schedules and executable code by using Formal Methods.

4. Demonstrate developed ideas by constructing a real- time system based on the Lego Mindstorm.   

Tools
Times

A Tool for Modeling and Implementation of Embedded Systems. It is a tool set for modelling, schedulability analysis, synthesis of (optimal) schedules and executable code. It is appropriate for systems that can be described as a set of tasks which are triggered periodically or sporadically by time or external events.

Currently Times supports system specification, system analysis and code generation for LegoOS platform. A system specification in Times consists of three parts: the control automata modelled as a network of timed automata extended with tasks, a task table with information about the processes triggered (released) when the control automata changes location, and a scheduling policy

UPPAAL

Uppaal is an integrated tool environment for modeling, validation and verification of real-time systems modeled as networks of timed automata, extended with data types (bounded integers, arrays, etc.).

The tool is developed in collaboration between the Design and Analysis of Real-Time Systems group at Uppsala University, Sweden and Basic Research in Computer Science at Aalborg University, Denmark.

Schedule 2/28/2005 Demonstration and Presentation
Grading 40% Software Design
20% Successful Demonstration
20% Creativity
20% Documentation (Due on 2/28)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 



 


Class Schedule

January 17 Seminar - Modeling Real-time Systems Joseph Sifakis, VERIMAG, France Reading Assignment:
Building models of Real-Time Systems from Application Software
January 19 Introduction
Lecture 1
HW 1 (Due on 1/24)
T. John Koo Lecture + Discussion
Reading Assignment:
Framework for Comparing Models of Computation
January 24 Modeling: Models of Computation T. John Koo Lecture + Discussion
January 26 Modeling: Models of Computation
Lecture 2
HW 2 (Due on 2/9)
T. John Koo Lecture
Reading Assignment:
Ptolemy II
January 31 Modeling: Ptolemy II
Lecture 3:
Concurrent Computational Systems by Edward Lee
Eric-Jan Manders Lecture + Discussion
February 2 Modeling: Ptolemy II
Lecture 4:
Discrete Event (DE) System Lecture in
EECS 290N by Edward Lee
HW3 (Due on 2/9)
Eric-Jan Manders Lecture
Reading Assignment:
A Theory of Timed Automata
PTII Models:
pnmodel1,
pnmodel2,
pnmodel3,
pnmodel4.
February 7 Modeling: Timed Automata T. John Koo Lecture + Discussion
February 9 Modeling: Timed Automata
Lecture 5:
TimedAutomata
T. John Koo Lecture
Reading Assignment:
Lectures Notes on Hybrid Systems by John Lygeros
Hybrid System Modeling: Operational Semantics Issues by Edward Lee
February 14 Modeling: Timed Automata T. John Koo Lecture
February 16 Modeling: Timed Automata
Lecture 6:
HybridAutomata
HW4 (Due on 2/23)
 
T. John Koo Lecture
Reading Assignment:
Automata-Theoretic Verification of Real-Time Systems
February 21 Verification: Timed Automata T. John Koo Lecture
February 23 Verification: Timed Automata
Lecture 7:
HybridAutomataReachability
T. John Koo Lecture
February 28 Project Presentation T. John Koo  
March 2 Mini Project Presentation T. John Koo  
March 7 No Class Spring Break  
March 9 No Class Spring Break Reading Assignment:
Hard Real-Time Computing Systems
March 14 Verification: Timed Automata
Lecture 8:
TimeAutomataAnalysis
T. John Koo Lecture + Discussion
March 16 Verification: Timed Automata T. John Koo Lecture
March 21 Analysis: Scheduling T. John Koo Lecture
March 23 Analysis: Scheduling T. John Koo Lecture
 
March 28 Analysis: Scheduling T. John Koo Lecture + Discussion
March 30 Analysis: Scheduling T. John Koo Lecture
Reading Assignment:
Giotto webpage;
From control models to real-time code using Giotto;
Giotto: A Time-Triggered Language For Embedded Programming
April 4 Synthesis: Time-Triggered Language, Giotto T. John Koo Lecture + Discussion
April 6 Synthesis: Time-Triggered Language, Giotto T. John Koo Lecture
Reading Assignment:
Platform-Based Embedded Software Design and System Integration for Autonomous Vehicles
April 11 Synthesis: Platform-Based Design T. John Koo Lecture + Discussion
April 13 Synthesis: Platform-Based Design T. John Koo Lecture
Reading Assignment:
The Time Triggered Architecture
April 18 Seminar: Model Checking Approaches for Schedulability Analysis of Real-Time Systems Gabor Mad Lecture
April 20 Seminar: RT-CORBA Aniruddha Gokhale Lecture
       
May 2 Project Presentation FGH 308
9:00am -12:00pm

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 



















 


Useful Links


Seminar Information

January 17

Time: 3pm Place: Stephenson Center 5326

Joseph Sifakis is CNRS researcher and the Director of  the Verimag laboratory (http://www-verimag.imag.fr/), in Grenoble, France. He studied Electrical Engineering at the Technical University of Athens and Computer Science at the University of Grenoble. Joseph Sifakis worked on both theoretical and practical aspects of Concurrent Systems Specification and Verification. He contributed to the development of the state of the art in verification methods and tools by model-checking for both untimed and timed systems. His current research interests include modeling, design and analysis of real-time systems with a focus on composability and compositionality. (Further information: http://www-verimag.imag.fr/~sifakis/ ) Joseph Sifakis is a member of the editorial board of several journals, co-founder of the CAV (Computer Aided Verification) conference and a member of the Steering Committee of the EMSOFT (Embedded Software) conference. He is the recipient of the CNRS Silver Medal in 2001. Joseph Sifakis is the scientific coordinator of the European Network of Excellence ARTIST2 on Embedded Systems Design. (Further information: (http://www.artist-embedded.org/Overview/ )

Modeling Real-time Systems Joseph Sifakis Verimag, Grenoble, France Sifakis@imag.fr Modeling real-time systems raises non trivial problems for the definition of usable modeling languages and the application of model-based development approaches. We identify key problems and present corresponding research directions for the incremental construction of timed models for real-time systems. We present a framework that may provide some solutions and an associated methodology for model construction. Timed models of real-time systems are obtained by adding timing constraints to their application software. These constraints take into account execution times of atomic statements, the dynamics of the external environment, as well as quality of service requirements. The framework combines two kinds of composition operators for timed components: Restriction operators which are unary operators parameterized by a safety property. Their application on a component restricts its behavior so as to meet the associated property. Dynamic priorities correspond to a class of restriction operators which preserve deadlock-freedom of their arguments. Parallel composition operators, parameterized by interaction models. These models describe interactions between actions offered by the composed components and their associated synchronization requirements. We show that the combination of parallel composition and restriction operators allows compositional modeling of real-time systems, in particular of aspects related to heterogeneous interaction and execution, resource sharing and scheduling. Scheduling policies are modeled by dynamic priorities. The framework supports composition of scheduling policies and provides compositionality and composability results for deadlock-freedom of scheduled systems. We show applications of these results, including model-based development of applications in Esterel and real-time Java, as well as a partial implementation of the framework in Verimag’s IF toolset.

References Joseph Sifakis “Modeling real-time systems--challenges and work directions” EmSoft01, LNCS 2211, Tahoe City, October 2001. J. Sifakis, S. Tripakis, S. Yovine "Building models of real-time systems from application software" Proceedings of the IEEE, Special issue on modeling and design of embedded systems, 91(1):100-111, January 2003. K. Altisen, G. Goessler, J. Sifakis “Scheduler modeling based on the controller synthesis paradigm” Journal of Real-time Systems, Vol. 23, pp.55-84, 2002.

G. Goessler, J. Sifakis "Composition for component-based modelling", FMCO02, LNCS 2852, pp. 443-466. E. Closse, M. Poize, J. Pulou, J. Sifakis, P. Vernier, D. Weil S. Yovine “ TAXYS : a tool for the development and verification of real-time embedded systems ” CAV01, LNCS 2102, Paris, July 2001. C.Kloulinas, C. Nakhli, S. Yovine “A methodology and tool support for generating scheduled native code for real-time java applications” EmSoft03, LNCS 2855, pages 274-289. Philadelphia, October 2003. The IF toolbox http://www-verimag.imag.fr/~async/IF/index.shtml.en