Altera_Forum
Honored Contributor
14 years agosource synchronous interface or virtual clock?
My FPGA is connected to an ADC. There are three interface signals between them : SCLK and DOUT, which are outputs from FPGA, and DIN, input from ADC.
SCLK is generated by dividing the system clock of FPGA by 4. (I do not use SCLK directly as a clock to sample DIN, the logic in FPGA is all synchronized to system clock.) How do I constrain these three signals? Shall I use the source synchronous interface style? That is, use create_generated_clock on SCLK, and specify output delay on DOUT with respect to SCLK? In that case, how do I constrain input delay on DIN, if I want to consider board delay on SCLK? Or, shall I create a virtual clock with the same frequency as SCLK, and constrain input/output delay on DIN/DOUT with respect to this virtual clock? Thank you very much for advice!