Skip to content

Commit f35cde6

Browse files
committed
[lib][rr_graph] add edge_crr_id methos
1 parent 4aaeb0f commit f35cde6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

libs/librrgraph/src/base/rr_graph_storage.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <numeric>
2121
#include <optional>
2222
#include <cstdint>
23+
#include <string>
2324
#include <vector>
2425

2526
/* Main structure describing one routing resource node. Everything in *
@@ -484,6 +485,10 @@ class t_rr_graph_storage {
484485
return edge_source_node(edge_id(id, iedge));
485486
}
486487

488+
std::string edge_crr_id(RREdgeId edge) const {
489+
return edge_crr_id_[edge];
490+
}
491+
487492
/**
488493
* @brief Get the switch used for the specified edge.
489494
*/

libs/librrgraph/src/base/rr_graph_view.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
*/
6464

6565
#include "metadata_storage.h"
66+
#include "rr_graph_fwd.h"
6667
#include "rr_node.h"
6768
#include "physical_types.h"
6869
#include "rr_node_types.h"
@@ -514,6 +515,10 @@ class RRGraphView {
514515
return node_storage_.edge_source_node(id, iedge);
515516
}
516517

518+
inline std::string edge_crr_id(RREdgeId edge) const {
519+
return node_storage_.edge_crr_id(edge);
520+
}
521+
517522
/** @brief Check if the edge is a configurable edge
518523
* @note A configurable edge represents a programmable switch between routing resources, which could be
519524
* - a multiplexer

0 commit comments

Comments
 (0)