Physics — Logic: AND / OR / NOT
The three fundamental logic gates side by side.
Make it your own.
title "Fundamental gates"
type gates
input A at (0,0)
input B at (0,2)
gate AND G1 at (3,0.5)
gate OR G2 at (3,3)
gate NOT G3 at (3,5)
output X at (6,0.5)
output Y at (6,3)
output Z at (6,5)
wire A G1
wire B G1
wire A G2
wire B G2
wire A G3
wire G1 X
wire G2 Y
wire G3 Z