// This file is part of the materials accompanying the book // "The Elements of Computing Systems" by Nisan and Schocken, // MIT Press 2004. Book site: http://www.idc.ac.il/tecs // File name: tools/builtIn/And.hdl. Version: beta 1.4. /** * Or gate: out = a or b. */ CHIP Or { IN a, b; OUT out; PARTS: Not(in=a, out=c1); Not(in=b, out=c2); Nand(a=c1, b=c2, out=out); }