; This example shows how PRIORITY can be used to correctly route a one
; sided board which was otherwise un-route-able.
; ex1 - the example file without 'priority' keyword
; ex2 - the example file after adding 'priority' keyword to 2 of the lines.

dimension (15,30)

include pcbinc:ttl7400.inc

; power and ground are supplied here
hole (3,20)
hole (3,25)

; ~R - input
hole (15,5)
; ~S - input
hole (15,7)

; Q - output
hole (3,9)
; ~Q - output
hole (3,11)

; four instances of the above chip
chipat (6,5) name=nand0 type=ttl7400 orientation=normal

; connect power and ground to all chips
connect (3,20) and nand0.vcc
connect (3,25) and nand0.gnd
connect (15,5) and nand0.a1
connect (15,7) and nand0.a2
connect nand0.y1 and nand0.b2
connect nand0.y2 and nand0.b1
connect nand0.y1 and (3,9)
connect nand0.y2 and (3,11)
