FreeCalypso > hg > ueda-linux
view ueda/sverp/misc.c @ 153:c147a730271f
KWH020ST23-F01.fp corrections:
1) Y geometry for the solder pads was wrong
2) add silk dots matching alignment holes in the FPC tail
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 24 Jun 2021 06:38:02 +0000 |
| parents | 7b4f78fcca08 |
| children |
line wrap: on
line source
/* * ueda-sverp miscellaneous functions */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include "struct.h" extern struct module_def *glob_module_list, *top_module_def; extern char *top_module_expl; struct module_def * find_module_by_name(namesought) register char *namesought; { register struct module_def *m; for (m = glob_module_list; m; m = m->next) if (!strcmp(m->name, namesought)) break; return(m); } process_explicit_topmod() { register struct module_def *mod; mod = find_module_by_name(top_module_expl); if (!mod) { fprintf(stderr, "error: module \"%s\" (-t option) not found\n", top_module_expl); exit(1); } if (mod->is_primitive) { fprintf(stderr, "error: module %s selected with -t is a primitive\n", top_module_expl); exit(1); } if (mod->nports) { fprintf(stderr, "error: module %s (-t option) has ports and thus cannot be top\n", top_module_expl); exit(1); } /* all checks passed */ top_module_def = mod; }
