Physics — AND from NAND Gates
A NAND followed by a NAND inverter makes an AND.
Make it your own.
title "AND from NAND gates"
type gates
input A at (0,0)
input B at (0,2)
gate NAND G1 at (4,1)
gate NAND G2 at (8,1)
output Y at (11,1)
wire A G1
wire B G1
wire G1 G2
wire G1 G2
wire G2 Y