



:define xor_gate[w=1]

:input	A[w],B[w]
:output	Q[w]


:expression

Q = OR( AND(A,!B), AND(!A,B) )


:placement
; optional

; in order of appearance:
A   @ -80,-40  ; leftmost column
B   @ -80,+40  ; leftmost column
Q   @ +80,0    ; rightmost column

OR  @ 40,0
AND @ 0,-40
NOT @ -40,-20
AND @ 0,+40
NOT @ -40,+20



