Analysis of ultra-small photonic large scale integrated circuits