Hi Carlos,

On Tuesday 28 February 2006 20:21, You wrote:
[...]
> Patches are always very welcome!!
Well, then here comes my next proposal:

I  got an error message I didnt like:
Checking type of pins connected to a net...
ERROR: Pin(s) with pintype 'output': U106:11 U107:11 U101:16 U101:15
        are connected by net 'NoConnection' to pin(s) with pintype 'output': 
U106:11 U107:11 U101:16 U101:15

As the net 'NoConnection' was ignored somwhere else in the
gnet-drc2.scm, I thought perhaps we could ignore it here, too.
So I changed the drc2:check-pintypes-of-single-net, to ignore
the NoConnection net. (I am not sure if this is the right thing to
do, though. Is there a better way to handle the unconnected pins,
other than connecting them to a nc-symbol?)

Anyway, I created the patch with
diff -bB -U4 gnet-drc2.scm+netname_patch gnet-drc2.scm > 
gnet-drc2.scm.noconnection_patch
(It is based on my last patch, as the netname is needed
in the check to ignore the NoConnection net.)

It is no more tested than that it made the error message go
away and that it still detected one other shortened net with
pintypes 'output'.

Best regards,
Holger.

-- 
/"\ Holger Oehm <[EMAIL PROTECTED]>
\ / KeyID: B50E51A9, 1024bit at http://www.holger-oehm.de/public-key.asc
 X  Fingerprint: E92A 5C2C 497A 44ED 23C0  DB66 1DD9 3EF7 B50E 51A9
/ \ ASCII Ribbon Campaign against HTML email
--- gnet-drc2.scm+netname_patch	2006-03-01 22:50:34.000000000 +0100
+++ gnet-drc2.scm	2006-03-01 23:06:39.000000000 +0100
@@ -653,8 +653,10 @@
 		   (newline port)
 		   (error "INTERNAL ERROR: DRC matrix has unknown value. See output for more information"))
 		 
 		 (begin 
+		    (if (not (string-ci=? netname "NoConnection"))
+		      (begin 
 		   (if (eqv? drc-matrix-value #\w) 
 		       (begin
 			 (display "WARNING: " port)
 			 (set! warnings_number (+ warnings_number 1)))
@@ -674,9 +676,10 @@
 		   (display (drc2:display-pins-of-type port type2
 							 connections) port)
 		   (newline port)
 		   )
-		 ))))))
+		    )
+		  )))))))
 
 ;;
 ;; Check pintypes of the pins connected to a single net
 ;;

Attachment: pgpT3X0ESrUwP.pgp
Description: PGP signature

Reply via email to