From cf70bc6bfcc6a0ae90d9606925d44c14fa622c52 Mon Sep 17 00:00:00 2001 From: mohamedleithy Date: Tue, 15 Feb 2022 10:08:48 +0200 Subject: [PATCH 1/2] Added min_height as cli option --- dffram.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dffram.py b/dffram.py index 19d69a9..4d81c51 100755 --- a/dffram.py +++ b/dffram.py @@ -456,6 +456,9 @@ def openlane_harden( default=False, help="Open the last def in Klayout. (Default: False)", ) +@click.option( + "-H", "--min-height", default=None, type=float, help="Die Area Height in microns" +) def flow( frm, to, @@ -469,11 +472,11 @@ def flow( variant, klayout, output_dir, + min_height, ): global build_folder global last_def global pdk, scl - if variant == "DEFAULT": variant = None @@ -597,6 +600,8 @@ def placement(in_width, in_height): dimensions=dimensions_file, ) width, height = map(lambda x: float(x), open(dimensions_file).read().split("x")) + if height < min_height: + height = min_height floorplan( design, synth_info, From de8efba06ca49d2fff1c085c8482f741ecf44c95 Mon Sep 17 00:00:00 2001 From: mohamedleithy Date: Tue, 15 Feb 2022 10:12:58 +0200 Subject: [PATCH 2/2] Default value for min_height --- dffram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dffram.py b/dffram.py index 4d81c51..06b4738 100755 --- a/dffram.py +++ b/dffram.py @@ -457,7 +457,7 @@ def openlane_harden( help="Open the last def in Klayout. (Default: False)", ) @click.option( - "-H", "--min-height", default=None, type=float, help="Die Area Height in microns" + "-H", "--min-height", default=0.0, type=float, help="Die Area Height in microns" ) def flow( frm,