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.

Help me with pipeline ADC modeling using Simulink/Matlab

Status
Not open for further replies.

suhas_shiv

Full Member level 2
Joined
Nov 30, 2005
Messages
136
Helped
11
Reputation
22
Reaction score
4
Trophy points
1,298
Activity points
2,461
Need Help with ADC

I am doing a pipeline ADC modeling using Simulink/Matlab. I am getting the ADC output plot. Now I have written a code for INL/DNL (in a m-file). I want to pass on the output plot(basically the values) from Simulink as input to the m-file. How can I do this? Can anyone please explain(step-by-step if possible)?

Next I want to see the SFDR of the ADC. I was thinking of inputting a sine wave and then doing a FFT on it and plot the frequency spectrum to find the range. Is my thinking correct? I would appreciate if someone could help me out. Thanks.
 

Need Help with ADC

u can export ur adc output to matlab workspace,
and then use ur inl.dnl mfile to analysize it.

u r correct.
 

Need Help with ADC

Thanks, but which block do I use in Simulink? The "to workspace" block? Or is there any other block which will help me do it?
Basically I want to pass on the ADC output onto a function(wherein the ADC output is stored in variable X). This variable X is the input to the function.
 

Need Help with ADC

block 'to workspace' can do that.

if u want a simulink block to process data directly,
use 'user defined function' block.
change variable name to 'u'.

In fact, u needn't use such a block, if u just want to see the inl.dnl curve.
 

Need Help with ADC

Thanks for the tip. I tried using the "to workspace" block and stored the values as variable X. When I run the matlab file it doesn't read X for some reason. I guess I might be doing something wrong or not passing on the values in the correct way.

I will try using the user defined block and see if it works.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top