Scientists have built a working prototype of a light-based chip for 6G and 7G connectivity.