PandA-2024.02
|
#include <DesignParameters.hpp>
Public Types | |
using | map_t = std::map< std::string, std::string > |
Parameters map type. More... | |
Public Member Functions | |
DesignParametersRef | clone () const |
Returns a clone of the current parameter configuration. More... | |
void | assign (const std::string &name, const std::string &value, bool checkExisting) |
Assigns a value to a saved parameter. More... | |
std::string | get_value (const std::string &name) const |
Returns the value associated with a parameter name. More... | |
Data Fields | |
std::string | component_name |
Name of the component. More... | |
std::string | chain_name |
Name of the flow. More... | |
map_t | parameter_values |
Map between the name of the parameter and the corresponding string-based value. More... | |
Definition at line 55 of file DesignParameters.hpp.
using DesignParameters::map_t = std::map<std::string, std::string> |
Parameters map type.
Definition at line 64 of file DesignParameters.hpp.
|
inline |
Assigns a value to a saved parameter.
In case the parameter has not been defined before, it creates a new parameter, or if checking only for existing values, an exception is thrown.
name | Parameter name. |
value | Parameter value. |
checkExisting | Check if the parameter name is already defined. |
Definition at line 90 of file DesignParameters.hpp.
References THROW_ERROR, and symmetry::value.
Referenced by bash_flow_wrapper::EvaluateVariables(), nxpython_flow_wrapper::EvaluateVariables(), lattice_flow_wrapper::EvaluateVariables(), vivado_flow_wrapper::EvaluateVariables(), ngdbuild_wrapper::EvaluateVariables(), par_wrapper::EvaluateVariables(), map_wrapper::EvaluateVariables(), trce_wrapper::EvaluateVariables(), xst_wrapper::EvaluateVariables(), bash_flow_wrapper::generate_synthesis_script(), NanoXploreWrapper::generate_synthesis_script(), QuartusPowerWrapper::generate_synthesis_script(), LatticeWrapper::generate_synthesis_script(), AlteraWrapper::generate_synthesis_script(), XilinxWrapper::generate_synthesis_script(), and xst_wrapper::GenerateProjectFile().
|
inline |
Returns a clone of the current parameter configuration.
Definition at line 72 of file DesignParameters.hpp.
References chain_name, component_name, parameter_values, and lenet_tvm::params.
Referenced by BackendFlow::CreateScripts().
|
inline |
Returns the value associated with a parameter name.
name | Parameter name. |
Definition at line 108 of file DesignParameters.hpp.
References THROW_ERROR.
Referenced by xst_wrapper::EvaluateVariables(), and xst_wrapper::GenerateProjectFile().
std::string DesignParameters::chain_name |
Name of the flow.
Definition at line 61 of file DesignParameters.hpp.
Referenced by clone(), BackendFlow::CreateScripts(), XilinxTasteBackendFlow::GenerateSynthesisScripts(), BackendFlow::GenerateSynthesisScripts(), and BackendFlow::xload().
std::string DesignParameters::component_name |
Name of the component.
Definition at line 58 of file DesignParameters.hpp.
Referenced by clone(), XilinxTasteBackendFlow::create_cf(), XilinxBackendFlow::create_cf(), vivado_flow_wrapper::create_sdc(), AlteraBackendFlow::create_sdc(), LatticeBackendFlow::create_sdc(), BashBackendFlow::create_sdc(), BackendFlow::CreateScripts(), QuartusPowerWrapper::EvaluateVariables(), bash_flow_wrapper::EvaluateVariables(), nxpython_flow_wrapper::EvaluateVariables(), Quartus13ReportWrapper::EvaluateVariables(), QuartusReportWrapper::EvaluateVariables(), lattice_flow_wrapper::EvaluateVariables(), vivado_flow_wrapper::EvaluateVariables(), XilinxTasteBackendFlow::GenerateSynthesisScripts(), BackendFlow::GenerateSynthesisScripts(), and XilinxBackendFlow::parse_timing().
map_t DesignParameters::parameter_values |
Map between the name of the parameter and the corresponding string-based value.
Definition at line 67 of file DesignParameters.hpp.
Referenced by AlteraBackendFlow::CheckSynthesisResults(), LatticeBackendFlow::CheckSynthesisResults(), BashBackendFlow::CheckSynthesisResults(), NanoXploreBackendFlow::CheckSynthesisResults(), XilinxBackendFlow::CheckSynthesisResults(), clone(), XilinxTasteBackendFlow::create_cf(), XilinxBackendFlow::create_cf(), vivado_flow_wrapper::create_sdc(), AlteraBackendFlow::create_sdc(), LatticeBackendFlow::create_sdc(), BashBackendFlow::create_sdc(), BackendFlow::CreateScripts(), xml_script_node_t::evaluate_condition(), QuartusPowerWrapper::EvaluateVariables(), bash_flow_wrapper::EvaluateVariables(), nxpython_flow_wrapper::EvaluateVariables(), Quartus13ReportWrapper::EvaluateVariables(), lattice_flow_wrapper::EvaluateVariables(), QuartusReportWrapper::EvaluateVariables(), vivado_flow_wrapper::EvaluateVariables(), map_wrapper::EvaluateVariables(), trce_wrapper::EvaluateVariables(), XilinxWrapper::generate_synthesis_script(), XilinxTasteBackendFlow::GenerateSynthesisScripts(), BackendFlow::GenerateSynthesisScripts(), xst_wrapper::get_command_line(), BashBackendFlow::InitDesignParameters(), NanoXploreBackendFlow::InitDesignParameters(), AlteraBackendFlow::InitDesignParameters(), LatticeBackendFlow::InitDesignParameters(), XilinxBackendFlow::InitDesignParameters(), and SynthesisTool::replace_parameters().