Engine swap de to hr

What would i need for a de to a hr 3.5 swap other then the engine my de went out on my g35 coupe and was lowkey thinking if i should swap it for the hr and could i use the same transmission cd00 i just need what i would need other then the engine and the ecu