Many informations missing, e.g. frequency, FET type, magnitude and waveform of the demodulating signal. It looks like you have much crosstalk of original signal. May be a matter of FET Cds capacitance, missing bulk bias or unsuitable demodulation signal magnitude.
I guess the "desired output" has been generated by using ideal switches or a behavioral multiplier?
Wow, I thought I might have some missing information, but...
Thanks for the fast reply too!
Ok,
frequency of modulating signal: 50kHz - 90kHz (in this case 50)
frequency of modulated signal: 200 - 2000Hz (in this case 2000Hz)
FET - MOSFET n type (p type available) L = 0.8u W = 30u M = 1
The desired output was created using the circuit shown (although the negative waveform isn't good). However, it is on the scale of mV.
This is the whole block:
https://docs.google.com/open?id=0B0T5dH2mGd3vVVhaSmFYVVFtMU0
The aim is to measure the capacitance of a plate (for a MEMS device). The inputs to the XY blocks are the displacement of a plate suspended parallel between two plates. As the center plate moves up and down the capacitance of between the center plate and the top plate varies, as does the cap. between center and bottom.
Applying a sinusoidal voltage to the top of the capacitive potential divider, and it's inverse to the bottom will give an output waveform whose magnitude varies with the capacitance. When the two capacitances are equal, the voltage between them should be 0v.
Thus, the output is as seen in the first post. Now, if the 'modulating' waveform is used to give a gain of 1 when it is positive and -1 when it is negative, we can get a wave that can be simply filtered to extract the data.
Do let me know if I am explaining things clearly.
EDIT: The real ideal behavior (not shown) I originally simulated using a behavioral multiplier and low-pass ABM. In that scenario I achieved near-perfect output.