Communication architecture optimization: making the shortest path shorter in regular networks-on-chip