AR# 34937: Clocking Wizard - When the output CLK is the same as the input, the Requested and Actual can be slightly different
AR# 34937
|
Clocking Wizard - When the output CLK is the same as the input, the Requested and Actual can be slightly different
描述
When using the Clocking Wizard and the Output clock frequency as the input Clock, sometimes the Request and Actual Frequencies are different in the Wizard. Why?
解决方案
1) The Clocking Wizard performs the calculations to find M, D and CLKOUTx_DIVIDE rounding to 3 decimal places, which is consistent with TRCE. This can cause minor rounding error.
For example, if the input frequency is 61.44MHz and the request CLKOUT frequency = 44.8MHz, this will result in an Actual CLKOUT frequency =44.807MHz
The first step the Wizard does is convert the input frequency to period and round to 3 decimal places.
2) The rounding error may also cause a minor discrepancy between the displayed Actual frequency and what is output.
For example if you input 510MHz andrequest 510MHz.
Here the CLKIN is entered as 510 MHz:
When selecting 510 MHz as the output Frequency, you can see that instead of getting 510 MHz, the Actual is listed as 510.204 MHz:
The reason for this is how the calculations are done; they only use 3 decimal places. The following is how the 510.204 MHz is created:
Computed Clock Period = 1/510 MHz = 1.960784314ns with 3 decimal places = 1.960 ns Computed Output Frequency = 1/1.960nS = 510.204 MHz
In Hardware, the output frequency will be 510 MHz as Requested. In order to verify this, the output frequency can be calculated using the settings on page 4 of the wizard: