Skip to content

Commit

Permalink
cumulus: Allow macros with MY orientation
Browse files Browse the repository at this point in the history
Signed-off-by: gatecat <[email protected]>
  • Loading branch information
gatecat committed Jan 11, 2024
1 parent b2eda25 commit d636fe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cumulus/src/plugins/macro/macro.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def place ( topCell, instance, transf, status ):
abShift = Transformation( -ab.getXMin(), -ab.getYMin(), Transformation.Orientation.ID )
if transf.getOrientation() == Transformation.Orientation.MX:
abShift = Transformation( ab.getXMin(), -ab.getYMin(), Transformation.Orientation.ID )
if transf.getOrientation() == Transformation.Orientation.MY:
abShift = Transformation( -ab.getXMin(), ab.getYMin(), Transformation.Orientation.ID )
print( 'transf={}'.format(transf) )
print( 'abShift={}'.format(abShift) )
abShift.applyOn( transf )
Expand Down

0 comments on commit d636fe8

Please sign in to comment.