Hi,
I'm currently having some speed issues that I'm hoping someone might be able to shed some light and recommend/suggest where I might have missed a step? I have a basic SPI setup following Adam Taylor's Microzed(ish) chronicle series 81 - SPI.
In VIVADO:
I've routed the MIO pins to SPI0: SS[0]-MIO13, MOSI-MIO10, MISO-MIO11,SCLK-MIO12.
On the EMIO side, I've routed and constrained the following pins to the JB1 PMOD connector:
** SSI is tied to a constant block (of value 1) in Vivado as suggested in TRM **
SPI0_MOSI_O --> SDO
set_property PACKAGE_PIN Y8 [get_ports SDO]
Y8 is connected to BANK13_LVDS_8_N on the Picozed
SPI0_SCLK_O--> sclk
set_property PACKAGE_PIN W9 [get_ports sclk]
W9 is connected to BANK13_LVDS_9_N on the Picozed
In XSDK:
I've duplicated Adam Taylor's _part82.c (via GitHub).
Executing the example code, I'm getting two issues:
A. on the JB1-PL (EMIO) side, I can't go faster than 6.25MHz at the moment. I've tried changing the SPI frequency in Vivado Block Design several times (100MHz, 166.667MHz, 200MHz) and then using XSPIPS_CLK_PRESCALE_32 (or _8, _64 etc..) to fine tune it but still no success.
B. The SPI on JPS1 has no signals coming out. I'm using an oscilloscope to trace the signals at the moment. There are no signals coming out of the Pin 2 and Pin 4 on the JPS1-PMOD connector. (ie..MOSI and SCLK pins).
Thank you for any suggestions/recommendations.