PYNQ-Z1 SPI clock speed

Hello,

I have created a custom SPI overlay and successfully established communication with the slave device. However, I am facing challenges in achieving my desired clock frequency of 100 MHz. I have attempted to modify the PL Fabric clock configuration, but it appears to have no impact on the number of data reads.

Could someone please provide guidance on how to calculate the current clock speed and how to make the necessary modifications to achieve a clock speed of 100 MHz?

Please find snip of my design and python wrapper.



image

Thanks,
Bhargava

Hi Bhargava,
Sorry, I was on my holiday. I can’t reply to the previous post as it is closed. The equation is as follows:
SPI frequency = ((ext_spi_clk fcy) / frequency ratio) x Multiplying factor
considering axi clk and ext_spi_clk are in the range stated in product guide of axi quad spi IP and ext_spi_clk should not be greater than axi clk.

Thanks,
Mizan

Hi Mizan,

Thank you for your response. I am able to achieve the required clock speed for my design.

Regards,
Bhargava

Additionally, I’m trying to accessing the AXI Quad SPI IP available in the base overlay. Could you please provide guidance on how to access this IP within a Python wrapper?

iop_arduino:


spi_subsystem: