Jitter digital signal generation method, device and electronic equipment
By determining jitter parameters and generating signal values for each target single point data, the problem of low jitter signal reliability under the influence of hardware circuit noise is solved, and jitter signal simulation of higher quality and diversity is achieved.
Patent Information
- Application Number
- CN202410566207.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-05-09
AI Technical Summary
The reliability of the jitter signal generated in the existing technology is low, mainly due to the large phase noise of the hardware circuit, which affects the quality of the simulation signal.
A jitter digital signal generation method is used to determine the jitter parameters for each target single point data, obtain the phase parameters, and determine the target signal value based on the amplitude and type parameters to generate a jitter digital signal. This method includes multiple ways to determine jitter parameters, fuses jitter parameters of adjacent data, and uses software simulation to avoid hardware circuit noise.
It improves the reliability of the jitter signal, enhances the quality of the simulation signal, ensures the diversity of the jitter parameters, and can simulate the actual jitter situation more accurately.
Smart Images

Figure CN118313328B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of digital signal processing, and in particular to a method, device and electronic device for generating a jittered digital signal. Background Art
[0002] Jitter is the deviation of the edge of a signal from its ideal position. It is one of the core contents of the signal integrity test of a digital system and the most important measurement parameter of clocks and serial signals. Among them, the generation of jittered digital signals is adopted in many application scenarios. However, the inventors have found that in the prior art, a hardware simulator is generally used to generate a clock signal with jitter. In this way, due to the large phase noise of the hardware circuit itself, the quality of the simulated signal is greatly affected. Therefore, there is a problem that the reliability of generating a jittered signal is relatively low. Summary of the invention
[0003] In view of this, the purpose of the present application is to provide a method, device and electronic device for generating a jittered digital signal, so as to improve the problem of relatively low reliability of generating a jittered signal in the prior art.
[0004] To achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0005] A method for generating a jittered digital signal, comprising:
[0006] For each target single-point data in the jitter digital signal to be generated, a jitter parameter determination process is performed on the target single-point data to obtain a target jitter parameter corresponding to the target single-point data, and a phase parameter corresponding to the target single-point data is determined based on the target jitter parameter, wherein the target single-point data is determined according to a pre-configured sampling parameter, and the jitter parameter determination process includes at least two different jitter parameter determination methods, and the at least two different jitter parameter determination methods are used to process at least two different target single-point data respectively;
[0007] Acquire amplitude parameters and type parameters configured for the dithered digital signal;
[0008] For each target single point data in the jittered digital signal, based on a phase parameter corresponding to the target single point data, an amplitude parameter and a type parameter corresponding to the jittered digital signal, a target signal value corresponding to the target single point data is determined;
[0009] Based on the target signal value corresponding to each of the target single point data, a dithered digital signal is generated, wherein the dithered digital signal includes the target signal value corresponding to each of the target single point data.
[0010] In a preferred embodiment of the present application, in the above-mentioned jitter digital signal generation method, for each target single point data in the jitter digital signal to be generated, performing jitter parameter determination processing on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and determining a phase parameter corresponding to the target single point data based on the target jitter parameter, includes:
[0011] For the first target single point data in the jitter digital signal to be generated, a first jitter determination process is performed on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and based on the target jitter parameter, a phase parameter corresponding to the target single point data is determined;
[0012] For each target single point data other than the first target single point data in the jitter digital signal to be generated, a second jitter determination process is performed on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and a fusion process is performed on the target jitter parameter and a phase parameter corresponding to the previous target single point data to obtain a phase parameter corresponding to the target single point data, wherein the second jitter determination process is different from the first jitter determination process, and the second jitter determination process at least includes taking the target jitter parameter corresponding to the adjacent previous target single point data as the target jitter parameter of the subsequent target single point data.
[0013] In a preferred selection of the embodiment of the present application, in the above-mentioned jitter digital signal generation method, the step of performing a first jitter determination process on the target single point data in the jitter digital signal to be generated, obtaining a target jitter parameter corresponding to the target single point data, and determining a phase parameter corresponding to the target single point data based on the target jitter parameter includes:
[0014] Performing multiple local first jitter determination processes on first target single point data in the jitter digital signal to be generated, to obtain multiple local jitter parameters corresponding to the first target single point data, wherein every two of the local first jitter determination processes are different, and there is a one-to-one correspondence between the multiple local jitter parameters and the multiple local first jitter determination processes;
[0015] A fusion process is performed on multiple local jitter parameters corresponding to the first target single point data to obtain a target jitter parameter corresponding to the first target single point data, and based on the target jitter parameter, a phase parameter corresponding to the first target single point data is determined, wherein the fusion process at least includes superimposing multiple local jitter parameters.
[0016] In a preferred embodiment of the present application, in the above-mentioned dithered digital signal generation method, the step of performing a plurality of local first dither determination processes on the first target single point data in the dithered digital signal to be generated to obtain a plurality of local dither parameters corresponding to the first target single point data includes:
[0017] Performing data edge determination processing on the first target single point data in the jitter digital signal to be generated, and when the result of the determination processing reflects that the position corresponding to the first target single point data belongs to a rising edge, using a predetermined first parameter as a duty cycle distortion jitter parameter corresponding to the first target single point data, or, when the result of the determination processing reflects that the position corresponding to the first target single point data belongs to a falling edge, using a predetermined second parameter as the duty cycle distortion jitter parameter corresponding to the first target single point data, wherein the first parameter and the second parameter are different, both of which have a correlation with the duty cycle distortion parameter of the jitter digital signal to be generated, and the duty cycle distortion jitter parameter is used as a local jitter parameter corresponding to the first target single point data;
[0018] Performing random jitter determination processing on the first target single point data to obtain a random jitter parameter corresponding to the first target single point data, wherein the random jitter parameter serves as a local jitter parameter corresponding to the first target single point data;
[0019] Perform period jitter determination processing on the first target single point data to obtain a period jitter parameter corresponding to the first target single point data, wherein the period jitter parameter serves as a local jitter parameter corresponding to the first target single point data.
[0020] In a preferred embodiment of the present application, in the above-mentioned jitter digital signal generation method, the step of performing random jitter determination processing on the first target single point data to obtain the random jitter parameters corresponding to the first target single point data includes:
[0021] Obtain a target random seed and a target mean parameter and a target standard deviation of each target Gaussian distribution in the first number of target Gaussian distributions, and determine a corresponding Gaussian white noise based on the target random seed, wherein the data length of the Gaussian white noise is 1 and the standard deviation is 1;
[0022] Based on the sorting of the first target single-point data in the jittered digital signal, the target Gaussian distribution corresponding to the first target single-point data is determined from the first number of target Gaussian distributions, and based on the Gaussian white noise corresponding to the target random seed and the target mean parameter and target standard deviation of the target Gaussian distribution corresponding to the first target single-point data, the random jitter parameters corresponding to the first target single-point data are determined, wherein the random jitter parameters have a positive correlation with the target mean parameter, the target standard deviation and the Gaussian white noise corresponding to the target random seed.
[0023] In a preferred embodiment of the present application, in the above-mentioned jitter digital signal generation method, the step of performing periodic jitter determination processing on the first target single point data to obtain the periodic jitter parameter corresponding to the first target single point data includes:
[0024] Obtaining a target frequency, a target amplitude, and an initial phase of each target sinusoidal signal of the second number of target sinusoidal signals, and, for each of the target sinusoidal signals, calculating a ratio between the target frequency of the target sinusoidal signal and the frequency of the jittered digital signal to obtain a frequency ratio corresponding to the target sinusoidal signal;
[0025] For each of the target sinusoidal signals, based on the target amplitude, frequency ratio and initial phase of the target sinusoidal signal, determine a local periodic jitter parameter corresponding to the target sinusoidal signal;
[0026] The local periodic jitter parameters corresponding to each of the target sinusoidal signals are fused to obtain the periodic jitter parameters corresponding to the first target single point data, wherein the fusion processing at least includes superimposing the local periodic jitter parameters corresponding to each of the target sinusoidal signals.
[0027] In a preferred embodiment of the present application, in the above-mentioned jittered digital signal generation method, the step of determining, for each target single point data in the jittered digital signal, a target signal value corresponding to the target single point data based on a phase parameter corresponding to the target single point data, an amplitude parameter and a type parameter corresponding to the jittered digital signal, includes:
[0028] Respectively performing difference and sum calculations on the maximum value and the minimum value in the amplitude parameter corresponding to the jitter digital signal to obtain a target difference value and a target sum value;
[0029] Based on the functional relationship represented by the type parameter corresponding to the jitter digital signal, the phase parameter corresponding to the target single point data is processed to obtain the function value corresponding to the target single point data;
[0030] Based on the function value corresponding to the target single point data and the function values corresponding to other adjacent target single point data, determining a data edge confirmation result corresponding to the target single point data, wherein the data edge confirmation result is used to reflect whether the position of the target single point data belongs to a data edge;
[0031] When the data edge confirmation result reflects that the position of the target single point data does not belong to the data edge, taking the function value corresponding to the target single point data as the corresponding target signal value;
[0032] When the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, re-determine the target jitter parameter of the target single point data, and determine a new phase parameter corresponding to the target single point data based on the re-determined target jitter parameter;
[0033] Based on the functional relationship characterized by the type parameter corresponding to the jitter digital signal, the new phase parameter corresponding to the target single point data is processed to obtain a new function value corresponding to the target single point data, and the new function value is used as the corresponding target signal value.
[0034] In a preferred selection of the embodiment of the present application, in the above-mentioned jitter digital signal generation method, when the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, the target jitter parameter of the target single point data is re-determined, and the new phase parameter corresponding to the target single point data is determined based on the re-determined target jitter parameter, including:
[0035] When the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, a data edge determination process is performed on the target single point data, and when the result of the determination process reflects that the position corresponding to the target single point data belongs to the rising edge, a predetermined first parameter is used as the duty cycle distortion jitter parameter corresponding to the target single point data, or when the result of the determination process reflects that the position corresponding to the target single point data belongs to the falling edge, a predetermined second parameter is used as the duty cycle distortion jitter parameter corresponding to the target single point data, wherein the first parameter and the second parameter are different, both of which have a correlation with the duty cycle distortion parameter of the jitter digital signal to be generated, and the duty cycle distortion jitter parameter corresponding to the target single point data is used as a local jitter parameter corresponding to the target single point data;
[0036] Performing random jitter determination processing on the target single point data to obtain a random jitter parameter corresponding to the target single point data, wherein the random jitter parameter corresponding to the target single point data is used as a local jitter parameter corresponding to the target single point data;
[0037] Perform periodic jitter determination processing on the target single point data to obtain a periodic jitter parameter corresponding to the target single point data, wherein the periodic jitter parameter corresponding to the target single point data is used as a local jitter parameter corresponding to the target single point data.
[0038] The embodiment of the present application also provides a jitter digital signal generating device, including:
[0039] a phase parameter determination module, configured to perform jitter parameter determination processing on each target single point data in the jitter digital signal to be generated, obtain a target jitter parameter corresponding to the target single point data, and determine a phase parameter corresponding to the target single point data based on the target jitter parameter, wherein the target single point data is determined according to a pre-configured sampling parameter, and the jitter parameter determination processing includes at least two different jitter parameter determination modes, and the at least two different jitter parameter determination modes are used to process at least two different target single point data respectively;
[0040] A signal parameter acquisition module, used to acquire amplitude parameters and type parameters configured for the jitter digital signal;
[0041] A signal value determination module, configured to determine, for each target single point data in the jittered digital signal, a target signal value corresponding to the target single point data based on a phase parameter corresponding to the target single point data, an amplitude parameter and a type parameter corresponding to the jittered digital signal;
[0042] The digital signal generating module is used to generate a jittered digital signal based on a target signal value corresponding to each of the target single point data, wherein the jittered digital signal includes the target signal value corresponding to each of the target single point data.
[0043] Based on the above, an embodiment of the present application further provides an electronic device, including:
[0044] Memory for storing computer programs;
[0045] The processor connected to the memory is used to execute the computer program stored in the memory to implement the above-mentioned dithered digital signal generation method.
[0046] On the basis of the above, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is run, each step of the above-mentioned dithered digital signal generation method is executed.
[0047] The jittered digital signal generation method, device and electronic device provided in the present application can, firstly, perform jitter parameter determination processing on each target single-point data to obtain the corresponding target jitter parameter, and determine the corresponding phase parameter based on the target jitter parameter; secondly, obtain the amplitude parameter and type parameter configured for the jittered digital signal; then, for each target single-point data in the jittered digital signal, determine the corresponding target signal value based on the phase parameter corresponding to the target single-point data, the amplitude parameter and type parameter corresponding to the jittered digital signal; finally, generate the jittered digital signal based on the target signal value corresponding to each target single-point data. Based on the above content, since it is based on software simulation, it is not dependent on the hardware simulator. Therefore, the problem in the prior art that the quality of the simulation signal is relatively low due to the large phase noise of the hardware circuit itself can be improved. In addition, in the process of determining the jitter parameters, at least two different jitter parameter determination methods will be used for at least two different target single-point data, so that the determination of the jitter parameters can have a higher richness. Therefore, the diversity of the jitter digital signal generated based on the determined jitter parameters can be guaranteed, and the actual jitter situation can be simulated more easily to a greater extent, so that the reliability of the jitter signal can be higher, thereby improving the problem of relatively low reliability of the generated jitter signal in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings.
[0049] Figure 1 A structural block diagram of an electronic device provided in an embodiment of the present application.
[0050] Figure 2 A schematic diagram of a flow chart of a dithered digital signal generation method provided in an embodiment of the present application.
[0051] Figure 3 A waveform diagram of a first jittered digital signal provided in an embodiment of the present application.
[0052] Figure 4 for Figure 3 The corresponding spectrum plot of the waveform.
[0053] Figure 5 A waveform diagram of a second jittered digital signal provided in an embodiment of the present application.
[0054] Figure 6 for Figure 5 The corresponding histogram of the waveform.
[0055] Figure 7A block diagram of a jittered digital signal generating device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0057] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0058] like Figure 1 As shown, an embodiment of the present application provides an electronic device, which may include a memory, a processor, and a jitter digital signal generating device.
[0059] Wherein, the memory and the processor are electrically connected directly or indirectly to realize data transmission or interaction. For example, the memory and the processor can be electrically connected through one or more communication buses or signal lines. The jitter digital signal generating device includes at least one software function module stored in the memory in the form of software or firmware. The processor is used to execute an executable computer program stored in the memory, for example, the software function module and computer program included in the jitter digital signal generating device, so as to realize the jitter digital signal generating method provided in the embodiment of the present application.
[0060] Optionally, the memory can be, but is not limited to, random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
[0061] Furthermore, the processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0062] Understandably, Figure 1 The structure shown is for illustration only, and the electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 The different configurations shown, for example, may also include a communication unit for exchanging information with other devices (such as an oscilloscope, etc.).
[0063] Combination Figure 2 The embodiment of the present application further provides a dithered digital signal generation method applicable to the above electronic device, wherein the method steps defined in the process related to the dithered digital signal generation method can be implemented by the electronic device.
[0064] The following will Figure 2 The specific process shown is explained in detail.
[0065] Step S110 , for each target single point data in the jitter digital signal to be generated, jitter parameter determination processing is performed on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and a phase parameter corresponding to the target single point data is determined based on the target jitter parameter.
[0066] In an embodiment of the present application, the electronic device can perform jitter parameter determination processing on each target single-point data in the jitter digital signal that needs to be generated, obtain the target jitter parameter corresponding to the target single-point data, and determine the phase parameter corresponding to the target single-point data based on the target jitter parameter. The target single-point data is determined according to a pre-configured sampling parameter (such as sampling rate, Sampling Rate, which refers to the number of single-point data collected per second, such as 44.1kHz, which means that 44100 single-point data are collected per second) (for example, the number of target single-point data can be determined based on the duration of the jitter digital signal to be generated and the sampling rate. For example, in order to reduce the impact of the error in setting the starting point on the obtained signal, the actual signal length can be greater than the length of the jitter digital signal to be generated. For example, the duration can be more than 2 signal cycles. In this way, after the jitter digital signal is subsequently generated, other redundant signals can also be discarded, such as discarding the signals of the first cycle and the last cycle, etc.), and the jitter parameter determination process includes at least two different jitter parameter determination methods, and the at least two different jitter parameter determination methods are used to process at least two different target single-point data respectively. In addition, the target single-point data can refer to each single-point data in the jitter digital signal, or it can be part of the single-point data in the jitter digital signal, which can be selected according to actual needs.
[0067] Step S120, obtaining an amplitude parameter and a type parameter configured for the dithered digital signal.
[0068] In the embodiment of the present application, the electronic device may obtain an amplitude parameter and a type parameter configured for the jittered digital signal (such as the amplitude and type of the jittered digital signal).
[0069] Step S130 , for each target single point data in the jittered digital signal, based on the phase parameter corresponding to the target single point data, the amplitude parameter and the type parameter corresponding to the jittered digital signal, determine the target signal value corresponding to the target single point data.
[0070] In an embodiment of the present application, after obtaining the phase parameter, the amplitude parameter and the type parameter, the electronic device can determine the target signal value corresponding to each target single point data in the jittered digital signal based on the phase parameter corresponding to the target single point data, the amplitude parameter and the type parameter corresponding to the jittered digital signal.
[0071] Step S140: generating a dithered digital signal based on the target signal value corresponding to each of the target single point data.
[0072] In the embodiment of the present application, after obtaining each of the target single point data, a jitter digital signal can be generated based on the target signal value corresponding to each of the target single point data. The jitter digital signal includes the target signal value corresponding to each of the target single point data. In other words, the jitter digital signal is at least composed of the target signal value corresponding to each of the target single point data, that is, the jitter digital signal can only include the target signal value corresponding to each of the target single point data, or can further include the signal value of other single point data on the basis of including the target signal value corresponding to each of the target single point data.
[0073] Based on the above content, since it is based on software simulation, it is not dependent on the hardware simulator. Therefore, the problem in the prior art that the quality of the simulation signal is relatively low due to the large phase noise of the hardware circuit itself can be improved. In addition, in the process of determining the jitter parameters, at least two different jitter parameter determination methods will be used for at least two different target single-point data, so that the determination of the jitter parameters can have a higher richness. Therefore, the diversity of the jitter digital signal generated based on the determined jitter parameters can be guaranteed, and the actual jitter situation can be simulated more easily to a greater extent, so that the reliability of the jitter signal can be higher, thereby improving the problem of relatively low reliability of the generated jitter signal in the prior art.
[0074] First, it should be noted that for step S110, the specific method of determining the phase parameter of the target single point data is not limited and can be selected according to actual needs.
[0075] For example, in an alternative implementation, in order to ensure that the generated phase parameter can reliably characterize the corresponding jitter condition, the above step S110 may further include step S111 and step S112, and the specific content of each step is as follows.
[0076] Step S111, for the first target single point data in the jitter digital signal to be generated, perform a first jitter determination process on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and determine a phase parameter corresponding to the target single point data based on the target jitter parameter.
[0077] In the embodiment of the present application, for the first target single point data in the jitter digital signal to be generated, the first jitter determination processing can be performed on the target single point data to obtain the target jitter parameter corresponding to the target single point data, and based on the target jitter parameter, the phase parameter corresponding to the target single point data is determined. The occurrence of jitter generally causes a change in phase, so the corresponding phase parameter can be determined based on the obtained target jitter parameter.
[0078] Step S112, for each target single point data other than the first target single point data in the jittered digital signal to be generated, a second jitter determination process is performed on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and a fusion process is performed on the target jitter parameter and a phase parameter corresponding to the previous target single point data to obtain a phase parameter corresponding to the target single point data.
[0079] In the embodiment of the present application, for each target single point data other than the first target single point data in the jitter digital signal to be generated (such as the second target single point data, the third target single point data, the fourth target single point data, etc.), the target single point data can be subjected to a second jitter determination process to obtain a target jitter parameter corresponding to the target single point data, and the target jitter parameter and the phase parameter corresponding to the previous target single point data are fused to obtain a phase parameter corresponding to the target single point data. The second jitter determination process is different from the first jitter determination process, and the second jitter determination process at least includes taking the target jitter parameter corresponding to the adjacent previous target single point data as the target jitter parameter of the subsequent target single point data. Exemplarily, the target jitter parameters corresponding to the previous target single point data can be directly used as the target jitter parameters of the current target single point data. Specifically, the target jitter parameters corresponding to the first target single point data can be used as the target jitter parameters corresponding to the second target single point data, the target jitter parameters corresponding to the second target single point data can be used as the target jitter parameters corresponding to the third target single point data, the target jitter parameters corresponding to the third target single point data can be used as the target jitter parameters corresponding to the fourth target single point data, and so on.
[0080] It can be understood that, in the above step S111, the specific method of determining the phase parameter of the first target single point data is not limited and can be selected according to actual needs.
[0081] For example, in an alternative implementation, the above step S111 may further include step S111a and step S111b, and the specific content of each step is described as follows.
[0082] Step S111a, performing a plurality of local first jitter determination processes on the first target single point data in the jitter digital signal to be generated, to obtain a plurality of local jitter parameters corresponding to the first target single point data.
[0083] In an embodiment of the present application, a plurality of local first jitter determination processes may be performed on the first target single point data in the jitter digital signal to be generated, and a plurality of local jitter parameters corresponding to the first target single point data may be obtained. Wherein, each two of the local first jitter determination processes are different, and there is a one-to-one correspondence between the plurality of local first jitter determination processes. Exemplarily, based on the first local first jitter determination process, a first local jitter parameter may be obtained; and, based on the second local first jitter determination process, a second local jitter parameter may be obtained; and, based on the third local first jitter determination process, a third local jitter parameter may be obtained.
[0084] Step S111b, fusing multiple local jitter parameters corresponding to the first target single point data to obtain a target jitter parameter corresponding to the first target single point data, and determining a phase parameter corresponding to the first target single point data based on the target jitter parameter.
[0085] In the embodiment of the present application, after obtaining the multiple local jitter parameters corresponding to the first target single point data, the multiple local jitter parameters can be fused to obtain the target jitter parameter corresponding to the first target single point data, and based on the target jitter parameter, the phase parameter corresponding to the first target single point data is determined. The fusion process at least includes superimposing the multiple local jitter parameters. That is, the sum of the multiple local jitter parameters can be used as the target jitter parameter corresponding to the first target single point data. In addition, the specific method of determining the phase parameter based on the target jitter parameter is also not limited. For example, in an alternative implementation, the sampling parameter may include the sampling rate and signal frequency of the jitter digital signal to be generated. In this way, the length of half a cycle can be determined based on the signal frequency (such as 0.5*(1 / F), F represents the signal frequency), and then the sum of the target jitter parameter and the length can be calculated. Finally, the product of the target parameter, the sampling rate, and the sum can be calculated to obtain the corresponding target product. Then, the target product can be used as the corresponding phase parameter, where the target parameter can be equal to 2π. It should be noted that, for each target single-point data other than the first target single-point data, the corresponding target product can be obtained first in the same manner as before, and then the target product can be superimposed (summed) with the phase parameter corresponding to the previous target single-point data to obtain the phase parameter corresponding to the current target single-point data. For example, for the second target single-point data, the target product corresponding to the second target single-point data can be superimposed (summed) with the phase parameter corresponding to the first target single-point data, so that the phase parameter corresponding to the second target single-point data can be obtained.
[0086] Alternatively, in the above step S111a, the specific manner of performing a plurality of local first jitter determination processes on the first target single point data is not limited and can be selected according to actual needs.
[0087] For example, in an alternative implementation, in order to make the generated multiple local jitter parameters have higher richness, the above-mentioned step S111a may further include step a1, step a2 and step a3, and the specific content of each step is described as follows.
[0088] Step a1, performing data edge determination processing on the first target single point data in the jitter digital signal to be generated, and when the result of the determination processing reflects that the position corresponding to the first target single point data belongs to the rising edge, using a predetermined first parameter as the duty cycle distortion jitter parameter corresponding to the first target single point data, or, when the result of the determination processing reflects that the position corresponding to the first target single point data belongs to the falling edge, using a predetermined second parameter as the duty cycle distortion jitter parameter corresponding to the first target single point data.
[0089] In an embodiment of the present application, the first target single point data in the jitter digital signal to be generated can be firstly processed for data edge determination, and then, on the one hand, when the result of the determination process reflects that the position corresponding to the first target single point data belongs to the rising edge, the predetermined first parameter can be used as the duty cycle distortion jitter parameter corresponding to the first target single point data; on the other hand, when the result of the determination process reflects that the position corresponding to the first target single point data belongs to the falling edge, the predetermined second parameter can be used as the duty cycle distortion jitter parameter corresponding to the first target single point data. Wherein, the first parameter and the second parameter are different, and both the first parameter and the second parameter have a correlation with the duty cycle distortion parameter of the jitter digital signal to be generated, and the duty cycle distortion jitter parameter is used as a local jitter parameter corresponding to the first target single point data. Exemplarily, the first parameter can be equal to half of the duty cycle distortion parameter, and the second parameter can be equal to half of the negative duty cycle distortion parameter (such as -0.5*d, where d represents the duty cycle distortion parameter of the jitter digital signal to be generated). In addition, in some implementations, the data edge of the first target single-point data in the jittered digital signal to be generated may be directly configured as a rising edge, so that the complexity of signal simulation can be reduced to a certain extent, thereby improving efficiency.
[0090] Step a2: performing random jitter determination processing on the first target single point data to obtain random jitter parameters corresponding to the first target single point data.
[0091] In an embodiment of the present application, random jitter determination processing may also be performed on the first target single point data to obtain a random jitter parameter corresponding to the first target single point data. The random jitter parameter is used as a local jitter parameter corresponding to the first target single point data. Exemplarily, the random jitter follows a Gaussian distribution law.
[0092] Step a3: performing period jitter determination processing on the first target single point data to obtain period jitter parameters corresponding to the first target single point data.
[0093] In an embodiment of the present application, the first target single point data may also be subjected to period jitter determination processing to obtain a period jitter parameter corresponding to the first target single point data. The period jitter parameter is used as a local jitter parameter corresponding to the first target single point data. Exemplarily, the trend graph of the period jitter may be a sine curve.
[0094] It should be further explained that, in the above step a2, the specific method of performing random jitter determination processing on the first target single point data is not limited and can be selected according to requirements.
[0095] For example, in an alternative implementation, in order to ensure the diversity of the distribution of the generated random jitter parameters, the above step a2 may further include the following specific implementation contents:
[0096] First, a target random seed (when a computer generates random numbers, a random seed is a starting input value used to initialize a random number generator. By specifying a random seed, it is ensured that a random number sequence generated under the same random seed is repeatable) and a target mean parameter and a target standard deviation of each target Gaussian distribution in a first number of target Gaussian distributions can be obtained, and based on the target random seed, a corresponding Gaussian white noise is determined, wherein the data length of the Gaussian white noise can be 1 and the standard deviation can be 1;
[0097] Secondly, based on the order of the first target single-point data in the jittered digital signal, the target Gaussian distribution corresponding to the first target single-point data can be determined from the first number of target Gaussian distributions, and based on the Gaussian white noise corresponding to the target random seed and the target mean parameter and target standard deviation of the target Gaussian distribution corresponding to the first target single-point data, the random jitter parameters corresponding to the first target single-point data can be determined, wherein the random jitter parameters have a positive correlation with the target mean parameter, the target standard deviation and the Gaussian white noise corresponding to the target random seed.
[0098] Exemplarily, the specific value of the first number is not limited and can be selected according to actual needs, such as 4, 5, 6, etc.
[0099] Exemplarily, the remainder between the order of the first target single-point data in the jitter digital signal and the first number can be determined first, and then a target Gaussian distribution ordered as the remainder can be determined from the first number of target Gaussian distributions as the target Gaussian distribution corresponding to the first target single-point data. For example, there are 5 target Gaussian distributions. For the first target single-point data, the first target Gaussian distribution can be used as the corresponding target Gaussian distribution; for the second target single-point data (the description here is mainly for the step of "redetermining and processing the target jitter parameters of the target single-point data" in the following text), the second target Gaussian distribution can be used as the corresponding target Gaussian distribution; for the sixth target single-point data, the first target Gaussian distribution can also be used as the corresponding target Gaussian distribution.
[0100] Exemplarily, the product of the target standard deviation and the Gaussian white noise corresponding to the target random seed may be calculated, and then the sum of the product and the target mean parameter may be calculated, and finally, the sum may be used as the corresponding random jitter parameter.
[0101] It should be further explained that, in the above step a3, the specific method of determining the periodic jitter of the first target single point data is not limited and can be selected according to needs.
[0102] For example, in an alternative implementation, in order to ensure the diversity of the generated period jitter parameters on a target single point data, the above step a3 may further include the following contents:
[0103] First, the target frequency, target amplitude and initial phase of each target sinusoidal signal in the second number of target sinusoidal signals can be obtained, and for each of the target sinusoidal signals, the target frequency of the target sinusoidal signal and the frequency of the jittered digital signal are ratio-calculated to obtain the frequency ratio corresponding to the target sinusoidal signal; illustratively, the specific value of the second number is also not limited and can be selected according to actual needs, for example, it can be 4, 5, 6, etc.;
[0104] Secondly, for each of the target sinusoidal signals, a local periodic jitter parameter corresponding to the target sinusoidal signal may be determined based on the target amplitude, frequency ratio and initial phase of the target sinusoidal signal; illustratively, the product of the frequency ratio and 2π may be calculated first, then the sum of the product and the initial phase may be calculated, then the sine function value of the sum may be calculated, and the product of the sine function value and the target amplitude may be calculated, and the product may be used as the corresponding local periodic jitter parameter;
[0105] Then, the local periodic jitter parameters corresponding to each of the target sinusoidal signals can be fused to obtain the periodic jitter parameters corresponding to the first target single-point data, wherein the fusion processing at least includes superimposing the local periodic jitter parameters corresponding to each of the target sinusoidal signals; exemplarily, the local periodic jitter parameters corresponding to each of the target sinusoidal signals can be summed up, and the summed value obtained can be used as the corresponding periodic jitter parameter.
[0106] On the second aspect, it should be noted that for step S120, the specific method of obtaining the amplitude parameter and type parameter of the jittered digital signal is not limited and can be selected according to actual needs.
[0107] For example, in an alternative implementation, the maximum value and the minimum value of the amplitude of the jittered digital signal may be determined as the corresponding amplitude parameter, and the type of the jittered digital signal may be determined, such as a sinusoidal signal or a square wave signal.
[0108] Thirdly, it should be noted that for step S130, the specific method of determining the target signal value based on the phase parameter, the amplitude parameter and the type parameter is not limited and can be selected according to needs.
[0109] For example, in an alternative implementation, in order to ensure that the generated target signal value has a higher reliability, the above-mentioned step S130 may further include step S131, step S132, step S133, step S134, step S135 and step S136, and the specific content of each step is as follows.
[0110] Step S131 , performing difference and sum calculations on the maximum value and the minimum value in the amplitude parameter corresponding to the jitter digital signal respectively to obtain a target difference value and a target sum value.
[0111] In an embodiment of the present application, after obtaining the maximum value and the minimum value in the amplitude parameter corresponding to the jittered digital signal, on the one hand, the difference between the maximum value and the minimum value can be calculated, so that the corresponding target difference can be obtained, and on the other hand, the sum of the maximum value and the minimum value can be calculated, so that the corresponding target sum can be obtained.
[0112] Step S132: based on the functional relationship represented by the type parameter corresponding to the jittered digital signal, the phase parameter corresponding to the target single point data is processed to obtain the function value corresponding to the target single point data.
[0113] In an embodiment of the present application, after obtaining the type parameter corresponding to the jittered digital signal, the phase parameter corresponding to the target single point data can be processed based on the functional relationship characterized by the type parameter corresponding to the jittered digital signal to obtain the function value corresponding to the target single point data. For example, when the jittered digital signal belongs to a sinusoidal signal, the sinusoidal function value of the phase parameter corresponding to the target single point data can be calculated as the initial function value. For another example, when the jittered digital signal belongs to a square wave signal, the phase parameter corresponding to the target single point data can be determined, and the one-dimensional interpolation result in an array (the specific determination method can refer to the relevant description of generating a square wave in the prior art. For example, the array can be 43-dimensional, such as including 43 values, which are "0", 20 "1", "0", 20 "-1", "0" in sequence, and then, the one-dimensional interpolation result of (43 / 2)*phase parameter in the array) can be determined as the initial function value corresponding to the target single point data. Exemplarily, after obtaining the corresponding initial function value, the product between the initial function value and the target difference value can be calculated, and then the sum value between the product and the target sum value can be calculated, and 0.5 times the sum value can be used as the corresponding function value.
[0114] Step S133: determining a data edge confirmation result corresponding to the target single point data based on the function value corresponding to the target single point data and the function values corresponding to other adjacent target single point data.
[0115] In an embodiment of the present application, after obtaining the function value corresponding to the target single point data, the data edge confirmation result corresponding to the target single point data can be determined based on the function value corresponding to the target single point data and the function values corresponding to other adjacent target single point data. The data edge confirmation result is used to reflect whether the position of the target single point data belongs to the data edge. Exemplarily, when the function value corresponding to the target single point data and the function value corresponding to other adjacent target single point data (such as the adjacent previous target single point data) are different (or the difference is greater than a preset value), it can be determined that the position of the target single point data belongs to the data edge; conversely, when the function value corresponding to the target single point data and the function value corresponding to other adjacent target single point data (such as the adjacent previous target single point data) are the same (or the difference is not greater than a preset value), it can be determined that the position of the target single point data does not belong to the data edge.
[0116] Step S134, when the data edge confirmation result reflects that the position of the target single point data does not belong to the data edge, the function value corresponding to the target single point data is used as the corresponding target signal value.
[0117] In an embodiment of the present application, after obtaining the data edge confirmation result, if the data edge confirmation result reflects that the position of the target single point data does not belong to the data edge, the function value corresponding to the target single point data can be directly used as the corresponding target signal value.
[0118] Step S135, when the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, re-determine the target jitter parameters of the target single point data, and determine new phase parameters corresponding to the target single point data based on the re-determined target jitter parameters.
[0119] In an embodiment of the present application, after obtaining the data edge confirmation result, if the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, the target jitter parameters of the target single point data can be re-determined and processed, and the new phase parameters corresponding to the target single point data can be determined based on the re-determined target jitter parameters.
[0120] Step S136, based on the functional relationship characterized by the type parameter corresponding to the jittered digital signal, the new phase parameter corresponding to the target single point data is processed to obtain a new function value corresponding to the target single point data, and the new function value is used as the corresponding target signal value.
[0121] In an embodiment of the present application, after determining the new phase parameters corresponding to the target single-point data, the new phase parameters corresponding to the target single-point data can be processed based on the functional relationship represented by the type parameters corresponding to the jittered digital signal to obtain a new function value corresponding to the target single-point data, and the new function value is used as the corresponding target signal value. The specific processing process can refer to the processing method of step S132, which will not be described here one by one.
[0122] It can be understood that, in the above step S135, the specific method of re-determining the new phase parameter is not limited and can be selected according to actual needs.
[0123] For example, in an alternative implementation, in order to ensure the reliability of the re-determined new phase parameters, the above-mentioned step S135 may further include step S135a, step S135b and step S135c, and the specific content of each step is described as follows.
[0124] Step S135a, when the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, the target single point data is subjected to data edge determination processing, and when the result of the determination processing reflects that the position corresponding to the target single point data belongs to the rising edge, the predetermined first parameter is used as the duty cycle distortion jitter parameter corresponding to the target single point data, or, when the result of the determination processing reflects that the position corresponding to the target single point data belongs to the falling edge, the predetermined second parameter is used as the duty cycle distortion jitter parameter corresponding to the target single point data.
[0125] In an embodiment of the present application, when the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, the target single point data is subjected to data edge determination processing (such as comparing the corresponding function values. For example, when the function value corresponding to the target single point data is greater than the function value corresponding to the adjacent previous target single point data, it can be determined as a rising edge, and when the function value corresponding to the target single point data is less than the function value corresponding to the adjacent previous target single point data, it can be determined as a falling edge), and when the result of the determination processing reflects that the position corresponding to the target single point data belongs to the rising edge, a predetermined first parameter is used as the duty cycle distortion jitter parameter corresponding to the target single point data, or, when the result of the determination processing reflects that the position corresponding to the target single point data belongs to the falling edge, a predetermined second parameter is used as the duty cycle distortion jitter parameter corresponding to the target single point data. Among them, the first parameter and the second parameter are different, and the first parameter and the second parameter are both correlated with the duty cycle distortion parameter of the jitter digital signal to be generated, and the duty cycle distortion jitter parameter corresponding to the target single point data serves as a local jitter parameter corresponding to the target single point data, as described above.
[0126] Step S135b, performing random jitter determination processing on the target single point data to obtain random jitter parameters corresponding to the target single point data.
[0127] In an embodiment of the present application, random jitter determination processing can also be performed on the target single-point data to obtain random jitter parameters corresponding to the target single-point data, wherein the random jitter parameters corresponding to the target single-point data serve as a local jitter parameter corresponding to the target single-point data. For specific content, refer to the relevant description of the first target single-point data in the previous text.
[0128] Step S135c, performing period jitter determination processing on the target single point data to obtain period jitter parameters corresponding to the target single point data.
[0129] In the embodiment of the present application, the target single point data may also be subjected to periodic jitter determination processing to obtain periodic jitter parameters corresponding to the target single point data. The periodic jitter parameters corresponding to the target single point data are used as a local jitter parameter corresponding to the target single point data, and the specific contents may refer to the relevant description of the first target single point data in the above text.
[0130] Fourthly, it should be noted that for step S140, the specific method of generating the dithered digital signal based on the target signal value corresponding to each target single point data is not limited and can be selected according to actual needs.
[0131] For example, in an alternative embodiment, a corresponding jitter digital signal can be formed directly based on the target signal value corresponding to each of the target single point data. For another example, in another alternative embodiment, as described above, the target single point data belonging to the first cycle and the last cycle can also be discarded, and then, based on the target signal value corresponding to each of the retained target single point data, a corresponding jitter digital signal is formed. For another example, in another alternative embodiment, a corresponding initial jitter digital signal can be formed directly based on the target signal value corresponding to each of the target single point data, and then, noise can be superimposed on the initial jitter digital signal, such as superimposing Gaussian white noise with a standard deviation of 0.01 and a random seed of -1, so that a noise-superimposed jitter digital signal can be obtained, and then, the noise-superimposed jitter digital signal can also be subjected to inter-symbol interference processing, such as low-pass filtering of the noise-superimposed jitter digital signal (specifically, it can be implemented by IIR (Infinite Impulse Response) filter or FIR (Finite Impulse Response) filter, etc.), so that the final jitter digital signal can be obtained.
[0132] For the jitter digital signal generation method as described above provided in the embodiment of the present application, the generated jitter digital signal can be tested by a bandwidth oscilloscope.
[0133] Exemplarily, the sampling rate can be 100kHz, the signal frequency can be 100Hz, the signal duration can be 40s, the type of the jitter digital signal can be a square wave, the maximum value of the amplitude parameter can be 1, the minimum value of the amplitude parameter can be 0, no noise is superimposed, and 5 cycles of jitter are set. The frequency of the first cycle jitter can be 10Hz, the amplitude can be 1us, and the initial phase can be 0. The frequency of the second cycle jitter can be 20Hz, the amplitude can be 1us, and the initial phase can be 0. The frequency of the third cycle jitter can be 30Hz, the amplitude can be 1us, and the initial phase can be 0. The frequency of the fourth cycle jitter can be 40Hz, the amplitude can be 1us, and the initial phase can be 0. The frequency of the fifth cycle jitter can be 50Hz, the amplitude can be 40us, and the initial phase can be 5. Based on this, it can be obtained as follows Figure 3 The waveform of the jitter digital signal is shown in FIG. Then, the spectrum analysis of the waveform can be performed to obtain the following Figure 4 In the spectrum diagram shown, we can see 5 frequency points with very high amplitudes, which are 10Hz, 20Hz, 30Hz, 40Hz, and 50Hz, respectively, which are completely consistent with the frequencies of the 5 periodic jitters set by the parameters. In addition, the amplitude value of the frequency point of 50Hz is greater than the amplitudes of the other 4 points, which is consistent with the amplitudes of the other frequency points.
[0134] For example, the sampling rate can be 10kHz, the signal frequency can be 10Hz, the signal duration can be 50s, the type of the jitter digital signal can be a square wave, the maximum value of the amplitude parameter can be 1, the minimum value of the amplitude parameter can be 0, no noise is superimposed, and two random jitters are set. The Gaussian distribution mean of the first random jitter can be -100us, and the Gaussian distribution standard deviation can be 10us. The Gaussian distribution mean of the second random jitter can be 100us, and the Gaussian distribution standard deviation can be 10us. The random seed can be -1. Based on this, we can get the following: Figure 5 The waveform of the jitter digital signal is shown in Figure 1. Then, considering that random jitter has Gaussian distribution characteristics, we can do histogram statistics and get Figure 6 The statistical data shown in the figure shows two obvious Gaussian distribution components, and the statistical maximum values are -100us and 100us respectively; this matches the two Gaussian distribution random jitters added.
[0135] Combination Figure 7 The embodiment of the present application also provides a jitter digital signal generating device applicable to the above electronic device. The jitter digital signal generating device may include a phase parameter determining module, a signal parameter acquiring module, a signal value determining module and a digital signal generating module.
[0136] The phase parameter determination module can be used to perform jitter parameter determination processing on each target single point data in the jitter digital signal to be generated, obtain the target jitter parameter corresponding to the target single point data, and determine the phase parameter corresponding to the target single point data based on the target jitter parameter, wherein the target single point data is determined according to the pre-configured sampling parameters, and the jitter parameter determination processing includes at least two different jitter parameter determination methods, and the at least two different jitter parameter determination methods are used to process at least two different target single point data respectively. In the embodiment of the present application, the phase parameter determination module can be used to perform Figure 2 As shown in step S110, the relevant contents of the phase parameter determination module can refer to the above description of step S110.
[0137] The signal parameter acquisition module can be used to acquire the amplitude parameter and type parameter configured for the jitter digital signal. In the embodiment of the present application, the signal parameter acquisition module can be used to perform Figure 2 As shown in step S120, the relevant contents of the signal parameter acquisition module can refer to the above description of step S120.
[0138] The signal value determination module can be used to determine the target signal value corresponding to each target single point data in the jittered digital signal based on the phase parameter corresponding to the target single point data, the amplitude parameter and the type parameter corresponding to the jittered digital signal. Figure 2 As shown in step S130, the relevant contents of the signal value determination module can refer to the above description of step S130.
[0139] The digital signal generation module can be used to generate a jitter digital signal based on the target signal value corresponding to each of the target single point data, wherein the jitter digital signal includes the target signal value corresponding to each of the target single point data. Figure 2 As shown in step S140, the relevant contents of the digital signal generating module can refer to the above description of step S140.
[0140] In an embodiment of the present application, corresponding to the jitter digital signal generation method applied to the electronic device, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is run, each step of the jitter digital signal generation method is executed. Among them, each step executed when the aforementioned computer program is run will not be described one by one here, and reference can be made to the explanation of the jitter digital signal generation method in the previous text.
[0141] In summary, the jittered digital signal generation method, device and electronic device provided in the present application can, firstly, perform jitter parameter determination processing on each target single-point data to obtain the corresponding target jitter parameter, and determine the corresponding phase parameter based on the target jitter parameter; secondly, obtain the amplitude parameter and type parameter configured for the jittered digital signal; then, for each target single-point data in the jittered digital signal, determine the corresponding target signal value based on the phase parameter corresponding to the target single-point data, the amplitude parameter and type parameter corresponding to the jittered digital signal; finally, generate the jittered digital signal based on the target signal value corresponding to each target single-point data. Based on the above content, since it is based on software simulation, it is not dependent on the hardware simulator. Therefore, the problem in the prior art that the quality of the simulation signal is relatively low due to the large phase noise of the hardware circuit itself can be improved. In addition, in the process of determining the jitter parameters, at least two different jitter parameter determination methods will be used for at least two different target single-point data, so that the determination of the jitter parameters has a higher richness. Therefore, the diversity of the jitter digital signal generated based on the determined jitter parameters can be guaranteed, and the actual jitter situation can be simulated more easily to a greater extent, so that the reliability of the jitter signal can be higher, thereby improving the problem of relatively low reliability of the generated jitter signal in the prior art.
[0142] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0144] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0145] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for generating a jittered digital signal, characterized in that: include: For each target single-point data in the jitter digital signal to be generated, a jitter parameter determination process is performed on the target single-point data to obtain a target jitter parameter corresponding to the target single-point data, and a phase parameter corresponding to the target single-point data is determined based on the target jitter parameter, wherein the target single-point data is determined according to a pre-configured sampling parameter, and the jitter parameter determination process includes at least two different jitter parameter determination methods, and the at least two different jitter parameter determination methods are used to process at least two different target single-point data respectively; Acquire amplitude parameters and type parameters configured for the dithered digital signal; For each target single point data in the jittered digital signal, based on a phase parameter corresponding to the target single point data, an amplitude parameter and a type parameter corresponding to the jittered digital signal, determining a target signal value corresponding to the target single point data; Based on the target signal value corresponding to each of the target single point data, generating a jitter digital signal, wherein the jitter digital signal includes the target signal value corresponding to each of the target single point data; The step of performing jitter parameter determination processing on each target single point data in the jitter digital signal to be generated to obtain a target jitter parameter corresponding to the target single point data, and determining a phase parameter corresponding to the target single point data based on the target jitter parameter includes: For the first target single point data in the jitter digital signal to be generated, a first jitter determination process is performed on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and based on the target jitter parameter, a phase parameter corresponding to the target single point data is determined; For each target single point data other than the first target single point data in the jittered digital signal to be generated, a second jitter determination process is performed on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and a fusion process is performed on the target jitter parameter and a phase parameter corresponding to the previous target single point data to obtain a phase parameter corresponding to the target single point data, wherein the second jitter determination process is different from the first jitter determination process, and the second jitter determination process at least includes taking the target jitter parameter corresponding to the adjacent previous target single point data as the target jitter parameter of the subsequent target single point data; The step of determining, for each target single point data in the jittered digital signal, a target signal value corresponding to the target single point data based on a phase parameter corresponding to the target single point data, an amplitude parameter and a type parameter corresponding to the jittered digital signal, comprises: Respectively performing difference and sum calculations on the maximum value and the minimum value in the amplitude parameter corresponding to the jitter digital signal to obtain a target difference value and a target sum value; Based on the functional relationship represented by the type parameter corresponding to the jitter digital signal, the phase parameter corresponding to the target single point data is processed to obtain the function value corresponding to the target single point data; Based on the function value corresponding to the target single point data and the function values corresponding to other adjacent target single point data, determining a data edge confirmation result corresponding to the target single point data, wherein the data edge confirmation result is used to reflect whether the position of the target single point data belongs to a data edge; When the data edge confirmation result reflects that the position of the target single point data does not belong to the data edge, taking the function value corresponding to the target single point data as the corresponding target signal value; When the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, re-determine the target jitter parameter of the target single point data, and determine a new phase parameter corresponding to the target single point data based on the re-determined target jitter parameter; Based on the functional relationship characterized by the type parameter corresponding to the jitter digital signal, the new phase parameter corresponding to the target single point data is processed to obtain a new function value corresponding to the target single point data, and the new function value is used as the corresponding target signal value.
2. The jitter digital signal generation method according to claim 1, characterized in that: The step of performing a first jitter determination process on the first target single-point data in the jitter digital signal to be generated, obtaining a target jitter parameter corresponding to the target single-point data, and determining a phase parameter corresponding to the target single-point data based on the target jitter parameter includes: Performing multiple local first jitter determination processes on first target single point data in the jitter digital signal to be generated, to obtain multiple local jitter parameters corresponding to the first target single point data, wherein every two of the local first jitter determination processes are different, and there is a one-to-one correspondence between the multiple local jitter parameters and the multiple local first jitter determination processes; A fusion process is performed on multiple local jitter parameters corresponding to the first target single point data to obtain a target jitter parameter corresponding to the first target single point data, and based on the target jitter parameter, a phase parameter corresponding to the first target single point data is determined, wherein the fusion process at least includes superimposing multiple local jitter parameters.
3. The jitter digital signal generation method according to claim 2, characterized in that: The step of performing a plurality of local first jitter determination processes on the first target single point data in the jitter digital signal to be generated to obtain a plurality of local jitter parameters corresponding to the first target single point data comprises: Performing data edge determination processing on the first target single point data in the jitter digital signal to be generated, and when the result of the determination processing reflects that the position corresponding to the first target single point data belongs to a rising edge, using a predetermined first parameter as a duty cycle distortion jitter parameter corresponding to the first target single point data, or, when the result of the determination processing reflects that the position corresponding to the first target single point data belongs to a falling edge, using a predetermined second parameter as the duty cycle distortion jitter parameter corresponding to the first target single point data, wherein the first parameter and the second parameter are different, both of which have a correlation with the duty cycle distortion parameter of the jitter digital signal to be generated, and the duty cycle distortion jitter parameter is used as a local jitter parameter corresponding to the first target single point data; Performing random jitter determination processing on the first target single point data to obtain a random jitter parameter corresponding to the first target single point data, wherein the random jitter parameter serves as a local jitter parameter corresponding to the first target single point data; Perform period jitter determination processing on the first target single point data to obtain a period jitter parameter corresponding to the first target single point data, wherein the period jitter parameter serves as a local jitter parameter corresponding to the first target single point data.
4. The jitter digital signal generation method according to claim 3, characterized in that: The step of performing random jitter determination processing on the first target single point data to obtain random jitter parameters corresponding to the first target single point data includes: Obtain a target random seed and a target mean parameter and a target standard deviation of each target Gaussian distribution in the first number of target Gaussian distributions, and determine a corresponding Gaussian white noise based on the target random seed, wherein the data length of the Gaussian white noise is 1 and the standard deviation is 1; Based on the sorting of the first target single-point data in the jittered digital signal, the target Gaussian distribution corresponding to the first target single-point data is determined from the first number of target Gaussian distributions, and based on the Gaussian white noise corresponding to the target random seed and the target mean parameter and target standard deviation of the target Gaussian distribution corresponding to the first target single-point data, the random jitter parameters corresponding to the first target single-point data are determined, wherein the random jitter parameters have a positive correlation with the target mean parameter, the target standard deviation and the Gaussian white noise corresponding to the target random seed.
5. The dithered digital signal generation method according to claim 3, characterized in that: The step of performing period jitter determination processing on the first target single point data to obtain period jitter parameters corresponding to the first target single point data includes: Obtaining a target frequency, a target amplitude, and an initial phase of each target sinusoidal signal of the second number of target sinusoidal signals, and, for each of the target sinusoidal signals, calculating a ratio between the target frequency of the target sinusoidal signal and the frequency of the jittered digital signal to obtain a frequency ratio corresponding to the target sinusoidal signal; For each of the target sinusoidal signals, determining a local periodic jitter parameter corresponding to the target sinusoidal signal based on a target amplitude, a frequency ratio and an initial phase of the target sinusoidal signal; The local periodic jitter parameters corresponding to each of the target sinusoidal signals are fused to obtain the periodic jitter parameters corresponding to the first target single point data, wherein the fusion processing at least includes superimposing the local periodic jitter parameters corresponding to each of the target sinusoidal signals.
6. The dithered digital signal generation method according to claim 1, characterized in that: The step of re-determining the target jitter parameter of the target single point data when the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, and determining the new phase parameter corresponding to the target single point data based on the re-determined target jitter parameter, comprises: When the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, a data edge determination process is performed on the target single point data, and when the result of the determination process reflects that the position corresponding to the target single point data belongs to the rising edge, a predetermined first parameter is used as the duty cycle distortion jitter parameter corresponding to the target single point data, or when the result of the determination process reflects that the position corresponding to the target single point data belongs to the falling edge, a predetermined second parameter is used as the duty cycle distortion jitter parameter corresponding to the target single point data, wherein the first parameter and the second parameter are different, both of which have a correlation with the duty cycle distortion parameter of the jitter digital signal to be generated, and the duty cycle distortion jitter parameter corresponding to the target single point data is used as a local jitter parameter corresponding to the target single point data; Performing random jitter determination processing on the target single point data to obtain a random jitter parameter corresponding to the target single point data, wherein the random jitter parameter corresponding to the target single point data is used as a local jitter parameter corresponding to the target single point data; Perform periodic jitter determination processing on the target single point data to obtain a periodic jitter parameter corresponding to the target single point data, wherein the periodic jitter parameter corresponding to the target single point data is used as a local jitter parameter corresponding to the target single point data.
7. A jitter digital signal generating device, characterized in that: include: a phase parameter determination module, configured to perform jitter parameter determination processing on each target single point data in the jitter digital signal to be generated, obtain a target jitter parameter corresponding to the target single point data, and determine a phase parameter corresponding to the target single point data based on the target jitter parameter, wherein the target single point data is determined according to a pre-configured sampling parameter, and the jitter parameter determination processing includes at least two different jitter parameter determination modes, and the at least two different jitter parameter determination modes are used to process at least two different target single point data respectively; A signal parameter acquisition module, used to acquire amplitude parameters and type parameters configured for the jitter digital signal; A signal value determination module, configured to determine, for each target single point data in the jittered digital signal, a target signal value corresponding to the target single point data based on a phase parameter corresponding to the target single point data, an amplitude parameter and a type parameter corresponding to the jittered digital signal; A digital signal generating module, configured to generate a jittered digital signal based on a target signal value corresponding to each of the target single point data, wherein the jittered digital signal includes the target signal value corresponding to each of the target single point data; The step of performing jitter parameter determination processing on each target single point data in the jitter digital signal to be generated to obtain a target jitter parameter corresponding to the target single point data, and determining a phase parameter corresponding to the target single point data based on the target jitter parameter includes: For the first target single point data in the jitter digital signal to be generated, a first jitter determination process is performed on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and based on the target jitter parameter, a phase parameter corresponding to the target single point data is determined; For each target single point data other than the first target single point data in the jittered digital signal to be generated, a second jitter determination process is performed on the target single point data to obtain a target jitter parameter corresponding to the target single point data, and a fusion process is performed on the target jitter parameter and a phase parameter corresponding to the previous target single point data to obtain a phase parameter corresponding to the target single point data, wherein the second jitter determination process is different from the first jitter determination process, and the second jitter determination process at least includes taking the target jitter parameter corresponding to the adjacent previous target single point data as the target jitter parameter of the subsequent target single point data; The step of determining, for each target single point data in the jittered digital signal, a target signal value corresponding to the target single point data based on a phase parameter corresponding to the target single point data, an amplitude parameter and a type parameter corresponding to the jittered digital signal, comprises: Respectively performing difference and sum calculations on the maximum value and the minimum value in the amplitude parameter corresponding to the jitter digital signal to obtain a target difference value and a target sum value; Based on the functional relationship represented by the type parameter corresponding to the jitter digital signal, the phase parameter corresponding to the target single point data is processed to obtain the function value corresponding to the target single point data; Based on the function value corresponding to the target single point data and the function values corresponding to other adjacent target single point data, determining a data edge confirmation result corresponding to the target single point data, wherein the data edge confirmation result is used to reflect whether the position of the target single point data belongs to a data edge; When the data edge confirmation result reflects that the position of the target single point data does not belong to the data edge, taking the function value corresponding to the target single point data as the corresponding target signal value; When the data edge confirmation result reflects that the position of the target single point data belongs to the data edge, re-determine the target jitter parameter of the target single point data, and determine a new phase parameter corresponding to the target single point data based on the re-determined target jitter parameter; Based on the functional relationship characterized by the type parameter corresponding to the jitter digital signal, the new phase parameter corresponding to the target single point data is processed to obtain a new function value corresponding to the target single point data, and the new function value is used as the corresponding target signal value.
8. An electronic device, characterized in that: include: Memory for storing computer programs; A processor connected to the memory is used to execute the computer program stored in the memory to implement the jitter digital signal generation method according to any one of claims 1 to 6.
