Hi,
this si srinivas.
below i gave my data structure to represent an electronic circuit.could u please suggest me the design guideline of the data structure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
struct cell{
struct cell master *cell type; /* Access to cell type, e.g. NAND
gate and other generic properties */
char id[ ]; /* A string that uniquely identifies the cell, e.g. g1 */
setof struct port in ports, out ports;
};
struct port{
struct port master *port type; /* Access to generic port information */
char id[ ]; /* Unique identification */
struct cell *parent cell; /* To which cell does this port belong? */
struct net *connected net; /* To which net is this port connected? */
};
struct net{
char id[ ]; /* Unique identification */
setof struct port joined ports; /* Ports connected by the net */
};
the below procedure i tried.
I created one empty node for each field,i filled it with some design information.
please give me suggestions for further proceedings.