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

drt: genApEnclosedBoundary code duplication elimination #5822

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

bnmfw
Copy link
Contributor

@bnmfw bnmfw commented Sep 28, 2024

This PR is branched from #5744 and is waiting for it to merge.

Like #5803, Eliminates code duplication in genAPEnclosedBoundary.

Creates the auxilary variables coord_top and coord_top.

The old function essentially added gtl::yh(rect) - box.yMax() and gtl::yl(rect) - box.yMin() to coords if the layer was horizontal, if not it added gtl::xh(rect) - box.xMax() and gtl::xl(rect) - box.xMin(). It used 4 if statements, now it uses one with an auxiliary loop.

Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
@bnmfw bnmfw marked this pull request as draft September 28, 2024 01:19
@bnmfw bnmfw added the drt Detailed Routing label Sep 28, 2024
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@bnmfw bnmfw changed the title Drt gen ap enclosed boundary code duplication drt: genApEnclosedBoundary code duplication Sep 28, 2024
@bnmfw bnmfw changed the title drt: genApEnclosedBoundary code duplication drt: genApEnclosedBoundary code duplication elimination Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drt Detailed Routing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant