swapping 3sz engine with a K3

Forum: 

My 2009 Terios' engine is completely shut and I am looking into replacing it with a K3 ve engine that has become available. I was wondering what it would take to make that change. Would it fit unto the transmission? would the ecu need to be changed? Thanks