[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA: gnetlist vs. XNF
Hi,
>OK, I'm making progress. I'm able to scan the parts drawn onto a schematic
>(by uref value) and I'm able to get attributes from the symbol so that I
>can write out the correct XNF symbol value.
Okay great!
>
>I can also iterate over the pins of the part instance. The list:
>
> (gnetlist:get-pins "U1")
>
>seems to get me a list of pins for the part named "U1", and the pin names
>seem to come from the pin#= attribute in the symbol. This is fine, I
>can use that to get XNF pin names for the symbol. However, I also need
>a pin type (I, O or B) and I believe I can use a pin attribute to so mark
>the pin. However, I do not see how to get attributes from pins.
Hmmm.. lemme think. I don't think you can yet. Let me code
something up. :)
>
>I also need the name of a net that is connected to the pin. I'm digging
>around, but I'm not seeing how to find that information.
You can try to use:
(gnetlist:get-pins-nets "U1") (given a uref return pin/net pairs)
Which returns:
((1 . unnamed_net1))
And/or returns things like:
((3 . unconnected_pin) (2 . unnamed_net1) (1 . unconnected_pin))
Or if you know know the uref and the pin number you can use:
(gnetlist:get-nets "U1" "1")
Which returns:
(unnamed_net1 (U2 1) (U1 1))
>
>Still trudging up the learning curve...
>
Let me know if you need anything else.
-Ales