Skip to content

Commit

Permalink
use abacus_legalize_flag to control whether turn on abacus legalization
Browse files Browse the repository at this point in the history
  • Loading branch information
limbo018 committed Sep 21, 2024
1 parent e10cd7a commit cd4ecff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dreamplace/BasicPlace.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def build_legalization_op(pos):
logging.error("legality check failed in greedy legalization, " \
"return illegal results after greedy legalization.")
return pos2
if params.legalize.abacus_legalize_flag:
if params.abacus_legalize_flag:
pos3 = al(pos1, pos2)
legal = self.op_collections.legality_check_op(pos3)
if not legal:
Expand Down Expand Up @@ -760,7 +760,7 @@ def build_legalization_op(pos):
return pos
else:
### start abacus legalizer
if params.legalize.abacus_legalize_flag:
if params.abacus_legalize_flag:
for i in range(len(placedb.regions)+1):
pos = legal_ops[i][1](pos, pos_ml_list[i], pos_gl_list[i])
return pos
Expand Down
4 changes: 2 additions & 2 deletions dreamplace/params.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"description" : "whether use internal legalization",
"default" : 1
},
"legalize.abacus_legalize" : {
"description" : "whether use abacus legalization",
"abacus_legalize_flag" : {
"description" : "whether turn on abacus legalization",
"default" : 1
},
"detailed_place_flag" : {
Expand Down

0 comments on commit cd4ecff

Please sign in to comment.