PandA-2024.02
scheduling.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  */
48 #ifndef SCHEDULING_HPP
49 #define SCHEDULING_HPP
50 
51 #include "custom_map.hpp"
52 
53 #include "graph.hpp"
54 #include "hls_function_step.hpp"
55 #include "strong_typedef.hpp"
56 
60 
65 {
66  private:
73 
77 
78  protected:
82 
84  const bool speculation;
85 
91  virtual const CustomUnorderedSet<
92  std::tuple<HLSFlowStep_Type, HLSFlowStepSpecializationConstRef, HLSFlowStep_Relationship>>
93  ComputeHLSRelationships(const DesignFlowStep::RelationshipType relationship_type) const override;
94 
95  public:
101  Scheduling(
102  const ParameterConstRef Param, const HLS_managerRef HLSMgr, unsigned int funId,
103  const DesignFlowManagerConstRef design_flow_manager, const HLSFlowStep_Type hls_flow_step_type,
105 
109  ~Scheduling() override;
110 
116  {
117  return spec;
118  }
119 
123  void Initialize() override;
124 };
125 #endif
UINT_STRONG_TYPEDEF_FORWARD_DECL(ControlStep)
const HLS_managerRef HLSMgr
information about all the HLS synthesis
Definition: hls_step.hpp:205
Scheduling(const ParameterConstRef Param, const HLS_managerRef HLSMgr, unsigned int funId, const DesignFlowManagerConstRef design_flow_manager, const HLSFlowStep_Type hls_flow_step_type, const HLSFlowStepSpecializationConstRef hls_flow_step_specialization=HLSFlowStepSpecializationConstRef())
Constructor.
Definition: scheduling.cpp:62
RelationshipType
The relationship type.
const unsigned int funId
identifier of the function to be processed (0 means that it is a global step)
Class specification of the graph structures.
The base class for design step.
void Initialize() override
Initialize the step (i.e., like a constructor, but executed just before exec.
Definition: scheduling.cpp:73
CustomUnorderedMap< vertex, unsigned int > switch_map_size
store for each switch the number of outgoing branches.
Definition: scheduling.hpp:72
const HLSFlowStep_Type hls_flow_step_type
The type of this step.
Definition: hls_step.hpp:208
redefinition of map to manage ordered/unordered structures
REF_FORWARD_DECL(DesignFlowStep)
absl::flat_hash_map< T, U, Hash, Eq, Alloc > CustomUnorderedMap
Definition: custom_map.hpp:148
HLSFlowStep_Type
Definition: hls_step.hpp:95
This class macros for the definition of strong typedef.
const Wrefcount< const DesignFlowManager > design_flow_manager
The design flow manager.
CustomUnorderedMap< vertex, CustomUnorderedMapUnstable< unsigned int, unsigned int > > switch_normalizing_map
for each controlling vertex, it defines a relation between switch tags and branch tags ...
Definition: scheduling.hpp:75
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Definition: refcount.hpp:94
Generic class managing scheduling algorithms.
Definition: scheduling.hpp:64
Class used to describe a particular graph with operations as nodes.
Definition: op_graph.hpp:783
refcount< const HLSFlowStepSpecialization > HLSFlowStepSpecializationConstRef
const refcount definition of the class
Definition: hls_step.hpp:93
virtual const CustomUnorderedSet< std::tuple< HLSFlowStep_Type, HLSFlowStepSpecializationConstRef, HLSFlowStep_Relationship > > ComputeHLSRelationships(const DesignFlowStep::RelationshipType relationship_type) const override
Compute the relationship of this step.
Definition: scheduling.cpp:96
~Scheduling() override
Destructor.
const CustomUnorderedMap< vertex, bool > & get_spec() const
It returns speculation property map.
Definition: scheduling.hpp:115
Superclass include.
CustomUnorderedMap< vertex, bool > spec
Map for speculation property of each operation vertex.
Definition: scheduling.hpp:81
const HLSFlowStepSpecializationConstRef hls_flow_step_specialization
The information about specialization.
Definition: hls_step.hpp:211
CONSTREF_FORWARD_DECL(OpGraph)
const bool speculation
flag to check speculation
Definition: scheduling.hpp:84

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