libopenfpga/libarchopenfpga/src/write_xml_simulation_setting.cpp
/********************************************************************
 * A writer to output a monte carlo simulation setting
 * in a simulation setting to XML format
 *******************************************************************/
A writer to output a monte carlo simulation setting
in a simulation setting to XML format
A writer to output a monte carlo simulation setting in a simulation setting to XML format
static 
void write_xml_monte_carlo(std::fstream& fp,
                           const char* fname,
                           const openfpga::SimulationSetting& sim_setting) {
  openfpga::check_file_stream(fname, fp);
  if (false == sim_setting.run_monte_carlo_simulation()) {
    return;
  }
  fp << "\t\t" << "<monte_carlo";
  write_xml_attribute(fp, "num_simulation_points", std::to_string(sim_setting.monte_carlo_simulation_points()).c_str());
  fp << "/>" << "\n";
}
static void write_xml_monte_carlo ( std :: fstream & fp , const char * fname , const openfpga :: SimulationSetting & sim_setting ) { openfpga :: check_file_stream ( fname , fp ) ; if ( false == sim_setting . run_monte_carlo_simulation ( ) ) { return ; } fp << " \t \t " << " " ; write_xml_attribute ( fp , " " , std :: to_string ( sim_setting . monte_carlo_simulation_points ( ) ) . c_str ( ) ) ; fp << " " << " \n " ; }
A writer to output a monte carlo simulation setting
 in a simulation setting to XML format
A writer to output a monte carlo simulation setting in a simulation setting to XML format
/* Validate the file stream */ /* This is an optional setting,
   * If defined, we will output the monte carlo simulation
   */