PandA-2024.02
technology_flow_step.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  */
40 #ifndef TECHNOLOGY_FLOW_STEP_HPP
41 #define TECHNOLOGY_FLOW_STEP_HPP
42 
44 #include "config_HAVE_CIRCUIT_BUILT.hpp"
45 
47 #include "design_flow_step.hpp"
48 
50 #include <string>
51 
53 #include "refcount.hpp"
54 
57 
59 {
61 #if HAVE_CIRCUIT_BUILT
62  LOAD_BUILTIN_TECHNOLOGY,
63 #endif
69 };
70 
71 #if NO_ABSEIL_HASH
72 
76 namespace std
77 {
78  template <>
79  struct hash<TechnologyFlowStep_Type> : public unary_function<TechnologyFlowStep_Type, size_t>
80  {
81  size_t operator()(TechnologyFlowStep_Type design_flow_step) const
82  {
83  hash<int> hasher;
84  return hasher(static_cast<int>(design_flow_step));
85  }
86  };
87 } // namespace std
88 #endif
89 
91 {
92  protected:
95 
98 
101 
107  ComputeTechnologyRelationships(const DesignFlowStep::RelationshipType relationship_type) const = 0;
108 
109  public:
119  const DesignFlowManagerConstRef design_flow_manager,
120  const TechnologyFlowStep_Type technology_flow_step_type, const ParameterConstRef parameters);
121 
126  std::string GetSignature() const override;
127 
133  static const std::string EnumToName(const TechnologyFlowStep_Type technology_flow_step_type);
134 
140  static const std::string ComputeSignature(const TechnologyFlowStep_Type technology_flow_step_type);
141 
146  std::string GetName() const override;
147 
153  void ComputeRelationships(DesignFlowStepSet& steps,
154  const DesignFlowStep::RelationshipType relationship_type) override;
155 
159  DesignFlowStepFactoryConstRef CGetDesignFlowStepFactory() const override;
160 
165  bool HasToBeExecuted() const override;
166 };
167 #endif
generic device description
RelationshipType
The relationship type.
The base class for design step.
Definition of hash function for EdgeDescriptor.
Definition: graph.hpp:1321
Base class for step of design flow.
This class manages the technology library structures.
const technology_managerRef TM
The technology manager.
TechnologyFlowStep_Type technology_flow_step_type
The type of step.
Template definition of refcount.
TechnologyFlowStep_Type
REF_FORWARD_DECL(generic_device)
Autoheader include.
const generic_deviceRef target
The target device.

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