An analysis of current waveforms in CMOS logic cells for RF mixed circuits