Skip to content

Commit 5d036e6

Browse files
author
Muhammad Haris Zafar
committed
Replacing api set_node_ptc_num, from related .cpp/.h files, with respective needed api
1 parent 36ec9ba commit 5d036e6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

vpr/src/route/clock_connection_builders.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ RRNodeId RoutingToClockConnection::create_virtual_clock_network_sink_node(int x,
106106
}
107107
int ptc = max_ptc + 1;
108108

109-
rr_graph.set_node_ptc_num(node_index, ptc);
109+
rr_graph_builder.set_node_class_num(node_index, ptc);
110110
rr_graph_builder.set_node_coordinates(node_index, x, y, x, y);
111111
rr_graph_builder.set_node_capacity(node_index, 1);
112112
rr_graph.set_node_cost_index(node_index, RRIndexedDataId(SINK_COST_INDEX));

vpr/src/route/rr_graph.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ static void build_rr_sinks_sources(RRGraphBuilder& rr_graph_builder,
14331433
float R = 0.;
14341434
float C = 0.;
14351435
L_rr_node.set_node_rc_index(inode, find_create_rr_rc_data(R, C));
1436-
L_rr_node.set_node_ptc_num(inode, iclass);
1436+
rr_graph_builder.set_node_class_num(inode, iclass);
14371437
}
14381438

14391439
/* Connect IPINS to SINKS and initialize OPINS */
@@ -1481,7 +1481,7 @@ static void build_rr_sinks_sources(RRGraphBuilder& rr_graph_builder,
14811481
float R = 0.;
14821482
float C = 0.;
14831483
L_rr_node.set_node_rc_index(inode, find_create_rr_rc_data(R, C));
1484-
L_rr_node.set_node_ptc_num(inode, ipin);
1484+
rr_graph_builder.set_node_pin_num(inode, ipin);
14851485

14861486
//Note that we store the grid tile location and side where the pin is located,
14871487
//which greatly simplifies the drawing code
@@ -1671,7 +1671,7 @@ static void build_rr_chan(RRGraphBuilder& rr_graph_builder,
16711671
float C = length * seg_details[track].Cmetal();
16721672
L_rr_node.set_node_rc_index(node, find_create_rr_rc_data(R, C));
16731673

1674-
L_rr_node.set_node_ptc_num(node, track);
1674+
rr_graph_builder.set_node_track_num(node, track);
16751675
rr_graph_builder.set_node_type(node, chan_type);
16761676
L_rr_node.set_node_direction(node, seg_details[track].direction());
16771677
}

vpr/src/route/rr_graph_uxsdcxx_serializer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
604604
RRNodeId node_id = node.id();
605605

606606
rr_graph_builder_->set_node_coordinates(node_id, xlow, ylow, xhigh, yhigh);
607-
node.set_ptc_num(ptc);
607+
rr_graph_builder_->set_node_ptc_num(node_id, ptc);
608608
return inode;
609609
}
610610
inline void finish_node_loc(int& /*inode*/) final {}

0 commit comments

Comments
 (0)