Download Efficient Time-Triggered Execution in an Interrupt-Driven Real
Transcript
Chapter 3 Platform Considerations With the specification requirements now established, this chapter first outlines the requirements a platform needs to fulfill in order to allow a hardware-based implementation. Then, an abstract model of timer cells is established, providing a generic, hardware-independent basis for approaching the design step in chapter 4. 3.1 Platform Requirements Two crucial platform requirements to facilitate purely time-triggered task activation in hardware components outside of the central processor can be identified: • The platform must provide a sufficiently large array of independently operating timer cells, so that all time-based duties of the operating system can be performed by dedicated hardware units, avoiding as much software effort at run-time as possible. • The provided timer cells need to be able to trigger individually configurable interrupt handlers in order to activate the execution of specific tasks. When deriving from purely time-triggered paradigms and mixing with the eventtriggered components of Sloth, additional requirements need to be fulfilled, which match the demands of a regular Sloth system: • The platform must offer at least as many interrupt priorities as the amount of priority-controlled tasks required by the application, since each task priority is represented by a dedicated priority level of an interrupt source. If it is not possible for multiple interrupt sources to share the same priority (as it is the case on the Infineon TriCore platform), each time-triggered OSEKtime task 7