test.aadl.out 29.8 KB
Newer Older
1 2 3 4 5 6 7







8

yoogx's avatar
yoogx committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
property set Data_Model is
  Base_Type : list of classifier (
data)
    applies to (data);

  Code_Set : aadlinteger
    applies to (data);

  Data_Digits : aadlinteger
    applies to (data);

  Data_Scale : aadlinteger
    applies to (data);

  Data_Representation : enumeration (Array, Boolean, Character, Enum, Float, Fixed, Integer, String, Struct, Union)
    applies to (data);

  Dimension : list of aadlinteger
    applies to (data);

  Indefinite_Dimension : constant aadlinteger => -1;
  Infinite_Dimension : constant aadlinteger => -2;
  Element_Names : list of aadlstring
    applies to (data);

  Enumerators : list of aadlstring
    applies to (data);

  IEEE754_Precision : enumeration (Simple, Double)
    applies to (data);

  Initial_Value : list of aadlstring
    applies to (data, port, parameter);

  Integer_Range : range of aadlinteger
    applies to (data, port, parameter);

  Measurement_Unit : aadlstring
    applies to (data, port, parameter);

  Number_Representation : enumeration (Signed, Unsigned)
    applies to (data);

  Real_Range : range of aadlreal
    applies to (data, port, parameter);

  Representation : list of aadlstring
    applies to (data);

end Data_Model;

property set Deployment is
  Allowed_Transport_APIs : type enumeration (BSD_Sockets, SpaceWire);

  Transport_API : Deployment::Allowed_Transport_APIs
    applies to (bus);

  Location : aadlstring
    applies to (processor, device);

  Port_Number : aadlinteger
    applies to (process, device);

  Protocol_Type : type enumeration (iiop, diop);

  Protocol : Deployment::Protocol_Type
    applies to (system);

77
  Allowed_Execution_Platform : type enumeration (Native, Native_Compcert, bench, GNAT_Runtime, LEON_RTEMS, LEON_RTEMS_POSIX, LEON3_SCOC3, LEON3_XTRATUM, LEON3_XM3, LEON_ORK, LEON_GNAT, LINUX32, LINUX32_XENOMAI_NATIVE, LINUX32_XENOMAI_POSIX, LINUX64, ERC32_ORK, ARM_DSLINUX, ARM_N770, GUMSTIX_RTEMS, NDS_RTEMS, X86_RTEMS, X86_RTEMS_POSIX, X86_LINUXTASTE, MARTE_OS, WIN32, VXWORKS, FREERTOS);
yoogx's avatar
yoogx committed
78 79 80 81

  Execution_Platform : Deployment::Allowed_Execution_Platform
    applies to ( all);

82 83 84
  Ada_Runtime : aadlstring
    applies to (processor);

yoogx's avatar
yoogx committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264
  Supported_Execution_Platform : list of Deployment::Allowed_Execution_Platform
    applies to (device);

  Runtime : type enumeration (PolyORB_HI_C, PolyORB_HI_Ada, POK);

  Supported_Runtime : Deployment::Runtime
    applies to ( all);

  Priority_Type : type aadlinteger 0 .. 255;

  Priority : Deployment::Priority_Type
    applies to (data, thread);

  Driver_Name : aadlstring
    applies to (device);

  Configuration : aadlstring
    applies to (device, thread);

  Config : aadlstring
    applies to (device);

  ASN1_Module_Name : aadlstring
    applies to ( all);

  Help : aadlstring
    applies to ( all);

  Version : aadlstring
    applies to ( all);

  Configuration_Type : classifier (
data)
    applies to ( all);

end Deployment;

property set Cheddar_Properties is
  Dispatch_Seed_is_Predictable : aadlboolean
    applies to (thread, thread group);

  Context_Switch_Overhead : inherit Time
    applies to (thread, thread group);

  Source_Text : inherit list of aadlstring
    applies to (virtual processor, processor, thread);

  Automaton_Name : inherit list of aadlstring
    applies to (virtual processor, processor, thread);

  Dispatch_Seed_Value : aadlinteger
    applies to (thread, thread group);

  Dispatch_Absolute_Time : inherit Time
    applies to (thread, thread group);

  Criticality : aadlinteger
    applies to (thread, thread group);

  Bound_On_Data_Blocking_Time : inherit Time
    applies to (thread, thread group);

  Dispatch_Jitter : inherit Time
    applies to (thread, thread group);

  Fixed_Priority : aadlinteger 0 .. 255
    applies to (thread, thread group);

  POSIX_Scheduling_Policy : enumeration (SCHED_FIFO, SCHED_RR, SCHED_OTHERS)
    applies to (thread, thread group);

  Dispatch_Offset_Value_0 : aadlinteger
    applies to (thread, thread group);

  Dispatch_Offset_Time_0 : inherit Time
    applies to (thread, thread group);

  Dispatch_Offset_Value_1 : aadlinteger
    applies to (thread, thread group);

  Dispatch_Offset_Time_1 : inherit Time
    applies to (thread, thread group);

  Dispatch_Offset_Value_2 : aadlinteger
    applies to (thread, thread group);

  Dispatch_Offset_Time_2 : inherit Time
    applies to (thread, thread group);

  Dispatch_Offset_Value_3 : aadlinteger
    applies to (thread, thread group);

  Dispatch_Offset_Time_3 : inherit Time
    applies to (thread, thread group);

  Dispatch_Offset_Value_4 : aadlinteger
    applies to (thread, thread group);

  Dispatch_Offset_Time_4 : inherit Time
    applies to (thread, thread group);

  Dispatch_Offset_Value_5 : aadlinteger
    applies to (thread, thread group);

  Dispatch_Offset_Time_5 : inherit Time
    applies to (thread, thread group);

  Task_Precedencies : list of aadlstring
    applies to (system);

  Scheduler_Quantum : inherit Time
    applies to (processor, virtual processor);

  Preemptive_Scheduler : aadlboolean
    applies to (processor, virtual processor);

  Scheduling_Protocol : list of Supported_Scheduling_Protocols
    applies to (processor, virtual processor);

  Data_Concurrency_State : aadlinteger
    applies to (data);

  Critical_Section : list of aadlstring
    applies to (virtual processor, thread, data);

  Source_Global_Heap_Size : Size
    applies to (process);

  Source_Global_Stack_Size : Size
    applies to (process);

  Source_Global_Text_Size : Size
    applies to (process);

  Source_Global_Data_Size : Size
    applies to (process);

end Cheddar_Properties;

property set Ocarina_Config is
  Generator_Type : type enumeration (PolyORB_QoS_Ada, PolyORB_HI_Ada, PolyORB_HI_C, PolyORB_HI_RTSJ, POK_C, Xtratum_Configuration, Petri_Nets);

  Generator : Ocarina_Config::Generator_Type
    applies to (system);

  Generator_Options_Type : type enumeration (gprof, ASN1);

  Generator_Options : list of Ocarina_Config::Generator_Options_Type
    applies to (system);

  AADL_Files : list of aadlstring
    applies to (system);

  Data_Model : constant aadlstring => "Data_Model";
  Deployment : constant aadlstring => "Deployment";
  Cheddar_Properties : constant aadlstring => "Cheddar_Properties";
  POK_Properties : constant aadlstring => "pok_properties";
  ARINC653_Properties : constant aadlstring => "arinc653";
  ASSERT_Properties : constant aadlstring => "ASSERT_Properties";
  TASTE_Properties : constant aadlstring => "taste_properties";
  Needed_Property_Sets : list of aadlstring
    applies to (system);

  Root_System_Name : aadlstring
    applies to (system);

  AADL_Version_Type : type enumeration (AADLv1, AADLv2);

  AADL_Version : Ocarina_Config::AADL_Version_Type
    applies to (system);

  Use_Components_Library : aadlboolean
    applies to (system);

  Referencial_Files : list of aadlstring
    applies to (system);

  Timeout_Property : Time
    applies to (system);

yoogx's avatar
yoogx committed
265 266 267 268 269
  Annex_Type : type enumeration (annex_all, annex_none, behavior_specification, real_specification, emv2);

  Enable_Annexes : list of Ocarina_Config::Annex_Type
    applies to (system);

yoogx's avatar
yoogx committed
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401
end Ocarina_Config;

property set Transformations is
  Call_Sequence_Period : inherit Time
    applies to (subprogram);

  Priority : aadlinteger 0 .. 255
    applies to (subprogram);

  Source_Name : aadlstring
    applies to (subprogram);

  Fusion_Occurred : aadlboolean
    applies to (thread);

  Priority_Shifter : aadlboolean
    applies to (data);

  Deadline : inherit Time
    applies to (subprogram);

  No_Optimization : aadlboolean
    applies to (process, thread);

  Scheduler_Name : aadlstring
    applies to (thread);

  Original_Name : aadlstring
    applies to (thread);

end Transformations;

property set POK is
  Security_Level : aadlinteger
    applies to (virtual processor, virtual bus, process, bus, event data port, event port, data port);

  Criticality : aadlinteger
    applies to (virtual processor);

  Handler : aadlstring
    applies to (virtual processor);

  Topics : list of aadlstring
    applies to (virtual processor, virtual bus);

  Needed_Memory_Size : Size
    applies to (process);

  Available_Schedulers : type enumeration (RMS, EDF, LLF, RR, TIMESLICE, STATIC);

  Timeslice : Time
    applies to (virtual processor);

  Major_Frame : Time
    applies to (processor);

  Scheduler : POK::Available_Schedulers
    applies to (processor, virtual processor);

  Slots : list of Time
    applies to (processor);

  Slots_Allocation : list of reference (
virtual processor)
    applies to (processor);

  Supported_Error_Code : type enumeration (Deadline_Missed, Application_Error, Numeric_Error, Illegal_Request, Stack_Overflow, Memory_Violation, Hardware_Fault, Power_Fail, Partition_Configuration, Partition_Init, Partition_Scheduling, Partition_Process, Kernel_Init, Kernel_Scheduling);

  Recovery_Errors : list of POK::Supported_Error_Code
    applies to (processor, virtual processor, thread);

  Supported_Recovery_Action : type enumeration (Ignore, Confirm, Thread_Restart, Thread_Stop_And_Start_Another, Thread_Stop, Partition_Restart, Partition_Stop, Kernel_Stop, Kernel_Restart, Nothing);

  Recovery_Actions : list of POK::Supported_Recovery_Action
    applies to (processor, virtual processor, thread);

  Available_BSP : type enumeration (x86_qemu, x86_qemu_vmm, prep, leon3);

  BSP : POK::Available_BSP
    applies to (processor, system);

  Available_Architectures : type enumeration (x86, ppc, sparc);

  Architecture : POK::Available_Architectures
    applies to (processor, system);

  Source_Location : aadlstring
    applies to (subprogram);

  MILS_Verified : aadlboolean
    applies to (system, process, device, thread, processor, data);

  Refresh_Time : Time
    applies to (data port);

  Hw_Addr : aadlstring
    applies to (device);

  PCI_Vendor_Id : aadlstring
    applies to (device);

  PCI_Device_ID : aadlstring
    applies to (device);

  Device_Name : aadlstring
    applies to (device);

  Additional_Features : list of POK::Supported_Additional_Features
    applies to (virtual processor, processor);

  Supported_Additional_Features : type enumeration (libmath, libc_stdlib, libc_stdio, libc_string, io, pci, console, libc, x86_vmm);

  Des_Key : aadlstring
    applies to (virtual bus);

  Des_Init : aadlstring
    applies to (virtual bus);

  Blowfish_Key : aadlstring
    applies to (virtual bus);

  Blowfish_Init : aadlstring
    applies to (virtual bus);

  Supported_POK_Protocols : type enumeration (ceasar, des, blowfish, unknown);

  Protocol : POK::Supported_POK_Protocols
    applies to (virtual bus);

end POK;

package Base_Types
402 403

public  with data_model;
yoogx's avatar
yoogx committed
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517

  data Boolean
  properties
    Data_Model::Data_Representation => Boolean;

  end Boolean;

  data Integer
  properties
    Data_Model::Data_Representation => Integer;

  end Integer;

  data Integer_8 extends Integer
  properties
    Data_Model::Number_Representation => Signed;
    Source_Data_Size => 1 Bytes;

  end Integer_8;

  data Integer_16 extends Integer
  properties
    Data_Model::Number_Representation => Signed;
    Source_Data_Size => 2 Bytes;

  end Integer_16;

  data Integer_32 extends Integer
  properties
    Data_Model::Number_Representation => Signed;
    Source_Data_Size => 4 Bytes;

  end Integer_32;

  data Integer_64 extends Integer
  properties
    Data_Model::Number_Representation => Signed;
    Source_Data_Size => 8 Bytes;

  end Integer_64;

  data Unsigned_8 extends Integer
  properties
    Data_Model::Number_Representation => Unsigned;
    Source_Data_Size => 1 Bytes;

  end Unsigned_8;

  data Unsigned_16 extends Integer
  properties
    Data_Model::Number_Representation => Unsigned;
    Source_Data_Size => 2 Bytes;

  end Unsigned_16;

  data Unsigned_32 extends Integer
  properties
    Data_Model::Number_Representation => Unsigned;
    Source_Data_Size => 4 Bytes;

  end Unsigned_32;

  data Unsigned_64 extends Integer
  properties
    Data_Model::Number_Representation => Unsigned;
    Source_Data_Size => 8 Bytes;

  end Unsigned_64;

  data Natural extends Integer
  properties
    Data_Model::Integer_Range => 0 .. Max_Target_Integer;

  end Natural;

  data Float
  properties
    Data_Model::Data_Representation => Float;

  end Float;

  data Float_32 extends Float
  properties
    Data_Model::IEEE754_Precision => Simple;
    Source_Data_Size => 4 Bytes;

  end Float_32;

  data Float_64 extends Float
  properties
    Data_Model::IEEE754_Precision => Double;
    Source_Data_Size => 8 Bytes;

  end Float_64;

  data Character
  properties
    Data_Model::Data_Representation => Character;

  end Character;

  data String
  properties
    Data_Model::Data_Representation => String;

  end String;

end Base_Types;

property set Taste is
  Interface_Coordinates : aadlstring
    applies to (subprogram access, bus access);

  Coordinates : aadlstring
yoogx's avatar
yoogx committed
518
    applies to (system, package, device, memory, processor, process, access, subprogram access, connection, bus, virtual bus, feature group);
yoogx's avatar
yoogx committed
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682

  HWLibraries : list of aadlstring
    applies to (package);

  Data_Transport : enumeration (legacy, asn1)
    applies to (device, abstract);

  Importance : enumeration (low, medium, high)
    applies to (system, subprogram access, access);

  APLC_Binding : list of reference (
process)
    applies to (process, device, system);

  APLC_Properties : record (APLC : aadlstring; Coordinates : aadlstring; Source_Language : Supported_Source_Language;)
    applies to (process);

  ASN1_types : type enumeration (asequenceof, asequence, aenumerated, aset, asetof, ainteger, aboolean, areal, achoice, aoctetstring, astring);

  ASN1_Basic_Type : Taste::ASN1_types
    applies to (data);

  FS_Default_Value : aadlstring
    applies to (data);

  Deadline : inherit Time => Period
    applies to (thread, thread group, process, system, device, subprogram access);

  Max_Priority_Value : constant aadlinteger => 28;
  Min_Interrupt_Priority_Value : constant aadlinteger => 29;
  Max_Interrupt_Priority_Value : constant aadlinteger => 31;
  Criticality_Level_Type : type enumeration (A, B, C, D, E);

  Transmission_Type : type enumeration (simplex, half_duplex, full_duplex);

  Frequency : type aadlinteger 0 Hz .. Max_Aadlinteger units (
    Hz,
    KHz => Hz * 1000,
    MHz => KHz * 1000,
    GHz => MHz * 1000);

  Criticality : Taste::Criticality_Level_Type
    applies to (process, system);

  Local_Scheduling_Policy : Supported_Scheduling_Protocols
    applies to (process, system);

  Time_Budget : aadlinteger
    applies to (process, system);

  Budget_Replenishment_Period : Time
    applies to (process, system);

  Storage_Budget : Size
    applies to (process, system);

  Longest_Critical_Section : Time
    applies to (processor);

  Periodic_Clock_Interrupt_Period : Time
    applies to (processor);

  Periodic_Clock_Handler : Time
    applies to (processor);

  Demanded_Clock_Handler : Time
    applies to (processor);

  Interrupt_Handler : Time
    applies to (processor);

  External_Interrupt : Time
    applies to (processor);

  Wakeup_Jitter : Time
    applies to (processor);

  Ready : Time
    applies to (processor);

  Select : Time
    applies to (processor);

  Context_Switch : Time
    applies to (processor);

  Signal : Time
    applies to (processor);

  Suspension_Call : Time
    applies to (processor);

  Wait_Call : Time
    applies to (processor);

  Priority_Raising : Time
    applies to (processor);

  Priority_Lowering : Time
    applies to (processor);

  Barrier_Evaluation : Time
    applies to (processor);

  Budget_Replenishment_Overhead : Time
    applies to (processor);

  Budget_Exhausted_Recovery_Call : Time
    applies to (processor);

  Processor_Speed : Taste::Frequency
    applies to (processor);

  Interconnection_Speed_Factor : aadlreal
    applies to (bus);

  Transmission_Kind : Taste::Transmission_Type
    applies to (bus);

  Bandwidth : Data_Volume
    applies to (bus);

  Memory_Size : Size
    applies to (memory);

  Access_Time : Time
    applies to (memory);

  Access_Bandwidth : Data_Volume
    applies to (bus);

  RCMoperation : classifier (
subprogram)
    applies to (event port, event data port);

  RCMoperationKind_list : type enumeration (cyclic, sporadic, variator, protected, transaction, barrier, unprotected, deferred, immediate, any);

  RCMoperationKind : Taste::RCMoperationKind_list
    applies to (event port, event data port, access, subprogram access);

  RCMceiling : aadlinteger
    applies to (event port, event data port);

  RCMperiod : Time
    applies to (event port, event data port, access, subprogram access);

  RCMpartition : reference (
system)
    applies to (system);

  dataview : list of aadlstring
    applies to (package);

  dataviewpath : list of aadlstring
    applies to (package);

  Encoding_type : type enumeration (native, uper, acn);

  Encoding : Taste::Encoding_type
    applies to (parameter);

  Ada_Package_Name : aadlstring
    applies to (data);

yoogx's avatar
yoogx committed
683 684 685
  Forbid_In_PI : aadlboolean
    applies to (data);

yoogx's avatar
yoogx committed
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704
  interfaceView : aadlstring
    applies to (package);

  WCET : Time
    applies to (subprogram access);

  Instance_Name : aadlstring
    applies to (system);

  Associated_Queue_Size : aadlinteger
    applies to (subprogram);

  EncodingDefinitionFile : classifier (
data)
    applies to (data);

  labelInheritance : aadlstring
    applies to (subprogram access);

yoogx's avatar
yoogx committed
705 706 707 708 709 710 711 712 713 714 715 716
  version : aadlstring
    applies to (package);

  InterfaceName : aadlstring
    applies to (subprogram access, feature group);

  FunctionName : aadlstring
    applies to (system);

  Active_Interfaces : enumeration (Enabled, Disabled, Any) => Enabled
    applies to (system);

yoogx's avatar
yoogx committed
717 718
end Taste;

719 720
property set ARINC653 is
  Module_Major_Frame : Time
721
    applies to (processor, virtual processor);
722 723 724 725 726 727

  Sampling_Refresh_Period : Time
    applies to (data port);

  Supported_Error_Code : type enumeration (Module_Config, Module_Init, Module_Scheduling, Partition_Scheduling, Partition_Config, Partition_Handler, Partition_Init, Deadline_Miss, Application_Error, Numeric_Error, Illegal_Request, Stack_Overflow, Memory_Violation, Hardware_Fault, Power_Fail);

728
  Supported_Memory_Type : type enumeration (Data_Memory, Code_Memory, IO_Memory);
729

730 731
  Memory_Type : list of ARINC653::Supported_Memory_Type
    applies to (memory);
732

733 734
  Timeout : Time
    applies to (port, access connections);
735

736 737 738 739 740 741
  Supported_DAL_Type : type enumeration (LEVEL_A, LEVEL_B, LEVEL_C, LEVEL_D, LEVEL_E);

  DAL : ARINC653::Supported_DAL_Type
    applies to (virtual processor, system, abstract);

  Module_Version : aadlstring
742 743
    applies to (processor);

744 745 746 747
  Module_Identifier : aadlstring
    applies to (processor);

  Partition_Identifier : aadlinteger
748 749
    applies to (virtual processor);

750 751 752 753 754
  Partition_Name : aadlstring
    applies to (virtual processor);

  System_Partition : aadlboolean
    applies to (virtual processor);
755

756 757 758
  Error_Handling : reference (
thread)
    applies to (virtual processor);
759

760
  Error_Level_Type : type enumeration (Module_Level, Partition_Level, Process_Level);
761

762
  HM_Error_ID_Level_Type : type record (ErrorIdentifier : aadlinteger; Description : aadlstring; ErrorLevel : ARINC653::Error_Level_Type; ErrorCode : ARINC653::Supported_Error_Code;);
763

764 765
  HM_Error_ID_Levels : list of ARINC653::HM_Error_ID_Level_Type
    applies to (processor);
766

767
  HM_Error_ID_Action_Type : type record (ErrorIdentifier : aadlinteger; Description : aadlstring; Action : aadlstring;);
768

769 770
  HM_Error_ID_Actions : list of ARINC653::HM_Error_ID_Action_Type
    applies to (processor, virtual processor, thread);
771

772
  State_Information_Type : type record (Identifier : aadlinteger; Description : aadlstring;);
773

774 775
  State_Information : ARINC653::State_Information_Type
    applies to (mode);
776

777 778 779 780 781 782 783
  Queueing_Discipline_Type : type enumeration (Fifo, By_Priority);

  Queueing_Discipline : ARINC653::Queueing_Discipline_Type
    applies to (port, data access);

  Schedule_Window : type record (Partition : reference (
virtual processor, processor); Duration : time; Periodic_Processing_Start : aadlboolean;);
784

785
  Module_Schedule : list of ARINC653::Schedule_Window
786 787
    applies to (processor, virtual processor);

788 789 790 791 792 793
  Time_Capacity : Time
    applies to (thread);

  Deadline_Type : enumeration (soft, hard)
    applies to (thread);

794 795
end ARINC653;

yoogx's avatar
yoogx committed
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928
property set ASSERT_Properties is
  APLC_Binding : list of aadlstring
    applies to (process);

  ASN1_types : type enumeration (asequenceof, asequence, aenumerated, aset, asetof, ainteger, aboolean, areal, achoice, aoctetstring);

  ASN1_Basic_Type : ASSERT_Properties::ASN1_types
    applies to (data);

  Max_Priority_Value : constant aadlinteger => 28;
  Min_Interrupt_Priority_Value : constant aadlinteger => 29;
  Max_Interrupt_Priority_Value : constant aadlinteger => 31;
  Criticality_Level_Type : type enumeration (A, B, C, D, E);

  Transmission_Type : type enumeration (simplex, half_duplex, full_duplex);

  Frequency : type aadlinteger 0 Hz .. Max_Aadlinteger units (
    Hz,
    KHz => Hz * 1000,
    MHz => KHz * 1000,
    GHz => MHz * 1000);

  Criticality : ASSERT_Properties::Criticality_Level_Type
    applies to (process, system);

  Local_Scheduling_Policy : Supported_Scheduling_Protocols
    applies to (process, system);

  Time_Budget : aadlinteger
    applies to (process, system);

  Budget_Replenishment_Period : Time
    applies to (process, system);

  Storage_Budget : Size
    applies to (process, system);

  Longest_Critical_Section : Time
    applies to (processor);

  Periodic_Clock_Interrupt_Period : Time
    applies to (processor);

  Periodic_Clock_Handler : Time
    applies to (processor);

  Demanded_Clock_Handler : Time
    applies to (processor);

  Interrupt_Handler : Time
    applies to (processor);

  External_Interrupt : Time
    applies to (processor);

  Wakeup_Jitter : Time
    applies to (processor);

  Ready : Time
    applies to (processor);

  Select : Time
    applies to (processor);

  Context_Switch : Time
    applies to (processor);

  Signal : Time
    applies to (processor);

  Suspension_Call : Time
    applies to (processor);

  Wait_Call : Time
    applies to (processor);

  Priority_Raising : Time
    applies to (processor);

  Priority_Lowering : Time
    applies to (processor);

  Barrier_Evaluation : Time
    applies to (processor);

  Budget_Replenishment_Overhead : Time
    applies to (processor);

  Budget_Exhausted_Recovery_Call : Time
    applies to (processor);

  Processor_Speed : ASSERT_Properties::Frequency
    applies to (processor);

  Interconnection_Speed_Factor : aadlreal
    applies to (bus);

  Transmission_Kind : ASSERT_Properties::Transmission_Type
    applies to (bus);

  Bandwidth : Data_Volume
    applies to (bus);

  Memory_Size : Size
    applies to (memory);

  Access_Time : Time
    applies to (memory);

  Access_Bandwidth : Data_Volume
    applies to (bus);

  RCMoperation : classifier (
subprogram)
    applies to (event port, event data port);

  RCMoperationKind_list : type enumeration (cyclic, sporadic, variator, protected, transaction, barrier, unprotected, deferred, immediate, any);

  RCMoperationKind : ASSERT_Properties::RCMoperationKind_list
    applies to (event port, event data port);

  RCMceiling : aadlinteger
    applies to (event port, event data port);

  RCMperiod : Time
    applies to (event port, event data port);

  RCMpartition : reference (
system)
    applies to (system);

end ASSERT_Properties;

yoogx's avatar
yoogx committed
929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958
property set Replication_Properties is
  Description : aadlstring
    applies to (system, process, thread, processor, device);

  Replica_Number : aadlinteger
    applies to (system, process, thread, processor, device);

  Min_Nbr_Replica : constant aadlinteger => 3;
  Max_Nbr_Replica : constant aadlinteger => 7;
  Replica_Identifiers : list of aadlstring
    applies to (system, process, thread, processor, device);

  Replication_Types : type enumeration (ACTIVE, PASSIVE);

  Replica_Type : Replication_Properties::Replication_Types
    applies to (system, process, thread, processor, device);

  Consensus_Algorithm_Source_Text : aadlstring
    applies to (port, data access, system, processor, device);

  Consensus_Algorithm_Class : classifier (
subprogram)
    applies to (port, data access, system, processor, device);

  Consensus_Algorithm_Ref : reference (
subprogram)
    applies to (port, data access, system, processor, device);

end Replication_Properties;

959
package PartitionedSystemExample
960 961

public  with ARINC653;
962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183

  data integer
  end integer;

  data ordercmd
  end ordercmd;

  data protected_data
  properties
    Concurrency_Control_Protocol => Protected_Access;

  end protected_data;

  virtual processor partition1_rt
  properties
    Scheduling_Protocol => (EARLIEST_DEADLINE_FIRST_PROTOCOL);

  end partition1_rt;

  virtual processor implementation partition1_rt.impl
  end partition1_rt.impl;

  virtual processor partition2_rt
  properties
    Scheduling_Protocol => (RATE_MONOTONIC_PROTOCOL);

  end partition2_rt;

  virtual processor implementation partition2_rt.impl
  end partition2_rt.impl;

  subprogram sensor_temperature_spg
  end sensor_temperature_spg;

  subprogram sensor_receiveinput_spg
  end sensor_receiveinput_spg;

  subprogram commandboard_receiveinput_spg
  end commandboard_receiveinput_spg;

  subprogram commandboard_printinfos_spg
  end commandboard_printinfos_spg;

  thread sensor_temperature_thread
  features
    tempout : out data port integer;
    order : in event data port ordercmd;

  properties
    Initialize_Entrypoint => classifier (PartitionedSystemExample::sensor_temperature_spg);
    Priority => 42;
    Source_Stack_Size => 100 Kbyte;
    Period => 20 ms;
    Compute_Execution_Time => 10 ms .. 12 ms;
    Deadline => 40 ms;

  end sensor_temperature_thread;

  thread implementation sensor_temperature_thread.impl
  end sensor_temperature_thread.impl;

  thread sensor_receiveinput_thread
  features
    commandin : in event data port integer;
    order : out event data port ordercmd;

  properties
    Initialize_Entrypoint => classifier (PartitionedSystemExample::sensor_receiveinput_spg);
    Priority => 10;
    Source_Stack_Size => 100 Kbyte;
    Period => 20 ms;
    Compute_Execution_Time => 8 ms .. 10 ms;
    Deadline => 40 ms;

  end sensor_receiveinput_thread;

  thread implementation sensor_receiveinput_thread.impl
  end sensor_receiveinput_thread.impl;

  thread commandboard_receiveinput_thread
  features
    temp : in data port integer;
    tempavg : requires data access integer;
    newavg : out event port;
    need_semaphore : requires data access protected_data;

  properties
    Initialize_Entrypoint => classifier (PartitionedSystemExample::commandboard_receiveinput_spg);
    Priority => 42;
    Source_Stack_Size => 100 Kbyte;
    Period => 20 ms;
    Compute_Execution_Time => 5 ms .. 7 ms;
    Deadline => 40 ms;

  end commandboard_receiveinput_thread;

  thread commandboard_printinfos_thread
  features
    ordersensor : out event data port integer;
    tempavg : requires data access integer;
    newavg : in event port;
    need_semaphore : requires data access protected_data;

  properties
    Initialize_Entrypoint => classifier (PartitionedSystemExample::commandboard_printinfos_spg);
    Priority => 43;
    Source_Stack_Size => 100 Kbyte;
    Period => 20 ms;
    Compute_Execution_Time => 2 ms .. 6 ms;
    Deadline => 40 ms;

  end commandboard_printinfos_thread;

  process partition1_process
  features
    queueingin : in event data port integer
      {Queue_Size => 4;};
    samplingout : out data port integer;

  end partition1_process;

  process implementation partition1_process.impl
  subcomponents
    temperature : thread sensor_temperature_thread.impl;
    order : thread sensor_receiveinput_thread.impl;

  connections
    bufferconnectionexample : port order.order -> temperature.order;
    port queueingin -> order.commandin;
    port temperature.tempout -> samplingout;

  end partition1_process.impl;

  process partition2_process
  features
    queueingout : out event data port integer;
    samplingin : in data port integer
      {ARINC653::Sampling_Refresh_Period => 10 ms;};

  end partition2_process;

  process implementation partition2_process.impl
  subcomponents
    receiver : thread commandboard_receiveinput_thread;
    printer : thread commandboard_printinfos_thread;
    sem : data protected_data;
    blackboard : data integer;

  connections
    blackboardconnection1 : data access blackboard -> printer.tempavg;
    blackboardconnection2 : data access blackboard -> receiver.tempavg;
    eventconnectionexample : port receiver.newavg -> printer.newavg;
    port printer.ordersensor -> queueingout;
    port samplingin -> receiver.temp;
    data access sem -> receiver.need_semaphore;
    data access sem -> printer.need_semaphore;

  end partition2_process.impl;

  processor powerpc
  end powerpc;

  processor implementation powerpc.impl
  subcomponents
    part1 : virtual processor partition1_rt.impl;
    part2 : virtual processor partition2_rt.impl;

  properties
    ARINC653::Module_Major_Frame => 50 ms;

  end powerpc.impl;

  memory partition1_memory
  properties
    Base_Address => 0;

  end partition1_memory;

  memory partition2_memory
  properties
    Base_Address => 100;

  end partition2_memory;

  memory main_memory
  end main_memory;

  memory implementation main_memory.impl
  subcomponents
    part1mem : memory partition1_memory;
    part2mem : memory partition2_memory;

  end main_memory.impl;

  system arincsystem
  end arincsystem;

  system implementation arincsystem.impl
  subcomponents
    mem : memory main_memory.impl;
    cpu : processor powerpc.impl;
    partition1_pr : process partition1_process.impl;
    partition2_pr : process partition2_process.impl;

  connections
    samplingconnection : port partition1_pr.samplingout -> partition2_pr.samplingin;
    queueingconnection : port partition2_pr.queueingout -> partition1_pr.queueingin;

  properties
    Actual_Processor_Binding => (reference ( cpu.part1 ))
      applies to partition1_pr;
    Actual_Processor_Binding => (reference ( cpu.part2 ))
      applies to partition2_pr;
    Actual_Memory_Binding => (reference ( mem.part1mem ))
      applies to partition1_pr;
    Actual_Memory_Binding => (reference ( mem.part2mem ))
      applies to partition2_pr;

  end arincsystem.impl;

end PartitionedSystemExample;