PandA-2024.02
functional_unit_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  */
41 #ifndef FUNCTIONAL_UNIT_STEP_HPP
42 #define FUNCTIONAL_UNIT_STEP_HPP
43 
45 #include "design_flow_step.hpp"
46 
48 #include "custom_map.hpp"
49 #include "refcount.hpp"
50 
51 class functional_unit;
56 
60 class FunctionalUnitStep : public virtual DesignFlowStep
61 {
62  protected:
65 
68 
70  unsigned int has_first_synthesis_id;
71 
74 
85  virtual void AnalyzeCell(functional_unit* fu, const unsigned int prec,
86  const std::vector<std::string>& portsize_parameters, const size_t portsize_index,
87  const std::vector<std::string>& pipe_parameters, const size_t stage_index,
88  const unsigned int constPort, const bool is_commutative, size_t max_lut_size) = 0;
89 
94  virtual void AnalyzeFu(const technology_nodeRef f_unit);
95 
99  technology_nodeRef create_template_instance(const technology_nodeRef& fu_template, const std::string& name,
100  unsigned int prec);
101 
102  public:
109  FunctionalUnitStep(const generic_deviceRef _device, const DesignFlowManagerConstRef design_flow_manager,
111 
115  ~FunctionalUnitStep() override;
116 
120  void Initialize() override;
121 };
122 #endif
generic device description
technology_nodeRef create_template_instance(const technology_nodeRef &fu_template, const std::string &name, unsigned int prec)
Create a template instance to be specialized.
FunctionalUnitStep(const generic_deviceRef _device, const DesignFlowManagerConstRef design_flow_manager, const ParameterConstRef parameters)
Constructor.
The base class for design step.
CustomOrderedMap< T, U > CustomMap
Definition: custom_map.hpp:167
This class specifies the characteristic of a particular functional unit.
redefinition of map to manage ordered/unordered structures
Base class for step of design flow.
unsigned int has_first_synthesis_id
The id of the first analyzed cell of a sequence of cells which differ for the position of the constan...
This class manages the technology library structures.
const Wrefcount< const DesignFlowManager > design_flow_manager
The design flow manager.
const ParameterConstRef parameters
Set of input parameters.
Template definition of refcount.
const technology_managerRef TM
Technology manager.
This class manages the specific library structure.
virtual void AnalyzeCell(functional_unit *fu, const unsigned int prec, const std::vector< std::string > &portsize_parameters, const size_t portsize_index, const std::vector< std::string > &pipe_parameters, const size_t stage_index, const unsigned int constPort, const bool is_commutative, size_t max_lut_size)=0
Analyze the single cell.
REF_FORWARD_DECL(library_manager)
void Initialize() override
Initialize the step (i.e., like a constructor, but executed just before exec.
CustomMap< unsigned int, unsigned int > DSP_y_to_DSP_x
The sizes of available DSPs.
const generic_deviceRef device
device information
virtual void AnalyzeFu(const technology_nodeRef f_unit)
Analyze all the cells built starting from a template.
~FunctionalUnitStep() override
Destructor.
Abstract pure class for the technology structure.
Step which loads device dependent technology information.

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