Home > Community > Forums > Custom IC SKILL > Is the a way we can access library which is not define in cds.lib

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

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

Last post Thu, Jan 17 2013 1:43 AM by kb how. 5 replies.
Started by kb how 15 Jan 2013 05:53 PM. Topic has 5 replies and 1112 views
Page 1 of 1 (6 items)
Sort Posts:
  • Tue, Jan 15 2013 5:53 PM

    • kb how
    • Top 100 Contributor
    • Joined on Fri, May 6 2011
    • Melaka, Melaka
    • Posts 79
    • Points 1,075
    Is the a way we can access library which is not define in cds.lib Reply

    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?

    -How-
    • Post Points: 20
  • Wed, Jan 16 2013 1:40 AM

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

    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.

    • Post Points: 20
  • Wed, Jan 16 2013 8:53 PM

    • kb how
    • Top 100 Contributor
    • Joined on Fri, May 6 2011
    • Melaka, Melaka
    • Posts 79
    • Points 1,075
    Re: Is the a way we can access library which is not define in cds.lib Reply

    Thanks Adrew,

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

    -How-
    • Post Points: 5
  • Wed, Jan 16 2013 9:34 PM

    • kb how
    • Top 100 Contributor
    • Joined on Fri, May 6 2011
    • Melaka, Melaka
    • Posts 79
    • Points 1,075
    Re: Is the a way we can access library which is not define in cds.lib Reply

    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

    -How-
    • Post Points: 20
  • Thu, Jan 17 2013 1:28 AM

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

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

    Andrew.

    • Post Points: 5
  • Thu, Jan 17 2013 1:43 AM

    • kb how
    • Top 100 Contributor
    • Joined on Fri, May 6 2011
    • Melaka, Melaka
    • Posts 79
    • Points 1,075
    Re: Is the a way we can access library which is not define in cds.lib Reply

    Thanks. This is the best i can think of.

    -How-
    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by kb how at 15 Jan 2013 05:53 PM. Topic has 5 replies.