Hello Davood and sunking,
I have designed an opamp as you have suggested and here is the circuit schematic and waveform:
**broken link removed**
**broken link removed**
They don't look much different, only it's more linear.. i want it to be rail-to-rail :|
Added after 39 minutes:
And also, i want to connect this generator to the output of the chargepump and a passive lpf, and if i do that, the current goes through the resistive divider over the opamp instead of charging/discharging the lpf.. i could well use a buffer in between, but the first circuit(two transistors) is slightly simpler than all this, you see..