• 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. Is the a way we can access library which is not define in...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 142
  • Views 17003
  • 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

Is the a way we can access library which is not define in cds.lib

kb how
kb how over 12 years ago

Hi all,

Good day.

May i know is the a way we can access a library which is not defined in cds.lib?

Let's say i have a local common library, and i wanted to do some testing on user workspace. Without touching/modify user's cds.lib, i want to access my local common library and do some verification on user workspace.

Do cadence (SKILL) has such capability?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    You could use ddSetForcedLib() to point at another cds.lib file which contains a reference to your library. Or run "virtuoso -cdslib /path/to/your/cds.lib". Otherwise, no.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kb how
    kb how over 12 years ago

    Thanks Adrew,

    If this is the case, means i cant pull in any library (not included in cds.lib) into my database. =(

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kb how
    kb how over 12 years ago

    Hi Adew,

    I created a skill code (cheat way) which read current working directory cds.lib and create a new cds.lib at /tmp by addding the newLib path as below. Is this recommended?

    ;==================================================================================================
    ; Description: 
    ;  Cheat way to define other library into your current working directory without
    ;  touching user's cds.lib. It will create a temporary cds.lib file and set the file as new
    ;  cds.lib file.
    ;    
    ; Date: 01.17.2013   
    ;==================================================================================================
    procedure( update_cdslib( newLib newLibPath "tt")
       let(( line cdslib newfile inp outp)        
         
          unless( isDir(newLibPath)
             error("Input newLibPath %L not exist\n")
          );unless 
         
          cdslib = ddGetForcedLibEx(nil)          
          when( cdslib == "" || !isFile(cdslib)   
             cdslib = strcat(getWorkingDir() "/cds.lib")
          );when   
         
          sprintf(newfile "/tmp/cds.lib_%s" buildString(parseString(getCurrentTime() ": ") ""))
          inp = infile(cdslib)    
          outp = outfile(newfile) 
         
          while( gets(line inp)   
             fprintf(outp "%s" line)              
          );while  
         
          fprintf(outp "\n\n# New added by %s at %s\n" getLogin() getCurrentTime())
          fprintf(outp "DEFINE %s %s\n" newLib newLibPath)
          close(inp)
          close(outp)   
         
          when( isFile(newfile)   
             ddSetForcedLib(newfile)              
          );when   
         
          ddUpdateLibList()       
       );let  
    );proc

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

    Seems reasonable. I've donesimilar things in the past.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kb how
    kb how over 12 years ago

    Thanks. This is the best i can think of.

    • 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