• 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. Digital Implementation
  3. db command to get power pin co-ordinates for a given Ma...

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 93
  • Views 21449
  • 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

db command to get power pin co-ordinates for a given Macro

deeps
deeps over 16 years ago

 Hi,

    I am trying to get the power pin co-ordinate details for a given Macro, 

        Is there a way by using db commands we can get the exact co-ordinate details of the power pins that are present on the Macro.I am using dbGet command to get the co-ordinate details of the macro location.

 

thanks

deepak. 

  • Cancel
Parents
  • jgentry
    jgentry over 16 years ago

     Very, VERY promising:

    encounter> time {dbTransform -d -localPt $cbox -inst $instPtr}
    104 microseconds per iteration

    encounter> time {eval "agConvertCellCoordsToInstCoords $cellPtr $instPtr $cbox"}
    810 microseconds per iteration

    I may have to do some coordinate rearranging to ensure I always get my data back as llx lly urx ury but that should be quick...

    proc dbTransform_and_legalize {cbox instPtr} {
      foreach {llx lly urx ury} [join [dbTransform -d -localPt $cbox -inst $instPtr]] {break}
      if {$urx < $llx} {
        set tmp $llx
        set llx $urx
        set urx $tmp
      }
      if {$ury < $lly} {
        set tmp $lly
        set lly $ury
        set ury $tmp
      }
      return [list $llx $lly $urx $ury]
    }

    dbTransform
    104 microseconds per iteration
    agConvertCellCoordsToInstCoords
    810 microseconds per iteration
    dbTransform_and_legalize
    155 microseconds per iteration

     50% overhead, ouch, still better than my in-house version.  I assume this can be used to convert inst coordinates to cell coordinates as well?  I'll play around with it some more.

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • jgentry
    jgentry over 16 years ago

     Very, VERY promising:

    encounter> time {dbTransform -d -localPt $cbox -inst $instPtr}
    104 microseconds per iteration

    encounter> time {eval "agConvertCellCoordsToInstCoords $cellPtr $instPtr $cbox"}
    810 microseconds per iteration

    I may have to do some coordinate rearranging to ensure I always get my data back as llx lly urx ury but that should be quick...

    proc dbTransform_and_legalize {cbox instPtr} {
      foreach {llx lly urx ury} [join [dbTransform -d -localPt $cbox -inst $instPtr]] {break}
      if {$urx < $llx} {
        set tmp $llx
        set llx $urx
        set urx $tmp
      }
      if {$ury < $lly} {
        set tmp $lly
        set lly $ury
        set ury $tmp
      }
      return [list $llx $lly $urx $ury]
    }

    dbTransform
    104 microseconds per iteration
    agConvertCellCoordsToInstCoords
    810 microseconds per iteration
    dbTransform_and_legalize
    155 microseconds per iteration

     50% overhead, ouch, still better than my in-house version.  I assume this can be used to convert inst coordinates to cell coordinates as well?  I'll play around with it some more.

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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