54 #include <boost/algorithm/string.hpp>    60                              const std::string& _default_output_dir)
    61     : 
SynthesisTool(_Param, _tool_exec, _device, _output_dir, _default_output_dir)
    76    std::ostringstream script;
    77    script << 
"##########################################################" << std::endl;
    78    script << 
"#     Automatically generated by the PandA framework     #" << std::endl;
    79    script << 
"##########################################################" << std::endl << std::endl;
    83    std::string script_string = script.str();
    89    if(std::filesystem::exists(file_name))
    91       std::filesystem::remove_all(file_name);
    94    std::ofstream file_stream(file_name.c_str());
    95    file_stream << script_string << std::endl;
   101    switch(node->nodeType)
   147    switch(node->nodeType)
   165             result += *(par->
name);
   198             result += *(comm->
name);
   206             result += *(comm->
value);
   217             result += 
" >> " + *(comm->
output);
   225          std::string 
result = 
"sh ";
   228             result += *(sh->
name);
   236             result += *(sh->
value);
   247             result += 
" >> " + *(sh->
output);
   257          for(
const auto& n : block)
   259             if(n->checkCondition(dp))
 
void remove_escaped(std::string &ioString)
Function converting all the escaped characters in the associated character. 
std::vector< xml_parameter_tRef > parameters
std::vector< xml_script_node_tRef > elseNodes
std::string toString(const xml_script_node_tRef node, const DesignParametersRef dp) const override
Returns the string-based representation of the XML element. 
#define STR(s)
Macro which performs a lexical_cast to a string. 
static bool evaluate_condition(const std::string *condition)
Evaluates a string condition. 
If/Then/Else block, evaluated at compile-time. 
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. 
void generate_synthesis_script(const DesignParametersRef &dp, const std::string &file_name) override
Creates the proper configuration script. 
utility function used to read files. 
std::string getStringValue(const xml_script_node_tRef node, const DesignParametersRef &dp) const override
Returns the string-based representation of the XML element. 
This file collects some utility functions and macros. 
#define THROW_ERROR(str_expr)
helper function used to throw an error in a standard way 
This struct specifies the block node. 
std::vector< xml_parameter_tRef > parameters
Classes for handling configuration files. 
std::string * singleValue
std::string * singleValue
std::vector< xml_set_entry_tRef > multiValues
std::vector< xml_set_entry_tRef > multiValues
Variable assignment, either single value or multiple entries set. 
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
Command line of the synthesis tool. 
this class is used to manage the command-line or XML options. 
Wrapper to synthesis tools by Altera. 
Command line of the native shell. 
AlteraWrapper(const ParameterConstRef &Param, const std::string &tool_exec, const generic_deviceRef &device, const std::string &output_dir, const std::string &default_output_dir)
Constructor. 
~AlteraWrapper() override
Destructor. 
std::vector< xml_script_node_tRef > thenNodes
String entry of a multiple values variable (set).