Skip to content

Commit 9b850d5

Browse files
authored
Merge pull request #8522 from AcKoucher/mpl-remove-unneeded-terminals
mpl: remove unused member variables in BundledNet object
2 parents b6c92cb + d3832f0 commit 9b850d5

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/mpl/src/hier_rtlmp.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,8 +1478,6 @@ void HierRTLMP::placeChildren(Cluster* parent, bool ignore_std_cell_area)
14781478
soft_macro_id_map[tree_->maps.id_to_cluster[cluster1]->getName()],
14791479
soft_macro_id_map[tree_->maps.id_to_cluster[cluster2]->getName()],
14801480
tree_->virtual_weight);
1481-
net.src_cluster_id = cluster1;
1482-
net.target_cluster_id = cluster2;
14831481
nets.push_back(net);
14841482
}
14851483

@@ -1500,8 +1498,6 @@ void HierRTLMP::placeChildren(Cluster* parent, bool ignore_std_cell_area)
15001498
if (src_id > cluster_id) {
15011499
BundledNet net(
15021500
soft_macro_id_map[src_name], soft_macro_id_map[name], weight);
1503-
net.src_cluster_id = src_id;
1504-
net.target_cluster_id = cluster_id;
15051501
nets.push_back(net);
15061502
}
15071503
}
@@ -2329,9 +2325,6 @@ std::vector<BundledNet> HierRTLMP::computeBundledNets(
23292325
for (auto [cluster_id, weight] : macro_cluster->getConnectionsMap()) {
23302326
BundledNet net(
23312327
cluster_to_macro.at(src_id), cluster_to_macro.at(cluster_id), weight);
2332-
2333-
net.src_cluster_id = src_id;
2334-
net.target_cluster_id = cluster_id;
23352328
nets.push_back(net);
23362329
}
23372330
}

src/mpl/src/object.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ class SoftMacro
489489
bool align_flag_ = false;
490490
};
491491

492-
// In our netlist model, we only have two-pin nets
493492
struct BundledNet
494493
{
495494
BundledNet(int src, int target, float weight)
@@ -498,12 +497,6 @@ struct BundledNet
498497
this->weight = weight;
499498
}
500499

501-
BundledNet(const std::pair<int, int>& terminals, float weight)
502-
{
503-
this->terminals = terminals;
504-
this->weight = weight;
505-
}
506-
507500
bool operator==(const BundledNet& net)
508501
{
509502
return (terminals.first == net.terminals.first)
@@ -512,11 +505,6 @@ struct BundledNet
512505

513506
std::pair<int, int> terminals; // source_id <--> target_id (undirected)
514507
float weight; // Number of bundled connections (can be timing-related)
515-
516-
// In our framework, we only bundled connections between clusters.
517-
// Thus each net must have both src_cluster_id and target_cluster_id
518-
int src_cluster_id = -1;
519-
int target_cluster_id = -1;
520508
};
521509

522510
struct SequencePair

0 commit comments

Comments
 (0)