Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added min_height as cli option #133

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion dffram.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ def openlane_harden(
default=False,
help="Open the last def in Klayout. (Default: False)",
)
@click.option(
"-H", "--min-height", default=0.0, type=float, help="Die Area Height in microns"
)
def flow(
frm,
to,
Expand All @@ -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

Expand Down Expand Up @@ -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,
Expand Down