libopenfpga/libarchopenfpga/src/write_xml_simulation_setting.cpp
/********************************************************************
 * A writer to output a simulator option in a simulation setting to XML format
 *******************************************************************/
A writer to output a simulator option in a simulation setting to XML format
A writer to output a simulator option in a simulation setting to XML format
static 
void write_xml_simulator_option(std::fstream& fp,
                                const char* fname,
                                const openfpga::SimulationSetting& sim_setting) {
  openfpga::check_file_stream(fname, fp);
  fp << "\t" << "<simulator_option>" << "\n";
  fp << "\t\t" << "<operating_condition";
  write_xml_attribute(fp, "temperature", sim_setting.simulation_temperature());
  fp << "/>" << "\n";
  fp << "\t\t" << "<output_log";
  write_xml_attribute(fp, "verbose", sim_setting.verbose_output());
  write_xml_attribute(fp, "captab", sim_setting.capacitance_output());
  fp << "/>" << "\n";
  fp << "\t\t" << "<accuracy";
  write_xml_attribute(fp, "type", SIM_ACCURACY_TYPE_STRING[sim_setting.simulation_accuracy_type()]);
  write_xml_attribute(fp, "value", sim_setting.simulation_accuracy());
  fp << "/>" << "\n";
  fp << "\t\t" << "<runtime";
  write_xml_attribute(fp, "fast_simulation", sim_setting.fast_simulation());
  fp << "/>" << "\n";
  fp << "\t" << "</simulator_option>" << "\n";
}
static void write_xml_simulator_option ( std :: fstream & fp , const char * fname , const openfpga :: SimulationSetting & sim_setting ) { openfpga :: check_file_stream ( fname , fp ) ; fp << " \t " << " " << " \n " ; fp << " \t \t " << " " ; write_xml_attribute ( fp , " " , sim_setting . simulation_temperature ( ) ) ; fp << " " << " \n " ; fp << " \t \t " << " " ; write_xml_attribute ( fp , " " , sim_setting . verbose_output ( ) ) ; write_xml_attribute ( fp , " " , sim_setting . capacitance_output ( ) ) ; fp << " " << " \n " ; fp << " \t \t " << " " ; write_xml_attribute ( fp , " " , SIM_ACCURACY_TYPE_STRING [ sim_setting . simulation_accuracy_type ( ) ] ) ; write_xml_attribute ( fp , " " , sim_setting . simulation_accuracy ( ) ) ; fp << " " << " \n " ; fp << " \t \t " << " " ; write_xml_attribute ( fp , " " , sim_setting . fast_simulation ( ) ) ; fp << " " << " \n " ; fp << " \t " << " " << " \n " ; }
A writer to output a simulator option in a simulation setting to XML format
A writer to output a simulator option in a simulation setting to XML format
/* Validate the file stream */