I'm working on the CPU and I wonder if there's any easy way to reference a sub-bus without using lots of extra gates?
For example, instead of typing "instruction" over and over I want to type "c1" to reference the bit.
I came up with this but it seems ridiculously inefficient adding over a dozen extra And-gates:
//Rename the pins
And(a=instruction, b=true, out=c1);
And(a=instruction, b=true, out=c2);
And(a=instruction, b=true, out=c3);
//...and so on
P.S. I don't think this hdl is giving anything away, it's just the definition of the C-Instruction bits directly from the book, I'm not really doing any logic.