-
Notifications
You must be signed in to change notification settings - Fork 578
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: elimination of getNoRotationTransform and drt::dbTransform #6326
base: master
Are you sure you want to change the base?
drt: elimination of getNoRotationTransform and drt::dbTransform #6326
Conversation
07e8dc0
to
cf85131
Compare
Signed-off-by: bernardo <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
cf85131
to
30011d6
Compare
Signed-off-by: bernardo <[email protected]>
30011d6
to
dd9966d
Compare
There was a problem hiding this 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
There was a problem hiding this 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
Signed-off-by: bernardo <[email protected]>
ce82952
to
e6e7761
Compare
…AD_Bernardo_Sandoval into drt_frInstTranform_elimination
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
Signed-off-by: bernardo <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
This PR has an ISPD and Secure CI associated and will be opened when they pass.
Fixes #5712.
Elimination of getNoRotationTransform
Previously on #6141 most use cases of
getUpdatedXform
were refactored to use theodb::dbTransform
object. This allowed for the refactoring ofgetUpdatedXform
intogetNoRotationTransform
which was the use case remaining. The refactored function was only using when recalculation the access points coordinates.During
revertAccessPoints
chip coordinates are transformed to take the origin of their instance as the 0,0. However, the function was taking the incorrectfrInst::dbTransform
as a basis and not taking rotation into consideration. This mistake was compensated bygetNoRotationTransform
. NowrevertAccessPoints
takes the DB transformation as a basis, which allows the substitution ofgetNoRotationTransform
togetDBTransform
which is correct and inline with the db.The remaining use of
frInst::dbTranform
was atfrInstTerm::getAccessPoint
where an inverse transformation was done manually. The adequate transformation was used instead.After this modification
frInst::dbTransform
was never accessed, so it was eliminated from the class. This allowed the renaming offrInst::getDBTransform
tofrInst::getTransform
since it now is the only transformfrInst
has access to.frInst::setOrient
andfrInst::setOrigin
were deleted since at no part of the code the DRT actually has to change theodb::dbTransform
anymore. This deletion required deleting the methods from the abstract base classfrRef
, which in part required the same methods onfrVia
to not be overrides anymore.Finally at some parts of the code were previously both
getUpdatedXform
andgetTransform
were called, only the latter is necessary since their uses are the same, thus only one transformation is used and substitutes the deleted. Some variable name changes were done (MainlyshiftXform
->transform
). The way the global router orients access points was also changed to conform with these changes.