Skip to content

Commit 954c9de

Browse files
committed
Final clean-up
Signed-off-by: Jaehyun Kim <[email protected]>
1 parent 81ac1d1 commit 954c9de

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

src/rsz/src/RepairDesign.cc

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,6 @@ bool RepairDesign::makeRepeater(
20082008
bool keep_input;
20092009
Instance* parent = nullptr;
20102010
Pin* driver_pin = nullptr;
2011-
Instance* driver_instance_parent = nullptr;
20122011
PinSet repeater_load_pins(db_network_);
20132012
Pin* buffer_ip_pin = nullptr;
20142013
Pin* buffer_op_pin = nullptr;
@@ -2328,7 +2327,6 @@ bool RepairDesign::makeRepeater(
23282327

23292328
Point buf_loc(x, y);
23302329
buffer = resizer_->makeBuffer(buffer_cell, reason, parent, buf_loc);
2331-
driver_instance_parent = parent;
23322330

23332331
inserted_buffer_count_++;
23342332
buffer_ip_pin = nullptr;
@@ -2471,7 +2469,6 @@ bool RepairDesign::makeRepeater(
24712469
// net, a new net, without having to make a new one).
24722470
//
24732471

2474-
// jk: fix
24752472
Net* driver_hier_net
24762473
= db_network_->dbToSta(db_network_->hierNet(driver_pin));
24772474
db_network_->connectPin(buffer_ip_pin, buffer_ip_net, driver_hier_net);
@@ -2493,47 +2490,6 @@ bool RepairDesign::makeRepeater(
24932490
db_network_->flatPin(load_pin));
24942491
}
24952492

2496-
//
2497-
// renormalize the buffer_op_pin
2498-
// We have copied a lot of stuff to the buffer output
2499-
// net. If we have introduced a new hierarchical connection
2500-
// driven by the buffer output pin, make sure all the
2501-
// related pins are updated to use the hierarchical net.
2502-
//
2503-
2504-
// jk: needed?
2505-
// odb::dbModNet* buffer_op_pin_mod_net
2506-
// = db_network_->hierNet(buffer_op_pin);
2507-
// dbNet* buffer_op_pin_flat_net = db_network_->flatNet(buffer_op_pin);
2508-
// if (buffer_op_pin_mod_net) {
2509-
// db_network_->disconnectPin(buffer_op_pin);
2510-
// db_network_->connectPin(buffer_op_pin,
2511-
// db_network_->dbToSta(buffer_op_pin_flat_net),
2512-
// db_network_->dbToSta(buffer_op_pin_mod_net));
2513-
//}
2514-
2515-
// renormalize the driver pin. We have moved a lot of stuff
2516-
// off the driver net, possibly moving away any hierarchical
2517-
// So detect any hierarchical nets reachable from driver pin
2518-
// at this level of hierarchy and renormalize.
2519-
2520-
// jk: needed?
2521-
// odb::dbModNet* driver_pin_mod_net
2522-
// // = db_network_->findModNetForPin(driver_pin); // buggy. it returns
2523-
// // "any" dbModNet
2524-
// = db_network_->hierNet(driver_pin);
2525-
2526-
// if (driver_pin_mod_net && (driver_pin_mod_net->connectionCount() == 1))
2527-
// {
2528-
// db_network_->disconnectPin(driver_pin, (Net*) driver_pin_mod_net);
2529-
// } else {
2530-
// dbNet* driver_pin_flat_net = db_network_->flatNet(driver_pin);
2531-
// db_network_->disconnectPin(driver_pin);
2532-
// db_network_->connectPin(driver_pin,
2533-
// db_network_->dbToSta(driver_pin_flat_net),
2534-
// db_network_->dbToSta(driver_pin_mod_net));
2535-
// }
2536-
25372493
} else /* case 2 */ {
25382494
//
25392495
// case 2. One of the loads is a primary output or a dont touch
@@ -2548,7 +2504,6 @@ bool RepairDesign::makeRepeater(
25482504
db_network_->disconnectPin(driver_pin);
25492505

25502506
out_net = load_net;
2551-
Net* ip_net = new_net;
25522507
dbNet* op_net_db = load_db_net;
25532508
dbNet* ip_net_db = db_network_->staToDb(new_net);
25542509
ip_net_db->setSigType(op_net_db->getSigType());

0 commit comments

Comments
 (0)