• 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. Unable to access all the library in database.

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 15818
  • 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

Unable to access all the library in database.

Naris Pillaii
Naris Pillaii over 6 years ago

Hi. I'm new to Skill and Virtuoso. I recently created a simple skill code to check library existence. The skill code I created were made to be executed within the Command Prompt. Every function involved in this process works file until it reaches the library checking phase. It assumes the library does not exist when it does.(Checked in Virtuoso using the same command). To confirm whether the skill code is able to access all the libraries. Turns out the ddGetLibList only returns 1 library but when used in Virtuoso cmd, it returns all the libraries including the one seen during the function execution. The code is as below.


CSH file that executes in CMD.
echo "Please enter the library name."
set libName = $<
echo "Please enter the top cell name."
set topCellName = $<

if ( $libName == '' || $topCellName == '' ) then
    echo "Please make sure all the required input is filled and not empty."
else
    echo "Your SPS Path is : '$SPS_PATH'"
    echo "Function Example : renameCommand()"
    echo "$libName;$topCellName;$libraryPrefixValue;$cellPrefixValue;$targetCellType" > $SPS_PATH/parameter.txt
    virtuoso -nograph -restore commandreplay.il
endif


commandreplay.il
procedure( runThisCode()

*code to get the user input*
(ddGetLibList)~>name

if( sourcelibNmCH == "empty" then
    sourceNameStatus = "[ Error - Warning ] : The source library value is missing!\n"
else

    if( sourceTopCellNmCH == "empty" then
        sourceTopCellStatus = "[ Error - Warning ] : The source top cell value is missing!\n"
   else
        println(dbOpenCellViewByType( sourcelibNmCH sourceTopCellNmCH "schematic"))

       if( dbOpenCellViewByType( sourcelibNmCH sourceTopCellNmCH "schematic") then
          sourceNameStatus = ""
          sourceTopCellStatus = ""
       else
          sourceNameStatus = ""
          sourceTopCellStatus = "[ Error - Warning ] : Either your library or top cell is not found in CDS Library.\n"
       )
    )

  )

)

Any help could be helpful.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    Something must be wrong in your environment - maybe you're running in the wrong directory? I don't think it's going to be easy to debug in the forum - could you contact customer support? 

    For example, I just created a file myreplay.il with:

    printf("The libraries are:\n")
    println(ddGetLibList()~>name)
    exit()

    and then ran "virtuoso -nograph -restore myreplay.il" and then I get:

    The libraries are:
    ("basic" "sample" "functional" "analogLib" "aExamples" "mylib" "yourlib" "ahdlLib" "testoalib" "rfLib" "bmslib" "smgBasicMSLib" "smgAdvancedMSLib" "cdsDefTechLib")

    (i.e. all the libraries showing up in my library manager if I run interactively in that directory).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Naris Pillaii
    Naris Pillaii over 6 years ago in reply to Andrew Beckett

    Hi Andrew,

    The issue was resolved after adding the -cdslib $CDSLIB when launching virtuoso.
    My current execution command looks like the one below.


    virtuoso -nograph -restore commandreplay.il -cdslib $CDSLIB

    I will look into your suggestion. Thanks for the answer.

    • 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