PandA-2024.02
XilinxBackendFlow.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  */
44 #ifndef _XILINX_BACKEND_FLOW_HPP_
45 #define _XILINX_BACKEND_FLOW_HPP_
46 
48 #include "BackendFlow.hpp"
49 
50 #include "refcount.hpp"
52 
53 #define PARAM_ucf_file "ucf_file"
54 #define PARAM_xcf_file "xcf_file"
55 #define PARAM_vivado_sources_macro_list "vivado_sources_macro_list"
56 #define PARAM_yosys_vivado_sources_macro_list "yosys_vivado_sources_macro_list"
57 #define PARAM_vivado_report "vivado_report"
58 #define PARAM_vivado_timing_report "vivado_timing_report"
59 
61 {
62  protected:
64  std::map<std::string, double> design_values;
65 
69  virtual void create_cf(const DesignParametersRef dp, bool xst);
70 
74  void WriteFlowConfiguration(std::ostream& script) override;
75 
79  void CheckSynthesisResults() override;
80 
84  void xparse_xst_utilization(const std::string& fn);
85 
89  void parse_DSPs(const std::string& log_file);
90 
94  void xparse_map_utilization(const std::string& fn);
95 
100  void vivado_xparse_utilization(const std::string& fn);
101 
105  void xparse_timing(const std::string& fn);
106 
110  void parse_timing(const std::string& log_file);
111 
112  public:
116  XilinxBackendFlow(const ParameterConstRef Param, const std::string& flow_name, const generic_deviceRef _device);
117 
121  ~XilinxBackendFlow() override;
122 
126  void InitDesignParameters() override;
127 
131  void ExecuteSynthesis() override;
132 };
135 
136 #endif
generic device description
void parse_DSPs(const std::string &log_file)
retrieve the number of DSPs from the xst log
void xparse_timing(const std::string &fn)
Fixed the parsing of timing results from trce.
~XilinxBackendFlow() override
Destructor.
std::string flow_name
string-based identifier of the flow
void parse_timing(const std::string &log_file)
Fixed the parsing of timing results from xst.
void vivado_xparse_utilization(const std::string &fn)
parse vivado results
void CheckSynthesisResults() override
Checks the synthesis results and fills the corresponding data-structures.
virtual void create_cf(const DesignParametersRef dp, bool xst)
Creates the UCF file.
void ExecuteSynthesis() override
Checks if the execution can be performed and, in case, performs the synthesis.
XilinxBackendFlow(const ParameterConstRef Param, const std::string &flow_name, const generic_deviceRef _device)
Constructor.
void xparse_map_utilization(const std::string &fn)
Parses the utilization file in XML format.
const ParameterConstRef Param
class containing all the parameters
void InitDesignParameters() override
Initializes the parameters.
Template definition of refcount.
std::map< std::string, double > design_values
results from the synthesis
This file contains the definition of the configurable flow for generating and executing synthesis scr...
void WriteFlowConfiguration(std::ostream &script) override
Writes the proper flow configuration in the output script.
void xparse_xst_utilization(const std::string &fn)
Parses the utilization file in XML format.
REF_FORWARD_DECL(generic_device)
superclass include

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