Skip to content

Commit

Permalink
Merge branch 'Constwelve-master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
limbo018 committed Apr 22, 2024
2 parents ef3f007 + 5451390 commit 81c1638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dreamplace/NonLinearPlace.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __call__(self, params, placedb):
density_weight = 0.0
if params.macro_place_flag and cur_stage == 1:
density_weight = all_metrics[-1][-1][-1].density_weight.item() / params.two_stage_density_scaler

placedb.total_movable_node_area = placedb.total_movable_cell_area
# construct placement model
model = PlaceObj.PlaceObj(
density_weight,
Expand Down
2 changes: 2 additions & 0 deletions dreamplace/PlaceDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,8 @@ def initialize(self, params):
total_cell_space_area = self.total_space_area - total_movable_macro_area
cell_utilization = total_movable_cell_area / total_cell_space_area

self.total_movable_macro_area = total_movable_macro_area
self.total_movable_cell_area = total_movable_cell_area
# if no movable macro, turn off macro place flag
if total_movable_macro_area <= 0:
params.macro_place_flag = False
Expand Down

0 comments on commit 81c1638

Please sign in to comment.