From 90b9cf4c33b1394edb4517d77a28c5b9dfcf5c5d Mon Sep 17 00:00:00 2001 From: Augusto Berndt Date: Thu, 28 Nov 2024 20:27:00 +0000 Subject: [PATCH] gpl: update deltaArea_ in NBC for newly instantiated cells Signed-off-by: Augusto Berndt --- src/gpl/src/nesterovBase.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gpl/src/nesterovBase.cpp b/src/gpl/src/nesterovBase.cpp index 313cc4f0920..09c36d6de75 100644 --- a/src/gpl/src/nesterovBase.cpp +++ b/src/gpl/src/nesterovBase.cpp @@ -2822,6 +2822,10 @@ size_t NesterovBaseCommon::createGCell(odb::dbInst* db_inst) GCell* gcell_ptr = &gCellStor_.back(); gCellMap_[gcell_ptr->instance()] = gcell_ptr; db_inst_map_[db_inst] = gCellStor_.size() - 1; + + int64_t areaChange = static_cast(gcell_ptr->dx()) + * static_cast(gcell_ptr->dy()); + deltaArea_ += areaChange; return gCellStor_.size() - 1; } @@ -2892,6 +2896,7 @@ void NesterovBaseCommon::destroyGCell(size_t index_remove) gCellStor_.pop_back(); log_->report("after destroy gCellStor_.size():{}", gCellStor_.size()); + // TODO: update deltaArea_ after cell destruction. } void NesterovBase::destroyFillerGCell(size_t index_remove)