Verification method, device and equipment of multi-channel ADC, medium and product

By designing an independent multi-channel ADC input generator and generating and executing a random signal queue, the problems of low quality and low efficiency of multi-channel ADC chip verification in the prior art are solved, and more efficient functional and performance testing is achieved.

CN118940683APending Publication Date: 2024-11-12KTMICRO ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410980112.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing multi-channel ADC chip verification methods are low in quality and inefficient, unable to fully verify the various functions and performance of the chip, and the test cases are complex and inflexible.

Method used

Design an independent multi-channel ADC input generator to generate pre-input signal queues for each channel according to data type variable constraints, and execute random signals, realize decoupling of signal input and device operation, and be able to input different signals to each Channel and set different signal change rules.

Benefits of technology

It improves the verification quality and efficiency of multi-channel ADC chips, can effectively test functions and performance such as accuracy, slewing rate, crosstalk and isolation, conform to real application scenarios, and simplifies the writing and adjustment of test cases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940683A_ABST
    Figure CN118940683A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a multi-channel ADC verification method and device, equipment, a medium and a product, and the method comprises the steps: designing an independent multi-channel ADC input generator in a verification environment, and carrying out the verification of the multi-channel ADC input generator under the condition that the working mode of the multi-channel ADC input generator is a normal mode, generating a pre-input signal queue of each channel according to the data type variable constraint; and acquiring data from the input signal queues of the channels, inputting the data to the channels, and executing the signal random rules of the channels. According to the embodiment of the invention, an independent multi-channel ADC input generator is designed in a verification environment, signal input and device operation are decoupled, different signals are input to each channel, and different signal change rules are set, so that functions and performances such as precision and conversion rate of the multi-channel ADC can be effectively tested; and the verification quality and verification efficiency of the multi-channel ADC chip are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of ADC verification technology, and in particular to a verification method, device, equipment, medium and product for a multi-channel ADC. Background Art

[0002] ADC is the abbreviation of Analog-to-Digital Converter. It is an electronic device or module used to convert continuously changing analog signals into discrete digital signals so that digital systems (such as microprocessors, microcontrollers, etc.) can process and analyze them. Analog signals are continuously changing voltage or current signals whose values ​​vary within a certain range. Digital signals are represented by a series of discrete numbers and can only take a limited number of values, usually in binary form.

[0003] As the bandwidth of information transmission systems in various fields continues to increase, the scale of integrated circuits is getting larger and more complex, and the demand for high-performance multi-channel ADC chips is increasing day by day. However, as the ADC resolution becomes higher and higher, the conversion rate becomes faster and faster, and the number of channels increases, the design difficulty and complexity are gradually increasing. The crosstalk and isolation problems between channels of multi-channel ADC chips are becoming more and more prominent. Therefore, how to identify and optimize these problems through EDA verification (Electronic Design Automation) in the design stage of multi-channel ADC chips has become an urgent problem to be solved.

[0004] The existing technical solutions for verifying ADC usually directly assign values ​​to each channel in the test case and then test the ADC function for a period of time, then change the input voltage of each channel again and test the ADC function for a period of time, and repeat these two steps of changing the input voltage and performing subsequent ADC function tests multiple times until the test case is completed. Both ADC input changes and ADC function tests are implemented in the test case. The test case writing is lengthy, complex and inflexible. At the same time, the input signal source is single and the changes are simple, which cannot fully verify the various functions and performances of the multi-channel ADC chip, resulting in low verification quality and verification efficiency of the multi-channel ADC chip. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a multi-channel ADC verification method, device, equipment, medium and product to solve the problem of low verification quality and verification efficiency of multi-channel ADC chips caused by existing ADC verification methods.

[0006] In a first aspect, an embodiment of the present application provides a verification method for a multi-channel ADC, comprising:

[0007] Design an independent multi-channel ADC input generator in the verification environment, and generate a pre-input signal queue of each channel according to the data type variable constraint when the working mode of the multi-channel ADC input generator is the normal mode;

[0008] Get data from the input signal queue of each channel and input it to each channel, and execute the random rules of the signal of each channel.

[0009] In the above implementation process, an independent multi-channel ADC input generator is designed in the verification environment. When the working mode of the multi-channel ADC input generator is normal mode, a pre-input signal queue of each channel is generated according to the data type variable constraint; data is obtained from the input signal queue of each channel and input to each channel, and the random rules of the signal of each channel are executed. By designing an independent multi-channel ADC input generator in the verification environment, the embodiment of the present application realizes the decoupling of signal input and device operation, inputs different signals to each channel, and sets different signal change rules, which can effectively test the functions and performances such as the accuracy and conversion rate of the multi-channel ADC, and greatly improves the verification quality and verification efficiency of the multi-channel ADC chip.

[0010] Furthermore, it also includes:

[0011] Determine the operating mode of the multi-channel ADC input generator;

[0012] When the operation mode of the multi-channel ADC input generator is the debugging mode, a random voltage is input to each channel, wherein the voltage of each channel is fixed during the entire simulation period.

[0013] In the above implementation process, the voltage or signal input to each channel is adjusted according to the working mode of the multi-channel ADC input generator, which can fully verify the various functions and performances of the multi-channel ADC chip.

[0014] Further, generating a pre-input signal queue for each channel according to the data type variable constraint includes:

[0015] When the data type variable is the first value, input the sine wave signal to each channel;

[0016] When the data type variable is the second value, a linearly changing signal is input to each channel;

[0017] When the data type variable is the third value, a random change signal is input to each channel;

[0018] When the data type variable is the fourth value, all channels randomly select to input a sine wave signal, a linear change signal, a random change signal, a fixed signal, or a floating signal.

[0019] In the above implementation process, various signals including sinusoidal signals, linear signals, random signals, fixed signals, floating signals and their combinations can be sent in various ways, which can effectively test the functions and performances such as accuracy, conversion mode, conversion rate, crosstalk and isolation of the multi-channel ADC.

[0020] Furthermore, the random rules for executing the signals of each channel include:

[0021] During the signal transmission process, the input signal value of the initial state of each channel is random.

[0022] In the above implementation process, the input signal values ​​of the initial state are random among the channels, that is, the signal changes among the channels do not start from the same value, which is more in line with the actual application scenario and improves the verification quality of the multi-channel ADC chip.

[0023] Furthermore, the random rules for executing the signals of each channel include:

[0024] During the signal transmission process, the rate of change of the input signal value of each channel is random.

[0025] In the above implementation process, the change rate of the input signal between each channel is random, that is, the speed of signal change between each channel is random. Even if the data type sent is the same, such as sinusoidal wave signals, in addition to the random generation of different initial values ​​of each channel at the first point, the change rate of the input signal of each channel also needs to be as random as possible to maintain independence, that is, the input signals of some channels change quickly and the input signals of some channels change slowly, which is also in line with the actual application scenario.

[0026] Furthermore, the random rules for executing the signals of each channel include:

[0027] In the process of signal transmission, when a sine wave signal or a linearly varying signal is input to each channel, random noise is added to the sine wave signal or the linearly varying signal.

[0028] In the above implementation process, tiny random noise is added to the sine wave and linear change signal to simulate the real scene and ensure full coverage of the accuracy of the input signal to avoid steps when the ADC processes certain input variables.

[0029] Furthermore, when the working mode of the multi-channel ADC input generator is the normal mode, after generating the pre-input signal queue of each channel according to the data type variable constraint, the method further includes:

[0030] If there are test cases that require the working mode to be adjusted to debug mode, use the parameter input function to directly enter the debug mode.

[0031] In the above implementation process, the working mode of the multi-channel ADC verification method can be adjusted according to needs to achieve flexibility in ADC testing.

[0032] In a second aspect, an embodiment of the present application provides a verification device for a multi-channel ADC, including:

[0033] A signal input module is used to design an independent multi-channel ADC input generator in a verification environment, and to generate a pre-input signal queue of each channel according to a data type variable constraint when the working mode of the multi-channel ADC input generator is a normal mode;

[0034] The rule execution module is used to obtain data from the input signal queue of each channel and input it to each channel, and execute the random rules of the signal of each channel.

[0035] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0036] A processor, a memory and a bus, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, they are used to implement the verification method of the multi-channel ADC as described above.

[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a server, the verification method of the multi-channel ADC as described above is implemented.

[0038] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product comprises instructions, and when the instructions are executed by a computer, the computer implements the method as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 This is a typical verification platform architecture diagram;

[0041] Figure 2 A schematic diagram of a flow chart of a verification method for a multi-channel ADC provided in an embodiment of the present application;

[0042] Figure 3A diagram of a multi-channel ADC testing method of the prior art provided in an embodiment of the present application;

[0043] Figure 4 The prior art manually changes the multi-channel ADC input voltage map provided by the embodiment of the present application;

[0044] Figure 5 A schematic diagram of input signal data type selection for another multi-channel ADC verification method provided in an embodiment of the present application;

[0045] Figure 6 A schematic diagram of random variation rules between channels of input signals of another multi-channel ADC verification method provided in an embodiment of the present application;

[0046] Figure 7 A schematic diagram of a code for generating a basic sine wave signal and a linear variation signal array and queue for a verification method of a multi-channel ADC provided in an embodiment of the present application;

[0047] Figure 8 A schematic diagram of a code for generating one of five types of pre-sent data queues in a verification method for a multi-channel ADC provided in an embodiment of the present application;

[0048] Fig. 9 A schematic diagram of a main code of a multi-channel ADC input generator of a multi-channel ADC verification method provided in an embodiment of the present application;

[0049] Fig.10 A schematic diagram of a multi-channel ADC verification method provided in an embodiment of the present application for generating different types of ADC input signals by inputting parameters;

[0050] Fig.11 A waveform diagram showing that all channels of a multi-channel ADC verification method provided in an embodiment of the present application send sine waves in a normal working mode;

[0051] Fig.12 A waveform diagram showing that all channels send linearly changing signals in a normal working mode of a verification method for a multi-channel ADC provided in an embodiment of the present application;

[0052] Fig.13 A waveform diagram showing that all channels send randomly changing signals in a normal working mode of a verification method for a multi-channel ADC provided in an embodiment of the present application;

[0053] Fig.14 A waveform diagram of five types of input signals randomly sent by all channels in a normal working mode of a verification method for a multi-channel ADC provided in an embodiment of the present application;

[0054] Fig.15A waveform diagram of random fixed voltage input to all channels in a debugging mode of a verification method for a multi-channel ADC provided in an embodiment of the present application;

[0055] Fig.16 It is a structural schematic diagram of a verification device for a multi-channel ADC provided in an embodiment of the present application;

[0056] Fig.17 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0057] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0058] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0059] ADC is the abbreviation of Analog-to-Digital Converter. It is an electronic device or module used to convert continuously changing analog signals into discrete digital signals so that digital systems (such as microprocessors, microcontrollers, etc.) can process and analyze them. Analog signals are continuously changing voltage or current signals whose values ​​vary within a certain range. Digital signals are represented by a series of discrete numbers and can only take a limited number of values, usually in binary form.

[0060] The working principle of ADC is to divide the analog signal into a series of discrete samples and convert each sample value into a corresponding digital representation. This process involves two main steps: sampling and quantization.

[0061] Sampling: The ADC samples the continuously changing analog signal at certain time intervals. The sampling frequency determines the number of samples collected per second and is usually expressed in Hertz (Hz). The sampling process is achieved by holding and measuring the voltage value of the analog signal at each sampling time point.

[0062] Quantization: The continuous analog signal obtained by sampling is converted into digital form through quantization. Quantization is the process of mapping each sampled value to a discrete digital value. This is usually done by comparing the difference between the sampled value and a reference voltage and converting it into a digital representation.

[0063] The resolution of an ADC refers to how many discrete levels it can divide an analog signal into. A higher resolution means the ADC is able to provide a finer digital representation, thereby more accurately capturing and quantifying subtle changes in the analog signal.

[0064] ADC plays an important role in many applications, such as sensor signal acquisition, audio sampling, data acquisition and control systems, etc. It enables analog signals to interact and be processed with digital systems, thereby achieving various measurement, monitoring and control tasks.

[0065] As the bandwidth of information transmission systems in various fields continues to increase, the scale of integrated circuits is getting larger and more complex, and the demand for high-performance multi-channel ADC chips is increasing day by day. However, as the ADC resolution becomes higher and higher, the conversion rate becomes faster and faster, and the number of channels increases, the design difficulty and complexity are gradually increasing. The crosstalk and isolation problems between channels of multi-channel ADC chips are becoming more and more prominent. Therefore, how to identify and optimize these problems through EDA verification (Electronic Design Automation) in the design stage of multi-channel ADC chips has become an urgent problem to be solved.

[0066] The so-called integrated circuit EDA verification is actually to verify the completeness of all functional performance of DUT (Design Under Test, i.e. chip design code) through various professional and automated verification methods during the chip development stage to ensure that all functions and performance defined in the specifications are correctly implemented by the design code. Therefore, the verification personnel need to develop a verification platform to conduct complete testing of the design code. The typical verification platform architecture is as follows: Figure 1 As shown:

[0067] DUT: Design Under Test, that is, the entire design code, usually written by chip designers in Verilog language.

[0068] Verification environment (abbreviated as ENV): A general term for a series of verification components designed to test DUT, usually including driver (generator), monitor (monitor), Reference Model (reference model), scoreboard (scoreboard) and env_cfg (environment configuration) components. The basic functions of each component are as follows:

[0069] env_cfg (environment configuration): all configuration variables of the entire verification environment, including the register information used by the DUT and the configuration information used by the verification environment.

[0070] Driver (generator): Generates corresponding input data according to the constraints of env_cfg and sends it to the DUT and reference model according to the interface timing.

[0071] Reference Model (RM): corresponds to DUT in terms of function, that is, it implements all functions described in the specification using verification language (currently the commonly used language is System Verilog) according to the specification description. It receives input data from the driver and generates the expected output data after a series of processing and sends it to the scoreboard.

[0072] Monitor: Collects the real output data from the output end of the DUT according to the interface timing and sends it to the scoreboard.

[0073] scoreboard: Compare the actual data obtained from the DUT and RM with the expected data one by one.

[0074] Test case: controls the operation of the entire environment, such as the working mode, all environment and register configurations, the type of data sent, the specific operations performed, etc., that is, completely simulates a certain aspect of the customer's actual application.

[0075] TestBench (Verification Top Layer): Encapsulates the entire verification environment and DUT to form a test system. The test case controls the system to perform a specific task.

[0076] Specifically, from the perspective of digital verification, the embodiment of the present application has developed a feature-rich, flexible and controllable multi-channel ADC input generator (driver), which is programmed using System Verilog syntax and can send various signals and their combinations in a variety of ways, and can effectively test the accuracy, conversion mode, conversion rate, crosstalk, isolation and other functions and performance of the multi-channel ADC.

[0077] like Figure 3 and Figure 4 As shown, the existing technical solutions for verifying ADC usually do not have a dedicated ADC input generator, but directly assign values ​​to each channel in the test case and then test the ADC function for a period of time, then change the input voltage of each channel again and then test the ADC function for a period of time, and repeat these two steps of changing the input voltage and performing subsequent ADC function tests multiple times until the test case is completed.

[0078] The embodiments of the present application solve the problems that the existing ADC verification method does not have a dedicated ADC input generator, ADC input changes and ADC functional tests are all implemented in test cases, signal input and device operation are not decoupled, and test case writing is lengthy, complex and inflexible.

[0079] Figure 2 A flowchart of a method for verifying a multi-channel ADC provided in an embodiment of the present application. The method for verifying a multi-channel ADC includes:

[0080] 110. Design an independent multi-channel ADC input generator in a verification environment and determine the working mode of the multi-channel ADC input generator.

[0081] 120. When the working mode of the multi-channel ADC input generator is the debugging mode, a random voltage is input to each channel, wherein the voltage of each channel is fixed during the entire simulation period.

[0082] Optionally, the voltage or signal input to each channel can be adjusted according to the working mode of the multi-channel ADC input generator, so as to fully verify the various functions and performances of the multi-channel ADC chip; the problem of the existing ADC verification method is solved: that is, each test case needs to manually change the input voltage, and then test some specific functions, so different functional tests need to write different multiple test cases, which increases the workload of code writing and modification and maintenance, and the verification quality and efficiency are not high.

[0083] 130. When the working mode of the multi-channel ADC input generator is the normal mode, a pre-input signal queue of each channel is generated according to the data type variable constraint.

[0084] 140. Obtain data from the input signal queue of each channel and input it to each channel, and execute the random rules of the signal of each channel.

[0085] Optionally, by designing an independent multi-channel ADC input generator in the verification environment, the signal input and device operation are decoupled, different signals are input to each channel, and different signal change rules are set, which can effectively test the functions and performances such as the accuracy and conversion rate of the multi-channel ADC, greatly improving the verification quality and verification efficiency of the multi-channel ADC chip; it solves the problem that the existing ADC verification method does not conform to the actual application scenario, because the actual ADC input usually changes continuously, and it is impossible to change for a while and then fix it for a period of time and then change again like the existing verification method. The input signal source is single and the change is simple. The specific input signal of each channel is also relatively fixed, and it is impossible to fully verify the various functions and performances of the multi-channel ADC chip.

[0086] On the basis of the above embodiment, the verification method of the multi-channel ADC of the embodiment of the present application can also be embodied as follows: when the working mode of the multi-channel ADC input generator is the normal mode, after generating the pre-input signal queue of each channel according to the data type variable constraint, it also includes:

[0087] If there are test cases that require the working mode to be adjusted to debug mode, use the parameter input function to directly enter the debug mode.

[0088] Optionally, the working mode of the multi-channel ADC verification method can be adjusted according to requirements to achieve flexibility in ADC testing.

[0089] Exemplarily, the multi-channel ADC input generator of the embodiment of the present application first determines whether it is a debug mode. If it is a debug mode, a random fixed voltage is directly input to each channel, which remains unchanged during the entire simulation. This mode is usually used for fast debugging, that is, when a test case simulation fails, the voltage is fixed when the same seed is run again, so that each channel can be clearly and uniquely distinguished in the waveform, and then the channel with the problem can be quickly located; if it is not a debug mode, it is a normal working mode, and then the input signal of each channel will be further constrained by the data_type (data type) variable.

[0090] The debug variable (0: normal working mode; 1: debug mode) defaults to 0, which is the normal working mode. If a test case needs to be set to debug mode, you can use the Verilog parameter input function $value$plusargs to directly input debug = 1. If no parameter is input to modify the debug variable, debug will keep the default value 0, which is the normal working mode.

[0091] Based on the above embodiments, Figure 5 A schematic diagram of input signal data type selection of another multi-channel ADC verification method provided in an embodiment of the present application is provided. The multi-channel ADC verification method is a specific implementation of the multi-channel ADC verification method described above. Figure 5 , the verification method of the multi-channel ADC includes:

[0092] 141. When the data type variable is the first value, input the sine wave signal to each channel.

[0093] 142. When the data type variable is the second value, input a linearly changing signal to each channel.

[0094] 143. When the data type variable is the third value, input a randomly changing signal to each channel.

[0095] 144. When the data type variable is the fourth value, all channels randomly select to input a sine wave signal, a linear change signal, a random change signal, a fixed signal or a floating signal.

[0096] Optionally, various signals including sinusoidal signals, linear signals, random signals, fixed signals, floating signals and their combinations can be sent in a variety of ways, which can effectively test the functions and performance of multi-channel ADC such as accuracy, conversion mode, conversion rate, crosstalk and isolation.

[0097] Exemplarily, if it is the normal working mode, the data types of all channels are further determined according to the variable data_type[1:0]: if data_type=0, all channels input sinusoidal wave signals; if data_type=1, all channels input linear change signals; if data_type=2, all channels input randomly change signals; if data_type=3, all channels randomly select to input sinusoidal wave signals, linear change signals, random change signals, fixed signals or floating signals.

[0098] Based on the above embodiments, Figure 6 A schematic diagram of random variation rules between channels of input signals of another multi-channel ADC verification method provided by an embodiment of the present application is given. The verification method of the multi-channel ADC is a specific implementation of the verification method of the multi-channel ADC described above. Figure 6 , the verification method of the multi-channel ADC includes:

[0099] 145. During the signal transmission process, the input signal value of the initial state of each channel is random.

[0100] Optionally, the input signal values ​​of the initial state are random among the channels, that is, the signal changes among the channels do not start from the same value, which is more in line with the actual application scenario and improves the verification quality of the multi-channel ADC chip.

[0101] 146. During the signal transmission process, the rate of change of the input signal values ​​of each channel is random.

[0102] Optionally, the change rate of the input signal between each channel is random, that is, the speed of signal change between each channel is random. Even if the data type sent is the same, such as all sine wave signals, in addition to the random generation of different initial values ​​of each channel at the first point, the change rate of the input signal of each channel also needs to be as random as possible to maintain independence, that is, the input signals of some channels change quickly and the input signals of some channels change slowly, which is also in line with the actual application scenario.

[0103] 147. During the signal transmission process, when a sinusoidal wave signal or a linearly changing signal is input to each channel, random noise is added to the sinusoidal wave signal or the linearly changing signal.

[0104] Optionally, tiny random noise is added to the sine wave and linear variation signals to simulate real scenarios and ensure full coverage of the input signal accuracy to avoid steps when the ADC processes certain input variables.

[0105] For example, please refer to Figure 7 , generate basic sinusoidal wave signals and linear change signal arrays and queues, create a new function adc_generator, in which the basic sinusoidal wave signals and linear change signal arrays and queues are generated:

[0106] Lines 7 to 25: Generate sine wave signal array and queue;

[0107] Lines 7 to 15: Read the local sine wave data file data_sin.txt (real numbers between 0 and 2.5) and store the data one by one in the volt_q queue;

[0108] Lines 17-25: The volt_q queue data is processed one by one and then stored in the sin_real_q queue, and finally the sin_real_q queue is copied to the sin_real_a array;

[0109] Lines 20-21: Randomly generate a noise of +-0.05;

[0110] Line 22: Because the ADC input in this case has two amplitudes, 0 to 2.5V and 0 to 5V, the data in each vlot_q queue is processed according to the ADC amplitude pre-configuration variable adc_range_i. In addition, the noise data noise_r generated by line 21 is added, and the final data range is changed between -0.1 and (FS (full_scale 2.5 or 5) + 0.1), which is equivalent to adding boundary anomalies.

[0111] Lines 29 to 42: Generate linear change signal array and queue;

[0112] Lines 30-35: Generate 100 linearly increasing signals (real numbers between 0 and 2.5 or 0 and 5) and store the data one by one in the add_real_q queue. The amplitude adjustment and the method of generating and adding noise are the same as the above sine wave method.

[0113] Lines 36 to 41: Generate 100 linearly decreasing signals (real numbers between 0 and 2.5 or 0 and 5) and store the data one by one in the add_real_q queue. The amplitude adjustment and the method of generating and adding noise are the same as the above sine wave method.

[0114] Line 42: Finally, copy the add_real_q queue to the add_real_a array.

[0115] Please refer to Figure 8 , is a schematic diagram of generating one of the final five types of pre-send data queues according to the input parameter v_type. Create a function ch_queue_gen (input int v_type = 0) to generate the final pre-send data queue according to the input parameter v_type. There are five types in total: sine wave signal, linear signal, random signal, fixed signal, and floating signal (suspended):

[0116] Lines 49 to 52: Generate a sine wave signal queue, and the starting signal is random and placed in the sin_real_q queue;

[0117] Lines 55-58: Generate a linear change signal queue, and the starting signal is random and put into the add_real_q queue;

[0118] Lines 60-66: Generate 200 random change signals and put them into the rand_real_q queue;

[0119] Line 70: If the input parameter v_type>=3, then regenerate v_type randomly between 0 and 4;

[0120] Lines 73 to 83: Generate the final pre-send queue ch_real_q queue according to v_type. If v_type is equal to 0, ch_real_q is copied from sin_real_q, that is, the sine wave queue; if v_type is equal to 1, ch_real_q is copied from add_real_q, that is, the linear change signal queue; if v_type is equal to 2, ch_real_q is copied from rand_real_q, that is, the random change signal queue; if v_type is equal to 3, a real number within the normal amplitude range is randomly generated and 200 copies are copied and put into the ch_real_q queue, that is, the fixed signal queue; if v_type is equal to 4, 200 copies of high-impedance data (`wrealZState) are copied and put into the ch_real_q queue, that is, the floating signal queue.

[0121] Exemplarily, the data of each channel is generated according to the adc_debug configuration and the data_type configuration and continuously sent out at a random change rate; Fig. 9 The following is a schematic diagram of the main code of the multi-channel ADC input generator, which calls the adc_generator and ch_queue_gen functions defined previously:

[0122] Lines 94-96: You can call the Verilog parameter function $value$plusargs to directly specify the adc_debug value (0: normal working mode; 1: debug mode). If this is not specified in the Makefile, the default value 0 is used, which is the normal working mode.

[0123] Lines 98 to 102: You can call the Verilog parameter function $value$plusargs to directly specify the data_type value. If no parameter is specified, data_type is randomly generated between 0 and 3. If data_type = 0, all channels input sine wave signals; if data_type = 1, all channels input linear change signals; if data_type = 2, all channels input random change signals; if data_type = 3, all channels randomly select to input sine wave signals, linear change signals, random change signals, fixed signals or floating signals;

[0124] Line 104: Wait for the environment startup signal grape_run to become 1, and then start subsequent operations;

[0125] Line 106: Call the aforementioned adc_generator function to generate the basic sine wave signal and linear change signal array and queue;

[0126] Lines 107-112: A for loop is used to call the ch_queue_gen() function 16 times to generate the pre-send data queue data_real_q

[16] and array data_real_a

[16] for 16 channels. Each channel generates an array and queue of the corresponding type according to data_type.

[0127] Lines 116 to 138: If adc_debug is equal to 0, which is the normal working mode, each ADC sampling cycle will assign the channel data generated before 106 to 112 to the input pins of each channel one by one;

[0128] Lines 117 to 121: Randomly generate the input signal transmission rate adc_ch_dly

[16] of each channel, which changes once every 1 to 20 ADC sampling cycles in this example (can be modified according to actual conditions), and assign the first data of each channel to each channel pin;

[0129] 123-137: infinite loop, each ADC sampling conversion cycle (the falling edge of seqs_flag in line 124 is a certain moment within an ADC sampling conversion cycle automatically generated in the environment, and there is no risk in changing the input voltage at this moment) executes a controllable transmission of 16-channel input data, and the channel adc_ch_dly[i] controls the transmission rate of each channel: if the ADC sampling count (drv_cnt, line 136) reaches the input signal transmission rate change point of a certain channel (line 127, drv_cnt%adc_ch_dly[i]==0), take a data from the beginning of the pre-transmission queue data_real_q[i] of the channel and assign it to the input pin of the channel; otherwise, the input signal of the channel does not change and keeps the original value;

[0130] Lines 130-135: If a pre-send channel queue data_real_q is empty, the pre-send data array of the channel is reassigned to the pre-send queue for subsequent transmission. This is equivalent to data_real_q being a clip, and when the clip is empty, it is refilled with the data_real_a array;

[0131] Lines 139 to 143: If adc_debug is equal to 1, that is, debug mode, a random fixed voltage is directly input to each channel and remains unchanged during the entire simulation. This mode is usually used for fast debugging. That is, if a test case simulation fails, the voltage is fixed when running again with the same seed so that each channel can be clearly and uniquely distinguished in the waveform, and then the channel with the problem can be quickly located.

[0132] The above is the implementation scheme and details of the multi-channel ADC input generator, which is implemented using system Verilog syntax. The above code can be encapsulated in a module and instantiated separately at the top level of the verification environment, or it can be directly encapsulated in a file and included at the top level of the verification environment. The multi-channel ADC input generator (driver) will be automatically executed during each simulation execution.

[0133] For example, Fig.10 This is an example of using the parameters data_type and adc_dubug in the makefile to control the generation of different types of ADC input signals.

[0134] Fig.11 The waveform diagram for data_type=0, that is, all channels send sine waves. From the figure, it can be seen that the initial voltage of each channel is random and the change rate of the sine wave of each channel is also random.

[0135] Fig.12The waveform diagram is when data_type=1, that is, all channels send linearly changing signals. It can be seen from the figure that the initial voltage of each channel is random and the change rate of the signal of each channel is also random.

[0136] Fig.13 The waveform diagram for data_type=2, that is, all channels send randomly changing signals. It can be seen from the figure that the initial voltage of each channel is random and the change rate of the signal of each channel is also random.

[0137] Fig.14 For data_type=3, that is, all channels randomly send 5 types of input signal waveforms. It can be seen from the figure that the initial voltage of each channel is random and the signal change rate of each channel is also random. In this simulation, channels 7, 11, 12 and 15 send sine waves, channels 0, 1, 3, 4, 6 and 14 send linear change signals, channel 13 sends randomly changing signals, 2, 5, 8 and 9 send fixed signals, and channel 10 sends high impedance, i.e. floating signals.

[0138] Fig.15 This is the waveform diagram of random fixed voltage input to all channels in debug mode when adc_debug=1. It can be seen from the figure that the initial voltage of each channel is random and remains fixed during the entire simulation.

[0139] As described above, from the perspective of digital verification, the embodiment of the present application has specially developed a multi-channel ADC input generator (driver) that is rich in functions, flexible and controllable. It is implemented by programming with system verilog syntax, and decoupling of signal input and device operation is achieved. Various signals including sinusoidal signals, linear signals, random signals, fixed signals, floating signals (suspended) and their combinations can be sent in a variety of ways, and the functions and performances such as accuracy, conversion mode, conversion rate, crosstalk and isolation of the multi-channel ADC can be effectively tested. After practical verification of multiple projects, it is proved that this method can effectively discover various bugs that occur in the design stage of the multi-channel ADC chip, thereby greatly improving the verification quality and verification efficiency of the multi-channel ADC chip, and effectively ensuring the success rate of the first version of the tape-out.

[0140] The above steps are not to be performed in a strict order as described in the numbers, but should be understood as an overall solution.

[0141] In the second aspect, based on the above embodiments, Fig.16 This is a schematic diagram of the structure of a multi-channel ADC verification device provided in an embodiment of the present application. Fig.16 The multi-channel ADC verification device provided in this embodiment specifically includes: a mode judgment module 601, a debugging mode module 602, a signal input module 603 and a rule execution module 604.

[0142] Among them, the mode judgment module 601 is used to judge the working mode of the multi-channel ADC input generator; the debugging mode module 602 is used to input random voltages to each channel when the working mode of the multi-channel ADC input generator is the debugging mode, wherein the voltage of each channel is fixed during the entire simulation period; the signal input module 603 designs an independent multi-channel ADC input generator in a verification environment, and generates a pre-input signal queue for each channel according to the data type variable constraint when the working mode of the multi-channel ADC input generator is the normal mode; the rule execution module 604 is used to obtain data from the input signal queue of each channel and input it to each channel, and execute the random rules of the signal of each channel.

[0143] As described above, in the embodiment of the present application, when the working mode of the multi-channel ADC input generator is the normal mode, the input signal of each channel is constrained by the data type variable; according to the data type variable, the corresponding set signal is input to each channel, and the random rule of the signal of each channel is executed; by designing an independent multi-channel ADC input generator in the verification environment, the signal input and device operation are decoupled, different signals are input to each channel, and different signal change rules are set, which can effectively test the functions and performances such as the accuracy and conversion rate of the multi-channel ADC, and greatly improve the verification quality and verification efficiency of the multi-channel ADC chip.

[0144] The multi-channel ADC verification device provided in the embodiment of the present application can be used to execute the multi-channel ADC verification method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0145] In a third aspect, an embodiment of the present application further provides an electronic device, which can integrate the verification device of the multi-channel ADC provided in the embodiment of the present application. Fig.17 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.17 The electronic device includes: an input device 73, an output device 74, a memory 72 and one or more processors 71; the memory 72 is used to store one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 71 implement the multi-channel ADC verification method provided in the above embodiment. The input device 73, the output device 74, the memory 72 and the processor 71 can be connected by a bus or other means. Fig.17 The example of connecting through bus is taken in the following.

[0146] The processor 71 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 72, that is, implements the above-mentioned verification method of the multi-channel ADC.

[0147] The electronic device provided above can be used to execute the verification method of the multi-channel ADC provided in the above embodiment, and has corresponding functions and beneficial effects.

[0148] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the multi-channel ADC verification method as described above, and the same beneficial effects can be achieved.

[0149] Of course, the computer executable instructions of a storage medium containing computer executable instructions provided in an embodiment of the present application are not limited to the multi-channel ADC verification method described above, and can also execute related operations in the multi-channel ADC verification method provided in any embodiment of the present application.

[0150] In a fifth aspect, the embodiments of the present application also provide a computer program product, and the methods described in the various embodiments of the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the various embodiments of the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM (Open Application Model) or other programmable device.

[0151] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0152] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device 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 devices, methods and computer program products 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 the 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.

[0153] 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.

[0154] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods 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), a random access memory (RAM), a magnetic disk or an optical disk.

[0155] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0156] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0157] It should be noted that, in this article, 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 "include", "comprise" 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 "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for verifying a multi-channel ADC, characterized in that: include: Design an independent multi-channel ADC input generator in the verification environment. When the multi-channel ADC input generator is in normal mode, generate the pre-input signal queue for each channel according to the data type variable constraints. Get data from the input signal queue of each channel and input it to each channel, and execute the random rules of the signal of each channel.

2. The verification method of the multi-channel ADC according to claim 1, wherein: Also includes: Determine the operating mode of the multi-channel ADC input generator; When the operation mode of the multi-channel ADC input generator is the debugging mode, a random voltage is input to each channel, wherein the voltage of each channel is fixed during the entire simulation period.

3. The verification method of the multi-channel ADC according to claim 1, wherein: The step of generating a pre-input signal queue for each channel according to the data type variable constraint includes: When the data type variable is the first value, input the sine wave signal to each channel; When the data type variable is the second value, a linearly changing signal is input to each channel; When the data type variable is the third value, input a random change signal to each channel; When the data type variable is the fourth value, all channels randomly select to input a sine wave signal, a linear change signal, a randomly change signal, a fixed signal, or a floating signal.

4. The verification method of the multi-channel ADC according to claim 1, wherein: The random rules for executing the signals of each channel include: During the signal transmission process, the input signal value of the initial state of each channel is random.

5. The verification method of the multi-channel ADC according to claim 1, wherein: The random rules for executing the signals of each channel include: During the signal transmission process, the rate of change of the input signal value of each channel is random.

6. The verification method of the multi-channel ADC according to claim 3, characterized in that: The random rules for executing the signals of each channel include: During signal transmission, when a sinusoidal wave signal or a linearly varying signal is input to each channel, random noise is added to the sinusoidal wave signal or the linearly varying signal.

7. The verification method of the multi-channel ADC according to claim 1, wherein: After generating the pre-input signal queues of the respective channels according to the data type variable constraints when the working mode of the multi-channel ADC input generator is the normal mode, the method further includes: If there are test cases that require adjusting the working mode to debug mode, use the parameter input function to directly enter the debug mode.

8. A multi-channel ADC verification device, characterized in that: include: The signal input module is used to design an independent multi-channel ADC input generator in the verification environment. When the multi-channel ADC input generator operates in normal mode, it generates a pre-input signal queue for each channel according to the data type variable constraints. The rule execution module is used to obtain data from the input signal queue of each channel and input it to each channel, and execute the random rules of the signal of each channel.

9. An electronic device, characterized in that: include: A processor, a memory, and a bus, wherein the processor is connected to the memory via the bus, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the verification method of the multi-channel ADC according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a server, implements the multi-channel ADC verification method according to any one of claims 1 to 6.

11. A computer program product, characterized in that The computer program product comprises instructions, which, when executed by a computer, enable the computer to implement the verification method for a multi-channel ADC according to any one of claims 1 to 6.