libopenfpga/libarchopenfpga/src/write_xml_circuit_library.cpp
/********************************************************************
 * A writer to output wire parasitics of a circuit model to XML format
 *******************************************************************/
A writer to output wire parasitics of a circuit model to XML format
A writer to output wire parasitics of a circuit model to XML format
static 
void write_xml_wire_param(std::fstream& fp,
                          const char* fname,
                          const CircuitLibrary& circuit_lib,
                          const CircuitModelId& model) {
  openfpga::check_file_stream(fname, fp);
  fp << "\t\t\t" << "<wire_param"; 
  write_xml_attribute(fp, "model_type", WIRE_MODEL_TYPE_STRING[circuit_lib.wire_type(model)]); 
  write_xml_attribute(fp, "R", std::to_string(circuit_lib.wire_r(model)).c_str()); 
  write_xml_attribute(fp, "C", std::to_string(circuit_lib.wire_c(model)).c_str()); 
  write_xml_attribute(fp, "num_level", std::to_string(circuit_lib.wire_num_level(model)).c_str()); 
  fp << "/>" << "\n";
}
static void write_xml_wire_param ( std :: fstream & fp , const char * fname , const CircuitLibrary & circuit_lib , const CircuitModelId & model ) { openfpga :: check_file_stream ( fname , fp ) ; fp << " \t \t \t " << " " ; write_xml_attribute ( fp , " " , WIRE_MODEL_TYPE_STRING [ circuit_lib . wire_type ( model ) ] ) ; write_xml_attribute ( fp , " " , std :: to_string ( circuit_lib . wire_r ( model ) ) . c_str ( ) ) ; write_xml_attribute ( fp , " " , std :: to_string ( circuit_lib . wire_c ( model ) ) . c_str ( ) ) ; write_xml_attribute ( fp , " " , std :: to_string ( circuit_lib . wire_num_level ( model ) ) . c_str ( ) ) ; fp << " " << " \n " ; }
A writer to output wire parasitics of a circuit model to XML format
A writer to output wire parasitics of a circuit model to XML format
/* Validate the file stream */ /* Finish all the attributes, we can return here */