libopenfpga/libarchopenfpga/src/write_xml_simulation_setting.cpp
/********************************************************************
 * A writer to output a measurement setting in a simulation setting to XML format
 *******************************************************************/
A writer to output a measurement setting in a simulation setting to XML format
A writer to output a measurement setting in a simulation setting to XML format
static 
void write_xml_measurement(std::fstream& fp,
                           const char* fname,
                           const openfpga::SimulationSetting& sim_setting) {
  openfpga::check_file_stream(fname, fp);
  fp << "\t" << "<measurement_setting>" << "\n";
  fp << "\t\t" << "<slew>" << "\n";
  write_xml_slew_measurement(fp, fname, sim_setting, SIM_SIGNAL_RISE);
  write_xml_slew_measurement(fp, fname, sim_setting, SIM_SIGNAL_FALL);
  fp << "\t\t" << "</slew>" << "\n";
  fp << "\t\t" << "<delay>" << "\n";
  write_xml_delay_measurement(fp, fname, sim_setting, SIM_SIGNAL_RISE);
  write_xml_delay_measurement(fp, fname, sim_setting, SIM_SIGNAL_FALL);
  fp << "\t\t" << "</delay>" << "\n";
  fp << "\t" << "</measurement_setting>" << "\n";
}
static void write_xml_measurement ( std :: fstream & fp , const char * fname , const openfpga :: SimulationSetting & sim_setting ) { openfpga :: check_file_stream ( fname , fp ) ; fp << " \t " << " " << " \n " ; fp << " \t \t " << " " << " \n " ; write_xml_slew_measurement ( fp , fname , sim_setting , SIM_SIGNAL_RISE ) ; write_xml_slew_measurement ( fp , fname , sim_setting , SIM_SIGNAL_FALL ) ; fp << " \t \t " << " " << " \n " ; fp << " \t \t " << " " << " \n " ; write_xml_delay_measurement ( fp , fname , sim_setting , SIM_SIGNAL_RISE ) ; write_xml_delay_measurement ( fp , fname , sim_setting , SIM_SIGNAL_FALL ) ; fp << " \t \t " << " " << " \n " ; fp << " \t " << " " << " \n " ; }
A writer to output a measurement setting in a simulation setting to XML format
A writer to output a measurement setting in a simulation setting to XML format
/* Validate the file stream */