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.
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?
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
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?
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.
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.