Self-calibration approach for mixed signal circuits in systems-on-chip