Rules | Recent posts | topic RSS | Search | Register  | Log in

About D/A simulation

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design
Author Message
Analog_starter



Joined: 15 Nov 2004
Posts: 118


Post26 Dec 2004 8:54   About D/A simulation

Hi all,

Who can give me a Matlab/Simulink example to generate the n-bit digital sine signal for a n-bit D/A SNR etc. simulation?

Thanks & Best Regards
Analog_starter
Back to top
markty



Joined: 15 Dec 2004
Posts: 60
Helped: 2


Post26 Dec 2004 11:57   About D/A simulation

Use the Quantizer in the simulink toolbox.
Back to top
yaxazaa



Joined: 13 Nov 2004
Posts: 119
Helped: 3


Post27 Dec 2004 5:45   Re: About D/A simulation

You can also use script to descript the DAC in matlab besides Simulink. However, you may need to put noise inside as well. When you do SNR, it will be better to Bin it, then FFT/DFT.
Back to top
boeysue



Joined: 23 Dec 2004
Posts: 190
Helped: 3


Post28 Dec 2004 2:41   Re: About D/A simulation

What do you to bin it before FFT?

Added after 25 seconds:

What do you to bin it before FFT?
Back to top
sadfish



Joined: 02 Jul 2004
Posts: 29


Post28 Dec 2004 3:55   About D/A simulation

it is simple.
use simulink's sinwave block to generate a sinwave based sampling mode, and do fft to it
Back to top
xwcwc1234



Joined: 21 Jul 2001
Posts: 313
Helped: 5


Post28 Dec 2004 4:35   Re: About D/A simulation

Where to download the Matlab script file or Simulink model to do D/A simulation ?
Back to top
Analog_starter



Joined: 15 Nov 2004
Posts: 118


Post28 Dec 2004 7:11   Re: About D/A simulation

Yes, I also want to get the Matlab script file or Simulink model to do D/A simulation.

BTW, how can I put the digital sine signal code generated by Matlab/Simulink to a real case DAC for HSPICE simulation, then FFT for SNR? Or is there any better way to do this?

Thanks & Best Regards
Analog_starter
Back to top
arsenal



Joined: 17 Oct 2004
Posts: 134
Helped: 11


Post29 Dec 2004 0:10   About D/A simulation

u may generate it using vec file in hspice
Back to top
xuel



Joined: 16 Nov 2004
Posts: 397
Helped: 11


Post29 Dec 2004 10:59   Re: About D/A simulation

arsenal wrote:
u may generate it using vec file in hspice


how to do it? please give a detailed explanation or example, thx.
Back to top
soccer



Joined: 30 Jul 2004
Posts: 176
Helped: 2


Post29 Dec 2004 16:02   About D/A simulation

matlab's simulink tool
Back to top
arsenal



Joined: 17 Oct 2004
Posts: 134
Helped: 11


Post29 Dec 2004 19:33   Re: About D/A simulation

xuel wrote:
arsenal wrote:
u may generate it using vec file in hspice


how to do it? please give a detailed explanation or example, thx.



ok,vec file just descripts waveforms in ascii file and u can look it up in the help files of hspice.
and there is another very simple way to give the stimuli:
just use N vpulses in hspice and by setting different delay and period u can get wanted N input waveforms
Back to top
field_catcher



Joined: 27 Dec 2004
Posts: 26


Post29 Dec 2004 23:05   Re: About D/A simulation

Analog_starter wrote:
Yes, I also want to get the Matlab script file or Simulink model to do D/A simulation.

BTW, how can I put the digital sine signal code generated by Matlab/Simulink to a real case DAC for HSPICE simulation, then FFT for SNR? Or is there any better way to do this?

Thanks & Best Regards
Analog_starter


You also can use spectreVerilog simulator. Save the sample sinewave data into a ASCII file, write a verilg code to read the data. Then you can put verilog model as input to the real D/A in spectreVerilog simultor.
Hope it helps.
Back to top
xwcwc1234



Joined: 21 Jul 2001
Posts: 313
Helped: 5


Post30 Dec 2004 3:55   Re: About D/A simulation

Is that mean Cadence Spectra can do mixed-mode circuit simulation ?
Back to top
field_catcher



Joined: 27 Dec 2004
Posts: 26


Post30 Dec 2004 4:22   Re: About D/A simulation

xwcwc1234 wrote:
Is that mean Cadence Spectra can do mixed-mode circuit simulation ?

not the spectre simulator. It is spectreVerilog simulator. spectreVerilog simulator uses spectre to do analog simulation and verilog_XL to digital simulation, it has scheme to let these two simulator communicate with each other.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap