Forum Discussion
Cyclone V HPS SPI Master: Formula for calculating Tsu(min)/Th(min) from rx_sample_dly and spi_m_clk
Hi
Q1 & Q2 — Does the Cyclone V datasheet provide a Tsu/Th formula?
No — the Cyclone V datasheet does not publish a general formula analogous to Agilex 3's expressions.
Base on the foot note the operating point are (rx_sample_dly = 1, spi_m_clk = 120 MHz) for the Cyclone V.
Q3 — Can the Agilex 3 formula be applied to Cyclone V?
No - The formula used in the Agilex3 is not applicable to the Cyclone V. The formula is device specific.
Q4 — Tsu(min) and Th(min) at rx_sample_dly = 1, spi_m_clk = 200 MHz?
Since there is no formula in calculating the TSU min and Th min, the way moving forward is to "train" the bus with a coding loop.
By setting the rx_sample_dly as 1, check if there are any data errors in the bus, and increasing the value at a increment of 1 until there are no error seen.