libopenfpga/libarchopenfpga/src/write_xml_routing_circuit.cpp
/********************************************************************
 * Write direction connection circuit models in XML format
 *******************************************************************/
Write direction connection circuit models in XML format
Write direction connection circuit models in XML format
void write_xml_direct_circuit(std::fstream& fp,
                              const char* fname,
                              const CircuitLibrary& circuit_lib,
                              const ArchDirect& arch_direct) {
  if (0 == arch_direct.directs().size()) {
    return;
  }
  openfpga::check_file_stream(fname, fp);
  fp << "\t" << "<direct_connection>" << "\n";
  for (const ArchDirectId& direct_id : arch_direct.directs()) {
    write_xml_direct_component_circuit(fp, fname, std::string("direct"), circuit_lib, arch_direct, direct_id);
  }
  fp << "\t" << "</direct_connection>" << "\n";
}
void write_xml_direct_circuit ( std :: fstream & fp , const char * fname , const CircuitLibrary & circuit_lib , const ArchDirect & arch_direct ) { if ( 0 == arch_direct . directs ( ) . size ( ) ) { return ; } openfpga :: check_file_stream ( fname , fp ) ; fp << " \t " << " " << " \n " ; for ( const ArchDirectId & direct_id : arch_direct . directs ( ) ) { write_xml_direct_component_circuit ( fp , fname , std :: string ( " " ) , circuit_lib , arch_direct , direct_id ) ; } fp << " \t " << " " << " \n " ; }
Write direction connection circuit models in XML format
Write direction connection circuit models in XML format
/* If the direct2circuit is empty, we do not output XML */ /* Validate the file stream */ /* Write the root node */ /* Write each direct connection circuit definition */ /* Finish writing the root node */