A method, device and storage medium for generating uniformly distributed jitter pseudo-random numbers

By using multiple PRBS structures to generate pseudo-random numbers in an all-digital phase-locked loop circuit and recombining them to establish a lookup table, the problems of slow convergence speed and large error of the KTDC value in the traditional method are solved, and uniformly distributed pseudo-random numbers are achieved. The generation of KTDC value improves the convergence speed and accuracy.

CN116225372BActive Publication Date: 2024-09-13成都星拓微电子科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310180153.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-09-13
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

In all-digital phase-locked loop circuits, traditional methods are difficult to generate uniformly distributed pseudo-random numbers that meet the jitter requirements, resulting in slow convergence of the KTDC value and large errors.

Method used

By selecting N bit values ​​from multiple PRBS structures, recombining them into N bit numbers, and establishing a lookup table, uniform distribution of pseudo-random numbers is achieved, supporting ±1, ±2, ±3, ±4, ±5, ± 6. ±7 seven jitter value distribution modes.

Benefits of technology

It achieves fast convergence and high-precision convergence of KTDC values, meeting the requirements of 0 mean value and uniform distribution of the same positive and negative values ​​required for jitter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116225372B
    Figure CN116225372B
Patent Text Reader

Abstract

The present invention provides a method for generating a uniformly distributed jittered pseudo-random number. In the pseudo-random numbers generated by at least two PRBS structures, N bit values ​​are selected, the N bits are recombined into an N-bit number, and a lookup table is established with the value range of the N-bit number to achieve the uniform distribution of the required pseudo-random number distribution; wherein each N-bit number value in the lookup table corresponds to a jittered output value. The present invention generates pseudo-random numbers using multiple PRBSs, and regenerates pseudo-random numbers in the form of recombination, which meets the 0 mean required by the jitter, and the output of the same positive and negative values ​​is uniformly distributed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of all-digital phase-locked loop circuits, and in particular to a method, device and storage medium for generating uniformly distributed jitter pseudo-random numbers. Background Art

[0002] In the fully digital phase-locked loop circuit (ADPLL), the convergence of the TDC time and phase conversion coefficient (KTDC value) requires the calculation of the TDC output value and phase error. When the ADPLL converges well, the TDC output value and the phase error value change very little, providing little information, resulting in a very slow convergence of the KTDC value and a large converged value error. By adding jitter to increase the TDC output jitter, the KTDC value converges faster and can converge to a more accurate value.

[0003] The traditional way to add jitter is to randomly add 1 or 2 bits, and the data is generally a pseudo-random number generated by a register or PRBS structure. However, since the jitter needs to satisfy the 0 mean and the same positive and negative values ​​of the output need to be evenly distributed, directly using the PRBS structure cannot generate the required pseudo-random numbers. Summary of the invention

[0004] In view of the problems existing in the prior art, a method, device and storage medium for generating a uniformly distributed jittered pseudo-random number are provided, which realizes uniform distribution of pseudo-random data by combining values ​​in multiple PRBS structures.

[0005] The technical solution adopted by the present invention is as follows: a method for generating a uniformly distributed jittered pseudo-random number, in which N bit values ​​are selected from the pseudo-random numbers generated by at least two PRBS structures, the N bits are recombined into an N-bit number, and a lookup table is established with a value range of the N-bit number to achieve a uniform distribution of the required pseudo-random number distribution; wherein each N-bit number value in the lookup table corresponds to a jittered output value.

[0006] As a preferred solution, when selecting a bit value, a bit value with an interval in the PRBS structure is selected.

[0007] As a preferred solution, the lookup table supports seven jitter value distribution modes: ±1, ±2, ±3, ±4, ±5, ±6, and ±7.

[0008] As a preferred solution, the PRBS structures are selected as PRBS23 structure and PRBS31 structure respectively.

[0009] As a preferred solution, when selecting bit values, two bit values ​​are selected in the PRBS23 structure, and three bit values ​​are selected in the PRBS31 structure, for a total of five bit values.

[0010] As a preferred solution, the 23rd and 12th bit values ​​are selected in the PRBS23 structure, namely PRBS23 (23) and PRBS23 (12).

[0011] As a preferred solution, the 31st, 12th and 7th bit values ​​are selected in the PRBS31 structure, namely PRBS31(31), PRBS31(12) and PRBS31(7).

[0012] As a preferred solution, the number of bits after the combination is the value obtained by sequentially concatenating PRBS23(23), PRBS31(31), PRBS23(12), PRBS31(12), and PRBS31(7).

[0013] The present invention also proposes an electronic device, including a memory and a processor, wherein the memory stores a computer program corresponding to the bubble fuzzy processing method described above that can be loaded and executed by the processor.

[0014] The present invention also proposes a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, they are used to implement the process corresponding to the above-mentioned Bubble fuzzy processing method.

[0015] Compared with the prior art, the beneficial effect of adopting the above technical solution is: the present invention uses multiple PRBS to generate pseudo-random numbers, and regenerates pseudo-random numbers in the form of recombination, which meets the 0 mean required by the jitter, and the output of the same positive and negative values ​​is evenly distributed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a flow chart of the uniformly distributed jitter pseudo-random number generation method proposed by the present invention.

[0017] Figure 2 FIG. 1 is a schematic diagram of the structure of PRBS23 used in one embodiment of the present invention.

[0018] Figure 3 FIG. 1 is a schematic diagram of the structure of PRBS31 used in one embodiment of the present invention. DETAILED DESCRIPTION

[0019] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar modules or modules with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be construed as limitations on the present application. On the contrary, the embodiments of the present application include all changes, modifications and equivalents that fall within the spirit and connotation of the appended claims.

[0020] Example 1

[0021] In order to speed up the convergence speed and convergence accuracy of the KTDC value in the all-digital phase-locked loop circuit, it is necessary to increase the output jitter of the TDC by adding jitter. The conventional way of adding jitter is difficult to directly generate pseudo-random numbers with uniform distribution. Based on this, this embodiment proposes a method for generating jitter pseudo-random numbers with uniform distribution, which can easily achieve uniform distribution of multiple value modes. The specific scheme is as follows:

[0022] like Figure 1 As shown, a method for generating a uniformly distributed jittered pseudo-random number is provided. In the pseudo-random numbers generated by at least two PRBS structures, N bit values ​​are selected, the N bits are recombined into an N-bit number, and a lookup table is established with a value range of the N-bit number to achieve a uniform distribution of the pseudo-random numbers of the desired distribution; wherein each N-bit value in the lookup table corresponds to a jittered output value.

[0023] Specifically, since adjacent bit values ​​in the PRBS structure have a large correlation, which will affect randomness, when selecting bit values, it is necessary to select bit values ​​with a certain interval in the PRBS structure, that is, select bit values ​​that are far apart, to reduce the correlation.

[0024] In this embodiment, the at least two PRBS structures mentioned can be selected from the traditional PRBS structure. In this embodiment, the PRBS23 structure and the PRBS31 structure are selected. For specific structures, see Figure 2 and Figure 3 It should be noted that, in practical applications, any number and type of PRBS structures can be selected as needed, and the more PRBS structures selected, the better the randomness.

[0025] In this embodiment, five bit values ​​are selected, namely, the 23rd and 12th bit values ​​in the PRBS23 structure, i.e., PRBS23 (23) and PRBS23 (12), and the 31st, 12th, and 7th bit values ​​in the PRBS31 structure, i.e., PRBS31 (31), PRBS31 (12), and PRBS31 (7). It should be noted that in practical applications, the selection of these five bit values ​​is not limited, and other bit values ​​can be selected as long as the correlation is low.

[0026] When combining the 5-bit values, a combination method that reduces the correlation of adjacent bits is also selected, that is, PRBS23(23), PRBS31(31), PRBS23(12), PRBS31(12), and PRBS31(7) are sequentially spliced ​​to form a value, and its expression range is 0-31. In practical applications, different numbers of bits can also be selected, such as 4 bits, 6 bits, etc. When selecting different numbers of bits, the lookup table is re-established according to the range values ​​corresponding to the different number of bit combination values, so that the proportion of each output in the table is the proportion of the number in the finally generated random sequence.

[0027] The proportion of randomly generated numbers is determined by the proportion of the number of values ​​(i.e., jitter outputs) in the total number of bits. For example, if a 5-bit table lookup is used and mode 3 is selected, the jitter output 0 occupies 4 numbers in the table, 0, 1, 2, and 3 in 5 bits. Then, the proportion of jitter output 0 in all the random numbers generated is 4 / 32=12.5%. Another example is a 10-bit table lookup (value range is 0-1024), where a certain jitter output occupies 100 numbers in 10 bits, 0-99. Then, the proportion of this output number in the random number generated is 100 / 1024=9.77%. By increasing the number of bits in the lookup table, resources can be used to exchange for the accuracy of the proportion of generated random numbers.

[0028] It should be noted that when the present invention establishes a lookup table, the proportion of each number is different according to the mode, but it needs to meet the core requirements, that is, the output needs to achieve symmetrical distribution and uniform distribution. The number of bits that constitute the PRBS is n, and the output of the PRBS is (2^n), 0~(2^n)-1. Here, 5 bits are used as an example, and the combined PRBS output value has a total of 32 types from 0 to 31. The distribution of each PRBS output value is 1 / (2^n), which is 1 / 32 here; then any value can be selected, and the random value required for the output corresponding to the lookup table is output, and the distribution is 1 / (2^n) multiplied by a few PRBS values. 0 / 1 / 2 / 3 is a total of 4 numbers, and the final output ratio is 4 / 32. If it is 0 / 1 / 2 / 3 / 4 / 5, there are 6 numbers, and the final output ratio is 6 / 32. According to the selected mode, the proportion distribution of all output values ​​is completed, and the establishment of the lookup table is completed.

[0029] In this embodiment, a lookup table supporting seven jitter value distribution modes of ±1, ±2, ±3, ±4, ±5, ±6, and ±7 can be established through the combined values. The lookup table of this embodiment is shown in Table 1 below:

[0030] Table 1 5-bit lookup table

[0031]

[0032] The PRBS output values ​​in the table correspond to the reorganized [PRBS23(23), PRBS31(31), PRBS23(12), PRBS31(12), PRBS31(7)]; the optional range of the dither distribution mode is 0-6, corresponding to seven dither value distribution modes of ±1, ±2, ±3, ±4, ±5, ±6, and ±7. It should be noted that when establishing the lookup table, due to the uniform distribution of the digits 0-31 of the 5-bit combination, the output after the lookup table accounts for a certain number of numbers in 0-31, that is, a certain proportion of thirty-second, and based on this, the lookup tables of different modes are designed.

[0033] Referring to Table 1, we can see that when the jitter distribution mode is 0 and the value distribution is ±1:

[0034] When the PRBS output value is 0-15 and 16-31, the jitter output corresponds to -1 and +1 respectively.

[0035] When the jitter distribution mode is 1 and the value distribution is ±2:

[0036] When the PRBS output values ​​are 0-7, 8-13, 14-19, 20-25, and 26-31, the jitter outputs correspond to 0, -1, +1, -2, and +2, respectively.

[0037] When the jitter distribution mode is 2 and the value distribution is ±3:

[0038] When the PRBS output values ​​are 0-1, 2-6, 7-11, 12-16, 17-21, 22-26, and 27-31, the jitter outputs are 0, -1, +1, -2, +2, -3, and +3, respectively.

[0039] When the jitter distribution mode is 3 and the value distribution is ±4:

[0040] The PRBS output values ​​0-3, 4-7, 8-11, 12-15, 16-19, 20-23, 24-27, 28-29, and 30-31 correspond to the jitter outputs 0, -1, +1, -2, +2, -3, +3, -4, and +4, respectively.

[0041] When the jitter distribution mode is 4 and the value distribution is ±5:

[0042] The PRBS output values ​​0-1, 2-4, 5-7, 8-10, 11-13, 14-16, 17-19, 20-22, 23-25, 26-28, and 29-31 correspond to the jitter outputs 0, -1, +1, -2, +2, -3, +3, -4, +4, -5, and +5, respectively.

[0043] When the jitter distribution mode is 5 and the value distribution is ±6:

[0044] The PRBS output values ​​0-1, 2-4, 5-7, 8-10, 11-13, 14-16, 17-19, 20-21, 22-23, 24-25, 26-27, 28-29, 30-31 correspond to the jitter outputs 0, -1, +1, -2, +2, -3, +3, -4, +4, -5, +5, -6, +6 respectively.

[0045] When the jitter distribution mode is 6 and the value distribution is ±7:

[0046] The PRBS output values ​​0-3, 4-5, 6-7, 8-9, 10-11, 12-13, 14-15, 16-17, 18-19, 20-21, 22-23, 24-25, 26-27, 28-29, 30-31 correspond to the jitter outputs 0, -1, +1, -2, +2, -3, +3, -4, +4, -5, +5, -6, +6, -7, +7 respectively.

[0047] It should be noted that when the pseudo-random number generation method proposed in this embodiment is adopted, the mode selection can be selected through a register, that is, a software configuration method, and the current mode can be changed at any time, which is highly flexible.

[0048] In order to verify the uniformity of the pseudo-random number generation method proposed in the present invention, the distribution probability of 1,000,000 pseudo-random numbers generated by this method is as follows:

[0049] Mode 0:

[0050]

[0051] Mode 1:

[0052]

[0053] Mode 2:

[0054]

[0055] Mode 3:

[0056]

[0057] Mode 4:

[0058]

[0059] Mode 5:

[0060]

[0061] Mode 6:

[0062]

[0063] It can be seen that among the 7 proposed value modes, all can meet the requirement of 0 mean and the same positive and negative values ​​of the output need to be evenly distributed.

[0064] Example 2

[0065] The present invention also proposes an electronic device, including a memory and a processor, wherein the memory stores a computer program corresponding to the Bubble fuzzy processing method described in Example 1 that can be loaded by the processor and executed.

[0066] Example 3

[0067] The present invention also proposes a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, they are used to implement the process corresponding to the Bubble fuzzy processing method described in Example 1.

[0068] It should be noted that in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "setting" and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances; the drawings in the embodiments are used to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings herein can be arranged and designed in various different configurations.

[0069] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for generating uniformly distributed jittered pseudo-random numbers, characterized in that: The time and phase conversion coefficient convergence process of a time-to-digital converter applied to a fully digital phase-locked loop circuit includes: selecting N bit values ​​from pseudo-random numbers generated by at least two PRBS structures, recombining the N bits into an N-bit number, and establishing a lookup table with a value range of the N-bit number to achieve uniform distribution of pseudo-random numbers of desired distribution; wherein each N-bit number value in the lookup table corresponds to a jitter output value; when selecting a bit value, selecting a bit value with an interval in the PRBS structure; the lookup table supports a total of seven jitter value uniform distribution modes of ±1, ±2, ±3, ±4, ±5, ±6, and ±7.

2. The method for generating uniformly distributed jittered pseudo-random numbers according to claim 1, characterized in that: The PRBS structures are selected as PRBS23 structure and PRBS31 structure respectively.

3. The method for generating uniformly distributed jittered pseudo-random numbers according to claim 2, characterized in that: When selecting the bit value, two bit values ​​are selected in the PRBS23 structure, and three bit values ​​are selected in the PRBS31 structure, for a total of five bit values.

4. The method for generating uniformly distributed jittered pseudo-random numbers according to claim 2 or 3, characterized in that: The 23rd and 12th bit values ​​are selected in the PRBS23 structure, namely PRBS23(23) and PRBS23(12).

5. The method for generating uniformly distributed jittered pseudo-random numbers according to claim 4, characterized in that: The 31st, 12th, and 7th bit values ​​are selected in the PRBS31 structure, namely, PRBS31(31), PRBS31(12), and PRBS31(7).

6. The method for generating uniformly distributed jittered pseudo-random numbers according to claim 5, characterized in that: The number of bits after the combination is the value obtained by sequentially concatenating PRBS23(23), PRBS31(31), PRBS23(12), PRBS31(12), and PRBS31(7).

7. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program corresponding to the uniformly distributed jitter pseudo-random number generation method according to any one of claims 1 to 6, which can be loaded by the processor and executed.

8. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, they are used to implement a process corresponding to the uniformly distributed jittered pseudo-random number generation method described in any one of claims 1 to 6.