separating control bits: HDL requires fan-in of one.
Most significant bit of instruction input is supposed to be the selection bit for the first Multiplexer that selects between ALU output and instruction input. Multiplexer's output is then connected to A-register.
To do this, I tried Mux16(a=instruction, b=aluout, sel=instruction, out=muxone); this gives an error because chips should have a fan-in of one.
Then I tried:-
Mux16(a=instruction, b=aluout, sel=sepc, out=muxone); // uses op-code
Or16(a=false, b=instruction, out=sepc);
Mux16(a=false, b=sepc, sel=instruction, out=control); // separated control bits
Register(in=muxone, load=control, out=aout, out=addressM); // A-register, addressM err at first line : "sub bus of an internal node may not be used. "
Cannot think of any other way than to construct another chip that accomplishes the task of renaming the instruction input.