libopenfpga/libarchopenfpga/src/write_xml_technology_library.cpp
/********************************************************************
 * A writer to output a device variation in a technology library to XML format
 *******************************************************************/
A writer to output a device variation in a technology library to XML format
A writer to output a device variation in a technology library to XML format
static 
void write_xml_device_variation(std::fstream& fp,
                                const char* fname,
                                const TechnologyLibrary& tech_lib,
                                const TechnologyVariationId& device_variation) {
  openfpga::check_file_stream(fname, fp);
  fp << "\t\t\t" << "<variation";
  write_xml_attribute(fp, "name", tech_lib.variation_name(device_variation).c_str());
  write_xml_attribute(fp, "abs_deviation", tech_lib.variation_abs_value(device_variation));
  write_xml_attribute(fp, "num_sigma", std::to_string(tech_lib.variation_num_sigma(device_variation)).c_str());
  fp << "/>" << "\n";
}
static void write_xml_device_variation ( std :: fstream & fp , const char * fname , const TechnologyLibrary & tech_lib , const TechnologyVariationId & device_variation ) { openfpga :: check_file_stream ( fname , fp ) ; fp << " \t \t \t " << " " ; write_xml_attribute ( fp , " " , tech_lib . variation_name ( device_variation ) . c_str ( ) ) ; write_xml_attribute ( fp , " " , tech_lib . variation_abs_value ( device_variation ) ) ; write_xml_attribute ( fp , " " , std :: to_string ( tech_lib . variation_num_sigma ( device_variation ) ) . c_str ( ) ) ; fp << " " << " \n " ; }
A writer to output a device variation in a technology library to XML format
A writer to output a device variation in a technology library to XML format
/* Validate the file stream */ /* Write up name of the device variation */