Hi,
I am very new to Cadence and been trying to set up a quite simple simulation without success. I am trying to simulate an envelope detector (AM demodulator), where I feed a double sideband AM signal and see what is downconverted at the output (baseband). For speed and efficiency I want this to be a large-signal/small-signal hb analysis, so this is what I did so far:
1) Set up a port with a sinusoidal excitation at frequency "frf" (the carrier). I select a certain amplitude, and I also select a "PAC Magnitude" under small-signal parameters
2) I load the variable "frf" in ADE and give it some value, and set up hb analysis where I sweep the carrier "frf" in a certain range. That, as far as I understand, will solve the circuit with harmonic balance for the different values of "frf"
3) I add hbac analysis on top, which I want to use to process the two sidebands treating them as small signals.
The problem comes in the last step. Setting upper or lower sidebands as "frf+fsb" and "frf-fsb" seems to give what I want, and I can plot the output of both hb and hbac analysis for each of the sideband separately. However, I cannot find a way to include both sidebands at the same time. I haver tried with a sweep in the hbac analysis which includes only the two points "frf+fsb" and "frf-fsb" but I cannot make sense of the result, or select the appropriate harmonics.
What am I missing here? Is there a better way to do what I am trying to do?
Thanks in advance :)