Skip to content

Commit

Permalink
all layer obstruction flag is wrong (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonliew authored Oct 7, 2023
1 parent 8aef227 commit 60cb8dd
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 60cb8dd

Please sign in to comment.