Tool Mentor: How to Create Timing Model
This Toolmentor describes how to create a timing model with the chronSIM profile in IBM Rational Rhapsody based on an existing UML model of the system.
Relationships
Related Elements
Main Description

Open UML Model of the system in Rhapsody or start a with new project

Add chronSIM Profile to Model

Select Process File

Select Add Profile to Model.

Open chronSIM Profile

Set chronSIM Configuration

In System Tree expand Project->Components->chronSIM->Configurations.

Select chronSIM and press right button.

Select Features and set Stereotype to chronSIM Configuration.

Add Task Diagram

Select Packages in System Tree.

Select Default and press right button.

Select Add New -> chronSim -> Task Diagram.

Add Tasks

Select Task Diagram.

Instantiate a Task (Drag & Drop).

Set name for Task

Configure Task Parameters like priority, execution time, etc.

Add Stimulation for Tasks

Instantiate (1) a Time Event (drag & Drop).

Set name for Time Event (2).

Set Parameter Duration of Time Event (3).

Connect Time Event with Task (drag & drop) (4).



 

Add CPUs

Select Packages in System Tree.

Select Default and press right button.

Select Add New -> chronSim -> CPU

Add an Allocation Diagrams

Select Packages in System Tree.

Select Default and press right button.

Select Add New -> chronSim -> Allocation Diagram .

Instantiate a CPU(drag & Drop) Allocate Tasks to CPUs

Map Tasks (1) to the Allocation Diagram (drag & drop).

Draw Dependencies between Tasks and CPUs (drag & drop) (2).

Select the Stereotype allocate in chronSIM (3).


Add and Allocate ISRs (interrupt Service Routines)

Same Steps as for Tasks

ISRs are Mapped to Ports (Stereotype externalInterrupt) of CPUs not to the CPUs directly