Re: Mux4way16 problem
Posted by
WBahn on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Mux4way16-problem-tp4035690p4035706.html
Idrisadeniyi wrote
But I have sel[0..1] which I think it stands for sel[1]. the following is the range of sels I have.
sel[0..0]=sel[0..0],
sel[0..0]=sel[0..0],
sel[0..1]=sel[0..1],
sel[0..1]=sel[0..1],
sel[1..1]=sel[1..1],
The notation signal[a..b] means a signal consisting of bits 'a' through 'b' of the bus named 'signal'.
If 'sel' is a 2-bit bus, the sel[1] is the most significant bit and sel[0] is the least significant bit.
sel[0..0] is the same as sel[0].
sel[1..1] is the same as sel[1].
sel[0..1] is the same as sel (i.e., the entire bus).