• 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. how to findout the permission of a library.

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 145
  • Views 13779
  • 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

how to findout the permission of a library.

howardhaoracle
howardhaoracle over 11 years ago

Hi..

Is there a skill code that I can use to find out the permission of a library instead of clicking on the property button on a library to find out??

Example: When I use the GUI from the lib browser, I am able to find out the permission of a library whether it has write or read permission. My question is is there a Skill code that I can use to find that out instead of clicking on the library's property?

 Thanks in advance for your help

Howard

  • Cancel
  • berndfi
    berndfi over 11 years ago
    Several methods, one of the should fit to your needs.

    ddGetObj( "myLib" )~>ownerAccess
    ddGetObj( "myLib" )~>groupAccess

    resp.
    ddGetObjAccess( ddGetObj("myLib") "owner" )

    or 
    ddGetObj("myLib")~>isReadable
    ddGetObj("myLib")~>isWriteable

    resp.
    isReadable( ddGetObjReadPath( ddGetObj( "myLib" ) ) ) 
    isWritable( ddGetObjWritePath( ddGetObj( "myLib" ) ) ) 
                           
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dfick
    dfick over 11 years ago

     These didn't work for me for some reason, so i found that I had to manually check:

                     ; Manually check access since Virtuoso seems to get it wrong sometimes
                    myCmd = sprintf(nil "/usr/bin/stat -c%%A %s/%s.oa", ddGetObjWritePath(obj), obj->name)
                    textresult=runCmd(myCmd)

                    rexCompile("w")
                    is_writable = rexExecute(textresult)

     

     Where runCmd is defined as:

     

     procedure(runCmd( myCmd )
      printf("Executing %s\n" myCmd);
      myCid = ipcBeginProcess(myCmd)
      ipcWait(myCid)
     
      textresult=""
      while( outputResult=ipcReadProcess(myCid)
         textresult=strcat(textresult, outputResult)
      ) ; while
      rexCompile("%")
      textresult = rexReplace(textresult, "%%", 0)
      printf(textresult)
      printf("\n")
      returnval=textresult
    )

     

     

     

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

    I can't see why those wouldn't work, unless for some reason you're on some strange filesystem maybe. You should contact customer support.

    Andrew.

    • 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