HI Laura: Thanks for your help. You are right. If I set more samples per period, it is more difficult for me to find the difference. I setup the sine wave according your setting, the difference is obvious.
I think you explanation for the ADC internal structure is correct. The extra delay in O1 is for alignment. But I still have one more question: How the ADC module is linked to the HDL code in the library? Some low level function, such as convert the DDR data into single sample edge data, rebuffer the ADC clock, is done by HDL code. But I can not see how these HDL files are included into the design flow. Do you have any idea? Thanks Wan ________________________________ From: Laura Spitler [mailto:laura.spit...@gmail.com] Sent: Thursday, 30 October 2008 1:48 AM To: Cheng, Wan (ATNF, Marsfield) Cc: casper@lists.berkeley.edu Subject: Re: [casper] Casper 10.1 library issue Hi Wan, That is strange. I made a model that looks identical to your AC_test using 10.1, and the output looks correct. Here are the parameters I'm using for the 'Sine Wave' block: Sine type : Sample based Amplitude: 1 Bias: 0 Samples per period: 10 Number of offset samples: 0 Sample time: 1/8 The sample time of the ADC block should be 1. The ADC block uses 4 or 8 downsample blocks for interleave off and on respectively to mimic the parallel output of the ADC, which is why you have to set sample time to either 1/4 or 1/8. The line with the delay block set to 2 rather than 1 is connected to the downsample block with offset sample = 0. My guess is the latency through the downsample block for the o0 sample is zero, so to keep it aligned with o1-o7, it needs an extra delay. If I'm wrong, someone correct me. In any case I don't think this is your trouble. If you're still having trouble, feel free to email me your model and I'll take a look at it. Good luck, Laura On Tue, Oct 28, 2008 at 10:37 PM, <wan.ch...@csiro.au> wrote: Hi Laura: When I set the sample time of sine wave to 1/8, all outputs are still same. I look at the subsystem of ADC module, and I find, except O1 has 1 more cycle delay, all other channel have same function. I am not sure how the ADC is implement. Do you have any idea? Thanks Wan ________________________________ From: Laura Spitler [mailto:laura.spit...@gmail.com<mailto:laura.spit...@gmail.com>] Sent: Wednesday, 29 October 2008 12:15 PM To: Cheng, Wan (ATNF, Marsfield) Cc: casper@lists.berkeley.edu<mailto:casper@lists.berkeley.edu> Subject: Re: [casper] Casper 10.1 library issue Hi Wan, In the Simulink 'Sine Wave' block, do you have your sample time set to 1/8 or 1? Similarly if you turn interleave off, the sample time should be 1/4. Best, Laura On Tue, Oct 28, 2008 at 8:59 PM, <wan.ch...@csiro.au> wrote: Hi All: I just set a simple ADC module in simulink and check the ADC output. But the issue is that all eight outputs have same output data. This is different with showed in manual. From manual, these output should generate 8 sequence sampling. But as I know, they seems same. For details, please see the attached. Any idea? Thanks Wan