• 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. oa2verilog using skill

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14864
  • 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

oa2verilog using skill

Myskill
Myskill over 12 years ago

Hi All,

              I am going to executing following code for generation of oa file to verilog file automatically present editing oa file (schematic or layout). But I am getting the error "Cannot read library libname in cds.lib because it is not open or it does not exist" could you please help on this

SKILL CODE:-

procedure(verilog()
cv = geGetWindowCellView()
libname = cv~>libName
cellnmae = cv~>cellName
viewname = cv~>viewName
s1 = ipcBeginProcess("oa2verilog -lib libname -cell cellname -view viewname -verilog viewname -recursive"
 "" nil nil nil "/remote2/test_proj/analog_project/tsmc/users/rambabu/oa2verilog1.log")
)

 ERROR:-

*****************************************************************************
Tool:           oa2verilog          22.04.071
*****************************************************************************
Running: oa2verilog -lib libname -cell cellname -view viewname -verilog viewname -recursive
Started: Mon Jan 16 15:52:35 2012 (Hostname: orange)
ERROR: (OAVLG-10009): Cannot read library libname in cds.lib because it is not open or it does not exist
Finished:       oa2verilog
Time elapsed:   0.24 seconds
CPU Time:       0.068989 seconds
System Time:    0.036994 seconds
Peak VM:        2158592 bytes
Messages:       1 error, 0 warnings

 

Thanks,

Rambabu

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Have you any experience with programming at all? If so, I'd expect that you'd have some understanding of basic debugging techniques - such as checking that the data you're passing to functions is valid. You might want to attend a SKILL Programming class (or any programming class), and read the SKILL Language User Guide too. 

    I don't mean to be rude, but the error message fairly clearly tells you that the libname variable must be nil (i.e. not the library name). If you'd put some print statements in your code (or used the SKILL debugger) you could have checked that. The most likely explanation (assuming your code is essentially the same as that you posted earlier) is that cv is nil, because you're running with the current window not being your schematic or layout window - and hence geGetWindowCellView() is returning nil.

    That said, I'd have expected that you'd see a warning in your CIW if this was the case (and that might have alerted you to the problem?):

    *WARNING* (GE-2067): geGetWindowCellView: There is no graphical edit environment assigned to window(2) because the window is not a graphic editor window.

    Make sure that your current window is a valid graphic editor window.

    If it is a valid graph editor window, contact customer service to investigate this issue.

    Either way, check the variables in your code, and ensure they're being set properly.

    Regards,

    Andrew.

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

    Have you any experience with programming at all? If so, I'd expect that you'd have some understanding of basic debugging techniques - such as checking that the data you're passing to functions is valid. You might want to attend a SKILL Programming class (or any programming class), and read the SKILL Language User Guide too. 

    I don't mean to be rude, but the error message fairly clearly tells you that the libname variable must be nil (i.e. not the library name). If you'd put some print statements in your code (or used the SKILL debugger) you could have checked that. The most likely explanation (assuming your code is essentially the same as that you posted earlier) is that cv is nil, because you're running with the current window not being your schematic or layout window - and hence geGetWindowCellView() is returning nil.

    That said, I'd have expected that you'd see a warning in your CIW if this was the case (and that might have alerted you to the problem?):

    *WARNING* (GE-2067): geGetWindowCellView: There is no graphical edit environment assigned to window(2) because the window is not a graphic editor window.

    Make sure that your current window is a valid graphic editor window.

    If it is a valid graph editor window, contact customer service to investigate this issue.

    Either way, check the variables in your code, and ensure they're being set properly.

    Regards,

    Andrew.

    • 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