libopenfpga/libarchopenfpga/src/write_xml_routing_circuit.cpp
/********************************************************************
 * Write switch circuit model definition in XML format
 *******************************************************************/
Write switch circuit model definition in XML format
Write switch circuit model definition in XML format
static 
void write_xml_direct_component_circuit(std::fstream& fp,
                                         const char* fname,
                                         const std::string& direct_tag_name, 
                                         const CircuitLibrary& circuit_lib,
                                         const ArchDirect& arch_direct,
                                         const ArchDirectId& direct_id) {
  openfpga::check_file_stream(fname, fp);
  fp << "\t\t" << "<" << direct_tag_name;
  write_xml_attribute(fp, "name", arch_direct.name(direct_id).c_str()); 
  write_xml_attribute(fp, "circuit_model_name", circuit_lib.model_name(arch_direct.circuit_model(direct_id)).c_str()); 
  write_xml_attribute(fp, "type", DIRECT_TYPE_STRING[arch_direct.type(direct_id)]); 
  write_xml_attribute(fp, "x_dir", DIRECT_DIRECTION_STRING[arch_direct.x_dir(direct_id)]); 
  write_xml_attribute(fp, "y_dir", DIRECT_DIRECTION_STRING[arch_direct.y_dir(direct_id)]); 
  fp << "/>" << "\n";
}
static void write_xml_direct_component_circuit ( std :: fstream & fp , const char * fname , const std :: string & direct_tag_name , const CircuitLibrary & circuit_lib , const ArchDirect & arch_direct , const ArchDirectId & direct_id ) { openfpga :: check_file_stream ( fname , fp ) ; fp << " \t \t " << " " << direct_tag_name ; write_xml_attribute ( fp , " " , arch_direct . name ( direct_id ) . c_str ( ) ) ; write_xml_attribute ( fp , " " , circuit_lib . model_name ( arch_direct . circuit_model ( direct_id ) ) . c_str ( ) ) ; write_xml_attribute ( fp , " " , DIRECT_TYPE_STRING [ arch_direct . type ( direct_id ) ] ) ; write_xml_attribute ( fp , " " , DIRECT_DIRECTION_STRING [ arch_direct . x_dir ( direct_id ) ] ) ; write_xml_attribute ( fp , " " , DIRECT_DIRECTION_STRING [ arch_direct . y_dir ( direct_id ) ] ) ; fp << " " << " \n " ; }
Write switch circuit model definition in XML format
Write switch circuit model definition in XML format
/* Validate the file stream */ /* Iterate over the mapping */