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
-
... ... @@ -1,8 +1,10 @@ 1 -[[image:attach:title7.png]] 1 +{{info}} 2 +We have moved the guide that shows how to model and compile an SCChart within KIELER to a new [[doc:Quick Start Guide]]. Be advised that in order to follow all explanations there may require the latest version of KIELER not the (possibly outdated) PLDI-Artifact. 3 +{{/info}} 2 2 3 -= Modeling SCCharts with KIELER = 5 += Modeling SCCharts with KIELER – PLDI'14 Artifact = 4 4 5 -This tutorial should guide you if you like to model SCCharts with KIELER and use the circuit based software synthesis path as explained in our [1] [[PLDI'14 submission>>url:http://rtsys.informatik.uni-kiel.de/ ~~biblio/downloads/papers/pldi14.pdf||shape="rect"]]. We will show you how to7 +This tutorial should guide you if you like to model SCCharts with KIELER and use the circuit based software synthesis path as explained in our [1] [[PLDI'14 submission>>url:http://rtsys.informatik.uni-kiel.de/%7Ebiblio/downloads/papers/pldi14-submitted.pdf||shape="rect"]]. We will show you how to 6 6 7 7 ~1. Download & Start KIELER, 8 8 ... ... @@ -10,19 +10,29 @@ 10 10 11 11 3. Generate C Code. 12 12 13 -We will use a simple example here in order to illustrate the process. It should bestraightforwardtousetheseinstructionsin ordertocompilea more advancedSCChart.Note thatthere areknown minorbugs in thecurrentnightly buildthat willbefixedinthenext release of KIELER 0.10.0. These bugsmightinsomecasespreventyou from compilingmore elaborateexamples.15 +We will use a simple example here in order to illustrate the process. Please refer to the SCCharts superpage for the [[project status>>doc:SCCharts]] and [[known limitations>>doc:SCCharts]]. If you are interested in the source code you can find instruction how to download and compile it here: [[Getting Started>>url:http://rtsys.informatik.uni-kiel.de/confluence/display/KIELER/Getting+Started||shape="rect"]]. 14 14 17 +See a list of the evaluated examples at the end. 18 + 15 15 16 16 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"]]21 +[1] PLDI submission: [[http:~~/~~/rtsys.informatik.uni-kiel.de/~~~~biblio/downloads/papers/pldi14-submitted.pdf>>url:http://rtsys.informatik.uni-kiel.de/%7Ebiblio/downloads/papers/pldi14-submitted.pdf||shape="rect"]] 18 18 19 - =Download & Start KIELER =23 + 20 20 25 +In addition to the step-by-step tutorial below we also captured a [[video >>url:http://rtsys.informatik.uni-kiel.de/~~kieler/files/pldi14/sccharts.swf||shape="rect"]]that shows each of the explained steps: 26 + 27 +[[~[~[image:attach:RTEmagicC_demo.png.png~]~]>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/files/pldi14/sccharts.swf||shape="rect"]] 28 + 29 +Download location: [[http:~~/~~/rtsys.informatik.uni-kiel.de/~~~~kieler/files/pldi14/sccharts.swf>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/files/pldi14/sccharts.swf||shape="rect"]] 30 + 31 += 1. Download & Start KIELER = 32 + 21 21 [[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. 22 22 23 23 [[~[~[image:attach:RTEmagicC_download.png.png~]~]>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/files/pldi14/||shape="rect"]] 24 24 25 -Download Location: [[http:~~/~~/rtsys.informatik.uni-kiel.de/~~~~kieler/files/pldi14/>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/files/pldi14/||shape="rect"]]37 +Download location: [[http:~~/~~/rtsys.informatik.uni-kiel.de/~~~~kieler/files/pldi14/>>url:http://rtsys.informatik.uni-kiel.de/~~kieler/files/pldi14/||shape="rect"]] 26 26 27 27 When you start the KIELER executable, you probably need to set a (new) workspace location of your choice. (Click on the images to enlarge them). 28 28 ... ... @@ -50,122 +50,14 @@ 50 50 51 51 Now you can proceed in modeling an SCChart as explained below. 52 52 53 -= Model an SCChart = 65 += 2. + 3. Model and Compile an SCChart = 54 54 55 - Right-clickona project andcreate a(text)File:67 +We have moved the guide that shows how to model and compile an SCChart within KIELER to a new [[doc:Quick Start Guide]]. Be advised that in order to follow all explanations there may require the latest version of KIELER not the (possibly outdated) PLDI-Artifact. 56 56 57 -[[image:attach:kieler08.png]] 58 - 59 -Name it abo.sct: 60 - 61 -[[image:attach:kieler09.png]] 62 - 63 -The textual SCCharts Xtext based editor (for *.sct files) will automatically be opened: 64 - 65 -[[image:attach:kieler10.png]] 66 - 67 -Now start modeling an SCChart. For example copy & paste the following sct code of abo, the hello world of SCCharts: 68 - 69 -{{code title="abo.sct"}} 70 -@VHLayout 71 -scchart ABO { 72 - input output bool A; 73 - input output bool B; 74 - output bool O1; 75 - output bool O2; 76 - region: 77 - 78 - initial state Init 79 - --> WaitAB immediate with / O1 = false; O2 = false; 80 - state WaitAB { 81 - region HandleA: 82 - initial state WaitA 83 - --> DoneA immediate with A / B = true; O1 = true; 84 - final state DoneA; 85 - region HandleB: 86 - initial state WaitB 87 - --> DoneB with B / O1 = true; 88 - final state DoneB; 89 - } 90 - >-> GotAB with / O1 = false; O2 = true; 91 - state GotAB; 92 -} 93 -{{/code}} 94 - 95 -As you save (Ctrl+S), KIELER will automatically draw the graphical SCChart diagram in a new KLigD view: 96 - 97 -[[image:attach:kieler11.png]] 98 - 99 -You may want to re-arrange views. Just drag the KLighD view to the right side: 100 - 101 -[[image:attach:kieler12.png]] 102 - 103 -You will now see how to generate a C tick function. 104 - 105 -= Generate C Code = 106 - 107 -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). 108 - 109 -[[image:attach:kieler13.png]] 110 - 111 -After performing a transformation the transformed SCChart will open (together with it's KLighD diagram visualization): 112 - 113 -[[image:attach:kieler14.png]] 114 - 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: 116 - 117 -[[image:attach:kieler15.png]] 118 - 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): 120 - 121 -[[image:attach:kieler16.png]] 122 - 123 -You can now populate the SCG automatically with dependency data. Choose Transform SCG -> SCG with Dependency Data from the context menu: 124 - 125 -[[image:attach:kieler17.png]] 126 - 127 -This will result in the following SCG: 128 - 129 -[[image:attach:kieler18.png]] 130 - 131 -Now populate the SCG with basic block information: 132 - 133 -[[image:attach:kieler19.png]] 134 - 135 -The SCG with calculated basic blocks will look like this: 136 - 137 -[[image:attach:kieler20.png]] 138 - 139 -The next step in compilation is the (more fine grained) calculate of scheduling blocks: 140 - 141 -[[image:attach:kieler21.png]] 142 - 143 -The populated SCG with scheduling information looks like this: 144 - 145 -[[image:attach:kieler22.png]] 146 - 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: 148 - 149 -[[image:attach:kieler23.png]] 150 - 151 -The sequentialized SCG looks like this: 152 - 153 -[[image:attach:kieler24.png]] 154 - 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: 160 - 161 -[[image:attach:kieler26.png]] 162 - 163 -Selecting Generate SC will produce a C file: 164 - 165 -[[image:attach:kieler27.png]][[image:attach:kieler28.png]] 166 - 167 167 168 168 169 - 71 += 4. Evaluated Examples = 170 170 171 - 73 +In the following, you find the examples used for evaluation. Be advised that there currently is no tool integrated evaluation possible. Please refer to the SCCharts superpage for the [[project status>>doc:SCCharts]] and [[known limitations>>doc:SCCharts]]. 74 + 75 +Find the list of Examples used for evaluation [[here>>doc:Examples]].
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 - 86517311 +9471503 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/ 8651731/PLDI'14 Artifact on SCCharts1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9471503/PLDI'14 Artifact on SCCharts