summaryrefslogtreecommitdiff
path: root/tools/builtInChips/Xor.hdl
blob: 8452d7332980d91216a585ac508f2804e9f9acaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: tools/builtIn/Xor.hdl

/**
 *  Exclusive-or gate: out = !(a == b).
 */

CHIP Xor {

    IN  a, b;
    OUT out;

    BUILTIN Xor;
}