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

Innovus: all layer obstruction flag #803

Merged
merged 1 commit into from
Oct 7, 2023
Merged
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
8 changes: 4 additions & 4 deletions hammer/par/innovus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,22 +1061,22 @@ def generate_floorplan_tcl(self) -> List[str]:
ury=constraint.y+constraint.height
))
if ObstructionType.Route in obs_types:
output.append("create_route_blockage -except_pg_nets -layers {{{layers}}} -spacing 0 -{area_flag} {{{x} {y} {urx} {ury}}}".format(
output.append("create_route_blockage -except_pg_nets -{layers} -spacing 0 -{area_flag} {{{x} {y} {urx} {ury}}}".format(
x=constraint.x,
y=constraint.y,
urx=constraint.x+constraint.width,
ury=constraint.y+constraint.height,
area_flag="rects" if self.version() >= self.version_number("181") else "area",
layers="all" if constraint.layers is None else " ".join(get_or_else(constraint.layers, []))
layers="all {route}" if constraint.layers is None else f'layers {{{" ".join(get_or_else(constraint.layers, []))}}}'
))
if ObstructionType.Power in obs_types:
output.append("create_route_blockage -pg_nets -layers {{{layers}}} -{area_flag} {{{x} {y} {urx} {ury}}}".format(
output.append("create_route_blockage -pg_nets -{layers} -{area_flag} {{{x} {y} {urx} {ury}}}".format(
x=constraint.x,
y=constraint.y,
urx=constraint.x+constraint.width,
ury=constraint.y+constraint.height,
area_flag="rects" if self.version() >= self.version_number("181") else "area",
layers="all" if constraint.layers is None else " ".join(get_or_else(constraint.layers, []))
layers="all {route}" if constraint.layers is None else f'layers {{{" ".join(get_or_else(constraint.layers, []))}}}'
))
else:
assert False, "Should not reach here"
Expand Down