Re: sorry i forget about mux16
Posted by
WBahn on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Hello-everybody-and-thanks-for-the-help-tp4028383p4033072.html
michael1978 wrote
mux16 is easy
only i use array for example
mux16(a[0..15], b[0..15], sel=sel[0..15], out=out[0..15])
result the same like mux
if if sel[1]= 1 and a[1]= out a[1] otherwise b[1];
This isn't the specification for the Mux16 given in the project. If you don't implement your parts so that they meet the specification, then you can't hope that anything that uses them will work like it's supposed to.
The Mux16 has a single bit selection line -- not 16 bits.
If the value of the 'sel' input is 0, then the 16-bit output 'out' is equal to the 16-bit input at port 'a', while if 'sel' is 1, then 'out' is equal to 'b'.