Home > Community > Forums > Custom IC SKILL > Select nets in schematic.

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: *

 Select nets in schematic.  

Last post Thu, Oct 1 2009 4:29 AM by marbs. 4 replies.
Started by marbs 24 Sep 2009 04:12 AM. Topic has 4 replies and 1868 views
Page 1 of 1 (5 items)
Sort Posts:
  • Thu, Sep 24 2009 4:12 AM

    • marbs
    • Top 150 Contributor
    • Joined on Mon, Jun 15 2009
    • Posts 57
    • Points 720
    Select nets in schematic. Reply

    How can I select net in schematic by using skill ?

    and report all its connections ?

    Thanks in advance.  

     

     

     

    • Post Points: 20
  • Thu, Sep 24 2009 10:35 PM

    Re: Select nets in schematic. Reply

    Something like this:

    netName="iref"
    cv=geGetEditCellView()
    net=dbFindNetByName(cv netName)
    ; select all the wire segments on the net
    foreach(fig net~>figs geSelectFig(fig))
    ; print connections
    printf("Net %s is connected to:\n" netName)
    foreach(instTerm net~>instTerms
      printf("  Pin %s of instance %s (cell %s)\n"
        instTerm~>name instTerm~>inst~>name instTerm~>inst~>cellName
      )
    )

    Best Regards,

    Andrew.

     

    • Post Points: 20
  • Mon, Sep 28 2009 7:12 AM

    • marbs
    • Top 150 Contributor
    • Joined on Mon, Jun 15 2009
    • Posts 57
    • Points 720
    Re: Select nets in schematic. Reply

    Than you very much for the code sir, sorry for the late reply. 

    But I've got an error when I run the code,  something like this : 

    *Error* eval : unbound variable - netName . 

    Please complete the code.  

     

    Thank you . 

     

     

     

    • Post Points: 20
  • Mon, Sep 28 2009 8:33 AM

    Re: Select nets in schematic. Reply

    Er, the first line of the code sets netName, so presumably you didn't cut and paste it, or omitted that part and didn't set it yourself...

    Of course "iref" is not necessarily the name you want.

    You could of course change it to be a function definition:

    procedure(CCSselectNet(netName)
    let((cv net)
      cv=geGetEditCellView()
      net=dbFindNetByName(cv netName)
      ; select all the wire segments on the net
      foreach(fig net~>figs geSelectFig(fig))
      ; print connections
      printf("Net %s is connected to:\n" netName)
      foreach(instTerm net~>instTerms
        printf("  Pin %s of instance %s (cell %s)\n"
          instTerm~>name instTerm~>inst~>name instTerm~>inst~>cellName
        )
      )
    )

    And then use:

    CCSselectNet("myNet")

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Oct 1 2009 4:29 AM

    • marbs
    • Top 150 Contributor
    • Joined on Mon, Jun 15 2009
    • Posts 57
    • Points 720
    Re: Select nets in schematic. Reply

    The code is excellent,

    It is now running.  Thank you very much sir.

     

     

     

     

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by marbs at 24 Sep 2009 04:12 AM. Topic has 4 replies.