Skip to content

Commit 94b1a3b

Browse files
committed
[lib][rr_graph] add crr_id to t_rr_edge_info
1 parent 0415387 commit 94b1a3b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libs/librrgraph/src/base/rr_edge.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
#pragma once
22

3+
#include <string>
4+
35
#include "physical_types.h"
46
#include "librrgraph_types.h"
57
#include "rr_graph_fwd.h"
68

79
struct t_rr_edge_info {
8-
t_rr_edge_info(RRNodeId from, RRNodeId to, short type, bool is_remapped) noexcept
10+
t_rr_edge_info(RRNodeId from, RRNodeId to, short type, bool is_remapped, std::string crr_id_="") noexcept
911
: from_node(from)
1012
, to_node(to)
1113
, switch_type(type)
12-
, remapped(is_remapped) {}
14+
, remapped(is_remapped)
15+
, crr_id_(crr_id_) {}
1316

1417
RRNodeId from_node = RRNodeId::INVALID();
1518
RRNodeId to_node = RRNodeId::INVALID();
1619
short switch_type = LIBRRGRAPH_UNDEFINED_VAL;
1720
bool remapped = false;
21+
std::string crr_id_ = "";
1822

1923
friend bool operator<(const t_rr_edge_info& lhs, const t_rr_edge_info& rhs) {
2024
VTR_ASSERT(lhs.remapped == rhs.remapped);

0 commit comments

Comments
 (0)