The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 18th, 2024, 5:24am
Pages: 1
Send Topic Print
SNR calculation (Read 1388 times)
lrc
Junior Member
**
Offline

Grrr....

Posts: 11
U.S.A
SNR calculation
Oct 27th, 2006, 7:04pm
 
Hi,

I am trying to calculate SNR of my sampling circuit by doing the following:
1. Transient sim using spectre.  fin/fsample = M/N, where 2M<N, N and M are prime to each other. N is the total number of samples (eg. 256)  
2. In ADE, apply calculator function dft to my transient output waveform --- dft(waveform, 2n, 514n, 256, 'rectangular')
3. Export the dft data to a file.
4. In matlab, I loaded the exported data, then
VFund=max(mag) //find the fundamental
VNoise=sqrt(sum(mag.^2)-VFund.^2) // Noise
snr = 20*log10(VFund/VNoise
NumberOfBits = (snr-1.76)/6.02

Am I correct?  Did I calculate SNDR instead?
When tuning the switches  of S/H circuit, what is the right way to calculate the number of bits the circuit has already achieved?  

Thanks for the help.

LRC
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.