Skip to content
Digital logic (gates / K-map / truth table) templates

Physics — AND from NAND Gates

A NAND followed by a NAND inverter makes an AND.

Template previewDigital logic (gates / K-map / truth table)
AND from NAND gatesABG1G2YEvaluated: 2 inputs, 1 output, 4 rows — Y = ¬(¬(A · B) · ¬(A · B)).`G1` to `G2` is drawn twice, which reads as both inputs of `G2` tied to `G1` — the usual way to make an inverter out of a NAND. Two wires…Y = ¬(¬(A · B) · ¬(A · B))

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