Home > Community > Forums > PCB SKILL > SKILL script to get the pins sequence for a particular net

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

 SKILL script to get the pins sequence for a particular net 

Last post Wed, Jul 18 2012 10:03 AM by Klaap. 2 replies.
Started by Klaap 16 Jul 2012 12:54 PM. Topic has 2 replies and 2457 views
Page 1 of 1 (3 items)
Sort Posts:
  • Mon, Jul 16 2012 12:54 PM

    • Klaap
    • Not Ranked
    • Joined on Mon, Jul 16 2012
    • Posts 2
    • Points 25
    SKILL script to get the pins sequence for a particular net Reply

    Hi,

     I wrote a SKILL script that returns all the pins in a net. However, I would like to have the order of these pins in that net.

    For example:

    - if I have a net NET_X with 4 pins p_1, p_2, p_3, p_4

    - if there is a Cline between p_1 => p_3, Cline between  p_3 => p_2, Cline between  p_2 => p_4

     The output of the script should be  [p_1, p_3, p_2, p_4].

     Thanks,

    Palak. 

    • Post Points: 20
  • Mon, Jul 16 2012 1:32 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,115
    Re: SKILL script to get the pins sequence for a particular net Reply

    A branch should return the pins in order:

    pinDBID ->branch ->children ~>number 

    Otherwise take a look at axlDBGetConnect. With a bit of logic you should be able to derive the sequence.

    Dave Elder, Tait Communications
    • Post Points: 20
  • Wed, Jul 18 2012 10:03 AM

    • Klaap
    • Not Ranked
    • Joined on Mon, Jul 16 2012
    • Posts 2
    • Points 25
    Re: SKILL script to get the pins sequence for a particular net Reply

    Hi Dave,

    Thanks, your advice was very helpful!

    I was able to get the sequence using axlDBGetConnect and by looking for Pin object among the connected elements.

    Palak. 

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Klaap at 16 Jul 2012 12:54 PM. Topic has 2 replies.