AWG-based architecture for optical interconnection in asynchronous systems