PandA-2024.02
hls.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) 2004-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  */
46 #ifndef HLS_HPP
47 #define HLS_HPP
48 
49 #include "op_graph.hpp"
50 #include "refcount.hpp"
51 
52 #include <iosfwd>
53 #include <iostream>
54 
74 class xml_element;
75 enum class HLSFlowStep_Type;
77 
83 class hls
84 {
85  public:
87  unsigned int functionId;
88 
91 
94 
97 
100 
103 
104  // -------------- High Level Synthesis Specific -------------- //
105 
108 
111 
112  // -------------- High Level Synthesis Results -------------- //
113 
116 
119 
122 
125 
128 
131 
134 
137 
140 
143 
144  // -------------- high level synthesis structural representation -------------- //
145 
150 
153 
156 
159 
162 
165 
166  // -------------- Parameters -------------- //
167 
170 
173 
176 
179 
180  // -------------- Constructor & Destructor -------------- //
181 
185  hls(const ParameterConstRef Param, unsigned int function_id, OpVertexSet operations, const HLS_deviceRef HLS_D,
186  const HLS_constraintsRef HLS_C);
187 
191  ~hls();
192 
197  void xload(const xml_element* rootnode, const OpGraphConstRef data);
198 
203  void xwrite(xml_element* rootnode, const OpGraphConstRef data);
204 
205  // -------------- Printing helpers -------------- //
206 
216  void print(std::ostream& os) const;
217 
224  void PrintScheduling() const;
225 
233  void print_register_binding(std::ostream& os) const;
234 
242  void print_register_grouping(std::ostream& os) const;
243 
251  void print_connection_binding(std::ostream& os) const;
252 
256  void PrintResources() const;
257 
261  friend std::ostream& operator<<(std::ostream& os, const hls& s)
262  {
263  s.print(os);
264  return os;
265  }
266 };
269 
270 #endif
long HLS_execution_time
HLS execution time.
Definition: hls.hpp:178
structural_managerRef datapath
Store the datapath description.
Definition: hls.hpp:155
const ParameterConstRef Param
class containing all the parameters
Definition: hls.hpp:169
Class managing the register binding.
Definition: reg_binding.hpp:70
Class managing the schedule of the operations.
Definition: schedule.hpp:118
void print_register_grouping(std::ostream &os) const
Prints on stream the register grouping (if it has been performed).
This class manages the circuit structures.
const HLS_deviceRef HLS_D
reference to the information representing the target for the synthesis
Definition: hls.hpp:107
AllocationInformationRef allocation_information
Store the technology information.
Definition: hls.hpp:115
OpVertexSet operations
Set representing the subset of operations in the specification to be implemented. ...
Definition: hls.hpp:102
void xwrite(xml_element *rootnode, const OpGraphConstRef data)
Writes current HLS results to XML node.
Definition: hls.cpp:188
Class used to manage a graph into finite state machine representation; it contains methods to build t...
A set of operation vertices.
Definition: op_graph.hpp:654
HLSFlowStep_Type controller_type
The type of controller to be instantiated.
Definition: hls.hpp:90
void print_connection_binding(std::ostream &os) const
Prints on stream the connection binding (if it has been performed).
void PrintScheduling() const
Prints on stream the scheduling (if it has been performed).
structural_managerRef top
Store the top description.
Definition: hls.hpp:164
bool registered_inputs
true when the module has registered inputs
Definition: hls.hpp:147
hls(const ParameterConstRef Param, unsigned int function_id, OpVertexSet operations, const HLS_deviceRef HLS_D, const HLS_constraintsRef HLS_C)
Definition: hls.cpp:82
fu_bindingRef Rfu
Store the refcounted functional unit binding of the operations.
Definition: hls.hpp:121
ScheduleRef Rsch
Store the refcounted scheduling of the operations.
Definition: hls.hpp:118
StorageValueInformationRef storage_value_information
data-structure for storage values
Definition: hls.hpp:130
HLSFlowStep_Type
Definition: hls_step.hpp:95
HLSFlowStep_Type module_binding_algorithm
The type of module binding to be adopted.
Definition: hls.hpp:93
int output_level
verbosity level of the class
Definition: hls.hpp:175
Class managing the interconnection binding.
Data structure used to store all the HLS constraints.
reg_bindingRef Rreg
Store the refcounted register binding of the variables.
Definition: hls.hpp:133
~hls()
Destructor.
livenessRef Rliv
data-structure containing the variable liveness
Definition: hls.hpp:127
Template definition of refcount.
structural_managerRef controller
Store the controller description.
Definition: hls.hpp:158
void print(std::ostream &os) const
Prints the hls solution available up to now.
bool registered_done_port
true when the done port is registered
Definition: hls.hpp:149
structural_managerRef control_flow_checker
Store the description of the control flow checker.
Definition: hls.hpp:161
reg_bindingRef RregGroup
Store the refcounted register group binding of the variables.
Definition: hls.hpp:136
void print_register_binding(std::ostream &os) const
Prints on stream the register binding (if it has been performed).
HLSFlowStep_Type chaining_algorithm
The type of chaining algorithm to be adopted.
Definition: hls.hpp:96
Data structures used in operations graph.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Definition: refcount.hpp:94
void xload(const xml_element *rootnode, const OpGraphConstRef data)
Loads previous HLS results from XML node.
Definition: hls.cpp:104
void PrintResources() const
Prints the summary of allocated resources.
Definition: hls.cpp:304
unsigned int functionId
this is the identifier of the function to be implemented
Definition: hls.hpp:87
friend std::ostream & operator<<(std::ostream &os, const hls &s)
Friend definition of the << operator.
Definition: hls.hpp:261
StateTransitionGraphManagerRef STG
Store the refcounted state transition graph.
Definition: hls.hpp:124
Data structure that contains all information about high level synthesis process.
Definition: hls.hpp:83
Class managing the functional-unit binding.
Definition: fu_binding.hpp:90
const HLS_constraintsRef HLS_C
store the HLS constraints
Definition: hls.hpp:110
Class used to describe a particular graph with operations as nodes.
Definition: op_graph.hpp:783
REF_FORWARD_DECL(AllocationInformation)
CONSTREF_FORWARD_DECL(OpGraph)
conn_bindingRef Rconn
Store the refcounted interconnection of datapath elements.
Definition: hls.hpp:139
int debug_level
debugging level of the class
Definition: hls.hpp:172
ChainingInformationRef chaining_information
Store the refcounted chaining info.
Definition: hls.hpp:142
size_t call_sites_number
The number of call points to this function.
Definition: hls.hpp:152
HLSFlowStep_Type liveness_algorithm
The type of liveness algorithm to be adopted.
Definition: hls.hpp:99

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