Skip to content

Commit e3f8046

Browse files
committed
[vpr][route][crr] remove all_connections field from crr conneciton builder
1 parent 33313b6 commit e3f8046

File tree

2 files changed

+3
-45
lines changed

2 files changed

+3
-45
lines changed

vpr/src/route/rr_graph_generation/tileable_rr_graph/crr_generator/crr_connection_builder.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ CRRConnectionBuilder::CRRConnectionBuilder(const RRGraphView& rr_graph,
3030
, node_lookup_(node_lookup)
3131
, sb_manager_(sb_manager) {}
3232

33-
void CRRConnectionBuilder::initialize(
34-
int fpga_grid_x,
35-
int fpga_grid_y,
36-
bool is_annotated) {
33+
void CRRConnectionBuilder::initialize(int fpga_grid_x,
34+
int fpga_grid_y,
35+
bool is_annotated) {
3736

3837
fpga_grid_x_ = fpga_grid_x;
3938
fpga_grid_y_ = fpga_grid_y;
@@ -44,9 +43,6 @@ void CRRConnectionBuilder::initialize(
4443
total_locations_ = static_cast<size_t>(fpga_grid_x_ * fpga_grid_y_) - 4;
4544
processed_locations_ = 0;
4645

47-
all_connections_.resize(static_cast<size_t>(fpga_grid_x_ + 1),
48-
std::vector<std::vector<Connection>>(static_cast<size_t>(fpga_grid_y_ + 1)));
49-
5046
VTR_LOG("CRRConnectionBuilder initialized for %d x %d grid (%zu locations)\n",
5147
fpga_grid_x_, fpga_grid_y_, total_locations_);
5248
}

vpr/src/route/rr_graph_generation/tileable_rr_graph/crr_generator/crr_connection_builder.h

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ namespace crrgenerator {
1313
/**
1414
* @brief Builds connections between routing nodes based on switch block
1515
* configurations
16-
*
17-
* This class processes switch block configurations and generates routing
18-
* connections between nodes, supporting both parallel and sequential
19-
* processing.
2016
*/
2117
class CRRConnectionBuilder {
2218
public:
@@ -42,37 +38,6 @@ class CRRConnectionBuilder {
4238
*/
4339
std::vector<Connection> get_tile_connections(size_t tile_x, size_t tile_y) const;
4440

45-
/**
46-
* @brief Get all generated connections
47-
* @return Vector of all connections
48-
*/
49-
const std::vector<std::vector<std::vector<Connection>>>& get_all_connections() const {
50-
return all_connections_;
51-
}
52-
53-
/**
54-
* @brief Get connection count
55-
* @return Number of connections generated
56-
*/
57-
size_t get_connection_count() const {
58-
size_t count = 0;
59-
for (const auto& x : all_connections_) {
60-
for (const auto& y : x) {
61-
count += y.size();
62-
}
63-
}
64-
return count;
65-
}
66-
67-
/**
68-
* @brief Clear all connections
69-
*/
70-
void clear() { all_connections_.clear(); }
71-
void remove_tile_connections(int x, int y) {
72-
all_connections_[static_cast<size_t>(x)][static_cast<size_t>(y)].clear();
73-
all_connections_[static_cast<size_t>(x)][static_cast<size_t>(y)].shrink_to_fit();
74-
}
75-
7641
private:
7742
// Info from config
7843
int fpga_grid_x_;
@@ -84,9 +49,6 @@ class CRRConnectionBuilder {
8449
const NodeLookupManager& node_lookup_;
8550
const SwitchBlockManager& sb_manager_;
8651

87-
// Generated connections
88-
std::vector<std::vector<std::vector<Connection>>> all_connections_;
89-
9052
// Processing state
9153
std::atomic<size_t> processed_locations_{0};
9254
size_t total_locations_{0};

0 commit comments

Comments
 (0)