Re: Internal pin to bus
Posted by
cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Internal-pin-to-bus-tp4026005p4027768.html
Christer Nilsson wrote
Is there a way to expand copper without using expensive gates?
At one point I wanted to name some individual wires of a bus to make some code clearer so I wrote the equivalent of your Dummy as
Chip Alias {
...
And (a=in, b=true, out=out);
}
Realize that since this is all simulation, it doesn't matter that there are "gates" hidden in Alias or your Expand16.
I put Alias.hdl in tools/builtInChips and it's available anywhere, just like the other built-in chips.
--Mark