70 if(option->checkCondition(dp))
90 std::ostringstream script;
94 std::string script_string = script.str();
100 if(std::filesystem::exists(file_name))
102 std::filesystem::remove_all(file_name);
105 std::ofstream file_stream(file_name.c_str());
106 file_stream << script_string << std::endl;
File containing functions and utilities to support the printing of debug messagges.
QuartusPowerWrapper(const ParameterConstRef Param, const std::string &_output_dir, const generic_deviceRef _device)
Constructor.
#define PRINT_DBG_MEX(dbgLevel, curDbgLevel, mex)
We are producing a debug version of the program, so the message is printed;.
void remove_escaped(std::string &ioString)
Function converting all the escaped characters in the associated character.
#define DEBUG_LEVEL_PEDANTIC
very verbose debugging print is performed.
void EvaluateVariables(const DesignParametersRef dp) override
Evaluates the design variables.
#define QUARTUS_POWER_TOOL_EXEC
void generate_synthesis_script(const DesignParametersRef &dp, const std::string &file_name) override
Creates the proper configuration script.
#define QUARTUS_POWER_TOOL_ID
std::string toString(const xml_script_node_tRef node, const DesignParametersRef dp) const override
Returns the string-based representation of the XML element.
Auxiliary methods for manipulating string.
map_t parameter_values
Map between the name of the parameter and the corresponding string-based value.
void assign(const std::string &name, const std::string &value, bool checkExisting)
Assigns a value to a saved parameter.
This file contains the definition of the parameters for the synthesis tools.
~QuartusPowerWrapper() override
Destructor.
std::string getStringValue(const xml_script_node_tRef node, const DesignParametersRef &dp) const override
Returns the string-based representation of the XML element.
Classes for handling configuration files.
#define PARAM_quartus_report
std::string get_command_line(const DesignParametersRef &dp) const override
Returns the proper command line.
std::string component_name
Name of the component.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
this class is used to manage the command-line or XML options.