@@ -3413,29 +3413,19 @@ void Resizer::createNewTieCellForLoadPin(const Pin* load_pin,
34133413 odb::dbModITerm* load_mod_iterm = nullptr ;
34143414 db_network_->staToDb (load_pin, load_iterm, load_bterm, load_mod_iterm);
34153415
3416+ std::string connection_name = " net" ;
3417+
34163418 // load_pin is a flat pin
34173419 if (load_iterm) {
34183420 // Connect the tie instance output pin to the load pin.
3419- // - It automatically disconnects the existing connection of load pin
3420- std::string connection_name
3421- = fmt::format (" {}_{}" ,
3422- db_network_->name (new_tie_inst),
3423- new_tie_iterm->getMTerm ()->getName ());
3424- load_iterm->disconnect ();
3421+ load_iterm->disconnect (); // This is required
34253422 db_network_->hierarchicalConnect (
34263423 new_tie_iterm, load_iterm, connection_name.c_str ());
34273424 return ;
34283425 }
34293426
34303427 // load_pin is a hier pin
34313428 if (load_mod_iterm) {
3432- // Connect the tie instance output pin to the load pin.
3433- // - It automatically disconnects the existing connection of load pin
3434- std::string connection_name
3435- = fmt::format (" {}_{}" ,
3436- db_network_->name (new_tie_inst),
3437- new_tie_iterm->getMTerm ()->getName ());
3438-
34393429 // Should not disconnect load_mod_iterm first. hierarchicalConnect() will
34403430 // handle it. If load_mod_iterm is disconnected first,
34413431 // hierarchicalConnect() cannot find the matching flat net with the
@@ -3449,10 +3439,6 @@ void Resizer::createNewTieCellForLoadPin(const Pin* load_pin,
34493439 if (load_bterm) {
34503440 // Create a new net and connect both the tie cell output and the top-level
34513441 // port to it.
3452- std::string connection_name
3453- = fmt::format (" {}_{}" ,
3454- db_network_->name (new_tie_inst),
3455- new_tie_iterm->getMTerm ()->getName ());
34563442 Net* new_net = db_network_->makeNet (
34573443 connection_name.c_str (), parent, odb::dbNameUniquifyType::IF_NEEDED);
34583444 new_tie_iterm->connect (db_network_->staToDb (new_net));
0 commit comments