On-chip resonance in nanoscale integrated circuits