Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need example of generating n-bit signal for D/A simulation

Status
Not open for further replies.

Analog_starter

Advanced Member level 4
Full Member level 1
Joined
Nov 15, 2004
Messages
113
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,296
Activity points
1,111
spectreverilog example download

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
 

.vec & hspice simulation

Use the Quantizer in the simulink toolbox.
 

simulation d/a with matlab

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.
 

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?
 

About D/A simulation

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

Re: About D/A simulation

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

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
 

About D/A simulation

u may generate it using vec file in hspice
 

Re: About D/A simulation

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

how to do it? please give a detailed explanation or example, thx.
 
About D/A simulation

matlab's simulink tool
 

Re: About D/A simulation

xuel said:
arsenal said:
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
 

Re: About D/A simulation

Analog_starter said:
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.
 

Re: About D/A simulation

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

Re: About D/A simulation

xwcwc1234 said:
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.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top