I want to do the macro simulation for a typical pfc ccm controller using ideal source in cadence. But I don't know how to build the gain modulator which generates the current reference. The formula for this block is that IGAINMOD=(IAC × VEAO × 1V)/square(VRMS), IAC, VEAO and VRMS are the three input for this block, output is a current. Can someone tell me how to use the ideal model to build this block?