Ernest Cachia University of Malta RealTime System Development

  • Slides: 15
Download presentation
Ernest Cachia University of Malta “Real-Time System Development” Slide No. 1 - Title slide

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 1 - Title slide Real-Time System Development Issues and Methods (As part of CSA 404)

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 2 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 2 of part 1 Some opening wisecracks! “The computer is controlling something that interacts with reality on a timely basis. … … An unresponsive real-time system may be worse than no system at all. ” [R. Glass - 1983] “In today’s society, an incorrectly responsive real-time system is something that should be put to death before it itself has time to do so to others. ” [E. Cachia - 1998]

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 3 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 3 of part 1 A General Definition Systems whose correct functioning depends on the timeliness of its response(s) forcing its timing to be defined under some form of constraint This definition is very broad and clearly lends itself to further definition

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 4 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 4 of part 1 R-T Distinguishing Features (1) n n n Form part of a larger system (embedded systems) Often interact with non-human external entities (direct control systems) Pre-defined timing constraints typically in the range of ms to minutes (time critical systems)

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 5 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 5 of part 1 R-T Distinguishing Features (2) n n Automatic (R-T) system control excluding any human intervention (automated control systems) The current state of a R-T systems depends not only on any external stimuli it receives but also on its present state (reactive systems)

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 6 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 6 of part 1 Application Areas of R-T Systems n n n Industrial Commercial Military Typical features Complexity Multiple control streams Strict timing constraints

R-T Categorisation Soft (missed timing deadlines are fault WHAT? ! Ernest Cachia University of

R-T Categorisation Soft (missed timing deadlines are fault WHAT? ! Ernest Cachia University of Malta “Real-Time System Development” Slide No. 7 of part 1 causing but not catastrophic) Hard (missed timing deadlines cause catastrophic system failure) Furthermore. . . n Soft or hard R-T systems can be F Slow F Fast n Therefore, 4 classes of R-T systems can be defined

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 8 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 8 of part 1 4 R-T System Classes

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 9 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 9 of part 1 Some R-T Class Examples (1) n Hard-fast (computation times 10 ms) F Vehicle airbag systems F Safety cut-off control systems F Aircraft control systems n Hard-slow (computation times 10 s) F Missile engagement systems F Conventional process control F Critical environment monitoring systems

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 10 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 10 of part 1 Some R-T Class Examples (2) n Soft-fast (times may vary up to minutes) F Specific characteristics include • Humans are a system component • Contain a substantial MMI F Weapon fire-control systems F System status monitor systems n Soft-slow (times usually vary up to minutes) F Trend monitoring systems F Analysis-for-feedback systems F Auto-adaptation systems

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 11 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 11 of part 1 Modelling R-T Systems n n n Understand which aspects of R-T systems require particular attention Adapt or create adequate representation tools for modelling the required R-T system aspects Understand how specific R-T modelling techniques can be integrated into generic software development procedures

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 12 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 12 of part 1 R-T System Aspects to Model n n n Model control functions Model control data Model timing constraints Model system reactions Model fault handling/recovery (Sub) System redundancy

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 13 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 13 of part 1 Modelling Control Functions n n Control modelling is dynamic by nature Modelling techniques to describe dynamic system behaviour exist Control modelling can be tackled separately but should always be considered as part of the whole system model One particular control modelling technique might not model all the required control aspects of a system

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 14 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 14 of part 1 Some Tools for Modelling Dynamic System Behaviour n n n Finite State Machines in the form of Mealy State Transition Diagrams Modified DFDs (e. g. Hatley-Pirbhai extensions a. k. a. Control Flow Diagrams - CFDs ) Mathematical logic

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 15 of part 1

Ernest Cachia University of Malta “Real-Time System Development” Slide No. 15 of part 1 Aspects to look out for when specifying R-T systems n Task execution time CPU time required for task completion n Task period/Task rate Time interval between task starts. The number of task starts in a fixed period of time is the rate n Task deadline Time by which a task must reach completion n Jitter Time interval in which a task may begin and terminate before its deadline n Transport lag Time interval between actual real-world event and the system’s response (signal to actuator)