Skip to content

Commit f9bfe6d

Browse files
committed
[vpr] debugging
1 parent da0d678 commit f9bfe6d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libs/librrgraph/src/base/rr_graph_builder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ std::string RRGraphBuilder::node_ptc_nums_to_string(RRNodeId node) const {
256256
std::string ret;
257257
if (node_ptc_nums_.empty()) {
258258
ret = std::to_string(node_storage_.node_ptc_num(node));
259+
// VTR_LOG("Node ptc single: %d -> string %s\n", node_storage_.node_ptc_num(node), ret.c_str());
259260
} else {
260261
VTR_ASSERT(size_t(node) < node_ptc_nums_.size());
261262
for (size_t iptc = 0; iptc < node_ptc_nums_[node].size(); iptc++) {

libs/librrgraph/src/io/gen/rr_graph_uxsdcxx.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4021,6 +4021,7 @@ inline void write_node(T &in, std::ostream &os, Context &context){
40214021
os << "<loc";
40224022
os << " layer=\"" << in.get_node_loc_layer(child_context) << "\"";
40234023
os << " ptc=\"" << in.get_node_loc_ptc(child_context) << "\"";
4024+
VTR_LOG("RR graph writer io ptc: %s\n", in.get_node_loc_ptc(child_context));
40244025
if((bool)in.get_node_loc_side(child_context))
40254026
os << " side=\"" << lookup_loc_side[(int)in.get_node_loc_side(child_context)] << "\"";
40264027
if((bool)in.get_node_loc_twist(child_context))

libs/librrgraph/src/io/rr_graph_uxsdcxx_serializer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
713713
}
714714

715715
inline const char* get_node_loc_ptc(const t_rr_node& node) final {
716+
// VTR_LOG("RR graph writer ptc: %s\n", rr_graph_builder_->node_ptc_nums_to_string(node.id()).c_str());
716717
return rr_graph_builder_->node_ptc_nums_to_string(node.id()).c_str();
717718
}
718719
inline int get_node_loc_layer(const t_rr_node& node) final {

0 commit comments

Comments
 (0)