libopenfpga/libarchopenfpga/src/read_xml_technology_library.cpp
/********************************************************************
 * Parse XML codes of a <variation> to an object of technology library
 *******************************************************************/
Parse XML codes of a  to an object of technology library
Parse XML codes of a to an object of technology library
static 
void read_xml_device_variation(pugi::xml_node& xml_device_variation,
                               const pugiutil::loc_data& loc_data,
                               TechnologyLibrary& tech_lib) {
  TechnologyVariationId variation = tech_lib.add_variation(get_attribute(xml_device_variation, "name", loc_data).as_string());
  tech_lib.set_variation_abs_value(variation, get_attribute(xml_device_variation, "abs_deviation", loc_data).as_float(0.));
  tech_lib.set_variation_num_sigma(variation, get_attribute(xml_device_variation, "num_sigma", loc_data).as_int(0.));
}
static void read_xml_device_variation ( pugi :: xml_node & xml_device_variation , const pugiutil :: loc_data & loc_data , TechnologyLibrary & tech_lib ) { TechnologyVariationId variation = tech_lib . add_variation ( get_attribute ( xml_device_variation , " " , loc_data ) . as_string ( ) ) ; tech_lib . set_variation_abs_value ( variation , get_attribute ( xml_device_variation , " " , loc_data ) . as_float ( 0. ) ) ; tech_lib . set_variation_num_sigma ( variation , get_attribute ( xml_device_variation , " " , loc_data ) . as_int ( 0. ) ) ; }
Parse XML codes of a <variation> to an object of technology library
Parse XML codes of a <variation > to an object of technology library
/* Get the name of this variation and add it to the technology library */