Well this is how i create the circuit in blocks....comparator compare two sin wave voltage, when output is 0, the comparator activate digital circuit to activate pump capacitor on the level of voltage from one voltage
sources. Then the output is equal cross voltage....this is short explanation