Hi Luca,

Maybe this response is too delayed to be useful, but using the main
casper-astro repository (https://github.com/casper-astro/mlib_devel),
the xps_adc_mkid_4x
should now work with both roach1 and roach2.
I'm not sure what repository you are using which contained the
xps_adc_mkid_4x_r2
block, but this doesn't exist in the "official" repository.

Cheers
Jack

On Fri, 24 Feb 2017 at 19:12 <[email protected]> wrote:

> Dear all,
>
> I’m working on the ROACH2 board with the MKID ADC/DAC board. I can use the
> DAC properly, I generate a sinewave through the Xilinx DDS Core, and I can
> see that sinewave in otput, with the oscilloscope.
> I’m using the DAC_MKID_x4.
> Now what I have to do is acquire a sinewave with the ADC, compute the FFT
> module and phase and store the data, in order to plot the graphs in python.
> I’ve completed the design, simulating with the ADC block with the sim i/q
> inputs. The results are ok, if I analyze the fft with a simulink scope I
> get the sinewave spectrum, only 1 bin of the fft is high, at the frequency
> of the sinewave.
>
> The problem occurs when I try to generate and syntesize the system.
> If I use the ADC_MKID with only two parallel outputs, by connecting a
> couple of FFT inputs together, I can generate the .bof file, but whenever I
> run the code on the FPGA the data from the FFT are wrong (to read data I do
> the same procedure of tut3). I guess that it’s probably due to the fact
> that I am using 2 parallel outputs with a FFT block that actually requires
> 4 parallel inputs.
> Actually I tried to generate a sinewave to the I_channel of the dac,
> acquire with the adc_mkid with 2 outputs and put on the Q_channel of the
> dac. In that way I can see the sinwave ( with a bit of distortion) on the
> oscilloscope.
> If I use the ADC_MKID_x4, within the sub-menu XPS_CASPER LIBRARY->ADC I
> get some errors saying that cannot find the MPD core for the interface.
> If I just click on XPS_CASPER_LIB within the simulink library browser,
> instead of the sub-menu XSP_CASPER -> ADC, I have two blocks ADC_MKID_x4_r2
> and DAC_MKID_x4_r2, but when I put it in the model, the label say r1
> instead of r2, and there is the sign “Bad Link”.
> Actually if I check within the
> opt/MUSIC/mlib_devel/xps_base/XPS_ROACH2_BASE/pcores/ directory I only have
> the version 2 “adc_mkid_4x_interface_v2_00_a”, while within the
> opt/MUSIC/mlib_devel/xps_library/ I have both the versions
> “@xps_adc_mkid_4x” and “@xps_adc_mkid_4x_r2”.
>
> I attach some pictures that maybe can explain better.
> I really hope that someone can help me to fix that issue, it’s taking too
> much time.
>
> Thank you some much.
> If needed I can also attach the model file.
>
> Sincerely,
>
> Luca Finazzi,
> Visiting student.
>
>
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "
> [email protected]" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
>

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to