Changes for page PLDI'14 Artifact on SCCharts
Last modified by Alexander Schulz-Rosengarten on 2023/09/11 16:17
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -10,20 +10,14 @@ 10 10 11 11 3. Generate C Code. 12 12 13 -We will use a simple example here in order to illustrate the process. Pleasereferto the SCChartssuperpagefor the[[projectstatus>>doc:SCCharts]]andknown limitations.13 +We will use a simple example here in order to illustrate the process. It should be straightforward to use these instructions in order to compile a more advanced SCChart. Note that there are known minor bugs in the current nightly build that will be fixed in the next release of KIELER 0.10.0. These bugs might in some cases prevent you from compiling more elaborate examples. 14 14 15 15 16 16 17 17 [1] PLDI submission: [[http:~~/~~/rtsys.informatik.uni-kiel.de/~~~~biblio/downloads/papers/pldi14.pdf>>url:http://rtsys.informatik.uni-kiel.de/%7Ebiblio/downloads/papers/pldi14.pdf||shape="rect" class="moz-txt-link-freetext"]] 18 18 19 - 19 += Download & Start KIELER = 20 20 21 -In addition to the step-by-step tutorial below we also captured a video that shows each of the explained steps: 22 - 23 - 24 - 25 -= 1. Download & Start KIELER = 26 - 27 27 [[Download>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/files/pldi14/||shape="rect"]] a suitable KIELER version for your operation system. The zip bundles are fully compiled and ready-to-run, they do not need any further installation process. Just save and extract them to/at the location of your choice and start the KIELER executable. 28 28 29 29 [[~[~[image:attach:RTEmagicC_download.png.png~]~]>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/files/pldi14/||shape="rect"]] ... ... @@ -56,7 +56,7 @@ 56 56 57 57 Now you can proceed in modeling an SCChart as explained below. 58 58 59 -= 2.Model an SCChart =53 += Model an SCChart = 60 60 61 61 Right-click on a project and create a (text) File: 62 62 ... ... @@ -66,8 +66,6 @@ 66 66 67 67 [[image:attach:kieler09.png]] 68 68 69 -SCT is a textual description language for SCCharts. Due to space limitations SCT is not documented in the PLDI paper, but examples can be found [[here>>doc:SCT - Textual Description Language for SCCharts]]. Also the code completion functionality of the textual editor for SCT is very helpful. It can be invoked by pressing <Ctrl> + <Space>. It will list all syntactically possible input according to the SCT/SCCharts meta model. 70 - 71 71 The textual SCCharts Xtext based editor (for *.sct files) will automatically be opened: 72 72 73 73 [[image:attach:kieler10.png]] ... ... @@ -110,7 +110,7 @@ 110 110 111 111 You will now see how to generate a C tick function. 112 112 113 -= 3.Generate C Code =105 += Generate C Code = 114 114 115 115 You can do several transformations on SCCharts (*.sct files). Just right click the file you want to transform in the project explorer and select the Transform SCChart sub menu. As abo is already a Core SCCart you do not need the core transformations. Click the All Normalize Transformations, this will do the Split Trigger and Effects and the Surface and Depth transformations together (in this order). 116 116 ... ... @@ -120,48 +120,56 @@ 120 120 121 121 [[image:attach:kieler14.png]] 122 122 123 -Now generate the Sequentially Constructive Graph (SCG) from the normalized form. You do this also in the context menu of the Project Explorer by selecting the *.normalized.sct and choosing Generate SCG . When selecting the abo.normalized.scg file the SCG diagram will be automatically synthesized (you may also want to re-arrange the KLigD view by dragging in to the right side again).115 +Now generate the Sequentially Constructive Graph (SCG) from the normalized form. You do this also in the context menu of the Project Explorer by selecting the *.normalized.sct and choosing Generate SCG: 124 124 125 -[[image:attach:kieler15.png]] [[image:attach:kieler16.png]]117 +[[image:attach:kieler15.png]] 126 126 127 - 119 +When selecting the abo.normalized.scg file the SCG diagram will be automatically synthesized (you may also want to re-arrange the KLigD view by dragging in to the right side again): 128 128 129 - You can now populate the SCG automatically with dependency data. Choose Transform SCG -> SCG with Dependency Data from thecontext menu (left side). This will result in thefollowing SCG (right side).121 +[[image:attach:kieler16.png]] 130 130 131 - [[image:attach:kieler17.png]][[image:attach:kieler18.png]]123 +You can now populate the SCG automatically with dependency data. Choose Transform SCG -> SCG with Dependency Data from the context menu: 132 132 133 - 125 +[[image:attach:kieler17.png]] 134 134 135 - Now populate the SCG with basicblockinformation (leftside).The SCG withcalculatedbasic blocks willlook like this (rightside).127 +This will result in the following SCG: 136 136 137 -[[image:attach:kieler1 9.png]][[image:attach:kieler20.png]]129 +[[image:attach:kieler18.png]] 138 138 139 - 131 +Now populate the SCG with basic block information: 140 140 141 - The next stepin compilation is the (more finegrained) calculate of scheduling blocks (left side). The populated SCG with scheduling informationlooks like this (right side).133 +[[image:attach:kieler19.png]] 142 142 143 - [[image:attach:kieler21.png]][[image:attach:kieler22.png]]135 +The SCG with calculated basic blocks will look like this: 144 144 145 - 137 +[[image:attach:kieler20.png]] 146 146 147 -The SCG isnow readytobesequentialized.Aprimitive scheduler currentlyisincludedin KIELER butmoreelaborate onesarealreadyinthepipeline (leftside). ThesequentializedSCGlookslike this (right side).139 +The next step in compilation is the (more fine grained) calculate of scheduling blocks: 148 148 149 -[[image:attach:kieler2 3.png]][[image:attach:kieler24.png]]141 +[[image:attach:kieler21.png]] 150 150 151 - 143 +The populated SCG with scheduling information looks like this: 152 152 153 - From hereits onlyashort hop to C code. Transformthe sequentialized SCG into an S TickFunction (left side).When openingthe S file (abo.normalized.seq.s) this already is very c like code (right side).145 +[[image:attach:kieler22.png]] 154 154 155 - [[image:attach:kieler25.png]][[image:attach:kieler26.png]]147 +The SCG is now ready to be sequentialized. A primitive scheduler currently is included in KIELER but more elaborate ones are already in the pipe line: 156 156 157 - 149 +[[image:attach:kieler23.png]] 158 158 159 - SelectingGenerate SCwill producea C file:151 +The sequentialized SCG looks like this: 160 160 161 -[[image:attach:kieler2 7.png]][[image:attach:kieler28.png]]153 +[[image:attach:kieler24.png]] 162 162 155 +From here its only a short hop to C code. Transform the sequentialized SCG into an S Tick Function: 156 + 157 +[[image:attach:kieler25.png]] 158 + 159 +When opening the S file (abo.normalized.seq.s) this already is very c like code. Selecting Generate SC 160 + 163 163 164 164 165 165 166 166 167 167 166 + 167 +
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -86517 461 +8651729 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/86517 46/PLDI'14 Artifact on SCCharts1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/8651729/PLDI'14 Artifact on SCCharts