A verification method, device and medium for ADPLL clock chip
Patent Information
- Application Number
- CN202210169953.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-02-23
Smart Images

Figure CN114546028B
Abstract
Description
Technical Field
[0001] The present application relates to the field of clock chips, and in particular to a verification method, device and medium for an ADPLL clock chip. Background Art
[0002] In recent years, digital circuits have seen great development. Digital phase-locked loop (ADPLL) clock chips can meet all the requirements of low power consumption, anti-interference and easy integration, and have become an important research direction for phase-locked loops. It is very necessary to verify the performance of ADPLL clock chips. Figure 1 It is a schematic diagram of the current verification environment for the ADPLL clock chip, wherein different stimuli, namely reference clocks, are input to the ADPLL clock chip 209 through the stimulus generator 101, and the actual clock output by the digitally controlled oscillator (DCO) of the ADPLL clock chip 209 is monitored to complete performance verification.
[0003] However, since the ADPLL clock chip outputs a clock (CLK) signal, the oscillation output of the DCO oscillator can only be observed through the waveform, and the performance of the phase-locked loop cannot be determined intuitively.
[0004] It can be seen that how to intuitively determine the performance of a phase-locked loop is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0005] The purpose of this application is to provide a verification method, device and medium for an ADPLL clock chip, which is convenient for intuitively determining the performance of a phase-locked loop.
[0006] In order to solve the above technical problems, the present application provides a verification method for an ADPLL clock chip, comprising:
[0007] Inputting a reference clock into the ADPLL clock chip to obtain an actual clock of the ADPLL clock chip;
[0008] Obtaining a phase difference between the reference clock and the actual clock;
[0009] The performance parameters of the ADPLL clock chip are determined by the phase difference, and the performance parameters include phase noise level and / or locking time, wherein the phase noise level is determined by obtaining a power spectrum density based on the phase difference, and the locking time is the time difference from when the ADPLL clock chip starts working to when the ADPLL clock chip enters a locking state. When the phase difference is less than a set threshold, it is determined that the ADPLL clock chip enters the locking state.
[0010] Preferably, the inputting a reference clock to the adpll clock chip comprises:
[0011] The reference clock is input to the ADPLL clock chip in an overloading manner.
[0012] Preferably, the step of inputting a reference clock to the adpll clock chip is as follows:
[0013] The reference clock with a fixed frequency or an increasing frequency is input to the ADPLL clock chip.
[0014] Preferably, determining the phase noise level according to the power spectrum density comprises:
[0015] After windowing the power spectrum density using a Blackman window, the phase noise level is determined according to the power spectrum density.
[0016] Preferably, after obtaining the phase difference between the reference clock and the actual clock, the method further includes:
[0017] Performing Fourier transform on the phase difference to convert the noise from the time domain to the frequency domain to obtain a frequency domain distribution curve of the noise;
[0018] The frequency distribution of the noise is obtained according to the frequency domain distribution curve.
[0019] Preferably, the register model stores setting parameters of the register of the ADPLL clock chip, the setting parameters including: address, bit width, read / write type, default value, backdoor access path, the stimulus source generates stimulus through the setting parameters of the register model, and the method further includes:
[0020] Determining whether the register model is consistent with the setting parameters of the register;
[0021] If not, a warning is issued.
[0022] Preferably, it also includes:
[0023] Obtaining the code coverage and function coverage of the ADPLL clock chip, wherein the code coverage includes line coverage, branch coverage, path coverage, flip coverage, condition coverage, and finite state machine coverage;
[0024] Redundant codes and / or functions are determined according to the code coverage and the function coverage, and the adpll clock chip is improved.
[0025] In order to solve the above technical problems, the present application also provides a verification device for an ADPLL clock chip, comprising:
[0026] An input module, used for inputting a reference clock into the ADPLL clock chip to obtain an actual clock of the ADPLL clock chip;
[0027] An acquisition module, used to acquire a phase difference between the reference clock and the actual clock;
[0028] A determination module is used to determine the performance parameters of the ADPLL clock chip through the phase difference, wherein the performance parameters include a phase noise level and / or a locking time, wherein the phase noise level is determined by obtaining a power spectrum density based on the phase difference, and the locking time is a time difference from when the ADPLL clock chip starts working to when the ADPLL clock chip enters a locking state, and when the phase difference is less than a set threshold, it is determined that the ADPLL clock chip enters the locking state.
[0029] In order to solve the above technical problems, the present application also provides a verification device for an ADPLL clock chip, comprising: a memory for storing a computer program;
[0030] The processor is used to implement the steps of the above-mentioned ADPLL clock chip verification method when executing a computer program.
[0031] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned ADPLL clock chip verification method are implemented.
[0032] The verification method of the ADPLL clock chip provided in the present application is that the clock model (clk_model) in the verification platform inputs different reference clocks to the ADPLL clock chip, and the ADPLL clock chip will output an actual clock after receiving the stimulus; after the verification platform obtains the phase difference between the reference clock and the actual clock, the performance parameters of the ADPLL clock chip are determined according to the phase difference. The performance parameters include phase noise level and / or locking time, wherein the phase noise level is determined by obtaining the power spectrum density according to the phase difference, and the locking time is the time difference from the start of the ADPLL clock chip to the time when the ADPLL clock chip enters the locking state. When the phase difference is less than the set threshold, it is determined that the ADPLL clock chip enters the locking state; the corresponding performance parameters are obtained to complete the verification of the performance of the ADPLL clock chip. Since the obtained performance parameters are the phase noise level and / or locking time, the performance of the phase-locked loop can be intuitively determined.
[0033] The present application also provides a verification device and medium for an ADPLL clock chip, which correspond to the above method and thus have the same beneficial effects as the above method. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 This is a schematic diagram of the current verification environment for the adpll clock chip;
[0036] Figure 2 It is a schematic diagram of the verification environment for the adpll clock chip in the embodiment of the present application;
[0037] Figure 3 A flowchart of a method for verifying an ADPLL clock chip provided in an embodiment of the present application;
[0038] Figure 4 A flow chart of phase noise level calculation provided in an embodiment of the present application;
[0039] Figure 5 A structural diagram of a verification device for an ADPLL clock chip provided in an embodiment of the present application;
[0040] Figure 6 This is a structural diagram of a verification device for an ADPLL clock chip provided in another embodiment of the present application. DETAILED DESCRIPTION
[0041] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0042] The core of this application is to provide a verification method, device and medium for an ADPLL clock chip.
[0043] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0044] The present application provides a verification method and verification system for an ADPLL clock chip. The method or system can be based on Universal Verification Methodology (Universal Verification The invention relates to a verification platform (adpll_tb) based on UVM and a result analysis component (adpll_analysis) based on a matlab result analysis platform to realize related functions. The adpll_tb verification platform realizes the collection of input and output results of the adpll clock chip excitation source. The various UVM verification components in the verification system include: an excitation source (spi_sequence), a register model (register_model), a clock excitation source (clk_sequence), a transaction conversion component (my_adapt), an agent (spi_agent), a transaction transmission channel (spi_sequencer), a protocol driver (spi_driver), a protocol monitor (spi_monitor), a clock driver (clk_driver), a clock monitor (clk_monitor), a coverage collection component (coverage), a phase noise analysis component (phase_noise_analysis), a lock time analysis component (lock_time_analysis), etc. The above components are only one solution provided in an embodiment of the present application and do not limit other solutions.
[0045] Figure 2 The present invention is a schematic diagram of the verification environment for the ADPLL clock chip in the embodiment of the present invention. The components and connection methods given in the figure are only one of the embodiments of the present invention and do not limit other methods. The figure includes: ADPLL clock chip 209, stimulus generation component 201, result analysis component 207, and verification platform 208; wherein, the verification platform 208 includes: environment encapsulation component 202, coverage collection component 205, and clock monitor 206; environment encapsulation component 202 also includes: transaction conversion component, agent 203, and clock model 204. The agent 203 is an encapsulation of the transaction transmission channel, protocol driver, and protocol monitor. The environment encapsulation component 202 encapsulates all the fixed components used on the verification platform 208. In this way, when running different test cases, it is sufficient to instantiate the environment encapsulation component 202 in the test case. The stimulus generation component 201 is composed of a register model, a stimulus source, and a transaction conversion component. The transaction conversion component belongs to both the stimulus generation component 201 and the verification platform 208.
[0046] Generally, there are two excitations, one is the input reference clock, and the other is the register configuration of the ADPLL clock chip 209 through the SPI bus (SPI_bus), that is, the setting parameters of the register are configured, and the transaction-level message of the configuration register is sent and received through the SPI bus. The process of transmitting the excitation to the ADPLL clock chip 209 is as follows: the register model realizes internal control, and the address, read-write type, reset value, backdoor access path and other information of the flag register in the register model. The excitation source mainly calls the information of the register model, and then transmits this information to the transaction conversion component. The transaction conversion component converts the information into the transaction level, and the converted information is SPI_transaction. After the conversion, SPI_transaction is sent to the transaction transmission channel. When the protocol driver requires data, the transaction transmission channel forwards SPI_transaction to the protocol driver. The protocol driver drives the information in SPI_transaction to the port of the ADPLL clock chip 209, which is equivalent to completing the conversion from the transaction level to the port-level information that the ADPLL clock chip 209 can accept. The protocol monitor does the opposite of the protocol driver. The protocol driver sends data to the port of the ADPLL clock chip 209, while the protocol monitor receives data from the port of the ADPLL clock chip 209 and converts the received data into spi_transaction for building a reference model during subsequent system upgrades. From the overall connection point of view, the stimulus generation component 201 is connected to the verification platform 208, and the verification platform 208 is connected to the ADPLL clock chip 209, which is used to send the stimulus generated by the stimulus generation component 201 to the ADPLL clock chip 209. The specific sending process is as above. The verification platform 208 is also used to collect the output results of the ADPLL clock chip 209. The verification platform 208 is connected to the result analysis component 207, and sends the output results of the ADPLL clock chip 209 to the analysis component 207 so that the analysis component 207 can analyze the output results; the analysis component 207 can analyze the clock and loop lock time mark of the numerical control DCO oscillation in the ADPLL clock chip 209, and intuitively draw the lock time and phase noise diagram of the currently configured phase-locked loop. The specific execution process of the entire platform is as follows: 1. Start the simulation process; 2. The clock model outputs the reference clock source fref; 3. The backdoor access register sets the loop bandwidth, frequency control word and other configurations; 4. Collect the lock status; 5. Wait for the loop to lock; 6. After the ADPLL clock chip 209 is locked, collect the oscillation clock period of the DCO. In order to speed up the simulation, collect the clock period of the DCO after 16 division; 7. The simulation process ends after the platform runs for 1ms; 8. Start the phase noise analysis and lock time analysis processes.
[0047] The role of the agent 203 is mainly considered from the perspective of reusability. The agent 203 encapsulates the transaction transmission channel, protocol driver and protocol monitor together, and decides whether to instantiate only the protocol monitor or instantiate the transaction transmission channel, protocol driver and protocol monitor at the same time according to the parameter value. The agent 203 itself has an attribute is_active mechanism. Is_active is a member of the agent 203. The default value is UVM_ACTIVE, which means that the agent 203 in active mode needs to instantiate the transaction transmission channel, protocol driver and protocol monitor; and if the value of is_active is UVM_PASSIVE, it means that the agent 203 is in passive mode and only instantiates the protocol monitor. The clock model 204 includes a clock driver and a clock excitation source. The function of the clock driver is mainly to output a reference clock with a fixed frequency or a variable frequency; the function of the clock excitation source is to overload the reference clocks of different frequency types output by the clock excitation source in different excitation sources. The coverage collection component 205 constructs bins of different frequencies to collect functional coverage and code coverage. Code coverage includes: collecting line coverage, branch coverage, path coverage, toggle coverage, conditional coverage, finite state machine coverage (fsm coverage), etc.
[0048] Figure 3 A flowchart of a verification method for an ADPLL clock chip provided in an embodiment of the present application is shown in the figure. The method includes the following steps:
[0049] S10: Input a reference clock to the ADPLL clock chip to obtain an actual clock of the ADPLL clock chip.
[0050] S11: Obtain the phase difference between the reference clock and the actual clock.
[0051] S12: Determine the performance parameters of the ADPLL clock chip through the phase difference, the performance parameters include phase noise level and / or locking time, wherein the phase noise level is determined by obtaining the power spectrum density according to the phase difference, and the locking time is the time difference from the start of the ADPLL clock chip to the time when the ADPLL clock chip enters the locking state. When the phase difference is less than the set threshold, it is determined that the ADPLL clock chip enters the locking state.
[0052] Generally speaking, the component that inputs the reference clock to the ADPLL clock chip 209 can be a stimulus generator or a clock model 204 in the verification platform, which is responsible for the generation and output of the reference clock. The actual application is not limited to these methods. After the reference clock is input to the ADPLL clock chip 209, the ADPLL clock chip 209 will generate an actual clock. The actual clock can be the actual clock of the DCO oscillation in the ADPLL clock chip 209. The specific method of obtaining the phase difference between the reference clock and the actual clock is not limited, and can be obtained by Figure 2 The phase difference between the actual clock and the reference clock is compared. If the phase difference is less than the threshold, it is determined to be locked. The threshold is not limited. The time from the chip simulation to the locked state is the locking time. The power spectrum density is obtained through the phase difference, and the phase noise level of the ADPLL clock chip is estimated. Finally, the ADPLL clock chip is verified based on any one or two of these two performance parameters, and the performance of the phase-locked loop can be intuitively determined. The shorter the locking time, the better, and the lower the in-band and out-of-band curves of the phase noise, the better.
[0053] One way to obtain the phase noise level and the locking time is as follows: the clock monitor 206 includes an ADPLL all-digital phase-locked loop locking time information collection module (ADPLL_lock_time) and a DCO oscillation clock information collection module (CLK_period). The ADPLL all-digital phase-locked loop locking time information collection module starts timing when the simulation starts and stops timing when the ADPLL loop locking flag appears. When the phase difference between the actual clock and the reference clock is less than the threshold, the locking flag appears, and the timing result is recorded in the lock_flag_time.txt text file. After the ADPLL loop is locked, the DCO oscillation clock information collection module records the time dco_time1 when the first rising edge of the DCO appears, and the time count of the second rising edge is dco_time2, clk_period=dco_time2-dco_time1, and the value of clk_period is recorded in the dco_clk_period.txt text file, and the time value of dco_time2 is assigned to dco_time1, and the time between the two rising edges of each DCO clock is recorded in turn, that is, the clock period of the DCO oscillation. The result analysis component 207 includes a locking time analysis component and a phase noise analysis component. The locking time analysis component directly draws a point with the horizontal axis being time and the vertical axis being 1, which indicates that the locking mark appears. If there is no process changing from 0 to 1, it indicates that the phase-locked loop is not locked. If there are multiple processes changing from 0 to 1, it indicates that the phase-locked loop has lost lock after locking. The phase noise analysis component calculates the phase difference of the DCO clock through the clock period of the DCO oscillation, and performs Fourier transform and power spectrum density analysis on the phase difference. The frequency domain distribution curve after Fourier transform of the phase difference is the distribution of the proportion of phase noise at each frequency point, and the curve after power spectrum density analysis is the corresponding phase noise diagram.
[0054] Figure 4 The phase noise level calculation flow chart provided in the embodiment of the present application, when calculating the phase noise level, can be used Figure 2 The components in Figure 2 Take the calculation as an example, the calculation steps are as follows:
[0055] S20: reading the dco_clk_period.txt text file of the recorded dco oscillation clock period, and calculating the average of the dco oscillation clock periods stored in the text file.
[0056] As shown in formula (1):
[0057]
[0058] T is a one-dimensional array of clock cycles read, with a length of n, and T_mean is the mean.
[0059] S21: Centering the original sequence with mean T_mean;
[0060] As shown in formula (2):
[0061] DeltaT i =T i -T_mean,i=1,2,...,n (2)
[0062] S22: Perform cumulative sum calculation to calculate a phase offset estimation value;
[0063] As shown in formula (3):
[0064]
[0065] S23: Centralizing the estimated phase offset value to obtain a phase difference value;
[0066] As shown in formula (4):
[0067]
[0068] S24: Convert the phase difference into ω angular frequency;
[0069] As shown in formula (5):
[0070]
[0071] S25: Perform Fourier transform calculation on the phase difference to obtain the amplitude-frequency distribution of the phase difference at each frequency point;
[0072] As shown in formula (6):
[0073]
[0074] S26: Calculate the power spectrum density of the phase difference to determine the phase noise level of the phase-locked loop;
[0075] As shown in formula (7):
[0076] psd=pwelch(phe_ω,blackman(),[],nfft,fs) (7)
[0077] Where nfft is the number of Fourier transform points, and fs conforms to the Nyquist sampling frequency. Generally, the in-band noise is around -150db, and the out-of-band noise is around -180db.
[0078] The verification method of the ADPLL clock chip provided in the embodiment of the present application is that the clock model in the verification platform inputs different reference clocks to the ADPLL clock chip, and the ADPLL clock chip will output an actual clock after receiving the stimulus; after the verification platform obtains the phase difference between the reference clock and the actual clock, the performance parameters of the ADPLL clock chip are determined according to the phase difference. The performance parameters include phase noise level and / or locking time, wherein the phase noise level is determined by obtaining the power spectrum density according to the phase difference, and the locking time is the time difference from the start of the ADPLL clock chip to the time when the ADPLL clock chip enters the locking state. When the phase difference is less than the set threshold, it is determined that the ADPLL clock chip enters the locking state; the corresponding performance parameters are obtained to complete the verification of the performance of the ADPLL clock chip. Since the obtained performance parameters are the phase noise level and / or locking time, the performance of the phase-locked loop can be intuitively determined.
[0079] In practical applications, different excitation sources may be used. When a new excitation source is used, the new excitation source needs to be configured and the original code needs to be modified. Therefore, inputting a reference clock to the ADPLL clock chip includes: inputting a reference clock to the ADPLL clock chip by overloading.
[0080] Overloading means that the behavior of a piece of code running on a parent class pointer is the behavior of the subclass. Figure 2 Taking the component as an example, the register model is called in the stimulus source of the stimulus generating component 201 to configure different stimulus sources. Other stimulus sources can inherit the class of the stimulus source of the stimulus generating component 201 and configure it with the class of the stimulus source of the stimulus generating component 201 as the parent class.
[0081] The solution provided in the embodiment of the present application inputs the reference clock to the ADPLL clock chip by overloading. When using a new stimulus source, the previous code may not be modified or may be modified slightly, so that the new code can run, thereby improving flexibility.
[0082] The frequency of the reference clock is pre-set. In order to meet different needs, the reference clock is input into the ADPLL clock chip as follows: a reference clock with a fixed frequency or an increasing frequency is input into the ADPLL clock chip. In actual situations, a fixed frequency clock between 25M and 30M or a reference clock frequency increasing by 500K from 25M to 30M can be generated by the clock model. This scheme is only a preferred scheme provided by the embodiment of the present application, and the specific frequency range is not limited. If a fixed-frequency reference clock is input, it can cover a certain frequency point, and the locking time and phase noise diagram of the output clock at this frequency point can be observed. If a reference clock with increasing frequency is input, the tracking performance of the phase-locked loop can be observed to determine whether the output clock changes with the reference clock.
[0083] In order to obtain better observation results, the phase noise level is determined according to the power spectrum density, including: using the Blackman window to perform windowing on the power spectrum density, and then determining the phase noise level according to the power spectrum density. Blackman time domain windowing can reduce spectrum leakage in the frequency domain, concentrate the signal spectrum, make the background noise flatter, reduce the frequency domain resolution, and suppress the background noise.
[0084] In practical applications, it may be necessary to know in which frequency band the noise is distributed. Therefore, after obtaining the phase difference between the reference clock and the actual clock, the following steps are also included: performing Fourier transform on the phase difference to convert the noise from the time domain to the frequency domain to obtain the frequency domain distribution curve of the noise; and obtaining the frequency point distribution of the noise according to the frequency domain distribution curve. The frequency point distribution of the noise on the frequency domain distribution curve can more intuitively observe in which frequency band the noise is distributed.
[0085] The register model stores the register setting parameters of the ADPLL clock chip, and the setting parameters include: address, bit width, read / write type, default value, backdoor access path. The stimulus source generates stimulus through the register model setting parameters, that is, the stimulus includes information such as address, bit width, read / write type, default value, backdoor access path, etc., and the register of the ADPLL clock chip can be configured through the stimulus. Generally speaking, the stimulus also includes a reference clock. The method also includes: determining whether the register model is consistent with the register setting parameters; if not, issuing a warning. By comparing the values of the register of the ADPLL clock chip and the register model, if the two values are inconsistent, it means that the configuration is wrong, and a warning needs to be issued to inform the staff.
[0086] When designing an ADPLL clock chip, there may be redundant codes and functions, so the method also includes: obtaining the code coverage and function coverage of the ADPLL clock chip, wherein the code coverage includes line coverage, branch coverage, path coverage, flip coverage, condition coverage, and finite state machine coverage; determining redundant codes and / or functions according to the code coverage and function coverage and improving the ADPLL clock chip. Code coverage can be used to observe which codes have been executed, and function coverage can be used to observe which functions have been executed. That is, it can be observed which designs are redundant designs, and redundant designs will occupy chip area, so redundant designs need to be deleted.
[0087] In the above embodiments, the verification method of the ADPLL clock chip is described in detail, and the present application also provides an embodiment corresponding to the verification device of the ADPLL clock chip. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0088] Based on the perspective of functional modules, this embodiment provides a verification device for an ADPLL clock chip. Figure 5 The structure diagram of the verification device of the adpll clock chip provided in the embodiment of the present application is as follows Figure 5 As shown, the device comprises:
[0089] An input module 30, used for inputting a reference clock into the ADPLL clock chip to obtain an actual clock of the ADPLL clock chip;
[0090] An acquisition module 31 is used to acquire a phase difference between a reference clock and an actual clock;
[0091] The determination module 32 is used to determine the performance parameters of the ADPLL clock chip through the phase difference, and the performance parameters include the phase noise level and / or the locking time, wherein the phase noise level is determined by obtaining the power spectrum density according to the phase difference, and the locking time is the time difference from the start of the ADPLL clock chip to the time when the ADPLL clock chip enters the locking state. When the phase difference is less than the set threshold, it is determined that the ADPLL clock chip enters the locking state.
[0092] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0093] The verification device for the ADPLL clock chip provided in this embodiment corresponds to the above method and thus has the same beneficial effects as the above method.
[0094] From the perspective of hardware, this embodiment provides another verification device for an adpll clock chip. Figure 6 A structural diagram of a verification device for an adpll clock chip provided by another embodiment of the present application, such as Figure 6 As shown, the verification device of the ADPLL clock chip includes: a memory 40, for storing a computer program;
[0095] The processor 41 is used to implement the steps of the method for verifying the ADPLL clock chip mentioned in the above embodiment when executing the computer program.
[0096] The verification device of the ADPLL clock chip provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a notebook computer or a desktop computer.
[0097] Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 41 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0098] The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, it can implement the relevant steps of the verification method of the ADPLL clock chip disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 402 may include Windows, Unix, Linux, etc. The data 403 may include but is not limited to data related to the verification method of the ADPLL clock chip, etc.
[0099] In some embodiments, the verification device of the ADPLL clock chip may further include a display screen 42 , an input / output interface 43 , a communication interface 44 , a power supply 45 , and a communication bus 46 .
[0100] Those skilled in the art will appreciate that the structure shown in the figure does not constitute a limitation on the verification device for the ADPLL clock chip, and may include more or fewer components than those shown in the figure.
[0101] The ADPLL clock chip verification device provided in the embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: ADPLL clock chip verification method.
[0102] The verification device for the ADPLL clock chip provided in this embodiment corresponds to the above method and thus has the same beneficial effects as the above method.
[0103] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0104] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0105] The computer-readable storage medium provided in this embodiment corresponds to the above method and thus has the same beneficial effects as the above method.
[0106] The above is a detailed introduction to the verification method, device and medium of an ADPLL clock chip provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.
[0107] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method, article or device including the above elements.
Claims
1. A method for verifying an adpll clock chip, characterized in that: include: Inputting a reference clock with a fixed frequency or a frequency increasing gradually into the ADPLL clock chip to obtain an actual clock of the ADPLL clock chip; Obtaining a phase difference between the reference clock and the actual clock; Determine the performance parameters of the ADPLL clock chip through the phase difference, the performance parameters include phase noise level and / or locking time, wherein the phase noise level is determined by obtaining the power spectrum density according to the phase difference, and the locking time is the time difference between the start of the ADPLL clock chip and the entry of the ADPLL clock chip into the locking state, and when the phase difference is less than a set threshold value, it is determined that the ADPLL clock chip enters the locking state; Wherein, determining the phase noise level according to the power spectrum density comprises: performing windowing processing on the power spectrum density using a Blackman window, and then determining the phase noise level according to the power spectrum density; After obtaining the phase difference between the reference clock and the actual clock, the method further includes: performing Fourier transform on the phase difference to convert the noise from the time domain to the frequency domain to obtain a frequency domain distribution curve of the noise; and obtaining the frequency point distribution of the noise according to the frequency domain distribution curve.
2. The verification method of the adpll clock chip according to claim 1, characterized in that: The inputting a reference clock to the ADPLL clock chip comprises: The reference clock is input to the ADPLL clock chip in an overloading manner.
3. The verification method of the adpll clock chip according to claim 1, characterized in that: The register model stores setting parameters of the register of the ADPLL clock chip, wherein the setting parameters include: address, bit width, read / write type, default value, and backdoor access path. The stimulus source generates stimulus through the setting parameters of the register model. The method further includes: Determining whether the register model is consistent with the setting parameters of the register; If not, a warning is issued.
4. The verification method of the ADPLL clock chip according to claim 1, characterized in that: Also includes: Obtaining the code coverage and function coverage of the ADPLL clock chip, wherein the code coverage includes line coverage, branch coverage, path coverage, flip coverage, condition coverage, and finite state machine coverage; Redundant codes and / or functions are determined according to the code coverage and the function coverage, and the adpll clock chip is improved.
5. A verification device for an adpll clock chip, characterized in that: include: An input module, used for inputting a reference clock with a fixed frequency or a frequency increasing gradually into the ADPLL clock chip to obtain an actual clock of the ADPLL clock chip; An acquisition module, used to acquire a phase difference between the reference clock and the actual clock; A determination module, used to determine the performance parameters of the ADPLL clock chip through the phase difference, wherein the performance parameters include a phase noise level and / or a locking time, wherein the phase noise level is determined by obtaining a power spectrum density according to the phase difference, and the locking time is a time difference from when the ADPLL clock chip starts working to when the ADPLL clock chip enters a locking state, and when the phase difference is less than a set threshold value, it is determined that the ADPLL clock chip enters the locking state; Wherein, determining the phase noise level according to the power spectrum density comprises: performing windowing processing on the power spectrum density using a Blackman window, and then determining the phase noise level according to the power spectrum density; After obtaining the phase difference between the reference clock and the actual clock, the method further includes: performing Fourier transform on the phase difference to convert the noise from the time domain to the frequency domain to obtain a frequency domain distribution curve of the noise; and obtaining the frequency point distribution of the noise according to the frequency domain distribution curve.
6. A verification device for an adpll clock chip, characterized in that: comprising a memory for storing a computer program; A processor, configured to implement the steps of the ADPLL clock chip verification method as claimed in any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the ADPLL clock chip verification method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Double-channel digital phase noise detection device and phase noise detection method
CN102768302A
Method for performing simulative verification on digital circuit and clock generator
CN107491581A
SoC chip clock function verification method and system
CN113111615A
