diff 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
line wrap: on
line diff
--- a/ueda/sverp-bind/main.c	Sun Aug 02 01:23:09 2015 +0000
+++ b/ueda/sverp-bind/main.c	Sun Aug 02 03:09:15 2015 +0000
@@ -8,7 +8,7 @@
 
 char *input_filename, *output_filename;
 char *starpoints_file;
-int check_completeness;
+int check_completeness, unbound_instances;
 
 static void
 usage()
@@ -61,10 +61,17 @@
 	set_default_sympath();
 	read_pinouts();
 	init_outcomp_from_MCL();
-
 	/* do we have any star points? */
 	if (starpoints_file)
 		process_starpoints_file();
+	/* read the netlist from sverp */
+	process_input_unet();
+	if (unbound_instances) {
+		fprintf(stderr,
+		"error: %s input contains unbound instances, aborting\n",
+			input_filename);
+		exit(1);
+	}
 
 	/* remaining functionality remains to be implemented */
 	exit(0);