• 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 17004
  • 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
Parents
  • 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
Reply
  • 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
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