h_sync_gen tested and working.