• 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 mechanism to determine if CDBA or OA

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14366
  • 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 mechanism to determine if CDBA or OA

TrevorB
TrevorB over 15 years ago

I would like to branch my pcell code based on whether the code is running inside IC6 (OA) or IC51 (CDBA).  What is the preferred, or recommended way of doing this.  I have thought of a few ways, but I want to use something, which will be supported for the lifetime of both platforms. ... Thanks!

  • Cancel
  • dmay
    dmay over 15 years ago

    I use the following:

    procedure(mydbIsOA()
      prog(()
        if(getd('dbGetDatabaseType) && dbGetDatabaseType() == "OpenAccess" then
            return(t)
        else
            return(nil)
        )
      ) ;let
    ) ;proc

    This works with very old Cadence versions that don't even have dbGetDatabaseType yet defined.

    We have a lot of skill code and getting all of our designs on 6.1.x will take quite some time (we don't have any parts there yet). I presented a paper at an Si2 conference about the effort we have been doing to try not to "branch" our code, but rather to make it compatible with both 5.1 and 6.1. The power point is available here: http://www.si2.org/events_dir/2006/oaconfspring2006/micron.pdf

    As you can see, I presented that in 2006 and we still haven't moved any parts to OA. We have wrapper functions in our Skill that allow us to easily test each new 6.1 release while only maintaining one stream of code.

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Yaosan
    Yaosan over 15 years ago

    Nice presentation Derek, thanks for sharing!

    So far I've been using my custom "isOA()" function, much like what Derek suggested. My function looks like this (a little more optimized):

    procedure( YYisOA()
        when( getd('dbGetDatabaseType) && dbGetDatabaseType() == "OpenAccess"
            t
        )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TrevorB
    TrevorB over 15 years ago

    Yes, thanks for the tip and the presentation, Derek!

    Since we are offering condensed functions...

    procedure(isOA()
      getd('dbGetDatabaseType) && dbGetDatabaseType() == "OpenAccess"
    )

    :-)

    If anybody else has a function that relies on a different mechanism, please let me know.  There's wisdom in a multitude of counselors.  :)

    • 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