Administrator
|
There were a couple times I wanted to expand a 1-bit signal into a 16-bit bus and came up with this one line, but rather inefficient, solution by thinking about strange ways to use the chips already made:
Mux16(a=false, b=true, sel=1-bit-signal, out=16-bit-bus);
This is mostly just a cute trick, though. It would be better to write a chip named something like Bus16 to do this job more efficiently. It also makes the HDL more readable!
|