• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Skill code to apply instance orientation to a cordinate

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14424
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Skill code to apply instance orientation to a cordinate

shajujan
shajujan over 12 years ago

Hi,

I'm looking to extract label cordinates of an instance based on how the instance is placed, i.e, after factoring in the orientation of the instance. Has anyone written code like this? For eg. x:y = 10:20 would become -10:20 after MY, 20:10 after MYR90

Thanks,

Shaju

  • Cancel
  • kb how
    kb how over 12 years ago

    You can use dbTransformPoint to transform the point.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 12 years ago

    More specifically:

    xy=10:20
    dbTransformPoint(xy list(0:0 "MY"))
    dbTransformPoint(xy list(0:0 "MXR90"))

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • shajujan
    shajujan over 12 years ago

    Thanks Derek. I got it to work.

     procedure( dumpPins( file )
            let( (inst cv fp x pins pin)

            inst = car(geGetSelSet())
            ;Required because I want to open the layout view, if instance is xform
            cv = dbOpenCellViewByType(inst~>master~>libName inst~>master~>cellName "layout")
            if( cv then
                fp = outfile(file)

                pins = setof( x cv~>shapes (x~>objType=="label" && x~>lpp=='("AP" "pin")) )
                foreach( pin pins
                         ;Displacement occurs after mag is applied
                         xy = dbTransformPoint(pin~>xy list(inst~>xy inst~>orient inst~>mag))
                         fprintf( fp "%s\t%f\t%f\n" pin~>theLabel float(round(car(xy))) float(round(cadr(xy))) )
                )
                dbClose(cv)
                close(fp)
                printf( "dumpPins: found %d pins in %L\n" length(pins) cv~>cellName )
            else
                printf( "dumpPins: ERROR: Could not open %s/layout\n" cv~>cellName )
            )
    ))

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information