Skip to content

Commit 828ab34

Browse files
author
Tim 'mithro' Ansell
authored
Merge pull request #244 from antmicro/52551-improved_placement_flag
Add option to enable/disable `improve_placement` for P&R targets
2 parents 9169a73 + ccb553b commit 828ab34

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

place_and_route/build_defs.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,6 @@ place_and_route = rule(
105105
"sink_clustering_size": attr.int(doc = "Clock tree synthesis sink group size"),
106106
"sink_clustering_max_diameter": attr.int(doc = "Clock tree synthesis sink group desired diamater in microns"),
107107
"min_pin_distance": attr.string(doc = "The minimum distance in microns between pins around the outside of the block."),
108+
"enable_improve_placement": attr.bool(default=True, doc = "Enable/Disable improve_placement pass.")
108109
},
109110
)

place_and_route/private/resize.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def resize(ctx, open_road_info):
5151
),
5252
] + placement_padding_struct.commands + [
5353
"detailed_placement",
54-
"improve_placement",
54+
"improve_placement" if ctx.attr.enable_improve_placement else "",
5555
"optimize_mirroring",
5656
"check_placement -verbose",
5757
"report_checks -path_delay min_max -format full_clock_expanded -fields {input_pin slew capacitance} -digits 3",

0 commit comments

Comments
 (0)