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

Physics — Logic: OR from NAND gates

Inverting both inputs into a NAND yields OR.

Template previewDigital logic (gates / K-map / truth table)
OR from NAND gatesABG1G2G3YEvaluated: 2 inputs, 1 output, 4 rows. 2 things are probably not what was meant.`G1` is a NAND with one wire into it, from `A`. A one-input NAND is an inverter, and the figure still draws the two-…`G2` is a NAND with one wire into it, from `B`. A one-input NAND is an inverter, and the figure still draws the two-…Y = ¬(¬A · ¬B)

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