Self-calibrating on-chip interconnects