Transferring a stream of data between first and second electronic devices via a network on-chip