Skip to content

Commit 32387d7

Browse files
committed
mpl: weigh nets with IO pins as regular nets
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
1 parent 3e09946 commit 32387d7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/mpl/src/clusterEngine.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,6 +1910,8 @@ void ClusteringEngine::clearConnections()
19101910

19111911
void ClusteringEngine::buildNetListConnections()
19121912
{
1913+
const float connection_weight = 1.0;
1914+
19131915
for (odb::dbNet* net : block_->getNets()) {
19141916
if (!isValidNet(net)) {
19151917
continue;
@@ -1929,11 +1931,9 @@ void ClusteringEngine::buildNetListConnections()
19291931
}
19301932
}
19311933

1932-
bool net_has_io_pin = false;
19331934
if (tree_->io_pads.empty()) {
19341935
for (odb::dbBTerm* bterm : net->getBTerms()) {
19351936
const int cluster_id = tree_->maps.bterm_to_cluster_id.at(bterm);
1936-
net_has_io_pin = true;
19371937

19381938
if (bterm->getIoType() == odb::dbIoType::INPUT) {
19391939
driver_cluster_id = cluster_id;
@@ -1945,13 +1945,12 @@ void ClusteringEngine::buildNetListConnections()
19451945

19461946
if (driver_cluster_id != -1 && !load_clusters_ids.empty()
19471947
&& load_clusters_ids.size() < tree_->large_net_threshold) {
1948-
const float weight = net_has_io_pin ? tree_->virtual_weight : 1.0;
19491948
Cluster* driver_cluster = tree_->maps.id_to_cluster.at(driver_cluster_id);
19501949

19511950
for (const int load_cluster_id : load_clusters_ids) {
19521951
if (load_cluster_id != driver_cluster_id) {
19531952
Cluster* load_cluster = tree_->maps.id_to_cluster.at(load_cluster_id);
1954-
connect(driver_cluster, load_cluster, weight);
1953+
connect(driver_cluster, load_cluster, connection_weight);
19551954
}
19561955
}
19571956
}

0 commit comments

Comments
 (0)