Skip to content

Commit cbc2344

Browse files
author
Muhammad Haris Zafar
committed
Replacing api add_side from respective .cpp/.h files
1 parent ed3539f commit cbc2344

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

vpr/src/route/rr_graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ static void build_rr_sinks_sources(RRGraphBuilder& rr_graph_builder,
14941494
//for the pin on all sides at which it exists
14951495
//As such, multipler driver problem can be avoided.
14961496
rr_graph_builder.set_node_coordinates(inode, i + width_offset, j + height_offset, i + width_offset, j + height_offset);
1497-
L_rr_node.add_node_side(inode, side);
1497+
rr_graph_builder.add_node_side(inode, side);
14981498

14991499
// Sanity check
15001500
VTR_ASSERT(rr_graph.is_node_on_specific_side(RRNodeId(inode), side));

vpr/src/route/rr_graph_uxsdcxx_serializer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
630630

631631
inline void set_node_loc_side(uxsd::enum_loc_side side, int& inode) final {
632632
auto node = (*rr_nodes_)[inode];
633+
RRNodeId node_id = node.id();
633634
const auto& rr_graph = (*rr_graph_);
634635

635636
if (uxsd::enum_loc_side::UXSD_INVALID == side) {
@@ -643,7 +644,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
643644
std::bitset<NUM_SIDES> sides_to_add = from_uxsd_loc_side(side);
644645
for (const e_side& side_to_add : SIDES) {
645646
if (sides_to_add[side_to_add]) {
646-
node.add_side(side_to_add);
647+
rr_graph_builder_->add_node_side(node_id, side_to_add);
647648
}
648649
}
649650
}

0 commit comments

Comments
 (0)