Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20689 Discussions

How to set SDC constraints for cross clock sample?

RLee42
Novice
1,232 Views

My device is Cyclone III EP3C16F256. In my design, I have two clock, clk2 is derived from clk1 in PLL with 180 degree phase shift. There is 1bit data in clk2 clock domain which need to be sampled in clk1 clock domain.

 

Since the clk2 is derived from clk1 with fixed phase difference, is it possible to sample the data correctly just with SDC constraints instead of traditional asynchronous methods(asynchronous fifo or two FFs)? If so, which SDC command should I use?

 

Thank you for help.

0 Kudos
1 Reply
sstrell
Honored Contributor III
326 Views

The clock domains are synchronous to each other, so you can use multicycle timing exceptions to choose the correct edges for setup and hold analysis.

 

While you're not creating an external source synchronous interface, it sounds like you're creating something similar internally. See the timing exceptions section of this OLT for ideas on the multicycle exceptions you'll need:

 

https://www.intel.com/content/www/us/en/programmable/support/training/course/ocss1000.html

0 Kudos
Reply