Physics — Logic: OR from NAND gates
Inverting both inputs into a NAND yields OR.
Make it your own.
title "OR from NAND gates"
type gates
input A at (0,0)
input B at (0,4)
gate NAND G1 at (3,0.5)
gate NAND G2 at (3,3.5)
gate NAND G3 at (6,2)
output Y at (9,2)
wire A G1
wire B G2
wire G1 G3
wire G2 G3
wire G3 Y