The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 21st, 2024, 2:25am
Pages: 1
Send Topic Print
MASH111 sdm simulation in spectre ..? (Read 2816 times)
roseriver
New Member
*
Offline



Posts: 1
san diego, CA
MASH111 sdm simulation in spectre ..?
Aug 18th, 2009, 4:21pm
 
Hi,
I am new to sdm design, and I'm not good at MATLAB or Verilog-AMS either. Supposed I have a MASH111 sigma delta modulator with input word of 20 bits( 16LSBs setting the fractional part going into 16bit accumulator and 4MSBs setting the integer part going into last output adders). This sdm has 4bit output,which control the multi-modulus divider,which in binary number will be any value from 0 to 15.(fs=25MHz). I ran a transient simulation in spectre for 100uS which is about 2500 samples of fs ( I know it might be too short of 2^16=65,536 ),and set fracn<15:0>=0.5*65536=32768 and int<19:16>=8
1) I just want to check the average value of output code. I used the average function of calculator,ex
average(VT("/out<3>")/1.8*8+(VT("/out<2>")/1.8*4+(VT("/out<1>")/1.8*2+VT("/out<0
>")/1.8)))
Is it the right way to do??
I expect to see the number of ~8.5, and I got ~8.1.
when I reset int<19:16>=0, I have a number of ~3.1???
2)I want to check power spectrum density of output code,ex:
dB10(psd(VT("/out<0>"),0,100u,1024, ?windowName "Hanning", ?smooth 1, ?windowSize 512, ?detrending "None", ?cohGain 1))
Is it the right way to do ?
I did not see the sigma delta noise shape at output. Maybe because I did not run long enough ??
Please help.
Thanks alot,
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: MASH111 sdm simulation in spectre ..?
Reply #1 - Aug 19th, 2009, 5:22am
 
For the first question, perhaps you need to sample the output (use the sample function) because otherwise you're going to be dependent upon the duty cycle of the outputs?

It's a little hard to tell what is right without more details of what you're doing. A picture is worth a thousand words...

Andrew.
Back to top
 
 
View Profile WWW   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.