And16(a=a16, b[0]=b, b[1]=b ... b[15]=b, out=out16)
where a16 and out16 are 16-bit buses and b is a single-bit signal.
Although single-bit signals can't connect to buses, the builtin 'true' and 'false' can be connected to buses. There are clever ways to use Mux16 to convert a simple signal to a bus, and to make the 16x1 And and Or.
(I did initially write a Wire part using out=!!in, and a Make16 part that used Wire to connect the in to all the outs, before I figured out the Mux16 tricks.)
--Mark
| Free forum by Nabble | Edit this page |