• 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 Design
  3. Backward Compatible Skill Scripts

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 126
  • Views 13234
  • 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

Backward Compatible Skill Scripts

TjaartOpperman
TjaartOpperman over 14 years ago
I'm writing some Skill scripts that need to be backward compatible with older versions of cadence, mostly for some designs that aren't yet ported from IC5. I've been looking at the getVersion() and getVersion(t) commands, but it seems like it would require some complicated string manipulation functions. I'm cautious of these since they not always work reliably if not properly tested. Is there perhaps an easier way of getting the Cadence version number into variables?
  • Cancel
  • Quek
    Quek over 14 years ago

    Hi TjaartOpperman

    Actually it is not too complicate to determine the version of Virtuoso based on the output of getVersion() cmd. You can use something similar to:

    if( rexMatchp("6.1" getVersion()) then
       icVersion="61"
    else
       icVersion="51"
    ) ;if

    You can also make use of the database format. E.g.

    case( dbGetDatabaseType()
       ("CDBA" icVersion="51")
       ("OpenAccess" icVersion="61")
    ) ;case

    Hope that I am understanding your question correctly. Perhaps you can elaborate more on the problems which you have encountered.


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

     I've been using this function for 17 years now (slight change in 1996 to support a subtle change then):

    /***************************************************************
    * *
    * (abGetVersionNumber) *
    * *
    * Get the Cadence version number *
    * *
    ***************************************************************/


    (procedure (abGetVersionNumber)
    (let ((parsed (parseString (getVersion))))
    /* in 4.4 onwards, version string is slightly different */
    (if (equal (caddr parsed) "version")
    (cadddr parsed)
    (caddr parsed)
    )))

     Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TjaartOpperman
    TjaartOpperman over 14 years ago
    Thanks Andrew, I'll be using the following to do comparison: sscanf(buildString(parseString(abGetVersionNumber() ".") " ") "%d%d%d" ver sub subsub)
    • 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