Changes between Version 28 and Version 29 of LabassertUserGuide
- Timestamp:
- 05/26/09 11:51:51 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LabassertUserGuide
v28 v29 61 61 62 62 === Screenshots === 63 [[Image( htdocs:UserGuide/img1.png)]]63 [[Image(wiki:LabassertUserGuide:img1.png)]] 64 64 65 65 == Functional View == … … 73 73 74 74 === Screenshots === 75 [[Image( htdocs:UserGuide/img2.png)]]75 [[Image(wiki:LabassertUserGuide:img2.png)]] 76 76 77 77 === File menu description === … … 107 107 108 108 === Screenshots === 109 [[Image( htdocs:UserGuide/img3.png)]]109 [[Image(wiki:LabassertUserGuide:img3.png)]] 110 110 111 111 === File Menu Description === … … 156 156 157 157 === Screenshots === 158 [[Image( htdocs:UserGuide/img4.png)]]158 [[Image(wiki:LabassertUserGuide:img4.png)]] 159 159 160 160 === File Menu Description === … … 205 205 END Tutorial_Types; 206 206 }}} 207 3. Create a '''Function''' named "Calculator" (Edit → New Function) :[[BR]][[BR]][[Image( htdocs:UserGuide/img5.png)]]207 3. Create a '''Function''' named "Calculator" (Edit → New Function) :[[BR]][[BR]][[Image(wiki:LabassertUserGuide:img5.png)]] 208 208 209 209 4. Click on the "Interfaces" tab. 210 4. Create 4 '''Interfaces''' named "Add", "Sub", "Mul" and "Div" with same attributes (Edit → New Interface) :[[BR]][[BR]][[Image( htdocs:UserGuide/img6.png)]]210 4. Create 4 '''Interfaces''' named "Add", "Sub", "Mul" and "Div" with same attributes (Edit → New Interface) :[[BR]][[BR]][[Image(wiki:LabassertUserGuide:img6.png)]] 211 211 212 212 6. For each interfaces, create 3 parameters [[BR]] (Select the interface and click on Edit → New Parameter) : … … 214 214 * o1 : direction "in", type "Float" and protocol "NATIVE". 215 215 * o2 : direction "in", type "Float" and protocol "NATIVE". 216 * r : direction "out", type "Float" and protocol "NATIVE".[[BR]][[BR]][[Image( htdocs:UserGuide/img7.png)]]216 * r : direction "out", type "Float" and protocol "NATIVE".[[BR]][[BR]][[Image(wiki:LabassertUserGuide:img7.png)]] 217 217 218 218 Note : the newly created parameters shall appear on the right table application. 219 219 220 220 7. Click on the "Functions" tab. 221 7. Select the "Calculator" '''Function''' and add the interfaces (Edit → Add Interface) :[[BR]][[BR]][[Image( htdocs:UserGuide/img8.png)]]222 223 9. Finally, save the current library (File → Save Library) :[[BR]][[BR]][[Image( htdocs:UserGuide/img9.png)]]221 7. Select the "Calculator" '''Function''' and add the interfaces (Edit → Add Interface) :[[BR]][[BR]][[Image(wiki:LabassertUserGuide:img8.png)]] 222 223 9. Finally, save the current library (File → Save Library) :[[BR]][[BR]][[Image(wiki:LabassertUserGuide:img9.png)]] 224 224 225 225 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). … … 228 228 1. Launch the Interface View Editor. 229 229 1. Load the previous '''Functional View''' (File → Load Functional View) : "Calc.lfv" file. 230 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)]]231 232 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)]]230 1. Create a '''Container''' named "Time" (Edit → New Container or right mouse button contextual menu New Container entry) :[[BR]][[BR]][[Image(wiki:LabassertUserGuide:img10.png)]] 231 232 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(wiki:LabassertUserGuide:img11.png)]] 233 233 234 234 5. Create 3 '''Provided Interfaces''' on the "Convert" '''Function''' (Edit → New PI or right mouse button contextual menu New PI entry) : … … 238 238 * Min_To_Sec : kind "sporadic", Inter-arrival time "100", deadline "5" and "ms" unit. 239 239 240 [[Image( htdocs:UserGuide/img12.png)]]240 [[Image(wiki:LabassertUserGuide:img12.png)]] 241 241 242 242 6. Create 1 '''Required Interfaces''' on the "Convert" '''Function''' (Edit → New RI or right mouse button contextual menu New RI entry) : … … 244 244 * "Mul" : choose the operation "Mul" in the combo box. 245 245 246 [[Image( htdocs:UserGuide/img13.png)]]246 [[Image(wiki:LabassertUserGuide:img13.png)]] 247 247 248 248 7. Connect all '''Provided Interface Implementation''' to the "Mul" '''Required''' Interface. In order to create a connection between 2 objects, you have to : … … 252 252 * And release the left mouse button on the second object. 253 253 254 [[Image( htdocs:UserGuide/img14.png)]]254 [[Image(wiki:LabassertUserGuide:img14.png)]] 255 255 256 256 Notes : … … 264 264 * "Result" : leave the operation field blank. 265 265 266 [[Image( htdocs:UserGuide/img15.png)]]266 [[Image(wiki:LabassertUserGuide:img15.png)]] 267 267 268 268 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. 269 269 270 [[Image( htdocs:UserGuide/img16.png)]]270 [[Image(wiki:LabassertUserGuide:img16.png)]] 271 271 272 272 10. Create a "IO" '''Container''' and in this container create 2 '''Functions''', "Input" and "Output". … … 274 274 10. Connect the "Input" '''Function''' to "Day_To_Sec" '''Provided Interface''' and the "get_result" '''Provided Interface''' to the "result" '''Required Interface'''. 275 275 276 [[Image( htdocs:UserGuide/img17.png)]]276 [[Image(wiki:LabassertUserGuide:img17.png)]] 277 277 278 278 13. Save the current interface view as "Time_Conversion.liv" (File → Save). 279 279 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''') : 280 280 281 [[Image( htdocs:UserGuide/img18.png)]]281 [[Image(wiki:LabassertUserGuide:img18.png)]] 282 282 283 283 Note : this new library can be edited and save for further use. … … 293 293 * cpu2 : type "athlon", implementation name "others", processor location "127.0.0.2" and execution platform "Native". 294 294 295 [[Image( htdocs:UserGuide/img19.png)]]295 [[Image(wiki:LabassertUserGuide:img19.png)]] 296 296 297 297 4. Create a '''Bus''' named "VME" and "BSD_Sockets" transport API (Edit → New Bus or right mouse button contextual menu New Bus entry) : 298 298 299 [[Image( htdocs:UserGuide/img20.png)]]299 [[Image(wiki:LabassertUserGuide:img20.png)]] 300 300 301 301 5. Create 2 '''Processor Interfaces''' (Edit → New Processor Interface or right mouse button contextual menu New Processor Interface entry) : … … 306 306 And connect them to the bus (same process as Interface View Editor). 307 307 308 [[Image( htdocs:UserGuide/img21.png)]]308 [[Image(wiki:LabassertUserGuide:img21.png)]] 309 309 310 310 Note : as in '''Interface View Editor''', automatic creation services are available. In our example, one can skip the '''Processor Interface''' creation and connect the processors to the bus. … … 315 315 * A2 in "cpu2" '''Processor''' : type "A2", implementation name "others" and leave port number empty. 316 316 317 [[Image( htdocs:UserGuide/img22.png)]]317 [[Image(wiki:LabassertUserGuide:img22.png)]] 318 318 319 319 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''' : 320 320 321 [[Image( htdocs:UserGuide/img23.png)]]321 [[Image(wiki:LabassertUserGuide:img23.png)]] 322 322 323 323 8. Save the current deployment view as “Deployment1.ldv” (File → Save). … … 327 327 Note : to select a group of items, left clic in an blank space (don't release the button), and release the left mouse button when all items you want to select are in the selection box. 328 328 329 [[Image( htdocs:UserGuide/img24.png)]]329 [[Image(wiki:LabassertUserGuide:img24.png)]] 330 330 331 331 11. In "A1" '''Partition''', add "Input", "Convert" and "Calculator" '''Functions''' and in "A2" '''Partition''', add "Output" '''Functions''' : 332 332 333 [[Image( htdocs:UserGuide/img25.png)]]333 [[Image(wiki:LabassertUserGuide:img25.png)]] 334 334 335 335 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.