2020-01-19 15:44:27 -06:00
|
|
|
#ifndef WRITE_XML_ROUTING_CIRCUIT_H
|
|
|
|
#define WRITE_XML_ROUTING_CIRCUIT_H
|
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Include header files that are required by function declaration
|
|
|
|
*******************************************************************/
|
|
|
|
#include <fstream>
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
|
2020-02-14 18:40:59 -06:00
|
|
|
#include "arch_direct.h"
|
2022-10-06 19:08:50 -05:00
|
|
|
#include "circuit_library.h"
|
2020-01-19 15:44:27 -06:00
|
|
|
|
|
|
|
/********************************************************************
|
|
|
|
* Function declaration
|
|
|
|
*******************************************************************/
|
2022-10-06 19:08:50 -05:00
|
|
|
void write_xml_cb_switch_circuit(
|
|
|
|
std::fstream& fp, const char* fname, const CircuitLibrary& circuit_lib,
|
|
|
|
const std::map<std::string, CircuitModelId>& switch2circuit);
|
2020-01-19 15:44:27 -06:00
|
|
|
|
2022-10-06 19:08:50 -05:00
|
|
|
void write_xml_sb_switch_circuit(
|
|
|
|
std::fstream& fp, const char* fname, const CircuitLibrary& circuit_lib,
|
|
|
|
const std::map<std::string, CircuitModelId>& switch2circuit);
|
2020-01-19 15:44:27 -06:00
|
|
|
|
2022-10-06 19:08:50 -05:00
|
|
|
void write_xml_routing_segment_circuit(
|
|
|
|
std::fstream& fp, const char* fname, const CircuitLibrary& circuit_lib,
|
|
|
|
const std::map<std::string, CircuitModelId>& seg2circuit);
|
2020-01-19 15:44:27 -06:00
|
|
|
|
2022-10-06 19:08:50 -05:00
|
|
|
void write_xml_direct_circuit(std::fstream& fp, const char* fname,
|
2020-01-19 16:00:19 -06:00
|
|
|
const CircuitLibrary& circuit_lib,
|
2020-02-14 18:40:59 -06:00
|
|
|
const ArchDirect& arch_direct);
|
2020-01-19 16:00:19 -06:00
|
|
|
|
2020-01-19 15:44:27 -06:00
|
|
|
#endif
|