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

Physics — Logic: AND from NAND gates

A NAND followed by a NAND inverter gives AND.

Template previewDigital logic (gates / K-map / truth table)
AND from NAND gatesABG1G2YEvaluated: 2 inputs, 1 output, 4 rows. 1 thing is probably not what was meant.`G2` is a NAND with one wire into it, from `G1`. A one-input NAND is an inverter, and the figure still draws the two…Y = ¬¬(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 (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