comparison ueda/sverp-bind/main.c @ 19:1d4c693b8f35

unet-bind: sverp netlist reading implemented
author Space Falcon <falcon@ivan.Harhan.ORG>
date Sun, 02 Aug 2015 03:09:15 +0000
parents 65a515c20db8
children f7b09a54c2ce
comparison
equal deleted inserted replaced
18:52000ae7a6cf 19:1d4c693b8f35
6 6
7 extern char *MCLfile; 7 extern char *MCLfile;
8 8
9 char *input_filename, *output_filename; 9 char *input_filename, *output_filename;
10 char *starpoints_file; 10 char *starpoints_file;
11 int check_completeness; 11 int check_completeness, unbound_instances;
12 12
13 static void 13 static void
14 usage() 14 usage()
15 { 15 {
16 fprintf(stderr, 16 fprintf(stderr,
59 /* process all inputs from the MCL */ 59 /* process all inputs from the MCL */
60 read_MCL(); 60 read_MCL();
61 set_default_sympath(); 61 set_default_sympath();
62 read_pinouts(); 62 read_pinouts();
63 init_outcomp_from_MCL(); 63 init_outcomp_from_MCL();
64
65 /* do we have any star points? */ 64 /* do we have any star points? */
66 if (starpoints_file) 65 if (starpoints_file)
67 process_starpoints_file(); 66 process_starpoints_file();
67 /* read the netlist from sverp */
68 process_input_unet();
69 if (unbound_instances) {
70 fprintf(stderr,
71 "error: %s input contains unbound instances, aborting\n",
72 input_filename);
73 exit(1);
74 }
68 75
69 /* remaining functionality remains to be implemented */ 76 /* remaining functionality remains to be implemented */
70 exit(0); 77 exit(0);
71 } 78 }