Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Contributor
sulilittle
Posts: 50
Registered: ‎12-13-2011
0

Different clock region constraints

Hi,

I want  to constrain the different clock region between two groups: Is this right?How to caculator the MAX acceptiable time between CLK_A and CLK_B.

 

NET "CLK_A" TNM_NET = "clk180M";

NET "CLK_B" TNM_NET = "clk540M";

 

TIMESPEC TS_clk180M= PERIOD 5.555 ns HIGH 50 %;

TIMESPEC TS_clk540M= PERIOD 1.851 ns HIGH 50 %;

TIMESPEC TS_clk540M= FROM clk180MTO clk540M1.479 ns;

 

 

 

Expert Contributor
sushantm
Posts: 284
Registered: ‎04-02-2011
0

Re: Different clock region constraints


 

Hi,

I want  to constrain the different clock region between two groups: Is this right?How to caculator the MAX acceptiable time between CLK_A and CLK_B.

 

NET "CLK_A" TNM_NET = "clk180M";

NET "CLK_B" TNM_NET = "clk540M";

 

TIMESPEC TS_clk180M= PERIOD 5.555 ns HIGH 50 %;

TIMESPEC TS_clk540M= PERIOD 1.851 ns HIGH 50 %;

TIMESPEC TS_clk540M= FROM clk180MTO clk540M1.479 ns;


 

 

 

You sould refer here

--Sushant Mahajan
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Signature:

1.Have you ever tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com
2.Read the datasheet and user guide. Have you read the user guide in detail ? Can you find the user guide?
3. Search the forums for similar topics.
4.I have neither found any similar thread in existing forum nor web-search is helpful to me.What should I do ?
Post your issue in detail comprehensive format on the relevant
forum.
5. Do not post the same question on multiple forums,please search and post it on relevant forum.
6. Do not raise a new topic or question on someone else's thread, start a new thread!
7. Students/Newbies: Copying code is not the same as learning to design.
8. "It does not work" is not a question which can be answered. Provide much details (with webaddress, datasheet links,etc..).
and make sure to be specific!
9. You are not charged extra fees for comments in your code,It will help others to understand well.
10.If someone answers your question, mark the post with "Accept as solution". If you see a particularly good and informative post, consider giving it Kudos (the star on the left).
Expert Contributor
gszakacs
Posts: 5,259
Registered: ‎08-14-2007
0

Re: Different clock region constraints

The maximum acceptable time depends on your design.  Are the two clock domains

treated as unrelated (fully asynchronous)?  Are the two clocks related (coming from the

same input source, via DCM or PLL)?

 

-- Gabor

-- Gabor
Contributor
sulilittle
Posts: 50
Registered: ‎12-13-2011
0

Re: Different clock region constraints

The two clock domains come from the same DCM.What shoud I do? Thank you very much!

Contributor
sulilittle
Posts: 50
Registered: ‎12-13-2011
0

Re: Different clock region constraints

I have another question:

I use XILINX recommended method:1.Synthsize the design 2. Run implementation first with only pinout contraints

I do not find timing failing,however, the final wave is not right?What is the reason?Thanks!

Visitor
hongh_dup
Posts: 1
Registered: ‎03-19-2012
0

Re: Different clock region constraints

The 2 clock domains will be treated as related clock domain.
Expert Contributor
rcingham
Posts: 2,010
Registered: ‎09-09-2010
0

Re: Different clock region constraints

"The two clock domains come from the same DCM. What shoud I do?"

Have you tried constraining only the input clock of the DCM?

------------------------------------------
"If it don't work in simulation, it won't work on the board."
Expert Contributor
gszakacs
Posts: 5,259
Registered: ‎08-14-2007
0

Re: Different clock region constraints

Just to clarify what rcingham is suggesting:

 

If you constrain the input clock that drives the DCM, TRCE will automatically derive

constraints for the output clocks based on the actual frequencies and phase relationships

programmed.

 

TRCE will also handle cross-clock-domain paths as requiring setup and hold to the

other clock given these frequencies and phase relationships.  For example it understands

that your two clocks will line up on every third cycle of the 540 MHz clock.

 

If your design treats these clocks as unrelated (you use synchronizers and FIFO's as

necessary to cross clock domains), then you will need to ignore some of these cross-clock-domain

derived constraints by adding "TIG" constraints or FROM : TO constraints between the

clock domains.  Thos user constraints will override the derived constraints.

 

If your design relies on the phase relationship between clocks, then you only need the

input clock period constraint, and don't need to add other constraints between clocks.

 

-- Gabor

-- Gabor
Contributor
sulilittle
Posts: 50
Registered: ‎12-13-2011
0

Re: Different clock region constraints

Yes,I have done this:

NET "A_FPGA_ADC_CLK" TNM_NET = "A_FPGA_ADC_CLK";
TIMESPEC TS_A_FPGA_ADC_CLK = PERIOD "A_FPGA_ADC_CLK" 2.777 ns HIGH 50 %;
NET "clk360M" TNM_NET = "clk360M";
TIMESPEC TS_clk360M = PERIOD "clk360M" TS_A_FPGA_ADC_CLK * 1;
NET "clk540M" TNM_NET = "clk540M";
TIMESPEC TS_clk540M = PERIOD "clk540M" TS_A_FPGA_ADC_CLK * 0.666;
NET "clk180M" TNM_NET = "clk180M";
TIMESPEC TS_clk180M = PERIOD "clk180M" TS_A_FPGA_ADC_CLK * 2;

 

Are they all right?

 

But my STAshows which have Phase Errors: How to constraint them ?Thanks!

 


  ================================================================================
 Timing constraint: PERIOD analysis for net "u_dcm_AD/clkout1" derived from  NET "A_FPGA_ADC_CLK" PERIOD = 2.777 ns HIGH 50%;  divided by 1.50 to 1.851 nS   
  6224 paths analyzed, 6144 endpoints analyzed, 4 failing endpoints
  4 timing errors detected. (4 setup errors, 0 hold errors, 0 component switching limit errors)
  Minimum period is   2.004ns.
 --------------------------------------------------------------------------------
 
 Paths for end point u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_47_BRB1 (SLICE_X89Y65.AX), 1 path
 --------------------------------------------------------------------------------
 Slack (setup path):     -0.153ns (requirement - (data path - clock path skew + uncertainty))
   Source:               u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_fir1/u_fir_unit1/DSP48E1_inst (DSP)
   Destination:          u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_47_BRB1 (FF)
   Requirement:          1.851ns
   Data Path Delay:      1.636ns (Levels of Logic = 0)
   Clock Path Skew:      -0.187ns (2.891 - 3.078)
   Source Clock:         clk180M rising at 0.000ns
   Destination Clock:    clk540M rising at 1.851ns
   Clock Uncertainty:    0.181ns
 
   Clock Uncertainty:          0.181ns  ((TSJ^2 + DJ^2)^1/2) / 2 + PE
     Total System Jitter (TSJ):  0.070ns
     Discrete Jitter (DJ):       0.099ns
     Phase Error (PE):           0.120ns
 
   Maximum Data Path at Slow Process Corner: u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_fir1/u_fir_unit1/DSP48E1_inst to u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_47_BRB1
     Location             Delay type         Delay(ns)  Physical Resource
                                                        Logical Resource(s)
     -------------------------------------------------  -------------------
     DSP48_X5Y27.P47      Tdspcko_P_PREG        0.424   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_fir1/u_fir_unit1/DSP48E1_inst
                                                        u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_fir1/u_fir_unit1/DSP48E1_inst
     SLICE_X89Y65.AX      net (fanout=1)        1.196   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/ch1_out<47>
     SLICE_X89Y65.CLK     Tdick                 0.016   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_47_BRB1
                                                        u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_47_BRB1
     -------------------------------------------------  ---------------------------
     Total                                      1.636ns (0.440ns logic, 1.196ns route)
                                                        (26.9% logic, 73.1% route)
 
 --------------------------------------------------------------------------------
 
 Paths for end point u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_45_BRB1 (SLICE_X89Y65.A5), 1 path
 --------------------------------------------------------------------------------
 Slack (setup path):     -0.089ns (requirement - (data path - clock path skew + uncertainty))
   Source:               u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_fir1/u_fir_unit1/DSP48E1_inst (DSP)
   Destination:          u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_45_BRB1 (FF)
   Requirement:          1.851ns
   Data Path Delay:      1.572ns (Levels of Logic = 1)
   Clock Path Skew:      -0.187ns (2.891 - 3.078)
   Source Clock:         clk180M rising at 0.000ns
   Destination Clock:    clk540M rising at 1.851ns
   Clock Uncertainty:    0.181ns
 
   Clock Uncertainty:          0.181ns  ((TSJ^2 + DJ^2)^1/2) / 2 + PE
     Total System Jitter (TSJ):  0.070ns
     Discrete Jitter (DJ):       0.099ns
     Phase Error (PE):           0.120ns
 
   Maximum Data Path at Slow Process Corner: u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_fir1/u_fir_unit1/DSP48E1_inst to u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_45_BRB1
     Location             Delay type         Delay(ns)  Physical Resource
                                                        Logical Resource(s)
     -------------------------------------------------  -------------------
     DSP48_X5Y27.P45      Tdspcko_P_PREG        0.424   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_fir1/u_fir_unit1/DSP48E1_inst
                                                        u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_fir1/u_fir_unit1/DSP48E1_inst
     SLICE_X89Y65.A5      net (fanout=1)        1.113   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/ch1_out<45>
     SLICE_X89Y65.CLK     Tas                   0.035   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_47_BRB1
                                                        u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/ch1_out<45>_rt
                                                        u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/sig_x_out_45_BRB1
     -------------------------------------------------  ---------------------------
     Total                                      1.572ns (0.459ns logic, 1.113ns route)
                                                        (29.2% logic, 70.8% route)
 
 --------------------------------------------------------------------------------
 
 Paths for end point u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_adder_ch3/DSP48E1_inst (DSP48_X2Y21.A2), 1 path
 --------------------------------------------------------------------------------
 Slack (setup path):     -0.029ns (requirement - (data path - clock path skew + uncertainty))
   Source:               u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/x_out_40 (FF)
   Destination:          u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_adder_ch3/DSP48E1_inst (DSP)
   Requirement:          1.851ns
   Data Path Delay:      1.764ns (Levels of Logic = 0)
   Clock Path Skew:      -0.063ns (0.950 - 1.013)
   Source Clock:         clk540M rising at 0.000ns
   Destination Clock:    clk540M rising at 1.851ns
   Clock Uncertainty:    0.053ns
 
   Clock Uncertainty:          0.053ns  ((TSJ^2 + DJ^2)^1/2) / 2 + PE
     Total System Jitter (TSJ):  0.070ns
     Discrete Jitter (DJ):       0.080ns
     Phase Error (PE):           0.000ns
 
   Maximum Data Path at Slow Process Corner: u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/x_out_40 to u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_adder_ch3/DSP48E1_inst
     Location             Delay type         Delay(ns)  Physical Resource
                                                        Logical Resource(s)
     -------------------------------------------------  -------------------
     SLICE_X66Y59.AQ      Tcko                  0.283   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/ch1_out_inter3<42>
                                                        u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_ch1_inter3/x_out_40
     DSP48_X2Y21.A2       net (fanout=1)        1.224   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/ch1_out_inter3<40>
     DSP48_X2Y21.CLK      Tdspdck_A_AREG        0.257   u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_adder_ch3/DSP48E1_inst
                                                        u_FIR_mulps/u_FIR_mulps_ip/u_ch_imag/u_adder_ch3/DSP48E1_inst
     -------------------------------------------------  ---------------------------
     Total                                      1.764ns (0.540ns logic, 1.224ns route)
                                                        (30.6% logic, 69.4% route)
 
 --------------------------------------------------------------------------------
      NET "A_FPGA_ADC_CLK" TNM_NET = "A_FPGA_ADC_CLK";
TIMESPEC TS_A_FPGA_ADC_CLK = PERIOD "A_FPGA_ADC_CLK" 2.777 ns HIGH 50 %;


                         

Contributor
sulilittle
Posts: 50
Registered: ‎12-13-2011
0

Re: Different clock region constraints

Thank you very much!Now I show the error as follows.there is PS error,why?