Altera_Forum
Honored Contributor
10 years agoHow to properly constrain SPI - like interface if SCLK freq = FPGA main clk freq
Hi all!
My problem looks like wdshen'sproblem in that post: http://www.alteraforum.com/forum/archive/index.php/t-32549.html. But it has some interesting details. My ADC mode is here - (http://www.analog.com/static/imported-files/data_sheets/ad7986.pdf figure 26). So it's a problem than FPGA clocks data, which then goes out from ADC to FPGA. And there is no clock source to ADC except FPGA's SCLK. So for me there are in fact 2 interesting I/O ports - SDO (input for FPGA) and SCLK (output from FPGA). But for a timing purposes, my only FPGA clock has a frequency of 100 MHz. And for a high data rate purposes, SCLK is same = 100 MHz. So I'm using gated clock (altera recommended scheme) for creating SCLK. I know delays from SCLK port to ADC and from ADC to SDO input port. But in FPGA I need to constrain delays from gated signal sck to port SCLK, and I can't use fast outpur register because it has the same clock frequency as gated clock data signal. For SDO data I'm using DDIO and it puts in I/O block so I can take the delay into account without a problem. So, what type of constraining such interface can you suggest? Thank you very much for advice!