From a79d286f615fcbc25164bad5ee8755fbac39cea2 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Fri, 22 Mar 2024 23:27:08 +0100 Subject: [PATCH] Cleanup --- src/db/db/dbHierNetworkProcessor.cc | 5 ++--- src/db/db/dbLayoutToNetlist.cc | 16 +++++++++------- src/db/unit_tests/dbNetlistExtractorTests.cc | 2 -- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/db/db/dbHierNetworkProcessor.cc b/src/db/db/dbHierNetworkProcessor.cc index d05560fab..0f54e4990 100644 --- a/src/db/db/dbHierNetworkProcessor.cc +++ b/src/db/db/dbHierNetworkProcessor.cc @@ -1848,7 +1848,6 @@ public: typename std::set::const_iterator cc = c; for (++cc; cc != sc->end (); ++cc) { mp_cell_clusters->join_cluster_with (*c, *cc); - // @@@ m_soft_connections.erase (std::make_pair (*c < *cc ? *c : *cc, *c < *cc ? *cc : *c)); } } @@ -2959,7 +2958,7 @@ hier_clusters::build_hier_connections (cell_clusters_box_converter &cbc, c if (! i->has_instance ()) { local.join_cluster_with (gcid, i->id ()); - local.remove_cluster (i->id ()); // @@@ actually required? + local.remove_cluster (i->id ()); // TODO: actually required? Should work without too ... } else { @@ -2970,7 +2969,7 @@ hier_clusters::build_hier_connections (cell_clusters_box_converter &cbc, c // shouldn't happen, but duplicate instances may trigger this } else if (other_id) { local.join_cluster_with (gcid, other_id); - local.remove_cluster (other_id); // @@@ actually required? + local.remove_cluster (other_id); // TODO: actually required? Should work without too ... } else { local.add_connection (gcid, *i); } diff --git a/src/db/db/dbLayoutToNetlist.cc b/src/db/db/dbLayoutToNetlist.cc index 9a8fc5bbc..bc865bdc5 100644 --- a/src/db/db/dbLayoutToNetlist.cc +++ b/src/db/db/dbLayoutToNetlist.cc @@ -397,7 +397,7 @@ void LayoutToNetlist::join_nets (const tl::GlobPattern &cell, const std::set= 41) { MemStatisticsCollector m (false); diff --git a/src/db/unit_tests/dbNetlistExtractorTests.cc b/src/db/unit_tests/dbNetlistExtractorTests.cc index 494e8dc32..0e2bf1c57 100644 --- a/src/db/unit_tests/dbNetlistExtractorTests.cc +++ b/src/db/unit_tests/dbNetlistExtractorTests.cc @@ -3356,7 +3356,6 @@ TEST(15_SoftConnections) conn.connect (rvia1, rmetal2); // extract the nets -#if 0 // @@@ std::list > jn; jn.push_back (std::set ()); @@ -3373,7 +3372,6 @@ TEST(15_SoftConnections) gp.push_back (tl::GlobPattern ("NEXT")); gp.push_back (tl::GlobPattern ("FB")); net_ex.set_joined_net_names (gp); -#endif net_ex.extract_nets (dss, 0, conn, nl, cl);