• 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. Skill code can work in CIW,but can not work on no-graph...

Stats

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

Skill code can work in CIW,but can not work on no-graph mode!

zgzg8312
zgzg8312 over 6 years ago

Hi,Guys

Below is my skill code,it's very sample!

procedure(test()
    opencell=dbOpenCellViewByType("test" "red" "layout" "maskLayout" "a")
    cellIds=leSearchHierarchy(opencell opencell~>bBox 0 "inst" list(list("cell name" "==" "SRAM_SW")))
        foreach(cellId cellIds
        printf("LibName:%s ,CellName:%s. \n" cellId~>libName cellId~>cellName)
        )
    dbSave(opencell)
    dbClose(opencell)
)

test()

It can work in CIW ,but can not work on no-graph mode.

No-graph mode command : virtuoso -nograph -restore test.il

It occur error,the error is : leSearchHierarchy: argument #1 should be a database object (type template = "dlxtl") - nil

Should  I do?

Any help are best!

Thanks

Gong

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    That error suggests that it failed to open the cellView in the dbOpenCellViewByType call. I'd expect at least a warning in the log - maybe you started Virtuoso in the wrong place? Do you get any more info if you just do:

    virtuoso -restore test.il

    There's really no good reason why this should be different in graphics or nograph mode (I can think of tortuous ways that you might have something in your .cdsinit which changes the working dir or forces a different cds.lib when you're not in nograph mode, but this would seem a very odd thing to do, so seems unlikely to me).

    You could also add debug messages in your code (first line of your test function):

    printf("DEBUG: %L\n" ddGetLibList()~>name)

    This will print which libraries it can see.

    Andrew.

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

    Hi,Andrew! 

        Thank you for your reply!

        I find the reason,in my layout directory,there has some *.lock file,it cause failed open the cell on "a" mode,delete it and re-execute success!

        It confused me,in some conditions,why in CIW success,but on no-graph failed!

    Thanks

    Gong

    • 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