# SNR Signal to noise ratio of Pseudo random bit sequence (PRBS)

How should I estimate the Signal to noise ratio of a 20 Gbps NRZ PRBS pattern from power spectral density--where should I take the noise floor if I can assume well the noise is AWGN?

I know roughly what the spectra should look like: https://pdfserv.maximintegrated.com/en/an/AN3455.pdf

and how an oscilloscope would take the SNR in the time domain over a distribution of samples: https://gwdata.cdn-anritsu.com/en-us/test-measurement/reffiles/Products-Solutions/11410-00919A-Eye-Diagram-AN.pdf

but how would I correctly go about using the periodogram/ power spectrum to find the SNR? Should I take the noise floor to be where out at where the spectra is flat?

I have a time domain data set of PRBS7 with noise, the data only has one non repeated segment of the PRBS7, sampled with 1ps resolution ( why the MATLAB snr() function gives it out past 250GHz) the resolution isn't so great I think because the length of this sample is 6500ps. Matlab uses a default kaiser window for filtering, I may be able to do better with different filters, but want to see if this is on the right track. If you can assume the noise is White, and you can assume the PRBS is a rectangular waveform (with a Sinc function spectrum) then the equivalent 2-sided brick-wall noise bandwidth of the Sinc with nulls at 1/T (where T is the pulse width) is 1/T. If your signal level is sufficiently in far excess of the total noise power (such as 15 dB or more) then you can estimate the signal power from total power received and compute the noise power over that equivalent bandwidth (1/T) using the estimate of the noise floor far from the signal. Pay attention to the resolution bandwidth setting on the spectrum analyzer to then determine power values / Hz (for example if you are using a 1 KHz resolution band width and a pixel displays a power level of -70 dBm, this is -100 dBm/Hz since $$10Log10(1000) = 30$$ dB.) For lower signal powers you can resolve the signal to noise by knowing the total power is the additive power of signal plus noise (for example if the signal is only 10 dB higher the noise, the total power measured will be 0.4 dB higher than the signal alone given $$10Log(1+10^{-10/10})= 0.4$$, and for 15 dB higher will be 0.14 dB from $$10Log(1+10^{-15/10}) = 0.14$$)