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.
- 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].
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
In reply to eDave:
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.