The trick then, both in emulator or FPGA, is to find the correct trigger to synchronise both sides. It's not a trick because typical games on such consoles already have such a synchronization.