The EWS ECU (Immobiliser) checks the key code is correct and if it matches, it sends an 'OK to Start' signal to the Engine ECU. The Engine ECU then checks the EWS ECU to make sure it is the the right checksum value and proceeds to start the car...
If you swap the ECU, you have to get it matched...