deploymentview.aadl 73.7 KB
Newer Older
1
2
3
4
5
6
7
8
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
77
78
79
80
81
82
83
84
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
265
266
267
268
269
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
402
403
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
518
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
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
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
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
959
960
961
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
PACKAGE deploymentview::DV
PUBLIC
WITH Deployment;
WITH Taste;

WITH interfaceview::IV;

WITH ocarina_buses;
WITH ocarina_drivers;
WITH ocarina_processors_leon;
WITH ocarina_processors_x86;
 
---------------------------------------------------
-- TASTE Deployement View 
---------------------------------------------------

  ----------------------
  -- ProcessorBoards --
  ----------------------

  SYSTEM linuxboard_obj80
    FEATURES
      obj256_link : requires bus access ocarina_buses::serial.generic
        { Taste::Coordinates => "82 83"; };
  END linuxboard_obj80;

  PROCESS mypartlinuxnative_obj168
  END mypartlinuxnative_obj168;

  PROCESS IMPLEMENTATION mypartlinuxnative_obj168.others
  END mypartlinuxnative_obj168.others;

  MEMORY ram_obj212
  END ram_obj212;

  MEMORY IMPLEMENTATION ram_obj212.others
  END ram_obj212.others;

  DEVICE serialdriversender_obj256 EXTENDS ocarina_drivers::generic_serial
    PROPERTIES
      Taste::Coordinates => "82 83" applies to link;
      Taste::Interface_Coordinates => "87 112" applies to link;
      Deployment::Configuration => "{devname ""/dev/ttyS0"", speed b38400}";
  END serialdriversender_obj256;

  DEVICE IMPLEMENTATION serialdriversender_obj256.others EXTENDS ocarina_drivers::generic_serial.raw_sender
  END serialdriversender_obj256.others;

  SYSTEM IMPLEMENTATION linuxboard_obj80.others
    SUBCOMPONENTS
      mypartlinuxnative_obj168 : PROCESS mypartlinuxnative_obj168.others
        { Taste::Coordinates => "10 17 79 45";
           Deployment::Port_Number => 0;};
      pinger_obj355 : SYSTEM interfaceview::IV::pinger
        { Taste::Coordinates => "12 24 72 40" ;};
      linuxnative_obj124 : PROCESSOR ocarina_processors_x86::x86.native
        { Taste::Coordinates => "7 9 83 49"; };
      ram_obj212 : MEMORY ram_obj212.others
        { Taste::Coordinates => "7 51 83 64"; };
      serialdriversender_obj256 : DEVICE serialdriversender_obj256.others
        { Taste::Coordinates => "8 67 84 83";};

    CONNECTIONS
      --  The bus connections
      BUS ACCESS obj256_link -> serialdriversender_obj256.link;

    PROPERTIES
      -- Connexion des CPUs aux process/drivers
      Actual_Processor_Binding => (reference (linuxnative_obj124)) applies to mypartlinuxnative_obj168;
      Taste::APLC_Binding => (reference(mypartlinuxnative_obj168)) APPLIES TO pinger_obj355;
      Actual_Processor_Binding => (reference (linuxnative_obj124)) applies to serialdriversender_obj256;
      Actual_Memory_Binding => (reference (ram_obj212)) applies to mypartlinuxnative_obj168;
  END linuxboard_obj80.others;

  --{ leoncentral_obj91 obj591 142 10 
  --This board runs with the FPGA.
  --Should have spw addr 22
  --}

  SYSTEM leoncentral_obj91
    FEATURES
      obj267_link : requires bus access ocarina_buses::serial.generic
        { Taste::Coordinates => "116 75"; };
      obj278_link : requires bus access ocarina_buses::spacewire.generic
        { Taste::Coordinates => "171 94"; };
  END leoncentral_obj91;

  PROCESS mypartleoncentral_obj179
  END mypartleoncentral_obj179;

  PROCESS IMPLEMENTATION mypartleoncentral_obj179.others
  END mypartleoncentral_obj179.others;

  MEMORY ram_obj223
  END ram_obj223;

  MEMORY IMPLEMENTATION ram_obj223.others
  END ram_obj223.others;

  DEVICE serial_obj267 EXTENDS ocarina_drivers::rasta_serial
    PROPERTIES
      Taste::Coordinates => "116 75" applies to link;
      Taste::Interface_Coordinates => "112 112" applies to link;
      Deployment::Configuration => "{devname ""/dev/apburasta0"", speed b38400}";
  END serial_obj267;

  DEVICE IMPLEMENTATION serial_obj267.others EXTENDS ocarina_drivers::rasta_serial.raw
  END serial_obj267.others;

  DEVICE spw_obj278 EXTENDS ocarina_drivers::rasta_spacewire
    PROPERTIES
      Taste::Coordinates => "171 94" applies to link;
      Taste::Interface_Coordinates => "169 114" applies to link;
      Deployment::Configuration => "{devname ""/dev/grspwrasta0"", nodeaddr 22, corefreq 30000, clockdiv 0}";
  END spw_obj278;

  DEVICE IMPLEMENTATION spw_obj278.others EXTENDS ocarina_drivers::rasta_spacewire.pohic
  END spw_obj278.others;

  --{ leoncentral_obj91 obj591 142 10 
  --This board runs with the FPGA.
  --Should have spw addr 22
  --}

  SYSTEM IMPLEMENTATION leoncentral_obj91.others
    SUBCOMPONENTS
      mypartleoncentral_obj179 : PROCESS mypartleoncentral_obj179.others
        { Taste::Coordinates => "118 20 172 42";
           Deployment::Port_Number => 0;};
      pingee1_obj366 : SYSTEM interfaceview::IV::pingee1
        { Taste::Coordinates => "123 28 167 38" ;};
      leoncpu_obj135 : PROCESSOR ocarina_processors_leon::leon.rtems
        { Taste::Coordinates => "113 14 178 46"; };
      ram_obj223 : MEMORY ram_obj223.others
        { Taste::Coordinates => "115 51 177 67"; };
      serial_obj267 : DEVICE serial_obj267.others
        { Taste::Coordinates => "116 70 177 82";};
      spw_obj278 : DEVICE spw_obj278.others
        { Taste::Coordinates => "120 85 180 94";};

    CONNECTIONS
      --  The bus connections
      BUS ACCESS obj267_link -> serial_obj267.link;
      BUS ACCESS obj278_link -> spw_obj278.link;

    PROPERTIES
      -- Connexion des CPUs aux process/drivers
      Actual_Processor_Binding => (reference (leoncpu_obj135)) applies to mypartleoncentral_obj179;
      Taste::APLC_Binding => (reference(mypartleoncentral_obj179)) APPLIES TO pingee1_obj366;
      Actual_Processor_Binding => (reference (leoncpu_obj135)) applies to serial_obj267;
      Actual_Processor_Binding => (reference (leoncpu_obj135)) applies to spw_obj278;
      Actual_Memory_Binding => (reference (ram_obj223)) applies to mypartleoncentral_obj179;
  END leoncentral_obj91.others;

  --{ leonfinal_obj102 obj602 242 10 
  --This is the single board without FPGA, should 
  --have spw address 10
  --}

  SYSTEM leonfinal_obj102
    FEATURES
      obj289_link : requires bus access ocarina_buses::spacewire.generic
        { Taste::Coordinates => "210 78"; };
      obj300_link : requires bus access ocarina_buses::serial.generic
        { Taste::Coordinates => "267 104"; };
  END leonfinal_obj102;

  PROCESS mypartleoncpu_obj190
  END mypartleoncpu_obj190;

  PROCESS IMPLEMENTATION mypartleoncpu_obj190.others
  END mypartleoncpu_obj190.others;

  MEMORY ram_obj234
  END ram_obj234;

  MEMORY IMPLEMENTATION ram_obj234.others
  END ram_obj234.others;

  DEVICE spw_obj289 EXTENDS ocarina_drivers::rasta_spacewire
    PROPERTIES
      Taste::Coordinates => "210 78" applies to link;
      Taste::Interface_Coordinates => "219 114" applies to link;
      Deployment::Configuration => "{devname ""/dev/grspwrasta0"", nodeaddr 10, corefreq 30000, clockdiv 0}";
  END spw_obj289;

  DEVICE IMPLEMENTATION spw_obj289.others EXTENDS ocarina_drivers::rasta_spacewire.pohic
  END spw_obj289.others;

  DEVICE serialleon_obj300 EXTENDS ocarina_drivers::rasta_serial
    PROPERTIES
      Taste::Coordinates => "267 104" applies to link;
      Taste::Interface_Coordinates => "274 143" applies to link;
      Deployment::Configuration => "{devname ""/dev/apburasta0"", speed b38400}";
  END serialleon_obj300;

  DEVICE IMPLEMENTATION serialleon_obj300.others EXTENDS ocarina_drivers::rasta_serial.raw
  END serialleon_obj300.others;

  --{ leonfinal_obj102 obj602 242 10 
  --This is the single board without FPGA, should 
  --have spw address 10
  --}

  SYSTEM IMPLEMENTATION leonfinal_obj102.others
    SUBCOMPONENTS
      mypartleoncpu_obj190 : PROCESS mypartleoncpu_obj190.others
        { Taste::Coordinates => "213 19 269 39";
           Deployment::Port_Number => 0;};
      pingee2_obj377 : SYSTEM interfaceview::IV::pingee2
        { Taste::Coordinates => "216 25 266 36" ;};
      leoncpu_obj146 : PROCESSOR ocarina_processors_leon::leon.rtems
        { Taste::Coordinates => "209 12 278 51"; };
      ram_obj234 : MEMORY ram_obj234.others
        { Taste::Coordinates => "209 53 277 70"; };
      spw_obj289 : DEVICE spw_obj289.others
        { Taste::Coordinates => "210 73 277 89";};
      serialleon_obj300 : DEVICE serialleon_obj300.others
        { Taste::Coordinates => "210 93 278 104";};

    CONNECTIONS
      --  The bus connections
      BUS ACCESS obj289_link -> spw_obj289.link;
      BUS ACCESS obj300_link -> serialleon_obj300.link;

    PROPERTIES
      -- Connexion des CPUs aux process/drivers
      Actual_Processor_Binding => (reference (leoncpu_obj146)) applies to mypartleoncpu_obj190;
      Taste::APLC_Binding => (reference(mypartleoncpu_obj190)) APPLIES TO pingee2_obj377;
      Actual_Processor_Binding => (reference (leoncpu_obj146)) applies to spw_obj289;
      Actual_Processor_Binding => (reference (leoncpu_obj146)) applies to serialleon_obj300;
      Actual_Memory_Binding => (reference (ram_obj234)) applies to mypartleoncpu_obj190;
  END leonfinal_obj102.others;

  SYSTEM x86finalpingee_obj113
    FEATURES
      obj311_link : requires bus access ocarina_buses::serial.generic
        { Taste::Coordinates => "348 93"; };
  END x86finalpingee_obj113;

  PROCESS finalpart_obj201
  END finalpart_obj201;

  PROCESS IMPLEMENTATION finalpart_obj201.others
  END finalpart_obj201.others;

  MEMORY obj531_obj245
  END obj531_obj245;

  MEMORY IMPLEMENTATION obj531_obj245.others
  END obj531_obj245.others;

  DEVICE seriallinuxreceiver_obj311 EXTENDS ocarina_drivers::generic_serial
    PROPERTIES
      Taste::Coordinates => "348 93" applies to link;
      Taste::Interface_Coordinates => "342 143" applies to link;
      Deployment::Configuration => "{devname ""/dev/ttyUSB0"", speed b38400}";
  END seriallinuxreceiver_obj311;

  DEVICE IMPLEMENTATION seriallinuxreceiver_obj311.others EXTENDS ocarina_drivers::generic_serial.raw_receiver
  END seriallinuxreceiver_obj311.others;

  SYSTEM IMPLEMENTATION x86finalpingee_obj113.others
    SUBCOMPONENTS
      finalpart_obj201 : PROCESS finalpart_obj201.others
        { Taste::Coordinates => "320 20 376 39";
           Deployment::Port_Number => 0;};
      finalpingee_obj388 : SYSTEM interfaceview::IV::finalpingee
        { Taste::Coordinates => "326 29 371 38" ;};
      mylinux_obj157 : PROCESSOR ocarina_processors_x86::x86.native
        { Taste::Coordinates => "314 13 401 43"; };
      obj531_obj245 : MEMORY obj531_obj245.others
        { Taste::Coordinates => "316 47 396 66"; };
      seriallinuxreceiver_obj311 : DEVICE seriallinuxreceiver_obj311.others
        { Taste::Coordinates => "317 71 396 93";};

    CONNECTIONS
      --  The bus connections
      BUS ACCESS obj311_link -> seriallinuxreceiver_obj311.link;

    PROPERTIES
      -- Connexion des CPUs aux process/drivers
      Actual_Processor_Binding => (reference (mylinux_obj157)) applies to finalpart_obj201;
      Taste::APLC_Binding => (reference(finalpart_obj201)) APPLIES TO finalpingee_obj388;
      Actual_Processor_Binding => (reference (mylinux_obj157)) applies to seriallinuxreceiver_obj311;
      Actual_Memory_Binding => (reference (obj531_obj245)) applies to finalpart_obj201;
  END x86finalpingee_obj113.others;

  --------------
  -- Devices--
  --------------

  -----------
  -- Buses --
  -----------

  -----------------
  -- Root System --
  -----------------

  SYSTEM deploymentview
  END deploymentview;

  SYSTEM IMPLEMENTATION deploymentview.others
    SUBCOMPONENTS
      --  The processor boards
      linuxboard_obj80 : SYSTEM linuxboard_obj80.others
        { Taste::Coordinates => "5 3 88 93"; };
      leoncentral_obj91 : SYSTEM leoncentral_obj91.others
        { Taste::Coordinates => "109 8 183 98"; };
      leonfinal_obj102 : SYSTEM leonfinal_obj102.others
        { Taste::Coordinates => "205 4 284 109"; };
      x86finalpingee_obj113 : SYSTEM x86finalpingee_obj113.others
        { Taste::Coordinates => "311 5 408 99"; };
      --  The devices
      --  The buses
      serial_obj322 : BUS ocarina_buses::serial.generic
        { Taste::Coordinates => "66 112 138 136";};
      spw_obj333 : BUS ocarina_buses::spacewire.generic
        { Taste::Coordinates => "159 114 237 134";};
      serial2_obj344 : BUS ocarina_buses::serial.generic
        { Taste::Coordinates => "264 143 367 163";};
      --  The IV systems
        interfaceview_obj963 : SYSTEM interfaceview::IV::interfaceview.others;

    CONNECTIONS
      --  The bus connections
      obj827 :BUS ACCESS serial_obj322 -> linuxboard_obj80.obj256_link
        { Taste::Coordinates => "83 83 83 98 88 98 88 112"; };
      obj648 :BUS ACCESS serial_obj322 -> leoncentral_obj91.obj267_link
        { Taste::Coordinates => "116 76 113 76 113 112"; };
      obj7839 :BUS ACCESS spw_obj333 -> leoncentral_obj91.obj278_link
        { Taste::Coordinates => "172 94 172 104 170 104 170 114"; };
      obj7928 :BUS ACCESS spw_obj333 -> leonfinal_obj102.obj289_link
        { Taste::Coordinates => "210 79 205 79 205 111 220 111 220 114"; };
      obj1477 :BUS ACCESS serial2_obj344 -> leonfinal_obj102.obj300_link
        { Taste::Coordinates => "268 104 268 114 275 114 275 143"; };
      obj1009 :BUS ACCESS serial2_obj344 -> x86finalpingee_obj113.obj311_link
        { Taste::Coordinates => "348 93 348 118 342 118 342 143"; };

    PROPERTIES
      --  The bus connection bindings
      Actual_Connection_Binding => (reference (serial_obj322)) applies to interfaceview_obj963.obj282;
      Actual_Connection_Binding => (reference (spw_obj333)) applies to interfaceview_obj963.obj521;
      Actual_Connection_Binding => (reference (serial2_obj344)) applies to interfaceview_obj963.obj1232;

  END deploymentview.others;


PROPERTIES
  Taste::Coordinates => "0 0 594 420";
  Taste::interfaceView => "interfaceview.aadl";

END deploymentview::DV;
 


---------------------------------------
-- copied aadl libraries
-- TASTE requirement
-- Do not edit below this line
---------------------------------------

package ocarina_buses

public

bus generic_bus
end generic_bus;

bus implementation generic_bus.i
end generic_bus.i;

bus dummy_bus
end dummy_bus;

bus implementation dummy_bus.i
end dummy_bus.i;

bus ip
end ip;

bus implementation ip.pohic
end ip.pohic;

bus implementation ip.i
subcomponents
   asn      : virtual bus asn1.i;
   pohic    : virtual bus pohi.c;
   pohiada  : virtual bus pohi.ada;
end ip.i;

bus implementation ip.pohiada
end ip.pohiada;

bus spacewire
end spacewire;

bus implementation spacewire.generic
end spacewire.generic;

bus serial
end serial;

bus implementation serial.generic
end serial.generic;


----------------------
--  Virtual buses  --
----------------------

virtual bus raw
end raw;

virtual bus implementation raw.i
end raw.i;

virtual bus asn1
end asn1;

virtual bus implementation asn1.i
end asn1.i;

virtual bus pohi
end pohi;

virtual bus implementation pohi.c
end pohi.c;

virtual bus implementation pohi.ada
end pohi.ada;

end ocarina_buses;
package ocarina_drivers
public

  with deployment;

  with ocarina_buses;

  with Data_Model;
  with Base_Types;

  with ocarina_drivers_leon_serial;

  with ocarina_drivers_rasta_1553;
  with ocarina_drivers_rasta_serial;
  with ocarina_drivers_rasta_spacewire;
  with ocarina_drivers_rtems_ne2000;

  with ocarina_drivers_star_dundee_spacewire_brick;

  with ocarina_drivers_udp_exarm;
  with ocarina_drivers_serial;

  with ocarina_drivers_ip_pohic;

  with ocarina_drivers_exarm_ni_6071e_analog;
  with ocarina_drivers_exarm_ni_6071e_digital;

  with ocarina_drivers_generic_keyboard;

  with GRUART;
  with GRSPW;
  with Native_UART;
  with TCP_IP_Protocol;

  ------------------------
  -- Configuration Type --
  ------------------------

   data configuration_type_ip
   properties
      Type_Source_Name                 => "IP-Conf-T";
      Deployment::ASN1_Module_Name     => "POHICDRIVER-IP";
      Source_Language                  => ASN1;
      Source_Text                      => ("/home/assert/tool-inst/include/ocarina/runtime/polyorb-hi-c/src/drivers/configuration/ip.asn" , "drivers/configuration/ip.h");
   end configuration_type_ip;

   data configuration_type_serial
   properties
      Type_Source_Name              => "Serial-Conf-T";
      Deployment::ASN1_Module_Name  => "POHICDRIVER-UART";
      Source_Language               => ASN1;
      Source_Text                   => ("/home/assert/tool-inst/include/ocarina/runtime/polyorb-hi-c/src/drivers/configuration/serial.asn", "drivers/configuration/serial.h");
   end configuration_type_serial;

   data configuration_type_spacewire
   properties
      Type_Source_Name              => "Spacewire-Conf-T";
      Deployment::ASN1_Module_Name  => "POHICDRIVER-SPACEWIRE";
      Source_Language               => ASN1;
      Source_Text                   => ("/home/assert/tool-inst/include/ocarina/runtime/polyorb-hi-c/src/drivers/configuration/spacewire.asn", "drivers/configuration/spacewire.h");
   end configuration_type_spacewire;

  --------------
  -- Keyboard --
  --------------

  device generic_keyboard
  features
    key_pressed  : out data port Base_Types::Character;
  properties
    Deployment::Driver_Name    => "generic_keyboard";
    Device_Driver              => classifier (ocarina_drivers_generic_keyboard::generic_keyboard_driver.i);
    Initialize_Entrypoint      => classifier (ocarina_drivers_generic_keyboard::spg_generic_keyboard_init);
  end generic_keyboard;

  device implementation generic_keyboard.linux
  end generic_keyboard.linux;


  -------------------
  -- LEON ETHERNET --
  -------------------

  device leon_ethernet
  features
    link : requires bus access ocarina_buses::ip.i;
  end leon_ethernet;

  device implementation leon_ethernet.raw
  properties
    Deployment::Driver_Name    => "eth_leon";
    Device_Driver              => classifier (ocarina_drivers_leon_eth::eth_driver.leon);
    Initialize_Entrypoint      => classifier (ocarina_drivers_leon_eth::spg_leon_eth_init);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::pohi.c));
  end leon_ethernet.raw;


  ------------------
  -- RASTA SERIAL --
  ------------------

  device leon_serial
  features
    link : requires bus access ocarina_buses::serial.generic;
  end leon_serial;

  device implementation leon_serial.raw
  properties
    Deployment::Driver_Name    => "serial_leon";
    Device_Driver              => classifier (ocarina_drivers_leon_serial::serial_driver.leon);
    Initialize_Entrypoint      => classifier (ocarina_drivers_leon_serial::spg_serial_init_leon);
    Provided_Virtual_Bus_Class => (classifier (ocarina_buses::raw.i));
  end leon_serial.raw;

  device implementation leon_serial.raw_sender
  properties
    Deployment::Driver_Name    => "serial_leon_sender";
    Device_Driver              => classifier (ocarina_drivers_leon_serial::serial_driver.leon_sender);
    Initialize_Entrypoint      => classifier (ocarina_drivers_leon_serial::spg_serial_init_leon_sender);
    Provided_Virtual_Bus_Class => (classifier (ocarina_buses::raw.i));
  end leon_serial.raw_sender;

  ----------------
  -- RASTA 1553 --
  ----------------

  device rasta_1553
  end rasta_1553;

  device implementation rasta_1553.terminal
  properties
    Deployment::Driver_Name    => "1553_rasta";
    Device_Driver              => classifier (ocarina_drivers_rasta_1553::if1553_driver.rasta_terminal);
    Initialize_Entrypoint      => classifier (ocarina_drivers_rasta_1553::spg_1553_init_rasta_terminal);
    Provided_Virtual_Bus_Class => (classifier (ocarina_buses::pohi.c));
  end rasta_1553.terminal;

  device implementation rasta_1553.controller_sender_only
  properties
    Deployment::Driver_Name    => "1553_rasta";
    Device_Driver              => classifier (ocarina_drivers_rasta_1553::if1553_driver.rasta_controller_sender_only);
    Initialize_Entrypoint      => classifier (ocarina_drivers_rasta_1553::spg_1553_init_rasta_controller);
    Provided_Virtual_Bus_Class => (classifier (ocarina_buses::pohi.c));
  end rasta_1553.controller_sender_only;

  ------------------
  -- RASTA SERIAL --
  ------------------

  device rasta_serial
  features
    link : requires bus access ocarina_buses::serial.generic;
  end rasta_serial;

  device implementation rasta_serial.raw
  properties
    Deployment::Driver_Name    => "serial_rasta";
    Device_Driver              => classifier (ocarina_drivers_rasta_serial::serial_driver.rasta);
    Initialize_Entrypoint      => classifier (ocarina_drivers_rasta_serial::spg_serial_init_rasta);
    Provided_Virtual_Bus_Class => (classifier (ocarina_buses::raw.i));
  end rasta_serial.raw;

  device implementation rasta_serial.pohiada
  properties
    Deployment::Driver_Name    => "serial_rasta";
    Implemented_As =>  classifier (GRUART::Driver_GRUART_Protocol.impl);
    Initialize_Entrypoint => classifier (GRUART::Initialize);
    Provided_Virtual_Bus_Class => (classifier (ocarina_buses::raw.i));
  end rasta_serial.pohiada;

  --------------------------------------------------
  -- USB BRICK (STAR DUNDEE) DEVICE FOR SPACEWIRE --
  --------------------------------------------------

  device usb_brick_spacewire
  features
    link : requires bus access ocarina_buses::spacewire.generic;
  end usb_brick_spacewire;

  device implementation usb_brick_spacewire.pohic
  properties
    Deployment::Driver_Name       => "spacewire_usb_brick";
    Device_Driver                 => classifier (ocarina_drivers_star_dundee_spacewire_brick::driver.usb_brick);
    Initialize_Entrypoint         => classifier (ocarina_drivers_star_dundee_spacewire_brick::spg_init);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::pohi.c));
  end usb_brick_spacewire.pohic;

  ---------------------
  -- RASTA SPACEWIRE --
  ---------------------

  device rasta_spacewire
  features
    link : requires bus access ocarina_buses::spacewire.generic;
  end rasta_spacewire;

  device implementation rasta_spacewire.pohic
  properties
    Deployment::Driver_Name       => "spacewire_rasta";
    Device_Driver                 => classifier (ocarina_drivers_rasta_spacewire::spacewire_driver.rasta);
    Initialize_Entrypoint         => classifier (ocarina_drivers_rasta_spacewire::spg_spacewire_init_rasta);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::pohi.c));
  end rasta_spacewire.pohic;

  device implementation rasta_spacewire.pohiada
  properties
    Deployment::Driver_Name       => "spacewire_rasta";
    Implemented_As =>  classifier (GRSPW::Driver_GRSPW_Protocol.impl);
    Initialize_Entrypoint => classifier (GRSPW::Initialize);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::pohi.c));
  end rasta_spacewire.pohiada;

  ---------------------------
  -- Generic serial driver --
  ---------------------------

  device generic_serial
  features
    link : requires bus access ocarina_buses::serial.generic;
  end generic_serial;

  device implementation generic_serial.raw
  properties
    Deployment::Driver_Name       => "serial_linux";
    Device_Driver                 => classifier (ocarina_drivers_serial::serial_driver.linux);
    Initialize_Entrypoint         => classifier (ocarina_drivers_serial::spg_serial_init_linux);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::raw.i));
  end generic_serial.raw;

  device implementation generic_serial.pohiada
  properties
    Deployment::Driver_Name       => "serial_linux";
    Implemented_As =>
         classifier (Native_UART::Driver_Native_UART_Protocol.impl);
    Initialize_Entrypoint => classifier (Native_UART::Initialize);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::raw.i));
  end generic_serial.pohiada;

  device implementation generic_serial.raw_sender
  properties
    Deployment::Driver_Name       => "serial_linux_sender";
    Device_Driver                 => classifier (ocarina_drivers_serial::serial_driver.linux_sender);
    Initialize_Entrypoint         => classifier (ocarina_drivers_serial::spg_serial_init_linux_sender);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::raw.i));
  end generic_serial.raw_sender;

  device implementation generic_serial.raw_receiver
  properties
    Deployment::Driver_Name       => "serial_linux_receiver";
    Device_Driver                 => classifier (ocarina_drivers_serial::serial_driver.linux_receiver);
    Initialize_Entrypoint         => classifier (ocarina_drivers_serial::spg_serial_init_linux_receiver);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::raw.i));
  end generic_serial.raw_receiver;

  -------------------------------
  -- Generic sockets/ip driver --
  -------------------------------

  device generic_sockets_ip
  features
    link : requires bus access ocarina_buses::ip.i;
  end generic_sockets_ip;

  device implementation generic_sockets_ip.pohic
  properties
    Deployment::Driver_Name       => "sockets";
    Device_Driver                 => classifier (ocarina_drivers_ip_pohic::sockets_impl.i);
    Initialize_Entrypoint         => classifier (ocarina_drivers_ip_pohic::spg_sockets_init);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::pohi.c));
  end generic_sockets_ip.pohic;

  device implementation generic_sockets_ip.pohiada
  properties
    Deployment::Driver_Name       => "socketsnew";
    Implemented_As => classifier (TCP_IP_Protocol::Driver_TCP_IP_Protocol.impl);
    Device_Driver => classifier (TCP_IP_Protocol::Driver_TCP_IP_Protocol.impl);
    Initialize_Entrypoint => classifier (TCP_IP_Protocol::Initialize);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::pohi.c));
  end generic_sockets_ip.pohiada;

  ------------------
  -- RTEMS NE2000 --
  ------------------

  device rtems_ne2000
  features
    link : requires bus access ocarina_buses::ip.i;
  end rtems_ne2000;

  device implementation rtems_ne2000.ip_pohic
  properties
    Deployment::Driver_Name       => "rtems_ne2000_sockets";
    Device_Driver                 => classifier (ocarina_drivers_rtems_ne2000::driver.i);
    Initialize_Entrypoint         => classifier (ocarina_drivers_rtems_ne2000::init);
    Provided_Virtual_Bus_Class    => (classifier (ocarina_buses::pohi.c));
  end rtems_ne2000.ip_pohic;

  ------------------------------------------
  --            Exarm UDP driver          --
  ------------------------------------------
  --  This driver is used to communicate  --
  --  with the exarm robot and also       --
  --  the Matlab simulator.               --
  ------------------------------------------

  device exarm_ip
  features
    link : requires bus access ocarina_buses::ip.i;
  end exarm_ip;

  device implementation exarm_ip.vr_udp
  properties
    Deployment::Driver_Name    => "exarm";
    Device_Driver              => classifier (ocarina_drivers_udp_exarm::driver.i);
    Initialize_Entrypoint      => classifier (ocarina_drivers_udp_exarm::init);
  end exarm_ip.vr_udp;

  data exarm_protocol_data
  end exarm_protocol_data;

  data implementation exarm_protocol_data.vr extends ocarina_drivers_udp_exarm::protocol.vr
  properties
    Data_Model::Data_Representation => Struct;
  end exarm_protocol_data.vr;

  data implementation exarm_protocol_data.robot extends ocarina_drivers_udp_exarm::protocol.robot
  properties
    Data_Model::Data_Representation => Struct;
  end exarm_protocol_data.robot;

  ---------------------------------------
  --   Devices for the Exo skeleton    --
  --  National Instruments PCI-6071E   --
  ---------------------------------------
  --  This device is used to make data --
  --  acquisition of the EXARM robot.  --
  ---------------------------------------

  device exarm_ni_6071e_analog
  features
    data1  : out data port Base_Types::Float_64;
    data2  : out data port Base_Types::Float_64;
    data3  : out data port Base_Types::Float_64;
    data4  : out data port Base_Types::Float_64;
    data5  : out data port Base_Types::Float_64;
    data6  : out data port Base_Types::Float_64;
    data7  : out data port Base_Types::Float_64;
    data8  : out data port Base_Types::Float_64;
    data9  : out data port Base_Types::Float_64;
    data10 : out data port Base_Types::Float_64;
    data11 : out data port Base_Types::Float_64;
    data12 : out data port Base_Types::Float_64;
    data13 : out data port Base_Types::Float_64;
    data14 : out data port Base_Types::Float_64;
    data15 : out data port Base_Types::Float_64;
    data16 : out data port Base_Types::Float_64;
  end exarm_ni_6071e_analog;

  device implementation exarm_ni_6071e_analog.i
  properties
    Deployment::Driver_Name    => "exarm_ni_6071e_analog";
    Device_Driver              => classifier (ocarina_drivers_exarm_ni_6071e_analog::driver.i);
    Initialize_Entrypoint      => classifier (ocarina_drivers_exarm_ni_6071e_analog::spg_init);
  end exarm_ni_6071e_analog.i;

  device exarm_ni_6071e_digital
  features
    data1  : out data port Base_Types::Unsigned_8;
    data2  : out data port Base_Types::Unsigned_8;
  end exarm_ni_6071e_digital;

  device implementation exarm_ni_6071e_digital.i
  properties
    Deployment::Driver_Name    => "exarm_ni_6071e_digital";
    Device_Driver              => classifier (ocarina_drivers_exarm_ni_6071e_digital::driver.i);
    Initialize_Entrypoint      => classifier (ocarina_drivers_exarm_ni_6071e_digital::spg_init);
  end exarm_ni_6071e_digital.i;

end ocarina_drivers;

package ocarina_types

public

with Data_Model;

data integer
end integer;

data implementation integer.i
properties
   Data_Model::Data_Representation => integer;
end integer.i;

data float
end float;

data implementation float.i
properties
   Data_Model::Data_Representation => float;
end float.i;

data boolean
end boolean;

data implementation boolean.i
properties
   Data_Model::Data_Representation => boolean;
end boolean.i;

end ocarina_types;
package ocarina_drivers_exarm_ni_6071e_analog

public

with Base_Types;
with Deployment;

subprogram spg_init
properties
   Source_Language   => C;
   Source_Name       => "__po_hi_c_driver_exarm_ni_6071e_analog_init";
end spg_init;


subprogram spg_poller
features
   data1  : out parameter Base_Types::Float_64;
   data2  : out parameter Base_Types::Float_64;
   data3  : out parameter Base_Types::Float_64;
   data4  : out parameter Base_Types::Float_64;
   data5  : out parameter Base_Types::Float_64;
   data6  : out parameter Base_Types::Float_64;
   data7  : out parameter Base_Types::Float_64;
   data8  : out parameter Base_Types::Float_64;
   data9  : out parameter Base_Types::Float_64;
   data10 : out parameter Base_Types::Float_64;
   data11 : out parameter Base_Types::Float_64;
   data12 : out parameter Base_Types::Float_64;
   data13 : out parameter Base_Types::Float_64;
   data14 : out parameter Base_Types::Float_64;
   data15 : out parameter Base_Types::Float_64;
   data16 : out parameter Base_Types::Float_64;
properties
   Source_Language   => C;
   Source_Name       => "__po_hi_c_driver_exarm_ni_6071e_analog_poller";
end spg_poller;


thread thr_poller
features
   data1  : out data port Base_Types::Float_64;
   data2  : out data port Base_Types::Float_64;
   data3  : out data port Base_Types::Float_64;
   data4  : out data port Base_Types::Float_64;
   data5  : out data port Base_Types::Float_64;
   data6  : out data port Base_Types::Float_64;
   data7  : out data port Base_Types::Float_64;
   data8  : out data port Base_Types::Float_64;
   data9  : out data port Base_Types::Float_64;
   data10 : out data port Base_Types::Float_64;
   data11 : out data port Base_Types::Float_64;
   data12 : out data port Base_Types::Float_64;
   data13 : out data port Base_Types::Float_64;
   data14 : out data port Base_Types::Float_64;
   data15 : out data port Base_Types::Float_64;
   data16 : out data port Base_Types::Float_64;
end thr_poller;

thread implementation thr_poller.i
calls
	mycall : {
	  pspg : subprogram spg_poller;
	};
connections
   parameter pspg.data1 -> data1;   
   parameter pspg.data2 -> data2;   
   parameter pspg.data3 -> data3;   
   parameter pspg.data4 -> data4;   
   parameter pspg.data5 -> data5;   
   parameter pspg.data6 -> data6;   
   parameter pspg.data7 -> data7;   
   parameter pspg.data8 -> data8;   
   parameter pspg.data9 -> data9;   
   parameter pspg.data10 -> data10;   
   parameter pspg.data11 -> data11;   
   parameter pspg.data12 -> data12;   
   parameter pspg.data13 -> data13;   
   parameter pspg.data14 -> data14;   
   parameter pspg.data15 -> data15;   
   parameter pspg.data16 -> data16; 
properties
   Period => 100 ms;
   Dispatch_Protocol => Periodic;
end thr_poller.i;


abstract driver
features
   data1  : out data port Base_Types::Float_64;
   data2  : out data port Base_Types::Float_64;
   data3  : out data port Base_Types::Float_64;
   data4  : out data port Base_Types::Float_64;
   data5  : out data port Base_Types::Float_64;
   data6  : out data port Base_Types::Float_64;
   data7  : out data port Base_Types::Float_64;
   data8  : out data port Base_Types::Float_64;
   data9  : out data port Base_Types::Float_64;
   data10 : out data port Base_Types::Float_64;
   data11 : out data port Base_Types::Float_64;
   data12 : out data port Base_Types::Float_64;
   data13 : out data port Base_Types::Float_64;
   data14 : out data port Base_Types::Float_64;
   data15 : out data port Base_Types::Float_64;
   data16 : out data port Base_Types::Float_64;
end driver;

abstract implementation driver.i
subcomponents
   ni6071e_analog_poller : thread thr_poller.i;
connections
   port ni6071e_analog_poller.data1 -> data1;   
   port ni6071e_analog_poller.data2 -> data2;   
   port ni6071e_analog_poller.data3 -> data3;   
   port ni6071e_analog_poller.data4 -> data4;   
   port ni6071e_analog_poller.data5 -> data5;   
   port ni6071e_analog_poller.data6 -> data6;   
   port ni6071e_analog_poller.data7 -> data7;   
   port ni6071e_analog_poller.data8 -> data8;   
   port ni6071e_analog_poller.data9 -> data9;   
   port ni6071e_analog_poller.data10 -> data10;   
   port ni6071e_analog_poller.data11 -> data11;   
   port ni6071e_analog_poller.data12 -> data12;   
   port ni6071e_analog_poller.data13 -> data13;   
   port ni6071e_analog_poller.data14 -> data14;   
   port ni6071e_analog_poller.data15 -> data15;   
   port ni6071e_analog_poller.data16 -> data16; 
end driver.i;

end ocarina_drivers_exarm_ni_6071e_analog;
package ocarina_drivers_exarm_ni_6071e_digital

public

with Base_Types;
with Deployment;

subprogram spg_init
properties
   Source_Language   => C;
   Source_Name       => "__po_hi_c_driver_exarm_ni_6071e_digital_init";
end spg_init;


subprogram spg_poller
features
   data1 : out parameter Base_Types::Unsigned_32;
   data2 : out parameter Base_Types::Unsigned_32;
properties
   Source_Language   => C;
   Source_Name       => "__po_hi_c_driver_exarm_ni_6071e_digital_poller";
end spg_poller;


thread thr_poller
features
For faster browsing, not all history is shown. View entire blame