Physics — Logic: XOR from basic gates
Building XOR from AND, OR and NOT gates.
Make it your own.
title "XOR from AND/OR/NOT"
type gates
input A at (0,0)
input B at (0,3)
gate NOT G1 at (2,0.5)
gate NOT G2 at (2,2.5)
gate AND G3 at (4,0)
gate AND G4 at (4,3)
gate OR G5 at (7,1.5)
output Y at (10,1.5)
wire A G1
wire B G2
wire A G3
wire G2 G3
wire G1 G4
wire B G4
wire G3 G5
wire G4 G5
wire G5 Y