Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kazoo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
kazoo
Commits
a6230be4
Commit
a6230be4
authored
Sep 06, 2019
by
Maxime Perrotin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial support for C++
parent
c93ff8a1
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
849 additions
and
11 deletions
+849
-11
templates/concurrency_view/air_cgpr/partition.tmplt
templates/concurrency_view/air_cgpr/partition.tmplt
+2
-0
templates/concurrency_view/air_gpr/partition.tmplt
templates/concurrency_view/air_gpr/partition.tmplt
+6
-3
templates/concurrency_view/c_pohi_gpr/partition.tmplt
templates/concurrency_view/c_pohi_gpr/partition.tmplt
+10
-3
templates/concurrency_view/c_pohi_rtems_with_ada_cgpr/partition.tmplt
...ncurrency_view/c_pohi_rtems_with_ada_cgpr/partition.tmplt
+15
-2
templates/concurrency_view/c_pohi_rtems_with_ada_gpr/partition.tmplt
...oncurrency_view/c_pohi_rtems_with_ada_gpr/partition.tmplt
+6
-3
test/Demo_CPP/.gitignore
test/Demo_CPP/.gitignore
+3
-0
test/Demo_CPP/DataView.aadl
test/Demo_CPP/DataView.aadl
+332
-0
test/Demo_CPP/DataView.acn
test/Demo_CPP/DataView.acn
+10
-0
test/Demo_CPP/DataView.asn
test/Demo_CPP/DataView.asn
+39
-0
test/Demo_CPP/DeploymentView.aadl
test/Demo_CPP/DeploymentView.aadl
+74
-0
test/Demo_CPP/InterfaceView.aadl
test/Demo_CPP/InterfaceView.aadl
+137
-0
test/Demo_CPP/Makefile
test/Demo_CPP/Makefile
+54
-0
test/Demo_CPP/build-script.sh
test/Demo_CPP/build-script.sh
+121
-0
test/Demo_CPP/function1/function1.c
test/Demo_CPP/function1/function1.c
+20
-0
test/Demo_CPP/function2/function2.cc
test/Demo_CPP/function2/function2.cc
+20
-0
No files found.
templates/concurrency_view/air_cgpr/partition.tmplt
View file @
a6230be4
...
...
@@ -27,6 +27,7 @@
configuration
project
AIR
is
package
Compiler
is
for
Driver
(
"C"
)
use
"sparc-rtems5-gcc"
;
for
Driver
(
"C++"
)
use
"sparc-rtems5-g++"
;
for
Driver
(
"Ada"
)
use
"sparc-rtems5-gcc"
;
for
Leading_Required_Switches
(
"C"
)
use
(
"-c"
);
...
...
@@ -72,6 +73,7 @@ configuration project AIR is
for
Body_Suffix
(
"C"
)
use
".c"
;
for
Spec_Suffix
(
"Ada"
)
use
".ads"
;
for
Body_Suffix
(
"Ada"
)
use
".adb"
;
for
Body_Suffix
(
"C++"
)
use
".cc"
;
for
Dot_Replacement
use
"-"
;
end
Naming
;
for
Archive_Builder
use
(
"ar"
,
"cr"
);
...
...
templates/concurrency_view/air_gpr/partition.tmplt
View file @
a6230be4
...
...
@@ -45,9 +45,9 @@ project @_CAPITALIZE:Name_@_AIR is
for
Exec_Dir
use
"../deploymentview_final/@_Name_@"
;
@@
IF
@@
@
_Need_Ada_
@
=
TRUE
for
Languages
use
(
"Ada"
,
"C"
);
for
Languages
use
(
"Ada"
,
"C"
,
"C++"
);
@@
ELSE
@@
for
Languages
use
(
"C"
);
for
Languages
use
(
"C"
,
"C++"
);
@@
END_IF
@@
for
Main
use
(
"main.c"
);
...
...
@@ -160,6 +160,9 @@ project @_CAPITALIZE:Name_@_AIR is
"spwrouter_custom_config.c"
,
"star_dundee_api.c"
,
"trace_manager.c"
,
"um_threads.c"
);
"um_threads.c"
,
"cheddar_schedule.cc"
,
"remote_configuration.cc"
,
"trace_manager.cc"
);
end
@
_CAPITALIZE
:
Name_
@
_AIR
;
templates/concurrency_view/c_pohi_gpr/partition.tmplt
View file @
a6230be4
...
...
@@ -70,13 +70,17 @@ project @_CAPITALIZE:Name_@ is
for Exec_Dir use "../../binaries";
@@IF@@ @_Need_Ada_@ = TRUE
for Languages use ("Ada", "C");
for Languages use ("Ada", "C"
, "C++"
);
@@ELSE@@
for Languages use ("C");
for Languages use ("C"
, "C++"
);
@@END_IF@@
for Main use ("main.c");
package Naming is
for Body_Suffix ("C++") use ".cc";
end Naming;
-- These files are not needed to use POHIC: don'
t
compile
them
for
Excluded_Source_Files
use
(
"config.c"
,
...
...
@@ -122,7 +126,10 @@ project @_CAPITALIZE:Name_@ is
"spwrouter_custom_config.c",
"star_dundee_api.c",
"trace_manager.c",
"um_threads.c");
"um_threads.c",
"cheddar_schedule.cc",
"remote_configuration.cc",
"trace_manager.cc");
package Compiler is
case Build is
...
...
templates/concurrency_view/c_pohi_rtems_with_ada_cgpr/partition.tmplt
View file @
a6230be4
...
...
@@ -34,8 +34,10 @@ configuration project RTEMS_WITH_ADA is
package
Compiler
is
for
Driver
(
"C"
)
use
"sparc-rtems5-gcc"
;
for
Driver
(
"Ada"
)
use
"sparc-rtems5-gcc"
;
for
Driver
(
"C++"
)
use
"sparc-rtems5-g++"
;
for
Leading_Required_Switches
(
"C"
)
use
(
"-c"
);
for
Leading_Required_Switches
(
"C++"
)
use
(
"-c"
);
for
Required_Switches
(
"Ada"
)
use
(
"-c"
,
...
...
@@ -43,7 +45,7 @@ configuration project RTEMS_WITH_ADA is
"ada"
,
"-gnatA"
);
for
Required_Switches
(
"C"
)
use
Common_C_Switches
:=
(
"--pipe"
,
"-DTARGET=leon.rtems_posix"
,
"-DRTEMS_POSIX"
,
...
...
@@ -60,11 +62,18 @@ configuration project RTEMS_WITH_ADA is
"-DBSP_leon3"
,
"-DCORES=1"
);
for
Required_Switches
(
"C"
)
use
Common_C_Switches
;
for
Required_Switches
(
"C++"
)
use
Common_C_Switches
;
for
Object_File_Suffix
(
"C"
)
use
".o"
;
for
Object_File_Suffix
(
"C++"
)
use
".o"
;
for
Object_File_Suffix
(
"Ada"
)
use
".o"
;
for
Dependency_Switches
(
"C"
)
use
(
"-Wp,-MD,"
);
for
Dependency_Switches
(
"C++"
)
use
(
"-Wp,-MD,"
);
for
Dependency_Switches
(
"Ada"
)
use
(
"-MMD"
,
"-MF"
,
""
);
for
Include_Switches
(
"C"
)
use
(
"-I"
);
for
Include_Switches
(
"C++"
)
use
(
"-I"
);
for
Include_Switches
(
"Ada"
)
use
(
"-I"
);
for
Include_Path
(
"Ada"
)
use
"ADA_INCLUDE_PATH"
;
for
Include_Path_File
(
"Ada"
)
use
"ADA_PRJ_INCLUDE_FILE"
;
...
...
@@ -76,13 +85,14 @@ configuration project RTEMS_WITH_ADA is
for
Body_Suffix
(
"C"
)
use
".c"
;
for
Spec_Suffix
(
"Ada"
)
use
".ads"
;
for
Body_Suffix
(
"Ada"
)
use
".adb"
;
for
Body_Suffix
(
"C++"
)
use
".cc"
;
for
Dot_Replacement
use
"-"
;
end
Naming
;
for
Archive_Builder
use
(
"ar"
,
"cr"
);
package
Linker
is
for
Driver
use
"sparc-rtems5-gcc"
;
for
Default_Switches
(
"C"
)
use
Common_C_Linker_Switches
:=
(
"--pipe"
,
"-g"
,
"-B/opt/rtems-5.1-2019.07.25/sparc-rtems5/leon3/lib"
,
...
...
@@ -93,6 +103,9 @@ configuration project RTEMS_WITH_ADA is
"-lgnat"
,
"-lgnarl"
,
"-mcpu=cypress"
);
for
Default_Switches
(
"C"
)
use
Common_C_Linker_Switches
;
for
Default_Switches
(
"C++"
)
use
Common_C_Linker_Switches
;
for
Default_Switches
(
"Ada"
)
use
(
"--pipe"
,
"-g"
,
...
...
templates/concurrency_view/c_pohi_rtems_with_ada_gpr/partition.tmplt
View file @
a6230be4
...
...
@@ -45,9 +45,9 @@ project @_CAPITALIZE:Name_@_RTEMS_Ada is
for
Exec_Dir
use
"../../binaries"
;
@@
IF
@@
@
_Need_Ada_
@
=
TRUE
for
Languages
use
(
"Ada"
,
"C"
);
for
Languages
use
(
"Ada"
,
"C"
,
"C++"
);
@@
ELSE
@@
for
Languages
use
(
"C"
);
for
Languages
use
(
"C"
,
"C++"
);
@@
END_IF
@@
for
Main
use
(
"main.c"
);
...
...
@@ -153,7 +153,10 @@ project @_CAPITALIZE:Name_@_RTEMS_Ada is
"spwrouter_custom_config.c"
,
"star_dundee_api.c"
,
"trace_manager.c"
,
"um_threads.c"
);
"um_threads.c"
,
"cheddar_schedule.cc"
,
"remote_configuration.cc"
,
"trace_manager.cc"
);
end
@
_CAPITALIZE
:
Name_
@
_RTEMS_Ada
;
test/Demo_CPP/.gitignore
0 → 100644
View file @
a6230be4
ConcurrencyView_Properties.aadl
function1.zip
function2.zip
test/Demo_CPP/DataView.aadl
0 → 100644
View file @
a6230be4
--------------------------------------------------------
--
! File generated by asn2aadl v2.1.41: DO NOT EDIT !
--------------------------------------------------------
--
! InputASN1FileChecksum:6bf664b31ce9ca6fd89af52cea7ea0f2:/home/taste/tool-src/kazoo/test/Demo_CPP/DataView.asn:
--
! InputASN1FileChecksum:ee8a7e01f29874c0d50f437d5abb9599:/home/taste/tool-inst/share/taste-types/taste-types.asn:
--------------------------------------------------------
package
DataView
public
with
Data_Model
;
with
Taste
;
with
Base_Types
;
with
Deployment
;
DATA
Simulink_Tunable_Parameter
PROPERTIES
TASTE
::
Ada_Package_Name
=>
"TASTE_Directives"
;
Type_Source_Name
=>
"Simulink-Tunable-Parameter"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-Directives"
;
TASTE
::
Forbid_in_PI
=>
true
;
END
Simulink_Tunable_Parameter
;
DATA
Timer
PROPERTIES
TASTE
::
Ada_Package_Name
=>
"TASTE_Directives"
;
Type_Source_Name
=>
"Timer"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-Directives"
;
TASTE
::
Forbid_in_PI
=>
true
;
END
Timer
;
DATA
Taste_directive
PROPERTIES
TASTE
::
Ada_Package_Name
=>
"TASTE_Directives"
;
Type_Source_Name
=>
"Taste-directive"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-Directives"
;
TASTE
::
Forbid_in_PI
=>
true
;
END
Taste_directive
;
data
Stream_Element_Buffer
--
Root
type
for
buffer
elements
properties
Data_Model
::
Data_Representation
=>
Character
;
end
Stream_Element_Buffer
;
DATA
T_Boolean
PROPERTIES
--
name
of
the
ASN
.1
source
file
:
Source_Text
=>
(
"/home/taste/tool-inst/share/taste-types/taste-types.asn"
);
TASTE
::
Ada_Package_Name
=>
"TASTE_BasicTypes"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-BasicTypes"
;
Source_Language
=>
(
ASN1
);
--
Size
of
a
buffer
to
cover
all
forms
of
message
representation
:
--
Real
message
size
is
1
;
suggested
aligned
message
buffer
is
...
Source_Data_Size
=>
8
Bytes
;
--
name
of
the
corresponding
data
type
in
the
source
file
:
Type_Source_Name
=>
"T-Boolean"
;
TASTE
::
Position_In_File
=>
[
line
=>
14
;
column
=>
1
;
];
--
what
kind
of
type
is
this
?
TASTE
::
ASN1_Basic_Type
=>
aBOOLEAN
;
END
T_Boolean
;
DATA
IMPLEMENTATION
T_Boolean
.
impl
END
T_Boolean
.
impl
;
DATA
T_Boolean_Buffer_Max
END
T_Boolean_Buffer_Max
;
DATA
IMPLEMENTATION
T_Boolean_Buffer_Max
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_Boolean
PROPERTIES
Data_Model
::
Data_Representation
=>
array
;
Data_Model
::
Dimension
=>
(
8
);
--
Size
of
the
buffer
Source_Data_Size
=>
8
Bytes
;
--
Size
of
the
buffer
in
bytes
Data_Model
::
Base_Type
=>
(
classifier
(
DataView
::
Stream_Element_Buffer
));
END
T_Boolean_Buffer_Max
.
impl
;
DATA
T_Boolean_Buffer
END
T_Boolean_Buffer
;
DATA
IMPLEMENTATION
T_Boolean_Buffer
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_Boolean
SUBCOMPONENTS
Buffer
:
data
T_Boolean_Buffer_Max
.
impl
;
Length
:
data
Base_Types
::
Unsigned_32
;
PROPERTIES
Data_Model
::
Data_Representation
=>
Struct
;
Source_Data_Size
=>
24
Bytes
;
--
Size
of
the
buffer
in
bytes
END
T_Boolean_Buffer
.
impl
;
DATA
T_Int32
PROPERTIES
--
name
of
the
ASN
.1
source
file
:
Source_Text
=>
(
"/home/taste/tool-inst/share/taste-types/taste-types.asn"
);
TASTE
::
Ada_Package_Name
=>
"TASTE_BasicTypes"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-BasicTypes"
;
Source_Language
=>
(
ASN1
);
--
Size
of
a
buffer
to
cover
all
forms
of
message
representation
:
--
Real
message
size
is
8
;
suggested
aligned
message
buffer
is
...
Source_Data_Size
=>
8
Bytes
;
--
name
of
the
corresponding
data
type
in
the
source
file
:
Type_Source_Name
=>
"T-Int32"
;
TASTE
::
Position_In_File
=>
[
line
=>
6
;
column
=>
1
;
];
--
what
kind
of
type
is
this
?
TASTE
::
ASN1_Basic_Type
=>
aINTEGER
;
END
T_Int32
;
DATA
IMPLEMENTATION
T_Int32
.
impl
END
T_Int32
.
impl
;
DATA
T_Int32_Buffer_Max
END
T_Int32_Buffer_Max
;
DATA
IMPLEMENTATION
T_Int32_Buffer_Max
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_Int32
PROPERTIES
Data_Model
::
Data_Representation
=>
array
;
Data_Model
::
Dimension
=>
(
8
);
--
Size
of
the
buffer
Source_Data_Size
=>
8
Bytes
;
--
Size
of
the
buffer
in
bytes
Data_Model
::
Base_Type
=>
(
classifier
(
DataView
::
Stream_Element_Buffer
));
END
T_Int32_Buffer_Max
.
impl
;
DATA
T_Int32_Buffer
END
T_Int32_Buffer
;
DATA
IMPLEMENTATION
T_Int32_Buffer
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_Int32
SUBCOMPONENTS
Buffer
:
data
T_Int32_Buffer_Max
.
impl
;
Length
:
data
Base_Types
::
Unsigned_32
;
PROPERTIES
Data_Model
::
Data_Representation
=>
Struct
;
Source_Data_Size
=>
24
Bytes
;
--
Size
of
the
buffer
in
bytes
END
T_Int32_Buffer
.
impl
;
DATA
T_Int8
PROPERTIES
--
name
of
the
ASN
.1
source
file
:
Source_Text
=>
(
"/home/taste/tool-inst/share/taste-types/taste-types.asn"
);
TASTE
::
Ada_Package_Name
=>
"TASTE_BasicTypes"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-BasicTypes"
;
Source_Language
=>
(
ASN1
);
--
Size
of
a
buffer
to
cover
all
forms
of
message
representation
:
--
Real
message
size
is
8
;
suggested
aligned
message
buffer
is
...
Source_Data_Size
=>
8
Bytes
;
--
name
of
the
corresponding
data
type
in
the
source
file
:
Type_Source_Name
=>
"T-Int8"
;
TASTE
::
Position_In_File
=>
[
line
=>
10
;
column
=>
1
;
];
--
what
kind
of
type
is
this
?
TASTE
::
ASN1_Basic_Type
=>
aINTEGER
;
END
T_Int8
;
DATA
IMPLEMENTATION
T_Int8
.
impl
END
T_Int8
.
impl
;
DATA
T_Int8_Buffer_Max
END
T_Int8_Buffer_Max
;
DATA
IMPLEMENTATION
T_Int8_Buffer_Max
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_Int8
PROPERTIES
Data_Model
::
Data_Representation
=>
array
;
Data_Model
::
Dimension
=>
(
8
);
--
Size
of
the
buffer
Source_Data_Size
=>
8
Bytes
;
--
Size
of
the
buffer
in
bytes
Data_Model
::
Base_Type
=>
(
classifier
(
DataView
::
Stream_Element_Buffer
));
END
T_Int8_Buffer_Max
.
impl
;
DATA
T_Int8_Buffer
END
T_Int8_Buffer
;
DATA
IMPLEMENTATION
T_Int8_Buffer
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_Int8
SUBCOMPONENTS
Buffer
:
data
T_Int8_Buffer_Max
.
impl
;
Length
:
data
Base_Types
::
Unsigned_32
;
PROPERTIES
Data_Model
::
Data_Representation
=>
Struct
;
Source_Data_Size
=>
24
Bytes
;
--
Size
of
the
buffer
in
bytes
END
T_Int8_Buffer
.
impl
;
DATA
T_UInt32
PROPERTIES
--
name
of
the
ASN
.1
source
file
:
Source_Text
=>
(
"/home/taste/tool-inst/share/taste-types/taste-types.asn"
);
TASTE
::
Ada_Package_Name
=>
"TASTE_BasicTypes"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-BasicTypes"
;
Source_Language
=>
(
ASN1
);
--
Size
of
a
buffer
to
cover
all
forms
of
message
representation
:
--
Real
message
size
is
8
;
suggested
aligned
message
buffer
is
...
Source_Data_Size
=>
8
Bytes
;
--
name
of
the
corresponding
data
type
in
the
source
file
:
Type_Source_Name
=>
"T-UInt32"
;
TASTE
::
Position_In_File
=>
[
line
=>
8
;
column
=>
1
;
];
--
what
kind
of
type
is
this
?
TASTE
::
ASN1_Basic_Type
=>
aINTEGER
;
END
T_UInt32
;
DATA
IMPLEMENTATION
T_UInt32
.
impl
END
T_UInt32
.
impl
;
DATA
T_UInt32_Buffer_Max
END
T_UInt32_Buffer_Max
;
DATA
IMPLEMENTATION
T_UInt32_Buffer_Max
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_UInt32
PROPERTIES
Data_Model
::
Data_Representation
=>
array
;
Data_Model
::
Dimension
=>
(
8
);
--
Size
of
the
buffer
Source_Data_Size
=>
8
Bytes
;
--
Size
of
the
buffer
in
bytes
Data_Model
::
Base_Type
=>
(
classifier
(
DataView
::
Stream_Element_Buffer
));
END
T_UInt32_Buffer_Max
.
impl
;
DATA
T_UInt32_Buffer
END
T_UInt32_Buffer
;
DATA
IMPLEMENTATION
T_UInt32_Buffer
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_UInt32
SUBCOMPONENTS
Buffer
:
data
T_UInt32_Buffer_Max
.
impl
;
Length
:
data
Base_Types
::
Unsigned_32
;
PROPERTIES
Data_Model
::
Data_Representation
=>
Struct
;
Source_Data_Size
=>
24
Bytes
;
--
Size
of
the
buffer
in
bytes
END
T_UInt32_Buffer
.
impl
;
DATA
T_UInt8
PROPERTIES
--
name
of
the
ASN
.1
source
file
:
Source_Text
=>
(
"/home/taste/tool-inst/share/taste-types/taste-types.asn"
);
TASTE
::
Ada_Package_Name
=>
"TASTE_BasicTypes"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-BasicTypes"
;
Source_Language
=>
(
ASN1
);
--
Size
of
a
buffer
to
cover
all
forms
of
message
representation
:
--
Real
message
size
is
8
;
suggested
aligned
message
buffer
is
...
Source_Data_Size
=>
8
Bytes
;
--
name
of
the
corresponding
data
type
in
the
source
file
:
Type_Source_Name
=>
"T-UInt8"
;
TASTE
::
Position_In_File
=>
[
line
=>
12
;
column
=>
1
;
];
--
what
kind
of
type
is
this
?
TASTE
::
ASN1_Basic_Type
=>
aINTEGER
;
END
T_UInt8
;
DATA
IMPLEMENTATION
T_UInt8
.
impl
END
T_UInt8
.
impl
;
DATA
T_UInt8_Buffer_Max
END
T_UInt8_Buffer_Max
;
DATA
IMPLEMENTATION
T_UInt8_Buffer_Max
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_UInt8
PROPERTIES
Data_Model
::
Data_Representation
=>
array
;
Data_Model
::
Dimension
=>
(
8
);
--
Size
of
the
buffer
Source_Data_Size
=>
8
Bytes
;
--
Size
of
the
buffer
in
bytes
Data_Model
::
Base_Type
=>
(
classifier
(
DataView
::
Stream_Element_Buffer
));
END
T_UInt8_Buffer_Max
.
impl
;
DATA
T_UInt8_Buffer
END
T_UInt8_Buffer
;
DATA
IMPLEMENTATION
T_UInt8_Buffer
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
T_UInt8
SUBCOMPONENTS
Buffer
:
data
T_UInt8_Buffer_Max
.
impl
;
Length
:
data
Base_Types
::
Unsigned_32
;
PROPERTIES
Data_Model
::
Data_Representation
=>
Struct
;
Source_Data_Size
=>
24
Bytes
;
--
Size
of
the
buffer
in
bytes
END
T_UInt8_Buffer
.
impl
;
DATA
TASTE_Boolean
PROPERTIES
--
name
of
the
ASN
.1
source
file
:
Source_Text
=>
(
"/home/taste/tool-src/kazoo/test/Demo_CPP/DataView.asn"
);
TASTE
::
EncodingDefinitionFile
=>
classifier
(
DataView
::
ACN_DataView
);
TASTE
::
Ada_Package_Name
=>
"TASTE_Dataview"
;
Deployment
::
ASN1_Module_Name
=>
"TASTE-Dataview"
;
Source_Language
=>
(
ASN1
);
--
Size
of
a
buffer
to
cover
all
forms
of
message
representation
:
--
Real
message
size
is
1
;
suggested
aligned
message
buffer
is
...
Source_Data_Size
=>
8
Bytes
;
--
name
of
the
corresponding
data
type
in
the
source
file
:
Type_Source_Name
=>
"TASTE-Boolean"
;
TASTE
::
Position_In_File
=>
[
line
=>
5
;
column
=>
1
;
];
--
what
kind
of
type
is
this
?
TASTE
::
ASN1_Basic_Type
=>
aBOOLEAN
;
END
TASTE_Boolean
;
DATA
IMPLEMENTATION
TASTE_Boolean
.
impl
END
TASTE_Boolean
.
impl
;
DATA
TASTE_Boolean_Buffer_Max
END
TASTE_Boolean_Buffer_Max
;
DATA
IMPLEMENTATION
TASTE_Boolean_Buffer_Max
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
TASTE_Boolean
PROPERTIES
Data_Model
::
Data_Representation
=>
array
;
Data_Model
::
Dimension
=>
(
8
);
--
Size
of
the
buffer
Source_Data_Size
=>
8
Bytes
;
--
Size
of
the
buffer
in
bytes
Data_Model
::
Base_Type
=>
(
classifier
(
DataView
::
Stream_Element_Buffer
));
END
TASTE_Boolean_Buffer_Max
.
impl
;
DATA
TASTE_Boolean_Buffer
END
TASTE_Boolean_Buffer
;
DATA
IMPLEMENTATION
TASTE_Boolean_Buffer
.
impl
--
Buffer
to
hold
a
marshalled
data
of
type
TASTE_Boolean
SUBCOMPONENTS
Buffer
:
data
TASTE_Boolean_Buffer_Max
.
impl
;
Length
:
data
Base_Types
::
Unsigned_32
;
PROPERTIES
Data_Model
::
Data_Representation
=>
Struct
;
Source_Data_Size
=>
24
Bytes
;
--
Size
of
the
buffer
in
bytes
END
TASTE_Boolean_Buffer
.
impl
;
SYSTEM
Taste_DataView
END
Taste_DataView
;
SYSTEM
IMPLEMENTATION
Taste_DataView
.
others
SUBCOMPONENTS
T_Boolean
:
DATA
T_Boolean
.
impl
;
T_Int32
:
DATA
T_Int32
.
impl
;
T_Int8
:
DATA
T_Int8
.
impl
;
T_UInt32
:
DATA
T_UInt32
.
impl
;
T_UInt8
:
DATA
T_UInt8
.
impl
;
TASTE_Boolean
:
DATA
TASTE_Boolean
.
impl
;
END
Taste_DataView
.
others
;
DATA
ACN_DataView
PROPERTIES
Source_Text
=>
(
"/home/taste/tool-src/kazoo/test/Demo_CPP/DataView.acn"
);
Source_Language
=>
(
ACN
);
END
ACN_DataView
;
end
DataView
;
test/Demo_CPP/DataView.acn
0 → 100644
View file @
a6230be4
TASTE-Dataview DEFINITIONS ::= BEGIN
-- In this ACN model, you can specify custom binary encoding rules for
-- your data types. For example if you require a specific memory layout
-- for a record, or need to add padding fields, define endianness, etc.
-- you can do that with ACN. Refer to the ACN user manual for details.
-- TASTE-Boolean []
END
test/Demo_CPP/DataView.asn
0 → 100644
View file @
a6230be4
TASTE-Dataview DEFINITIONS ::=
BEGIN
IMPORTS T-Int32, T-UInt32, T-Int8, T-UInt8, T-Boolean FROM TASTE-BasicTypes;
TASTE-Boolean ::= BOOLEAN
-- ASN.1 Type definitions must start with an uppercase
-- Field names in records (SEQUENCE) must start with a lowercase
-- Underscores are not allowed: use dash (hyphen)
-- Simple types:
-- MyInteger ::= INTEGER (0..255)
-- MyReal ::= REAL (0.0 .. 1000.0)
-- MyBool ::= BOOLEAN
-- MyEnum ::= ENUMERATED { hello, world, how-are-you }
-- Complex types:
-- MySeq ::= SEQUENCE {
-- input-data MyInteger,
-- output-data MyInteger,
-- validity ENUMERATED { valid, invalid }
-- }
--
-- MyChoice ::= CHOICE {
-- a BOOLEAN,
-- b MySeq
-- }
--
-- MySeqOf ::= SEQUENCE (SIZE (2)) OF MyEnum
--
-- MyOctStr ::= OCTET STRING (SIZE (3))
--
-- -- You can also declare constants
-- myVar MySeqOf ::= { hello, world }
END
test/Demo_CPP/DeploymentView.aadl
0 → 100644
View file @
a6230be4
---------------------------------------------------
-- AADL2.1
-- TASTE type deploymentview
--
-- generated code: do not edit
---------------------------------------------------
PACKAGE deploymentview::DV::Node1
PUBLIC
WITH Taste;
WITH Deployment;
WITH TASTE_DV_Properties;
PROCESS x86_partition
END x86_partition;
PROCESS IMPLEMENTATION x86_partition.others
END x86_partition.others;
END deploymentview::DV::Node1;
PACKAGE deploymentview::DV
PUBLIC
WITH interfaceview::IV::Function1;
WITH interfaceview::IV::Function2;
WITH ocarina_processors_x86;
WITH deploymentview::DV::Node1;
WITH Taste;
WITH Deployment;
WITH interfaceview::IV;
WITH TASTE_DV_Properties;
SYSTEM Node1
END Node1;
SYSTEM IMPLEMENTATION Node1.others
SUBCOMPONENTS
IV_Function1 : SYSTEM interfaceview::IV::Function1::Function1.others {
Taste::FunctionName => "Function1";
};
IV_Function2 : SYSTEM interfaceview::IV::Function2::Function2.others {
Taste::FunctionName => "Function2";
};
x86_partition : PROCESS deploymentview::DV::Node1::x86_partition.others {
Taste::coordinates => "96228 74011 128176 96928";
Deployment::Port_Number => 0;
};
x86_linux : PROCESSOR ocarina_processors_x86::x86.linux {
Taste::coordinates => "92234 67463 132170 100202";
};
PROPERTIES
Taste::APLC_Binding => (reference (x86_partition)) APPLIES TO IV_Function1;
Taste::APLC_Binding => (reference (x86_partition)) APPLIES TO IV_Function2;
Actual_Processor_Binding => (reference (x86_linux)) APPLIES TO x86_partition;
END Node1.others;
SYSTEM deploymentview
END deploymentview;
SYSTEM IMPLEMENTATION deploymentview.others
SUBCOMPONENTS
Node1 : SYSTEM Node1.others {
Taste::coordinates => "87242 58109 137162 104879";
};
interfaceview : SYSTEM interfaceview::IV::interfaceview.others;
END deploymentview.others;
PROPERTIES
Taste::coordinates => "0 0 297000 210000";
Taste::version => "2.0";
Taste::interfaceView => "InterfaceView.aadl";
Taste::HWLibraries => ("../../../tool-inst/share/ocarina/AADLv2/ocarina_components.aadl");
END deploymentview::DV;
test/Demo_CPP/InterfaceView.aadl
0 → 100644
View file @
a6230be4
---------------------------------------------------
-- AADL2.1
-- TASTE type interfaceview
--
-- generated code: do not edit
---------------------------------------------------
PACKAGE interfaceview::IV::Function1
PUBLIC
WITH interfaceview::IV::Function2;