Changes between Version 19 and Version 20 of LabassertUserGuide
- Timestamp:
- 05/25/09 11:13:33 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LabassertUserGuide
v19 v20 1 1 [[PageOutline(1-4)]] 2 2 3 '''__Labassert User Guide__'''[[BR]] 4 Reference: ESA/ESTEC contract n°21166/07/NL/JK -8 Jan. 2008 3 '''__Labassert User Guide__'''[[BR]] Reference: ESA/ESTEC contract n°21166/07/NL/JK -8 Jan. 2008 5 4 6 5 ''Written by: Jérôme Legrand on 20 Nov. 2008 [[BR]] Checked by: Pierre Dissaux on 21 Nov. 2008'' … … 17 16 }}} 18 17 }}} 19 20 21 22 18 {{{ 23 19 #!comment … … 49 45 a. [wiki:LabassertUserGuide#a3.3DeploymentViewEditor Deployment View Editor] 50 46 }}} 51 52 47 = Installation = 53 48 Labassert 1.0 is available on Windows and Linux. Its installation requires no specific platform dependent procedure. The only action that may be required is to uncompress the archive with the appropriate utility if the distribution was provided as a zip or tar.gz file. … … 95 90 96 91 === Edit Menu Description === 97 * New Function : create a function (functions appear in “Functions”notebook).92 * New Function : create a function (functions appear in "Functions" notebook). 98 93 * Delete Function : delete the selected function. 99 94 * Add Interface : add an interface to a function. 100 95 * Remove Interface : remove an interface from a function. 101 * New Interface : create an interface (interfaces appear in “interfaces”notebook).96 * New Interface : create an interface (interfaces appear in "interfaces" notebook). 102 97 * Delete Interface : delete the selected interface. 103 98 * New Parameter : add a parameter to an interface. 104 99 * Delete Parameter : remove a parameter from an interface. 105 100 106 === “?”Menu Description ===101 === "?" Menu Description === 107 102 * About : about the Interface View Editor. 108 103 * Help : application description and accelerators available. … … 153 148 * Option : launch Interface View Editor option dialog box. 154 149 155 === “?”Menu Description ===150 === "?" Menu Description === 156 151 * About : about the Interface View Editor. 157 152 * Help : application description and accelerators available. … … 196 191 * Option : launch Deployment View Editor option dialog box. 197 192 198 === "? ”Menu Description ===193 === "?" Menu Description === 199 194 * About : about the Deployment View Editor. 200 195 * Help : application description and accelerators available. … … 216 211 END Tutorial_Types; 217 212 }}} 218 3. Create a '''Function''' named “Calculator”(Edit → New Function) :[[BR]][[BR]][[Image(htdocs:UserGuide/img5.png)]]219 220 4. Click on the “Interfaces”tab.221 4. Create 4 '''Interfaces''' named “Add”, “Sub”, “Mul” and “Div”with same attributes (Edit → New Interface) :[[BR]][[BR]][[Image(htdocs:UserGuide/img6.png)]]213 3. Create a '''Function''' named "Calculator" (Edit → New Function) :[[BR]][[BR]][[Image(htdocs:UserGuide/img5.png)]] 214 215 4. Click on the "Interfaces" tab. 216 4. Create 4 '''Interfaces''' named "Add", "Sub", "Mul" and "Div" with same attributes (Edit → New Interface) :[[BR]][[BR]][[Image(htdocs:UserGuide/img6.png)]] 222 217 223 218 6. For each interfaces, create 3 parameters [[BR]] (Select the interface and click on Edit → New Parameter) : 224 219 225 * o1 : direction “in”, type “Float” and protocol “NATIVE”.226 * o2 : direction “in”, type “Float” and protocol “NATIVE”.227 * r : direction “out”, type “Float” and protocol “NATIVE”.[[BR]][[BR]][[Image(htdocs:UserGuide/img7.png)]]220 * o1 : direction "in", type "Float" and protocol "NATIVE". 221 * o2 : direction "in", type "Float" and protocol "NATIVE". 222 * r : direction "out", type "Float" and protocol "NATIVE".[[BR]][[BR]][[Image(htdocs:UserGuide/img7.png)]] 228 223 229 224 Note : the newly created parameters shall appear on the right table application. 230 225 231 7. Click on the “Functions”tab.232 7. Select the “Calculator”'''Function''' and add the interfaces (Edit → Add Interface) :[[BR]][[BR]][[Image(htdocs:UserGuide/img8.png)]]226 7. Click on the "Functions" tab. 227 7. Select the "Calculator" '''Function''' and add the interfaces (Edit → Add Interface) :[[BR]][[BR]][[Image(htdocs:UserGuide/img8.png)]] 233 228 234 229 9. Finally, save the current library (File → Save Library) :[[BR]][[BR]][[Image(htdocs:UserGuide/img9.png)]] 235 230 236 Note : in the save as dialog box, a default name is proposed for the file : the previously given library name with the “.lfv”extension (Calc.lfv in our example).231 Note : in the save as dialog box, a default name is proposed for the file : the previously given library name with the ".lfv" extension (Calc.lfv in our example). 237 232 238 233 == Interface View Editor == 239 234 1. Launch the Interface View Editor. 240 1. Load the previous '''Functional View''' (File → Load Functional View) : “Calc.lfv”file.241 1. Create a '''Container''' named “Time”(Edit → New Container or right mouse button contextual menu New Container entry) :[[BR]][[BR]][[Image(htdocs:UserGuide/img10.png)]]242 243 4. Create a '''Function''' named “Convert” into the “Time”'''Container''' (Edit → New Function or right mouse button contextual menu New Function entry) :[[BR]][[BR]][[Image(htdocs:UserGuide/img11.png)]]244 245 5. Create 3 '''Provided Interfaces''' on the “Convert”'''Function''' (Edit → New PI or right mouse button contextual menu New PI entry) :246 247 * Day_To_Sec : kind “sporadic”, Inter-arrival time “100”, deadline “5” and “ms”unit.248 * Hour_To_Sec : kind “sporadic”, Inter-arrival time “100”, deadline “5” and “ms”unit.249 * Min_To_Sec : kind “sporadic”, Inter-arrival time “100”, deadline “5” and “ms”unit.235 1. Load the previous '''Functional View''' (File → Load Functional View) : "Calc.lfv" file. 236 1. Create a '''Container''' named "Time" (Edit → New Container or right mouse button contextual menu New Container entry) :[[BR]][[BR]][[Image(htdocs:UserGuide/img10.png)]] 237 238 4. Create a '''Function''' named "Convert" into the "Time" '''Container''' (Edit → New Function or right mouse button contextual menu New Function entry) :[[BR]][[BR]][[Image(htdocs:UserGuide/img11.png)]] 239 240 5. Create 3 '''Provided Interfaces''' on the "Convert" '''Function''' (Edit → New PI or right mouse button contextual menu New PI entry) : 241 242 * Day_To_Sec : kind "sporadic", Inter-arrival time "100", deadline "5" and "ms" unit. 243 * Hour_To_Sec : kind "sporadic", Inter-arrival time "100", deadline "5" and "ms" unit. 244 * Min_To_Sec : kind "sporadic", Inter-arrival time "100", deadline "5" and "ms" unit. 250 245 251 246 [[Image(htdocs:UserGuide/img12.png)]] 252 247 253 6. Create 1 '''Required Interfaces''' on the “Convert”'''Function''' (Edit → New RI or right mouse button contextual menu New RI entry) :254 255 * “Mul” : choose the operation “Mul”in the combo box.248 6. Create 1 '''Required Interfaces''' on the "Convert" '''Function''' (Edit → New RI or right mouse button contextual menu New RI entry) : 249 250 * "Mul" : choose the operation "Mul" in the combo box. 256 251 257 252 [[Image(htdocs:UserGuide/img13.png)]] 258 253 259 7. Connect all '''Provided Interface Implementation''' to the “Mul”'''Required''' Interface. In order to create a connection between 2 objects, you have to :260 261 * Click on Edit → New Connection menu or right mouse button contextual menu New Connection entry or push the “shift”key (don't release the key until the connection has been created).254 7. Connect all '''Provided Interface Implementation''' to the "Mul" '''Required''' Interface. In order to create a connection between 2 objects, you have to : 255 256 * Click on Edit → New Connection menu or right mouse button contextual menu New Connection entry or push the "shift" key (don't release the key until the connection has been created). 262 257 * Select the first object by pushing the left mouse button (don't release the button). 263 258 * And release the left mouse button on the second object. … … 271 266 * There is an automatic interface(s) creation facility when 2 objects are connected : in our example, a '''Required Interface''' is automatically created on the '''Provided Interface Implementation'''. 272 267 273 8. Create 1''' Required Interfaces''' on the “Convert”'''Function''' and connect all '''Provided Interface Implementation''' to it :274 275 * “Result”: leave the operation field blank.268 8. Create 1''' Required Interfaces''' on the "Convert" '''Function''' and connect all '''Provided Interface Implementation''' to it : 269 270 * "Result" : leave the operation field blank. 276 271 277 272 [[Image(htdocs:UserGuide/img15.png)]] 278 273 279 9. Create a “Calculator” '''Function''' chosen from the previously loaded '''Functional View''' (choose the Function name in the creation dialog-box list) and connect the “Convert” '''Function''' “Mul” '''Required Interface''' to the “Calculator”''' Function''' “Mul” '''Provided Interface'''. Edit the “Mul” '''Provided Interface''' by double clicking on it and choose “unprotected”kind.274 9. Create a "Calculator" '''Function''' chosen from the previously loaded '''Functional View''' (choose the Function name in the creation dialog-box list) and connect the "Convert" '''Function''' "Mul" '''Required Interface''' to the "Calculator"''' Function''' "Mul" '''Provided Interface'''. Edit the "Mul" '''Provided Interface''' by double clicking on it and choose "unprotected" kind. 280 275 281 276 [[Image(htdocs:UserGuide/img16.png)]] 282 277 283 10. Create a “IO” '''Container''' and in this container create 2 '''Functions''', “Input” and “Output”.284 10. Create a “sporadic” '''Provided Interface''' named “get_result” on the “Output”'''Function'''.285 10. Connect the “Input” '''Function''' to “Day_To_Sec” '''Provided Interface''' and the “get_result” '''Provided Interface''' to the “result”'''Required Interface'''.278 10. Create a "IO" '''Container''' and in this container create 2 '''Functions''', "Input" and "Output". 279 10. Create a "sporadic" '''Provided Interface''' named “get_result” on the "Output" '''Function'''. 280 10. Connect the "Input" '''Function''' to "Day_To_Sec" '''Provided Interface''' and the "get_result" '''Provided Interface''' to the "result" '''Required Interface'''. 286 281 287 282 [[Image(htdocs:UserGuide/img17.png)]] 288 283 289 13. Save the current interface view as “Time_Conversion.liv”(File → Save).284 13. Save the current interface view as "Time_Conversion.liv" (File → Save). 290 285 13. Double left click on a '''Provided Interface Implementation''' or select Tools → Edit Functional View. A functional view is opened with all the functions and Function's interfaces (open and created in the '''Interface View''') : 291 286 … … 294 289 Note : this new library can be edited and save for further use. 295 290 296 15.Generate the '''AADL''' file “Time_Conversion.aadl”(Tools → Generate Interface View). You can check the consistency of the result.291 15.Generate the '''AADL''' file "Time_Conversion.aadl" (Tools → Generate Interface View). You can check the consistency of the result. 297 292 298 293 == Deployment View Editor == … … 301 296 1. Create 2 '''Processors''' (Edit → New Processor or right mouse button contextual menu New Processor entry) : 302 297 303 * cpu1 : type “pentium”, implementation name “others”, processor location “127.0.0.1” and execution platform “Native”.304 * cpu2 : type “athlon”, implementation name “others”, processor location “127.0.0.2” and execution platform “Native”.298 * cpu1 : type "pentium", implementation name "others", processor location "127.0.0.1" and execution platform "Native". 299 * cpu2 : type "athlon", implementation name "others", processor location "127.0.0.2" and execution platform "Native". 305 300 306 301 [[Image(htdocs:UserGuide/img19.png)]] 307 302 308 4. Create a '''Bus''' named “VME” and “BSD_Sockets”transport API (Edit → New Bus or right mouse button contextual menu New Bus entry) :303 4. Create a '''Bus''' named "VME" and "BSD_Sockets" transport API (Edit → New Bus or right mouse button contextual menu New Bus entry) : 309 304 310 305 [[Image(htdocs:UserGuide/img20.png)]] … … 312 307 5. Create 2 '''Processor Interfaces''' (Edit → New Processor Interface or right mouse button contextual menu New Processor Interface entry) : 313 308 314 * port_cpu1 on “cpu1” '''Processor''' : interface bus required “VME”.315 * port_cpu2 on “cpu2” '''Processor''' : interface bus required “VME”.309 * port_cpu1 on "cpu1" '''Processor''' : interface bus required "VME". 310 * port_cpu2 on "cpu2" '''Processor''' : interface bus required "VME". 316 311 317 312 And connect them to the bus (same process as Interface View Editor). … … 323 318 6. Create 2 '''Partitions''' (Edit → New Partition or right mouse button contextual menu New Partition entry) : 324 319 325 * A1 in “cpu1” '''Processor''' : type “A1”, implementation name “others”and leave port number empty.326 * A2 in “cpu2” '''Processor''' : type “A2”, implementation name “others”and leave port number empty.320 * A1 in "cpu1" '''Processor''' : type "A1", implementation name "others" and leave port number empty. 321 * A2 in "cpu2" '''Processor''' : type "A2", implementation name "others" and leave port number empty. 327 322 328 323 [[Image(htdocs:UserGuide/img22.png)]] 329 324 330 7. In “A1” '''Partition''', add “Input” and “Output” '''Functions''' (Edit → Add Function or right mouse button contextual menu Add Function entry) and in “A2” '''Partition''', add “Convert” and “Calculator”'''Functions''' :325 7. In "A1" '''Partition''', add "Input" and "Output" '''Functions''' (Edit → Add Function or right mouse button contextual menu Add Function entry) and in "A2" '''Partition''', add "Convert" and "Calculator" '''Functions''' : 331 326 332 327 [[Image(htdocs:UserGuide/img23.png)]] 333 328 334 329 8. Save the current deployment view as “Deployment1.ldv” (File → Save). 335 8. Generate the '''AADL''' file “Deployment1.aadl”(Tools → Generate Deployment View). You can check the consistency of the result.330 8. Generate the '''AADL''' file "Deployment1.aadl" (Tools → Generate Deployment View). You can check the consistency of the result. 336 331 8. For one '''Interface View''', one can have several '''Deployment View'''. Remove the previously added '''Functions''' (select a '''Function''' or a group of '''Functions''' and File → Delete Selection or right mouse button contextual menu Delete Selection entry ). 337 332 … … 340 335 [[Image(htdocs:UserGuide/img24.png)]] 341 336 342 11. In “A1” '''Partition''', add “Input”, “Convert” and “Calculator” '''Functions''' and in “A2” '''Partition''', add “Output”'''Functions''' :337 11. In "A1" '''Partition''', add "Input", "Convert" and "Calculator" '''Functions''' and in "A2" '''Partition''', add "Output" '''Functions''' : 343 338 344 339 [[Image(htdocs:UserGuide/img25.png)]] 345 340 346 12. Save the current deployment view as “Deployment2.ldv”.[[BR]] 13. Generate the '''AADL''' file “Deployment2.aadl”. You can check the consistency of the result.341 12. Save the current deployment view as "Deployment2.ldv".[[BR]] 13. Generate the '''AADL''' file "Deployment2.aadl". You can check the consistency of the result. 347 342 348 343 [http://linux2/sortieHtml/download.php Html offline version (zipped)]