Skip to content

Commit 6343061

Browse files
Update rr_gsb.h
1 parent a182a76 commit 6343061

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

vpr/src/tileable_rr_graph/rr_gsb.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ class RRGSB {
117117
/* get a rr_node at a given side and track_id for a connection block */
118118
RRNodeId get_cb_opin_node(const t_rr_type& cb_type, const e_side& side, const size_t& node_id) const;
119119

120+
/* Get the number of MEDIUM rr_nodes */
121+
size_t get_num_medium_nodes() const;
122+
123+
/* get a rr_node at a given ptc number */
124+
RRNodeId get_medium_node(const size_t& ptc) const;
125+
120126
int get_cb_chan_node_index(const t_rr_type& cb_type, const RRNodeId& node) const;
121127

122128
int get_chan_node_index(const e_side& node_side, const RRNodeId& node) const;
@@ -130,6 +136,11 @@ class RRGSB {
130136
/* Check if the node exist in the opposite side of this Switch Block */
131137
bool is_sb_node_exist_opposite_side(const RRGraphView& rr_graph, const RRNodeId& node, const e_side& node_side) const;
132138

139+
bool is_opin_node(const RRNodeId& node) const;
140+
bool is_ipin_node(const RRNodeId& node) const;
141+
bool is_medium_node(const RRNodeId& node) const;
142+
bool is_chan_node(const RRNodeId& node) const;
143+
133144
public: /* Accessors: to identify mirrors */
134145
/* check if the connect block exists in the GSB */
135146
bool is_cb_exist(const t_rr_type& cb_type) const;
@@ -186,6 +197,9 @@ class RRGSB {
186197
void add_opin_node(const RRNodeId& node,
187198
const e_side& node_side);
188199

200+
/* Add a node to the medium_node_ */
201+
void add_medium_node(const RRNodeId& medium_node);
202+
189203
/* Sort all the incoming edges for routing channel rr_node */
190204
void sort_chan_node_in_edges(const RRGraphView& rr_graph);
191205
/* Sort all the incoming edges for input pin rr_node */
@@ -269,6 +283,9 @@ class RRGSB {
269283
* Each CB may have OPINs from all sides
270284
*/
271285
std::array<std::array<std::vector<RRNodeId>, NUM_2D_SIDES>, 2> cb_opin_node_;
286+
287+
/* Medium Nodes Data */
288+
std::vector<RRNodeId> medium_node_;
272289
};
273290

274291
#endif

0 commit comments

Comments
 (0)