My goal is to deactivate the chips beyond the A-register (except PC) like ALU and D-register whenever I encounter an A-instruction. I tried this chip:
Mux16(a=false, b=instruction, sel=instruction[15], out=cinstruction);
but it returned an error. It turned out that if in is an a-instruction, cinstruction = 0, not 16 bit zeroes. In this case, ALU will not be reading this as a multiple bit but just a single zero.
What I'm attempting to do now is to see if '0110000000000000' could be inserted into the Mux16 chip above. Is this possible? If not, what are the alternatives? Thanks.
CPU.hdl