diff --git a/dreamplace/BasicPlace.py b/dreamplace/BasicPlace.py index bf1bfb0..ad17a83 100644 --- a/dreamplace/BasicPlace.py +++ b/dreamplace/BasicPlace.py @@ -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: @@ -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 diff --git a/dreamplace/params.json b/dreamplace/params.json index 12818d8..4f9ef7e 100644 --- a/dreamplace/params.json +++ b/dreamplace/params.json @@ -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" : {