summaryrefslogtreecommitdiff
path: root/tools/builtInChips/Or.hdl
blob: 4a3f14bbed8a745dcb04b59867389bebb375d7c0 (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/Or.hdl


/**
 * Or gate: out = 1 if {a == 1 or b == 1}, 0 otherwise  
 */

CHIP Or {

    IN  a, b;
    OUT out;

    BUILTIN Or;
}