// 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. /** * And gate: out = a and b. */ CHIP And { IN a, b; OUT out; PARTS: Nand(a=a, b=b, out=c1); Not(in=c1, out=out); }