# Wiki source code of How to try out Interactive Timing Analysis

Last modified by Alexander Schulz-Rosengarten on 2023/09/11 16:17
Export
Office Formats
Export as PDF Export as ODT Export as RTF
Other Formats

Select the pages to export:

select all/ none

Legend:
  Created Page
  Modified Extension Page
  Clean Extension Page

Export as HTML

Show last authors

author | version | line-number | content
--- | --- | --- | ---
|  | 1 | If you want to try out our example implementation of Interactive Timing Analysis, you can use this guide:
|  | 2 |
|  | 3 | = Steps for setup: =
|  | 4 |
|  | 5 | 1. Download the KIELER SCCharts editor with Interactive Timing Analysis [[here>>url:https://rtsys.informatik.uni-kiel.de/confluence/display/KIELER/Downloads#Downloads-SCChartsEditorandCompiler||shape="rect"]]. Choose the release, i.e. the
|  | 6 | KIELER SCCharts Product [[v. 0.11.0>>doc:KIELER.Old Release Notes.KIELER SCCharts Release 0\.11\.0.WebHome||shape="rect"]] (2014-02-28, based on Eclipse 4.3 Kepler) in the right version for your platform.
|  | 7 | 1. Get the experimental KTA timing analysis tool [[here>>url:https://github.com/timed-c/kta||shape="rect"]]. You can download the ZIP folder.
|  | 8 | 1. Make sure [[ocaml >>url:https://ocaml.org||shape="rect"]]and "make" are installed on your system, so that you can compile the KTA timing analysis tool.
|  | 9 | 1. Extract the zip folder you downloaded in Step 2 and compile the KTA timing analysis tool running make in the kta-master folder.
|  | 10 | 1. Install the gcc MIPS compiler (mcb32tools, mipsel-mcb32-elf-gcc), which is used by the KTA timing analysis tool.
|  | 11 | 1. Start up KIELER, go to Preferences -> Interactive Timing Analysis and enter the absolute paths in your system to the folder that
|  | 12 | contains the KTA tool binary or the gcc MIPS compiler, respectively (click image to enlarge):
|  | 13 | \\[[image:attach:ITAPreferences.png]]
|  | 14 |
|  | 15 |
|  | 16 |
|  | 17 | = How to use the Interactive Timing Analysis: =
|  | 18 |
|  | 19 | You can use this selection of example models to get you started: [[TestFilesTiming>>attach:TestFilesTiming.zip]].
|  | 20 |
|  | 21 | 1. Create a Project in your Project Explorer (right click -> New -> Project).
|  | 22 | 1. Copy the files and folders contained in the TimingTestFiles folder into the Project.
|  | 23 | 1. Make sure the folders that contain the .sct and .asu file of the models and the tpp.h file are on one level, like in the TimingTestFiles folder.
|  | 24 | 1. Open any of the .sct files in the editor (right click the file). The Diagram view should open automatically and show you an image of the model. If that does not work, open that view by choosing Window -> Show View -> Other -> KIELER Lightweight Diagrams -> Diagram
|  | 25 | 1. Choose your desired Timing Analysis Options in the Diagram Options bar (click image to enlarge):
|  | 26 | [[image:attach:ITABild2.png]]
|  | 27 | You can switch between percentage, cycles and milliseconds for the timing value display. You can of course also try out the other Diagram and Layout Options in the bar.
|  | 28 | 1. As a first step you can play around with the timing assumptions on function calls you find in the .asu files for the models (note that FunParc2 has no function calls, so choose something else):
|  | 29 | [[image:attach:ITABildAsu.png]]
|  | 30 | 1. You can see how the values and the Hotspot Highlighting change when you update the view by clicking on the button with this symbol:
|  | 31 | [[image:attach:Bildschirmfoto 2016-05-20 um 15.33.33.png]]
|  | 32 | 1. Try to create and edit your own models (right click the project -> new -> Folder, then right click the folder -> new -> file, give the file a name that ends with .sct). You can edit your file in the textual editor now. Please note that you have to add an assumption file with the same name as the model file, but the ending .asu that contains timing assumptions for any function call you use in your model. Your diagram view is updated with every save. Also, your timing values are recomputed and displayed.
|  | 33 | For a quick start guide on SCCharts and how to model them see also [[this page>>doc:KIELER.SCCharts (DeprecatedHistorical Documentation & Features).SCCharts (pre 1\.0).Quick Start Guide (pre 0\.13).WebHome]].
|  | 34 | \\\\
|  | 35 |
|  | 36 |
|  | 37 |
|  | 38 | ====== If you encounter problems trying out the Interactive Timing Analysis, please contact Insa Fuhrmann: [[ima@informatik.uni-kiel.de>>mailto:ima@informatik.uni-kiel.de||shape="rect"]] ======
|  | 39 |
|  | 40 |
|  | 41 |
|  | 42 |

# Quick Links

KIELER on GitHub
RTSYS Homepage

XWiki 14.4.7