annotate netdiff/match/pindiff.c @ 154:2328205328a9 default tip

m4-fp: WR-FPC 1mm pitch FFC/FPC connectors
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 25 Oct 2022 07:36:09 +0000
parents 64d4abf63e1e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #include <stdio.h>
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 #include <stdlib.h>
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 #include "struct.h"
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 char *infnames[2];
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 struct pin_info *database;
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
148
64d4abf63e1e netdiff: donl-pindiff factored out of donl-netmatch
Mychaela Falconia <falcon@freecalypso.org>
parents: 140
diff changeset
8 write_diffs_report()
140
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 {
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 struct pin_info *p;
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 for (p = database; p; p = p->next) {
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 if (p->netnames[0] && !p->netnames[1])
148
64d4abf63e1e netdiff: donl-pindiff factored out of donl-netmatch
Mychaela Falconia <falcon@freecalypso.org>
parents: 140
diff changeset
14 printf("Pin %s only in %s: net %s\n", p->pin_name,
64d4abf63e1e netdiff: donl-pindiff factored out of donl-netmatch
Mychaela Falconia <falcon@freecalypso.org>
parents: 140
diff changeset
15 infnames[0], p->netnames[0]);
140
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 if (!p->netnames[0] && p->netnames[1])
148
64d4abf63e1e netdiff: donl-pindiff factored out of donl-netmatch
Mychaela Falconia <falcon@freecalypso.org>
parents: 140
diff changeset
17 printf("Pin %s only in %s: net %s\n", p->pin_name,
64d4abf63e1e netdiff: donl-pindiff factored out of donl-netmatch
Mychaela Falconia <falcon@freecalypso.org>
parents: 140
diff changeset
18 infnames[1], p->netnames[1]);
140
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 }
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 }
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 main(argc, argv)
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 char **argv;
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 {
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 int i;
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
148
64d4abf63e1e netdiff: donl-pindiff factored out of donl-netmatch
Mychaela Falconia <falcon@freecalypso.org>
parents: 140
diff changeset
27 if (argc != 3) {
64d4abf63e1e netdiff: donl-pindiff factored out of donl-netmatch
Mychaela Falconia <falcon@freecalypso.org>
parents: 140
diff changeset
28 fprintf(stderr, "usage: %s net1 net2\n", argv[0]);
140
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 exit(1);
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 }
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 infnames[0] = argv[1];
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 infnames[1] = argv[2];
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 for (i = 0; i < 2; i++)
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 read_pass(i);
148
64d4abf63e1e netdiff: donl-pindiff factored out of donl-netmatch
Mychaela Falconia <falcon@freecalypso.org>
parents: 140
diff changeset
35 write_diffs_report();
140
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 exit(0);
d3eb3790386d netdiff: donl-netmatch put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 }