nand2tetris/nand2tetris-suite/tools/builtInChips/Mux.hdl

17 lines
315 B
Plaintext

// 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/Mux.hdl
/**
* Multiplexor. If sel == 1 then out = b else out = a.
*/
CHIP Mux {
IN a, b, sel;
OUT out;
BUILTIN Mux;
}