Architecture of a digital PFM controller for IC implementation