Skip to content

Commit 0e0c9af

Browse files
Update tileable_rr_graph_gsb.cpp
1 parent f117218 commit 0e0c9af

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

vpr/src/tileable_rr_graph/tileable_rr_graph_gsb.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ void build_direct_connections_for_one_gsb(const RRGraphView& rr_graph,
17211721
/* Vib edge builder */
17221722
t_vib_map build_vib_map(const RRGraphView& rr_graph,
17231723
const DeviceGrid& grids,
1724-
const vtr::NdMatrix<const t_vib_inf*, 3>& vib_grid,
1724+
const vtr::NdMatrix<const VibInf*, 3>& vib_grid,
17251725
const RRGSB& rr_gsb,
17261726
const std::vector<t_segment_inf>& segment_inf,
17271727
const size_t& layer,
@@ -1732,10 +1732,10 @@ t_vib_map build_vib_map(const RRGraphView& rr_graph,
17321732

17331733
t_vib_map vib_map;
17341734

1735-
const t_vib_inf* vib = vib_grid[layer][actual_coordinate.x()][actual_coordinate.y()];
1735+
const VibInf* vib = vib_grid[layer][actual_coordinate.x()][actual_coordinate.y()];
17361736
auto phy_type = grids.get_physical_type({(int)actual_coordinate.x(), (int)actual_coordinate.y(), (int)layer});
1737-
VTR_ASSERT(!strcmp(vib->pbtype_name.c_str(), phy_type->name));
1738-
const std::vector<t_first_stage_mux_inf> first_stages = vib->first_stages;
1737+
VTR_ASSERT(!strcmp(vib->get_pbtype_name().c_str(), phy_type->name));
1738+
const std::vector<t_first_stage_mux_inf> first_stages = vib->get_first_stages();
17391739
for (size_t i_first_stage = 0; i_first_stage < first_stages.size(); i_first_stage++) {
17401740
std::vector<t_from_or_to_inf> froms = first_stages[i_first_stage].froms;
17411741
RRNodeId to_node = rr_graph.node_lookup().find_node(layer, actual_coordinate.x(), actual_coordinate.y(), MEDIUM, i_first_stage);
@@ -1744,7 +1744,7 @@ t_vib_map build_vib_map(const RRGraphView& rr_graph,
17441744
RRNodeId from_node;
17451745
if (from.from_type == PB) {
17461746

1747-
if (from.type_name != vib->pbtype_name) {
1747+
if (from.type_name != vib->get_pbtype_name()) {
17481748
VTR_LOGF_ERROR(__FILE__, __LINE__,
17491749
"Wrong from type name!\n");
17501750
exit(1);
@@ -1767,7 +1767,7 @@ t_vib_map build_vib_map(const RRGraphView& rr_graph,
17671767
t_segment_inf segment = segment_inf[from.type_index];
17681768
VTR_ASSERT(segment.name == from.type_name);
17691769
t_seg_group seg_group;
1770-
for (auto seg : vib->seg_groups) {
1770+
for (auto seg : vib->get_seg_groups()) {
17711771
if (seg.name == segment.name) {
17721772
seg_group = seg;
17731773
break;
@@ -1829,7 +1829,7 @@ t_vib_map build_vib_map(const RRGraphView& rr_graph,
18291829
}
18301830
}
18311831
/* Second stages*/
1832-
const std::vector<t_second_stage_mux_inf> second_stages = vib->second_stages;
1832+
const std::vector<t_second_stage_mux_inf> second_stages = vib->get_second_stages();
18331833
for (size_t i_second_stage = 0; i_second_stage < second_stages.size(); i_second_stage++) {
18341834
std::vector<t_from_or_to_inf> froms = second_stages[i_second_stage].froms;
18351835
std::vector<t_from_or_to_inf> tos = second_stages[i_second_stage].to;
@@ -1839,7 +1839,7 @@ t_vib_map build_vib_map(const RRGraphView& rr_graph,
18391839
RRNodeId to_node;
18401840
if (to.from_type == PB) {
18411841

1842-
if (to.type_name != vib->pbtype_name) {
1842+
if (to.type_name != vib->get_pbtype_name()) {
18431843
VTR_LOGF_ERROR(__FILE__, __LINE__,
18441844
"Wrong to type name!\n");
18451845
exit(1);
@@ -1862,7 +1862,7 @@ t_vib_map build_vib_map(const RRGraphView& rr_graph,
18621862
t_segment_inf segment = segment_inf[to.type_index];
18631863
VTR_ASSERT(segment.name == to.type_name);
18641864
t_seg_group seg_group;
1865-
for (auto seg : vib->seg_groups) {
1865+
for (auto seg : vib->get_seg_groups()) {
18661866
if (seg.name == segment.name) {
18671867
seg_group = seg;
18681868
break;
@@ -1917,7 +1917,7 @@ t_vib_map build_vib_map(const RRGraphView& rr_graph,
19171917
RRNodeId from_node;
19181918
if (from.from_type == PB) {
19191919

1920-
if (from.type_name != vib->pbtype_name) {
1920+
if (from.type_name != vib->get_pbtype_name()) {
19211921
VTR_LOGF_ERROR(__FILE__, __LINE__,
19221922
"Wrong from type name!\n");
19231923
exit(1);
@@ -1940,7 +1940,7 @@ t_vib_map build_vib_map(const RRGraphView& rr_graph,
19401940
t_segment_inf segment = segment_inf[from.type_index];
19411941
VTR_ASSERT(segment.name == from.type_name);
19421942
t_seg_group seg_group;
1943-
for (auto seg : vib->seg_groups) {
1943+
for (auto seg : vib->get_seg_groups()) {
19441944
if (seg.name == segment.name) {
19451945
seg_group = seg;
19461946
break;

0 commit comments

Comments
 (0)