• 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. How to Assign Net Names Correctly in SKILL Code for Schematic...

Stats

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

How to Assign Net Names Correctly in SKILL Code for Schematic Generation

csonnadara
csonnadara 9 months ago

I am trying to generate a schematic from the SKILL code. However, I am unable to assign the net name correctly.  My skill code has the following steps: to identify nets by the terminal of devices and label them. Could you suggest how to label 'net2' correctly? 

# Create the wire
dbCreateNet(cvID,"vi")
schCheck(cvID)
wireID[0] = schCreateWire(cvID, "route", "full", [A, end_point], 0, 0, 0)
schCheck(cvID)
schCreateWireLabel(cvID, wireID[0], label_position, "vi", "lowerLeft", "R0", "fixed", 0.05, "nil")
schCheck(cvID)

Virtuso Studio edition : IC23.1-64b.ISR7.27

  • Cancel
  • Andrew Beckett
    Andrew Beckett 9 months ago

    That code doesn't really give enough detail and actually it's wrong (it has syntax errors and also passes the wrong values to some arguments). I put together an example using gpdk045 and specifying some coordinates to allow it to complete:

    cvID=geGetEditCellView()
    A=-0.75:0.1875
    end_point=-1:0
    label_position=-1.25:0.125
    wireID=makeVector(10)
    master=dbOpenCellViewByType("gpdk045" "nmos1v" "symbol")
    inst=dbCreateInst(cvID master "M1" end_point "R0")
    ; Create the wire
    dbCreateNet(cvID,"vi")
    schCheck(cvID)
    ; this can't' be right, as the syntax for the list of points is wrong.
    ;wireID[0] = schCreateWire(cvID, "route", "full", [A, end_point], 0, 0, 0)
    wireID[0] = schCreateWire(cvID, "route", "full", list(A end_point), 0, 0, 0)
    schCheck(cvID)
    ; this also can't be right, because the return value of schCreateWire is a list of dbIds for the
    ; wire, and the last argument shouldn't be a string
    ;schCreateWireLabel(cvID, wireID[0], label_position, "vi", "lowerLeft", "R0", "fixed", 0.05, "nil")
    schCreateWireLabel(cvID, car(wireID[0]), label_position, "vi", "lowerLeft", "R0", "fixed", 0.05, nil)
    schCheck(cvID)
    

    This works fine:

    I presume it can't have just been the typos in the code (because the wires wouldn't even have been created, let alone the write labels), but maybe it was something in the parts of the code you didn't share?

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • csonnadara
    csonnadara 9 months ago in reply to Andrew Beckett

    Hello Andrew,

    Thank you for the clarification; the provided code works without issues with the SKILL IDE. 

    My code is part of large code written with Python <-> SKILL bridge (https://unihd-cag.github.io/skillbridge/index.html). When posing data to the forum, I made mistakes while manually converting Python to SKILL. Appreciate your effort in helping, even with errors. 

    However, I still face issues when using the Python—SKILL bridge. I get the created wire, but the created wire label and net name are different. I might need to discuss this with the Python <-> SKILL bridge. Any insight into the matter would be beneficial. Thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • csonnadara
    csonnadara 9 months ago in reply to Andrew Beckett

    Hello Andrew,

    Thank you for the quick response and clarification of the errors. Your code works without any issues.

    I used the Python - SKILL bridge tool to generate the schematic, and I have only shared the steps for making netlabels. I apologize for the mistakes while manually converting the Python code to skill. 

    With the same steps, I am facing issues in my Python SKILL code, where I get the net name and the label to be different (create two nets). What could be the possible issue for this? Any insight would help debug the Python code or how API calls are used. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett 8 months ago in reply to csonnadara

    I can't really answer questions about this Python - SKILL bridge tool since it's not from Cadence (I have no experience of using it, and it's not something we support). I don't know what your python code looks like or how that translates into SKILL.

    Perhaps you could raise an issue on the skill bridge GitHub issues page? (there don't appear to be any issues there, so maybe there's somewhere else that "support" is provided).

    Andrew

    • 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