Hi Paolo, If I'm reading the code correctly -- https://github.com/casper-astro/mlib_devel/blob/roach2/xps_library/%40xps_adc_mkid/xps_adc_mkid.m -- I believe that none of the SPI pins are driven. I have no idea whether any of these pins are pulled in any particular direction on the hardware since I haven't checked the schematics.
I don't think there is a ready-to-use PPC<->SPI block, but there should be a variety of examples of SPI interfaces for other ADCs in the library -- https://github.com/casper-astro/mlib_devel/blob/roach2/xps_base/XPS_ROACH_base/pcores/opb_adc5g_controller_v1_00_a/hdl/verilog/opb_adc5g_controller.v Integrating such an interface shouldn't be that hard, though involves getting dirty with the toolflow. If you're sure this is your problem and want a hand, give me a shout and I'll try and find the time to help you do this. Cheers Jack On Mon, 19 Feb 2018 at 09:36 Paolo Fresch <[email protected]> wrote: > Dear all, > > > > I am a technical research fellow at INFN sezione di Roma, I am > experiencing strange issue using roach + *mkid DAC/ADC board* > <https://static1.squarespace.com/static/59c075f56f4ca3a44435bdb9/t/59f4e9ae24a694055a5761ad/1509222838779/MKID_DAC_ADC_brief.pdf> > . > > > > Basically, after a “cold” startup the DAC does not generate the correct > sinusoid but either nothing or something senseless. I have a bit of > hardware background especially in serial chip-to-chip buses, I think it is > a problem due to the SPI DAC configuration bus that should be tied to > Virtex-6. In fact, if I “touch” the SPI connector on the DAC/ADC board the > DAC starts to output the correct signal. > > > > Since no pcore is connected to these pin (and matlab prompt a warning > while compiling using casper_xps toolchain) I think this strange behavior > is caused by the undriven pin (at least the spi_resetn) on Virtex side. > > > > Can you confirm that these pins are undriven in the last update of the > yellow block present in the casper mlib_devel ? There is any block in the > casper xps_base or xps_library I can use to interface the PPC with the SPI? > Do I need to design this block from scratch? > > > > Can you help me on this? > > > > Thank you in advance. > > > > BR, > > Paolo Fresch > > -- > 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].

