16 lines
353 B
Plaintext
16 lines
353 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/builtInChips/Mux16.hdl
|
|
/**
|
|
* 16-bit multiplexor:
|
|
* out[i] = ((sel == 0), a[i], b[i]) for i = 0..15
|
|
*/
|
|
CHIP Mux16 {
|
|
|
|
IN a[16], b[16], sel;
|
|
OUT out[16];
|
|
|
|
BUILTIN Mux;
|
|
}
|