Tutorial About Cheddar
Tutorial About Cheddar
The top part of this window (in gray in the figure) displays the time lines computed
during scheduling simulation. The bottom part of this window displays numeric
analysis results.
I.2 Editing the model to analyse
Those models can be written with any editors, but in the sequel, we will use the
graphical editor of Cheddar as follow :
In the sequel, we express the software part of the system to analyse. For this
lab, this software part is mainly composed of the tasks and the shared
resource components. (task Cheddar ADL component type
and resource component type). Other software components exist in Cheddar
ADL, but they are not required there (See the Cheddar ADL reference guide
for further details). task and resource components have to be defined
inside Address Space components An Address Space component can be seen
as a entity modelling the concept of an application, or a Unix process
address space, or even an ARINC 653 partition.
The last step to edit a Cheddar ADL model is to specify task parameters,
which can be achieved with the menu Edit/Software/Task :
Fig. 5 : editing a task component
Again, such component type have mumerous attributes. The most importants
are :
In the example of the figure 5, we have defined 3 tasks, which were periodic,
synchronous, with deadlines on requests, and then, which were defined with
the following attributes :
o Task T1 : Capacity = 2, Deadline = 6, Period = 6
o Task T2 : Capacity = 2, Deadline = 9, Period = 9
o Task T3 : Capacity = 3, Deadline = 12, Period = 12
o Priority attributes were assigned according to Rate Monotonic within
the allowed priority range (from 1 to 255).
o You should notice that the deadlines are equal to the periods (see
attribute Deadline).
o Finally, the attribute Start time is set to 0 in order to model a
synchronous task set.
From the menu Tools and for a given architecture model, we can perform 3
types of analysis with Cheddar:
Under the menu, some buttons allow you to quickly access to a summary of
those Cheddar analysis features (all analysis features can be accessed by
the Tools menu). Indeed, the button starts a scheduling simulation and
the button computes a sample of feasibility tests for a basic periodic task
set. Basically, the button computes worst case task response time
following the Joseph et Pandia [JOS 86] method extended for any Deadline
and classical CPU bound tests. Again, for specific feasibility tests (e.g.
transactions), see the Tools menu.
We can also notice in the time lines that red rectangles show task release
times, black rectangles show when tasks are running. Many other display
options exist there and can be modified by the Tools/Scheduling/Scheduling
Options menu (for example : to display a different color for each task).