52 #include <boost/algorithm/string.hpp> 58 const std::string& _default_output_dir)
59 :
SynthesisTool(_Param, _tool_exec, _device, _output_dir, _default_output_dir)
80 std::ostringstream script;
84 std::string script_string = script.str();
90 if(std::filesystem::exists(file_name))
92 std::filesystem::remove_all(file_name);
96 std::ofstream file_stream(file_name.c_str());
97 file_stream << script_string << std::endl;
103 switch(node->nodeType)
148 switch(node->nodeType)
170 result +=
"-" + *(par->
name);
192 result += *(comm->
name);
void remove_escaped(std::string &ioString)
Function converting all the escaped characters in the associated character.
Wrapper to synthesis tools by Xilinx.
#define STR(s)
Macro which performs a lexical_cast to a string.
Auxiliary methods for manipulating string.
static bool evaluate_condition(const std::string *condition)
Evaluates a string condition.
map_t parameter_values
Map between the name of the parameter and the corresponding string-based value.
#define NOT_YET_IMPLEMENTED()
helper function to mark points not yet implemented
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.
utility function used to read files.
~XilinxWrapper() override
Destructor.
#define THROW_ERROR(str_expr)
helper function used to throw an error in a standard way
std::vector< xml_parameter_tRef > parameters
void generate_synthesis_script(const DesignParametersRef &dp, const std::string &file_name) override
Creates the proper configuration script.
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.
XilinxWrapper(const ParameterConstRef &Param, const std::string &tool_exec, const generic_deviceRef &device, const std::string &_output_dir, const std::string &_default_output_dir)
Constructor.
std::string getStringValue(const xml_script_node_tRef node, const DesignParametersRef &dp) const override
Returns the string-based representation of the XML element.
std::string toString(const xml_script_node_tRef node, const DesignParametersRef dp) const override
Returns the string-based representation of the XML element.
String entry of a multiple values variable (set).