I have been trying to write a SKILL 'netlist parser' program that takes the netlist file as the input and outputs a datastructure that has all the connectivity information.
My goal is to be able to traverse from one node to another and find the paths between any two nodes; say for example, Vdd and input pins of an opamp.
It would be great if someone could throw in some ideas on how to parse the netlist and create a good datastructure.
I tried creating a list of 'disembodied property list', but ended up making a big mess.
Any references are also welcome and greately appreciated.
My recommendation would be to read the netlist into DFII using IC6.1 SpiceIn and implement your path traversal using the usual SKILL database access constructs and functions.
The advantage to this approach is that your code could be written to work equally well on conventionally captured schematics, layout source material (including streamed in GDS), not to mention other applications via the OA API.
Hope this helps!
In reply to aplumb:
Thanks a lot for your suggestion. It worked for me.