Physics — Logic: AND from NAND gates
A NAND followed by a NAND inverter gives 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 (3,1)
gate NAND G2 at (6,1)
output Y at (9,1)
wire A G1
wire B G1
wire G1 G2
wire G2 Y