# HG changeset patch # User Mychaela Falconia # Date 1605403030 0 # Node ID 5e91200bf6098301a69ad24c47b240846093d47b # Parent ffadaa339478dc4a9fec81d57d696d3e67d7ed36 netdiff: donl-pinreport utility written, compiles diff -r ffadaa339478 -r 5e91200bf609 .hgignore --- a/.hgignore Sun Sep 20 02:40:23 2020 +0000 +++ b/.hgignore Sun Nov 15 01:17:10 2020 +0000 @@ -24,6 +24,7 @@ ^netdiff/convert/protel2donl$ ^netdiff/convert/tedax2donl$ ^netdiff/match/donl-netmatch$ +^netdiff/match/donl-pinreport$ ^netdiff/renpart/donl-rename-parts$ ^pads2gpcb/pads2gpcb$ diff -r ffadaa339478 -r 5e91200bf609 netdiff/match/Makefile --- a/netdiff/match/Makefile Sun Sep 20 02:40:23 2020 +0000 +++ b/netdiff/match/Makefile Sun Nov 15 01:17:10 2020 +0000 @@ -1,16 +1,21 @@ CC= gcc CFLAGS= -O2 -PROG= donl-netmatch -OBJS= main.o rdpass.o +PROGS= donl-netmatch donl-pinreport BINDIR= /usr/local/bin -all: ${PROG} +NETMATCH_OBJS= main.o rdpass.o +PINREPORT_OBJS= main2.o rdpass.o + +all: ${PROGS} -${PROG}: ${OBJS} - ${CC} ${CFLAGS} -o $@ ${OBJS} +donl-netmatch: ${NETMATCH_OBJS} + ${CC} ${CFLAGS} -o $@ ${NETMATCH_OBJS} + +donl-pinreport: ${PINREPORT_OBJS} + ${CC} ${CFLAGS} -o $@ ${PINREPORT_OBJS} install: - install -c -o bin -g bin -m 755 ${PROG} ${BINDIR} + install -c -o bin -g bin -m 755 ${PROGS} ${BINDIR} clean: - rm -f *.[ao] a.out core errs ${PROG} + rm -f *.[ao] a.out core errs ${PROGS} diff -r ffadaa339478 -r 5e91200bf609 netdiff/match/main2.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/netdiff/match/main2.c Sun Nov 15 01:17:10 2020 +0000 @@ -0,0 +1,37 @@ +#include +#include +#include "struct.h" + +char *infnames[2]; +struct pin_info *database; + +emit_output() +{ + struct pin_info *p; + + for (p = database; p; p = p->next) { + if (!p->netnames[0]) + p->netnames[0] = "-"; + if (!p->netnames[1]) + p->netnames[1] = "-"; + printf("%s\t%s\t%s\n", p->pin_name, p->netnames[0], + p->netnames[1]); + } +} + +main(argc, argv) + char **argv; +{ + int i; + + if (argc != 3) { + fprintf(stderr, "usage: %s net1 net2\n", argv[0]); + exit(1); + } + infnames[0] = argv[1]; + infnames[1] = argv[2]; + for (i = 0; i < 2; i++) + read_pass(i); + emit_output(); + exit(0); +}