I'm working, specifically, on producing the zr output of the ALU. My considered method is to OR the entire "out" (under an internal bus aliased "preout") against itself and then negate it, like this:
The simulator doesn't like the use of the sub buses of preout ("sub bus of an internal node may not be used"). Is my syntax wrong in some way, or is my implementation just straight-up wrong?
I could just make a 16-in OR, but I want try to stick to the chips in the book.
Create the 8-bit buses you need with additional out= connections on tha part that is generating the output:
SomePart(..., out[0..7]=preoutLow, out[8..15]=preoutHigh);
Or8Way(in=preoutLow, out=ora);
etc.