53 if(_Param->isOption(OPT_clock_period))
55 auto clock_period_value = _Param->getOption<
double>(OPT_clock_period);
65 if(Param->isOption(OPT_xml_input_configuration))
69 auto fn = Param->getOption<std::string>(OPT_xml_input_configuration);
75 const xml_element* node = parser.get_document()->get_root_node();
78 for(
const auto& iter : list)
80 const auto* Enode = GetPointer<const xml_element>(iter);
85 if(Enode->get_name() ==
"device")
94 catch(
const char* msg)
96 THROW_ERROR(
"Error during technology file parsing: " + std::string(msg));
98 catch(
const std::string& msg)
100 THROW_ERROR(
"Error during technology file parsing: " + msg);
102 catch(
const std::exception& ex)
104 THROW_ERROR(
"Error during technology file parsing: " + std::string(ex.what()));
108 THROW_ERROR(
"Error during technology file parsing");
generic device description
refcount< HLS_device > HLS_deviceRef
refcount definition of class
Class specification of the manager of the technology library data structures.
void set_parameter(const std::string &key, G value)
Sets the value of the parameter.
This class manages the technology library structures.
const ParameterConstRef Param
class containing all the parameters
utility function used to read files.
std::list< xml_nodeRef > node_list
type for list of xml nodes
#define THROW_ERROR(str_expr)
helper function used to throw an error in a standard way
const technology_managerRef TM
technology manager
~HLS_device() override
Destructor.
HLS_device(const ParameterConstRef &Param, const technology_managerRef &TM)
Constructor.
Template borrowed from the ANTLR library by Terence Parr (http://www.jGuru.com - Software rights: htt...
refcount< technology_manager > technology_managerRef
this class is used to manage the command-line or XML options.
Some macro used to interface with the XML library.
node_list const & get_children()
Obtain the list of child nodes.
Generic device description.
HLS specialization of generic_device.
static HLS_deviceRef factory(const ParameterRef &Param)
Factory method from XML file.