Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
14968 Discussions

Generic single/multibit synchroniser

MichaelB
New Contributor I
353 Views

Hi,

 

I've a question about the Quartus attribute for synchronisation:

attribute altera_attribute of sync_s : signal is "-name SYNCHRONIZER_IDENTIFICATION FORCED_IF_ASYNCHRONOUS";
Does the attribute force Quartus to place both register close?
 
Because after synthesis and fitter I checked chip viewer and both registers are placed close together (registerA from clockA to registerB from clockB):
Screenshot 2020-09-14 at 13.59.21.png
 
 
 
Timing fails here because net delay is very high.
 
After that I set both clocks in clock_group as asynchronous (ClockA is from DDR4 user clock @ 300MHz and clockB is from IO PLL @ 250 MHz) and between both register won't be recognised anymore.
 
Would this be valid for single bit or multi bit synchroniser? (status signals like pll_locked, reset_done, etc.)
 
 
I checked the CDC FIFO of Intel IP where net_delay, clock_skew, etc. will be defined.
Is this required in my own implementation, too?
 
Do you recommend to use CDC FIFO for single bit transfer or just for multi bit?
 
Best regards,
Michael
0 Kudos
1 Solution
KennyT_Intel
Moderator
319 Views

Hi,


You may take a look into this https://www.youtube.com/watch?v=VbL_eflvHM4


It provide details on how you should handle the CDC path, let us know if there are more question base on the video.


Best regards,

Kenny Tan


View solution in original post

6 Replies
ak6dn
Valued Contributor II
338 Views

Have you read this page:

https://www.intel.com/content/www/us/en/programmable/quartushelp/13.0/mergedProjects/logicops/logico...

In particular the note" "as long as the Optimize Design for Metastability option is turned on. " below the table is relevant.

Typically for crossing an asynchronous boundary you will have a register clocked on clock A driving a net to a dual rank pair of registers in sequence clocked on clock B. You will only use the output of the second register in the clock B domain.

It is also the case that checking the timing between the registers on clock A vs the registers on clock B, where clocks A and B are asynchronous, is not meaningful. Normally you would use the  set_clock_groups -asynchronous -group {ClockA} -group {ClockB}  directive to inform the timing analyzer the clocks are unrelated and timing can't be checked.

MichaelB
New Contributor I
330 Views

Thanks for your reply!

Yes I have set the setting for metastability. Furthermore I've set "forced if async" to detect clock domain crossing.

 

I just want to sync a status signal which goes from 1 to 0 or 0 to 1 for a long time!

There is no data sync for that I obviously would use a CDC FIFO!

Due I use 3 sync stages there should be no issue with metastability after synchronisation, I guess.

 

Are there further constraints required like explained in following page? https://www.intel.com/content/www/us/en/programmable/support/support-resources/knowledge-base/tools/... 

 

I think false_path is not recommended anymore.

As mentioned in page above "Next, constrain the paths with set_net_delay to make them as short as possible":

Would this has any further positive effects in placing both registers close to each other? (Like in my screenshot from chip planer) Or will this be done by synchroniser detection automatically?

 (Like "ASYNC_REG" attribute used by Xilinx to force both regs placed close to each other)

 

Do I have to define skew & net delay, too, even if the synchroniser detection is "on" for async clock domains?

 

Sorry for all my questions but I want to be sure no issues will come up and I am quite new to Intel FPGAs   (just worked with Xilinx FPGAs for now).

KennyT_Intel
Moderator
320 Views

Hi,


You may take a look into this https://www.youtube.com/watch?v=VbL_eflvHM4


It provide details on how you should handle the CDC path, let us know if there are more question base on the video.


Best regards,

Kenny Tan


View solution in original post

MichaelB
New Contributor I
311 Views

Thanks for the video link! Very well explained!

 

Is it possible to write net_delay SDC command in HDL as attribute?

 

Best regards

KennyT_Intel
Moderator
294 Views

nope, you can check all the attribute by right click the verilog/vhdl files -> insert template.


KennyT_Intel
Moderator
279 Views

Since this thread had been answered, we shall close this thread. If you still need further assistance, you are welcome to post a response within 15days or open a new thread, some one will be right with you. 


Reply