The upcoming Tensor G5 will be Google's first fully custom chip, and thanks to a leak from Google we now know how it achieved this feat.