[engine] fixed all the remaining syntax errors due to API mismatches

This commit is contained in:
tangxifan 2022-09-01 09:57:12 -07:00
parent 7c5046cf4e
commit ee87b5c348
1 changed files with 5 additions and 4 deletions

View File

@ -123,7 +123,7 @@ void write_rr_gsb_chan_connection_to_xml(std::fstream& fp,
if (include_rr_info) { if (include_rr_info) {
fp << "\" node_id=\"" << size_t(cur_rr_node) fp << "\" node_id=\"" << size_t(cur_rr_node)
<< "\" segment_id=\"" << size_t(src_segment_id) << "\" segment_id=\"" << size_t(src_segment_id)
<< "\" segment_name=\"" << rr_graph.get_segment(src_segment_id).name; << "\" segment_name=\"" << rr_graph.rr_segments(src_segment_id).name;
} }
fp << "\" mux_size=\"" << driver_rr_edges.size(); fp << "\" mux_size=\"" << driver_rr_edges.size();
if (include_rr_info) { if (include_rr_info) {
@ -141,7 +141,7 @@ void write_rr_gsb_chan_connection_to_xml(std::fstream& fp,
if (include_rr_info) { if (include_rr_info) {
fp << "\" node_id=\"" << size_t(cur_rr_node) fp << "\" node_id=\"" << size_t(cur_rr_node)
<< "\" segment_id=\"" << size_t(src_segment_id) << "\" segment_id=\"" << size_t(src_segment_id)
<< "\" segment_name=\"" << rr_graph.get_segment(src_segment_id).name << "\" segment_name=\"" << rr_graph.rr_segments(src_segment_id).name
<< "\" sb_module_pin_name=\"" << generate_sb_module_track_port_name(cur_node_type, oppo_side.get_side(), IN_PORT); << "\" sb_module_pin_name=\"" << generate_sb_module_track_port_name(cur_node_type, oppo_side.get_side(), IN_PORT);
} }
fp << "\"/>" fp << "\"/>"
@ -156,6 +156,7 @@ void write_rr_gsb_chan_connection_to_xml(std::fstream& fp,
SideManager driver_side(driver_node_side); SideManager driver_side(driver_node_side);
if (OPIN == rr_graph.node_type(driver_rr_node)) { if (OPIN == rr_graph.node_type(driver_rr_node)) {
SideManager grid_side(get_rr_graph_single_node_side(rr_graph, driver_rr_node));
fp << "\t\t<driver_node type=\"" << rr_node_typename[OPIN] fp << "\t\t<driver_node type=\"" << rr_node_typename[OPIN]
<< "\" side=\"" << driver_side.to_string() << "\" side=\"" << driver_side.to_string()
<< "\" index=\"" << driver_node_index; << "\" index=\"" << driver_node_index;
@ -174,7 +175,7 @@ void write_rr_gsb_chan_connection_to_xml(std::fstream& fp,
if (include_rr_info) { if (include_rr_info) {
fp << "\" node_id=\"" << size_t(driver_rr_node) fp << "\" node_id=\"" << size_t(driver_rr_node)
<< "\" segment_id=\"" << size_t(des_segment_id) << "\" segment_id=\"" << size_t(des_segment_id)
<< "\" segment_name=\"" << rr_graph.get_segment(des_segment_id).name << "\" segment_name=\"" << rr_graph.rr_segments(des_segment_id).name
<< "\" sb_module_pin_name=\"" << generate_sb_module_track_port_name(rr_graph.node_type(driver_rr_node), driver_side.get_side(), IN_PORT); << "\" sb_module_pin_name=\"" << generate_sb_module_track_port_name(rr_graph.node_type(driver_rr_node), driver_side.get_side(), IN_PORT);
} }
fp << "\"/>" fp << "\"/>"
@ -249,7 +250,7 @@ void write_rr_switch_block_to_xml(const std::string fname_prefix,
***************************************************************************************/ ***************************************************************************************/
static static
void write_rr_connection_block_to_xml(const std::string fname_prefix, void write_rr_connection_block_to_xml(const std::string fname_prefix,
const RRGraph& rr_graph, const RRGraphView& rr_graph,
const RRGSB& rr_gsb, const RRGSB& rr_gsb,
const t_rr_type& cb_type, const t_rr_type& cb_type,
const RRGSBWriterOption& options) { const RRGSBWriterOption& options) {