Forum Discussion
Constraint for phase-shifted external clock (Specifying Clock Waveform Edges)
- 2 years ago
After looking at the Board Configuration, I believe this is Source-Synchronous Interface.
You may refer to the AN 433: Constraining and Analyzing Source-Synchronous Interfaces, section "Input Clock Constraints" on how to constraint the clock.
With the current clock constraints you have, they are not synchronous with each other. Therefore, meeting either the phase-shift or frequency requirement cannot fulfill both requirements simultaneously.
One approach I can suggest is to write a clock constraint in such a way that Quartus treats this as a PLL, ensuring that both clocks are synchronous with each other.
Regards,
Richard Tan
You can try to add set_multicycle_path constraint for fast-to-slow clock.
multicycle -setup with a value of N, and a multicycle -hold with a value of N-1
set_multicycle_path N -setup -from launch_clk(fast) -to latch_clock(slow) -start
set_multicycle_path N-1 -hold -from launch_clk(fast) -to latch_clock(slow)
Regards,
Richard Tan
Thank you for your reply. I'm glad you didn't forget me.
Now, I added the multi_cycle_path constraint you taught me.
It's true that the timing between the launch and the latch clocks changes.
Setup
Setup Waveform
Hold
Hold Waveform
But isn't it different from what you expected?
Regards,
HKana17