I am simulating a 3rd order SDM and I want to plot the PSD of the output.
As you may know, the output is a sequence of pulses ranging from -3 to +4. The number of samples is $N$.
The way I approached the problem is the following:
- Use fft on the output sequence
- normalize (divide by $N$)
- Square the above signal.
- multiply by 2 ( because I need the one-sided band -- not sure about this ).
The plot should then be $10\log_{10}(signal)$ if I am not mistaken.
Problem is that I get a big deviation from the ideal curve of the expected noise.
Am I doing something wrong?