PandA-2024.02
aadl_information.hpp
Go to the documentation of this file.
1 /*
2  *
3  * _/_/_/ _/_/ _/ _/ _/_/_/ _/_/
4  * _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/
5  * _/_/_/ _/_/_/_/ _/ _/_/ _/ _/ _/_/_/_/
6  * _/ _/ _/ _/ _/ _/ _/ _/ _/
7  * _/ _/ _/ _/ _/ _/_/_/ _/ _/
8  *
9  * ***********************************************
10  * PandA Project
11  * URL: http://panda.dei.polimi.it
12  * Politecnico di Milano - DEIB
13  * System Architectures Group
14  * ***********************************************
15  * Copyright (C) 2015-2024 Politecnico di Milano
16  *
17  * This file is part of the PandA framework.
18  *
19  * The PandA framework is free software; you can redistribute it and/or modify
20  * it under the terms of the GNU General Public License as published by
21  * the Free Software Foundation; either version 3 of the License, or
22  * (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program. If not, see <http://www.gnu.org/licenses/>.
31  *
32  */
41 #ifndef AADL_INFORMATION_HPP
42 #define AADL_INFORMATION_HPP
43 
45 #include <string>
46 
48 #include <list>
49 
51 #include "custom_map.hpp"
52 #include "refcount.hpp"
53 
55 
57 {
58  protected:
61 
67  std::string Normalize(const std::string& name) const;
68 
69  public:
72  {
73  using EndianessType = enum { BIG_ENDIANESS, LITTLE_ENDIANESS, NATIVE_ENDIANESS };
74 
76  std::string name;
77 
79  std::string asn_type;
80 
83 
84  using Direction = enum { IN, OUT, INOUT };
85 
88 
90  unsigned int num_registers;
91 
93  unsigned long long int bambu_address;
94 
96  bool pointer;
97 
101  AadlParameter();
102 
106  static EndianessType Endianess(const std::string& endianess_string);
107 
111  static Direction GetDirection(const std::string& direction_string);
112  };
113 
115  std::map<std::string, std::list<AadlParameter>> function_parameters;
116 
118  std::list<std::string> top_functions_names;
119 
122 
125 
131  void AddAsnType(const std::string& name, const AsnTypeRef& asn_type);
132 
137  AsnTypeRef CGetAsnType(const std::string& name) const;
138 };
141 #endif
unsigned long long int bambu_address
The bambu address.
Direction direction
The direction of the parameter.
std::list< std::string > top_functions_names
The top functions in the order in which they are specified in the aadl file.
AsnTypeRef CGetAsnType(const std::string &name) const
Get an asn_type.
std::string name
The name of the parameter;.
REF_FORWARD_DECL(AsnType)
STD include.
std::string asn_type
The type of the parameter.
CustomMap< std::string, unsigned long long int > exposed_memory_sizes
For each function the exposed size of internal memory.
CustomOrderedMap< T, U > CustomMap
Definition: custom_map.hpp:167
unsigned int num_registers
The number of bambu registers to be allocated.
static Direction GetDirection(const std::string &direction_string)
Return the direction.
redefinition of map to manage ordered/unordered structures
EndianessType endianess
The endianess.
enum { IN, OUT, INOUT } Direction
bool pointer
True if the parameter is a pointer.
std::string Normalize(const std::string &name) const
Normalize asn_type name.
enum { BIG_ENDIANESS, LITTLE_ENDIANESS, NATIVE_ENDIANESS } EndianessType
CustomMap< std::string, unsigned long long int > internal_memory_sizes
For each function the size of internal memory.
void AddAsnType(const std::string &name, const AsnTypeRef &asn_type)
Add an asn_type.
std::map< std::string, std::list< AadlParameter > > function_parameters
For each function the list of parameters.
Template definition of refcount.
CustomMap< std::string, AsnTypeRef > asn_types
The asn types.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Definition: refcount.hpp:94
Strucutre containing the characteristics of a parameter.
static EndianessType Endianess(const std::string &endianess_string)
Return the endianess.

Generated on Mon Feb 12 2024 13:02:54 for PandA-2024.02 by doxygen 1.8.13