Tool Mentor: How to Verify Timing Requirements by Simulation
This Toolmentor describes how to verify timing requirements by simulation in chronSIM.
Relationships
Main Description

To verify the timing requirements, the system is simulated in chronSIM and the requirements are checks against the simulation results.


The Timing Simulation Model has to be opened in the INCHRON Tool-Suite. This model contains all information that is required to simulate the real-time behavior of the system and the requirements that shall be fulfilled by the system.


In the System Widget, the user can examine the properties of Tasks, ISRs, etc. and open the C-files in an external editor. These C-files usually contain task and function bodies that are stubbed with their execution times. All these properties are generated from in the Timing Model in Rhapsody, but the user is free to change or extend it.


The next step is the generation of the simulation by pressing the button “Generate Simulation”. All components that are part of the Timing Simulation Model are processed and combined.




When the simulation is started by pressing the “Start Simulation” button the real-time behavior of the system is simulated. In this simulation all relevant parameters like task/ISR priorities, scheduling behavior and stimulation are considered. The execution times of tasks/ISRs/functions that are defined by DELAY Macros in the C-Code are considered in simulation, too.


The simulation results are visualized in several diagrams. The fulfillment/violation of the requirements can be examined in the Process State Diagram and in the Sequence diagram. These diagrams can be used together with other diagrams to analyze the root cause of the violation and plan countermeasures. 



The requirements window gives an overview of the of the status of all requirements. By clicking on the requirements the user can focus the diagrams on a specific violation/fulfillment of a requirement.