Skip to content

drt: via coordinates #7326

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

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

Conversation

bnmfw
Copy link
Contributor

@bnmfw bnmfw commented May 8, 2025

Supports #7153.

Branched from #7194.

Creates the createViaSpecificAccessPoints() which inputs the common access coordinates of a pin and creates all via specific access points.

bnmfw and others added 22 commits April 20, 2025 21:24
Signed-off-by: bernardo <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Bernardo Borges Sandoval <[email protected]>
Signed-off-by: bernardo <[email protected]>
Co-authored-by: Osama Hammad <[email protected]>
Signed-off-by: Bernardo Borges Sandoval <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

std::vector<std::unique_ptr<frAccessPoint>>& aps,
std::set<std::pair<Point, frLayerNum>>& apset,
frInstTerm* inst_term,
const frAccessPointEnum lower_type,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'lower_type' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const frAccessPointEnum lower_type,
frAccessPointEnum lower_type,

std::set<std::pair<Point, frLayerNum>>& apset,
frInstTerm* inst_term,
const frAccessPointEnum lower_type,
const frAccessPointEnum upper_type);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'upper_type' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const frAccessPointEnum upper_type);
frAccessPointEnum upper_type);

const gtl::rectangle_data<frCoord>& rect,
int offset = 0);

bool OnlyAllowOnGridAccess(const frLayerNum layer_num,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'layer_num' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
bool OnlyAllowOnGridAccess(const frLayerNum layer_num,
bool OnlyAllowOnGridAccess(frLayerNum layer_num,

int offset = 0);

bool OnlyAllowOnGridAccess(const frLayerNum layer_num,
const bool is_macro_cell_pin);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: parameter 'is_macro_cell_pin' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]

Suggested change
const bool is_macro_cell_pin);
bool is_macro_cell_pin);

rect,
!is_layer1_horz,
offset);
genAccessCoordCosted(cost,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: 4th argument 'layer_num' (passed to 'base_layer_num') looks like it might be swapped with the 5th, 'second_layer_num' (passed to 'layer_num') [readability-suspicious-call-argument]

      genAccessCoordCosted(cost,
      ^
Additional context

src/drt/src/pa/FlexPA_acc_point.cpp:153: in the call to 'genAccessCoordCosted', declared here

void FlexPA::genAccessCoordCosted(
             ^

@bnmfw bnmfw added the drt Detailed Routing label May 16, 2025
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