libopenfpga/libarchopenfpga/src/write_xml_openfpga_arch.cpp
/********************************************************************
 * A writer to output an OpenFPGA bitstream setting database to XML format
 *******************************************************************/
A writer to output an OpenFPGA bitstream setting database to XML format
A writer to output an OpenFPGA bitstream setting database to XML format
void write_xml_openfpga_bitstream_settings(const char* fname, 
                                           const openfpga::BitstreamSetting& openfpga_bitstream_setting) {
  vtr::ScopedStartFinishTimer timer("Write OpenFPGA bitstream settings");
  std::fstream fp;
  fp.open(std::string(fname), std::fstream::out | std::fstream::trunc);
  openfpga::check_file_stream(fname, fp);
  write_xml_bitstream_setting(fp, fname, openfpga_bitstream_setting);
  fp.close();
}
void write_xml_openfpga_bitstream_settings ( const char * fname , const openfpga :: BitstreamSetting & openfpga_bitstream_setting ) { vtr :: ScopedStartFinishTimer timer ( " " ) ; std :: fstream fp ; fp . open ( std :: string ( fname ) , std :: fstream :: out | std :: fstream :: trunc ) ; openfpga :: check_file_stream ( fname , fp ) ; write_xml_bitstream_setting ( fp , fname , openfpga_bitstream_setting ) ; fp . close ( ) ; }
A writer to output an OpenFPGA bitstream setting database to XML format
A writer to output an OpenFPGA bitstream setting database to XML format
/* Create a file handler */ /* Open the file stream */ /* Validate the file stream */ /* Write the simulation */ /* Close the file stream */