Module self-test method, device, equipment and storage medium for digital-analog hybrid chip

Through the self-testing unit, the simulation modules and ADC modules in the digital-to-analog hybrid chip are judged and tested, and the problems of high cost and low testing efficiency of ATE test machines are solved, and the module self-test is realized, which reduces the chip production and testing costs and increases the cost of Test efficiency.

CN118801886BActive Publication Date: 2024-12-03WUXI GUOXINWEI HIGH-TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411280957.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-03
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

The existing digital-to-analog hybrid chip testing methods require a dedicated ATE test machine, which leads to high cost and low testing efficiency, making it impossible to test after the chip is installed.

Method used

Provide a module self-testing method for digital-analog hybrid chips. It uses the self-testing unit to judge the type of module to be tested, and generates and compares the test signals through the driving subunit and the comparison subunit to realize self-testing of the analog module and the ADC module. Reduce testing costs and time.

Benefits of technology

The module functions can be tested without a dedicated ATE machine, reducing chip production and testing costs, improving testing efficiency, realizing one-click testing, and ensuring the normal operation of the simulation module and ADC module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118801886B_ABST
    Figure CN118801886B_ABST
Patent Text Reader

Abstract

The present application relates to a module self-test method, device, equipment and storage medium of a digital-analog hybrid chip, which is applied in the field of digital-analog hybrid chip testing technology, including judging the type of a module to be tested of the digital-analog hybrid chip, the type of the module to be tested including an analog module and an ADC module; according to the type of the module to be tested obtained by judging, the module to be tested is tested using the self-test unit. The technical effect of the present application is to improve the test efficiency of the digital-analog hybrid chip and reduce the test cost of the digital-analog hybrid chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of digital-analog hybrid chip testing, and in particular to a module self-test method, device, equipment and storage medium for a digital-analog hybrid chip. Background Art

[0002] A hybrid chip is a chip that integrates analog circuits, digital circuits, and mixed signal processing circuits. It can process digital and analog signals on the same chip, thus achieving a seamless connection between digital and analog. Hybrid chips have a wide range of applications and significant advantages in many fields.

[0003] In a hybrid digital-analog chip, the analog module plays an important role in the hybrid digital-analog chip, responsible for processing continuously changing analog signals, while the ADC module can convert analog signals into digital signals. In order to ensure that the analog part and the digital-analog conversion function of the hybrid digital-analog chip are normal, the hybrid digital-analog chip needs to be tested to ensure that the analog modules and ADC modules in the chip can operate normally. At present, the test of hybrid digital-analog chips mainly adopts ATE test, which is an automatic test equipment test. It is a method of automatically testing the object under test by controlling the test instrument through a computer.

[0004] The ATE testing method can realize the testing of digital and analog parts. However, the ATE testing method usually requires the use of a dedicated ATE testing machine to test the analog modules and ADC modules in the digital-analog hybrid chip. The dedicated ATE testing machine used is usually expensive, which will lead to an increase in the chip production cost. Summary of the invention

[0005] In order to help solve the problem that dedicated ATE test machines are usually expensive, resulting in increased chip manufacturing costs, the present application provides a module self-test method, device, equipment and storage medium for a digital-analog hybrid chip.

[0006] In a first aspect, the present application provides a module self-test method for a digital-analog hybrid chip, which adopts the following technical solution: the method is applied to a module self-test system for a digital-analog hybrid chip, the module self-test system for the digital-analog hybrid chip includes a self-test unit, and the method includes:

[0007] Determine the type of the module to be tested of the digital-analog hybrid chip, where the type of the module to be tested includes an analog module and an ADC module;

[0008] According to the determined type of the module to be tested, the module to be tested is tested by using the self-test unit.

[0009] In a specific possible implementation scheme, the self-test unit includes a driving subunit and a comparing subunit;

[0010] If the module to be tested is an analog module, the step of testing the module to be tested by using the self-test unit includes:

[0011] Controlling the driving subunit to generate an analog driving signal, and transmitting the analog driving signal to the module to be tested;

[0012] Controlling the analog module to process the analog drive signal and generate an analog test signal;

[0013] Controlling the comparison subunit to compare the analog test signal with the analog drive signal;

[0014] If the comparison is inconsistent, the comparison subunit is controlled to output the simulation test signal and the corresponding fault status.

[0015] In a specific implementation manner, after controlling the comparison subunit to compare the analog test signal with the analog drive signal, the method further includes:

[0016] Determining whether the flipping times of the analog driving signal meets a preset number;

[0017] If the flipping times of the analog driving signal do not meet the preset times, controlling the driving unit to continue to generate the analog driving signal;

[0018] If the number of flipping times of the analog driving signal meets the preset number, the test of the current module to be tested is completed.

[0019] In a specific possible implementation scheme, the module self-test system of the digital-analog hybrid chip further includes a filtering unit;

[0020] After the analog module is controlled to process the analog drive signal and generate an analog test signal, the method further includes:

[0021] Controlling the filtering unit to process the analog test signal and generate an analog filtering signal;

[0022] The controlling the comparison subunit to compare the analog test signal with the analog drive signal comprises:

[0023] The comparison subunit is controlled to compare the analog filtering signal with the analog driving signal.

[0024] In a specific possible implementation scheme, the module self-test system of the digital-analog hybrid chip further includes a voltage driving unit, and the self-test unit includes a driving subunit and a comparing subunit;

[0025] If the module to be tested is an ADC module, the step of testing the module to be tested by using the self-test unit includes:

[0026] Acquire different voltage test gears, and control the driving subunit to generate corresponding voltage test signals according to the voltage test gears;

[0027] Controlling the voltage driving unit to generate a corresponding test voltage according to the voltage test signal, and transmitting the test voltage to the ADC module to be tested;

[0028] Controlling the ADC module to be tested to convert the test voltage into a corresponding voltage digital signal, and transmitting the voltage digital signal to the comparison subunit;

[0029] Controlling the comparison subunit to compare the voltage digital signal with the voltage test signal;

[0030] If the comparison is inconsistent, the voltage test signal and the test result are output.

[0031] In a specific implementation manner, after controlling the comparison subunit to compare the voltage digital signal with the voltage test signal, the method further includes:

[0032] Determining whether the self-test unit has traversed all voltage test gears;

[0033] If the self-test unit has not traversed all the voltage test gears, controlling the self-test unit to select the voltage test gear that has not been traversed, and generating a corresponding voltage test signal;

[0034] If the self-test unit traverses all voltage test gears, the test of the ADC module currently to be tested is completed.

[0035] In a specific implementation manner, before controlling the comparison subunit to compare the voltage digital signal with the voltage test signal, the method further includes:

[0036] Determining whether the waiting time for the comparison subunit to receive the voltage digital signal exceeds a preset time;

[0037] If the waiting time for the comparison subunit to receive the voltage digital signal exceeds the preset time, the test of the ADC module to be tested is terminated and a timeout exception is returned.

[0038] In a second aspect, the present application provides a module self-test device for a digital-analog hybrid chip, which adopts the following technical solution: the device is applied to a module self-test system for a digital-analog hybrid chip, the module self-test system for the digital-analog hybrid chip includes a self-test unit, and the device includes:

[0039] A type judgment module, used to judge the type of the module to be tested of the digital-analog hybrid chip, wherein the type of the module to be tested includes an analog module and an ADC module;

[0040] The self-test module is used to test the module to be tested by using the self-test unit according to the determined type of the module to be tested.

[0041] In a third aspect, the present application provides a computer device, which adopts the following technical solution: it includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and executes a module self-test method such as any of the above-mentioned digital-analog hybrid chips.

[0042] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: storing a computer program that can be loaded by a processor and execute any of the above-mentioned module self-test methods of the digital-analog hybrid chip.

[0043] In summary, this application has the following beneficial technical effects:

[0044] By generating the driving signal of the analog or ADC test module through the self-test unit to test whether the module functions normally, there is no need for dedicated ATE equipment for testing, thereby reducing the cost of manufacturing and testing mixed-analog chips; in addition, according to different test modules, the self-test unit can generate corresponding driving signals to test functions. Users do not need to organize test excitation signals in advance, nor do they need additional test tools and equipment. One-click testing can be performed, thereby saving test time and improving chip testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flow chart of a module self-test method of a digital-analog hybrid chip in an embodiment of the present application;

[0046] Figure 2 It is a schematic diagram of the framework of the simulation module self-test system in the embodiment of the present application;

[0047] Figure 3 is a flow chart of a serial testing method of multiple simulation modules in an embodiment of the present application;

[0048] Figure 4 is a flow chart of a method for parallel testing of multiple simulation modules in an embodiment of the present application;

[0049] Figure 5It is a schematic diagram of the framework of the ADC module self-test system in an embodiment of the present application;

[0050] Figure 6 is a flow chart of a serial testing method of multiple ADC modules in an embodiment of the present application;

[0051] Figure 7 Schematic diagram of a module self-test device of a digital-analog hybrid chip in an embodiment of the present application;

[0052] Figure 8 It is a schematic diagram used to embody a computer device in an embodiment of the present application.

[0053] Reference numerals: 701, type determination module; 702, self-test module. DETAILED DESCRIPTION

[0054] The following combination Figure 1-Figure 8 This application is described in further detail.

[0055] The embodiment of the present application discloses a module self-test method of a digital-analog hybrid chip, which can realize the self-test of the analog module and the ADC module in the digital-analog hybrid chip, ensure the normal functions of the analog module and the ADC module, and thus ensure that the digital-analog hybrid chip can operate normally. A digital-analog hybrid chip is a chip that integrates analog circuits, digital circuits, and mixed signal processing circuits. It can realize the processing of digital signals and analog signals on the same chip, thereby realizing the seamless connection between digital and analog. Digital-analog hybrid chips have a wide range of applications and significant advantages in many fields.

[0056] In a hybrid digital-analog chip, the analog module plays an important role in the hybrid digital-analog chip, responsible for processing continuously changing analog signals, while the ADC module can convert analog signals into digital signals. In order to ensure that the analog part and the digital-analog conversion function of the hybrid digital-analog chip are normal, the hybrid digital-analog chip needs to be tested to ensure that the analog modules and ADC modules in the chip can operate normally. At present, the test of hybrid digital-analog chips mainly adopts ATE test, which is an automatic test equipment test. It is a method of automatically testing the object under test by controlling the test instrument through a computer.

[0057] The ATE test method can realize the test of digital and analog parts. However, the ATE test method usually requires the use of a dedicated ATE test machine to test the analog modules and ADC modules in the digital-analog hybrid chip. The dedicated ATE test machine used is usually expensive, which will lead to an increase in the chip production cost; secondly, the ATE machine needs to organize the test excitation signal to test the digital-analog hybrid chip, which usually takes a lot of time, resulting in a decrease in chip test efficiency; in addition, ATE testing cannot be performed after the chip is installed. In order to help improve chip testing efficiency, reduce chip testing costs, and test the module functions in the chip after the chip is installed, the present application provides a module self-test method for a digital-analog hybrid chip.

[0058] Reference Figure 1 , the method comprises the following steps:

[0059] S10, determining the type of the module to be tested of the digital-analog hybrid chip, where the type of the module to be tested includes an analog module and an ADC module.

[0060] Specifically, the analog-digital hybrid chip includes an analog module, a digital module, and an analog-to-digital conversion part. In the present application, the main focus is on the test of the analog module. The analog module part can be divided into two parts in the present application embodiment, an analog module part and an analog-to-digital conversion module part, and the analog-to-digital conversion module is also an ADC module. Due to the different functions of the analog module and the ADC module, the output result of the analog module, such as the diagnostic analog module for over-temperature, over-voltage, under-voltage, etc., is a 1-bit signal; while the output returned by the ADC module is generally multi-bit data. Therefore, it is necessary to first determine whether the type of the module to be tested is an analog module or an ADC module, and then use the corresponding self-test system and method to perform self-test according to the different types determined.

[0061] S20, testing the module to be tested by using a self-test unit according to the determined type of the module to be tested.

[0062] Specifically, in the self-test system, the driving signal is mainly generated by the self-test unit in the self-test system, and the generated driving signal is compared with the result after the received module under test is processed to determine whether the function of the module under test is normal. Different types of modules under test are tested using different system structures and driving signals.

[0063] In the present application scheme, the self-test unit generates a driving signal for the analog or ADC test module to test whether the module functions normally, and there is no need for a dedicated ATE machine to perform the test, thereby reducing the cost of manufacturing and testing mixed-analog chips. In addition, the self-test unit can generate corresponding driving signals to test functions according to different test modules. The user does not need to organize the test excitation signal in advance, nor does he need additional test tools and equipment, etc., and can perform one-click testing, thereby saving test time and improving chip testing efficiency.

[0064] In one embodiment, the self-test unit includes a driving subunit and a comparing subunit. If the module to be tested is an analog module, the step of using the self-test unit to test the module to be tested can be specifically performed as follows:

[0065] Reference Figure 2 , which is a schematic diagram of the structural framework of the simulation module self-test. Figure 2 The analog module is the module to be tested, and ABIST stands for the self-test unit. The self-test unit includes a driving subunit and a comparing subunit. The driving subunit generates a driving signal. The comparing subunit compares the signal output by the analog module with the driving signal generated by the driving subunit, and outputs the final comparison result and fault status.

[0066] After determining the module type, the method for self-testing the analog module using the self-test unit may include: first, the system controls the driving subunit to generate an analog driving signal, and transmits the analog driving signal to the module to be tested, that is, the driving analog signal generated by the analog module is a flip signal of 0 or 1. For example, a 0 driving signal is first generated, and a comparison and judgment is performed through the comparison subunit. After that, the driving subunit continues to output a 1 driving signal, and a comparison and judgment is performed through the comparison subunit. Alternatively, a 1 driving signal is first generated and then a 0 driving signal is generated for testing. A flip signal of 01 or 10 can be generated to test whether the analog module can operate normally and output the expected signal under a 0 or 1 driving signal, so as to achieve the purpose of testing the function of the analog module.

[0067] Afterwards, the system controls the analog module to process the analog drive signal, generates an analog test signal, and transmits the generated analog test signal to the comparison subunit in the self-test unit. The system then controls the comparison subunit to compare the analog test signal with the analog drive signal. If the comparison results are inconsistent, the comparison subunit is controlled to output the analog test signal and the corresponding fault state. If the comparison results are consistent, the analog module passes the test. For example, the analog drive signal generated by the driving subunit in the self-test unit is 1, and the self-test unit transmits the analog drive signal 1 to the analog module. The analog module processes the analog drive signal 1 and outputs the analog test signal and transmits it to the comparison subunit. If the analog test signal output by the analog module is 1, the comparison subunit compares the two signals and the results are consistent, then the test passes, and continues to generate a 0 signal for testing; if the analog test signal output by the analog module is 0, the comparison subunit compares the two signals and the results are inconsistent, then the comparison subunit will output the faulty analog test signal 0, as well as the fault state of the module.

[0068] It should be noted that the reset and start of the self-test unit can be controlled by the register in the digital-analog hybrid chip. For example, in the embodiment of the present application, a 2-bit abist_start register is set, and the default value is 2'b01. At this time, the self-test unit is not in working state. When 2'b10 is written, the self-test unit starts the test work. The reset and start operation of the self-test unit needs to be performed manually by the user. The user manually inputs 2'b01, and the system resets the self-test unit when it receives the value. The user manually inputs 2'b10, and the system starts the self-test unit when it receives the value. In addition, in order to know whether the test is finished, the abist_run flag can be set. When the self-test unit has not ended, this flag is 1.

[0069] In the present application scheme, since the signals output by the analog modules such as overvoltage, undervoltage, and overtemperature are 1-bit data, a 1-bit signal is generated and output by the self-test unit according to the characteristics of the analog module. After being processed by the analog module, the two signals are compared by the comparison unit to determine the function of the analog module. The entire working logic is simple, and the test logic is simple, which can realize one-click testing of the analog modules in the digital-analog hybrid chip, thereby saving time, improving efficiency, and reducing testing costs.

[0070] In one embodiment, considering that the result of the analog module test may not be accurate enough after only one flip signal test, the following steps may be performed after the control comparison subunit compares the analog test signal with the analog drive signal:

[0071] First, determine whether the number of flips of the analog drive signal meets the preset number of times. If the number of flips of the analog drive signal does not meet the preset number of times, the control drive unit continues to generate the analog drive signal. If the number of flips of the analog drive signal meets the preset number of times, the test of the current module to be tested ends. For example, the drive signal 10 or 01 generated in sequence can be regarded as a flip of the drive signal. When testing the analog module, theoretically, a 0 signal test is performed once and then a 1 signal test is performed once. If both signal tests are OK, the test can be completed. However, in actual applications, the chip will be used multiple times. There may be contingency in the test process of only performing a flip test once. Therefore, the analog module can be tested for multiple signal flips. For example, the drive unit continuously outputs 010101... signals, and 0 signal to 1 signal is regarded as a flip, and 1 signal to 0 signal is also regarded as a flip. Multiple flip tests are performed to improve the accuracy of chip testing. Among them, it should be noted that for the setting of the number of flips of the drive signal, the user can set it according to the actual situation of the chip to ensure the result of the chip test.

[0072] In the present application, considering that the analog module is only tested with the flip signal once, the test result of the analog module may not be accurate enough. Therefore, by increasing the number of flips of the driving signal, it can also be understood as increasing the number of tests of the analog module to improve the accuracy of the analog module test and avoid accidental situations as much as possible.

[0073] In one embodiment, the module self-test system of the digital-analog hybrid chip further includes a filtering unit. Considering that the output result after the analog module processes the signal may have burrs, the following steps may be performed after the analog module is controlled to process the analog drive signal and generate the analog test signal:

[0074] Reference Figure 2 After the analog module processes the analog drive signal and outputs the analog test signal, the system controls the filter unit to process the analog test signal and generate an analog filter signal; controlling the comparison subunit to compare the analog test signal with the analog drive signal includes: controlling the comparison subunit to compare the analog filter signal with the analog drive signal. It should be noted that the filter unit, that is, the filter, requires a certain amount of time to filter the analog test signal. Therefore, when the self-test unit generates a drive signal, a certain amount of time needs to be set for the self-test unit. This time is the time required to maintain the filter signal. The user can set the filter time according to the actual filter selected.

[0075] In the present application scheme, considering that the analog module may generate glitch noise after signal processing, which may affect the comparison results of the subsequent comparison unit, it is necessary to filter the analog test signal output by the analog module to generate a smooth signal for comparison, so as to avoid noise interference as much as possible to ensure the accuracy of the test results.

[0076] It should be noted that the above solution is for the testing process of a single simulation module. When the user has multiple simulation modules to test, he can choose serial testing or parallel testing. The serial testing method can be understood as testing the simulation modules to be tested one by one, and the parallel testing method can be understood as testing all simulation modules at the same time.

[0077] Reference Figure 3 , which is a flow chart of the analog module serial test method. The system first controls the driving subunit to generate a driving signal, that is, an analog driving signal, and makes the self-test unit maintain the time required for filtering. Then, the system controls the comparison unit to compare the analog driving signal with the analog filtering signal; then, it determines whether the number of flips of the driving signal meets the preset number. If not, the driving signal is continuously reversed, that is, the driving subunit is controlled to continue to generate a driving signal of 010101... If the number of flips meets the requirement, another analog module is switched to be tested according to the above self-test method. Finally, it determines whether all the analog modules to be tested are traversed. If there are still untested ones, the untested analog modules are tested. If all the modules to be tested are traversed, the test ends.

[0078] Reference Figure 4 , which is a flow chart of the parallel test method of analog modules. The system first controls the driving subunit to generate driving signals for all analog modules at the same time, and the driving signal is also the analog driving signal, and the self-test unit maintains the time required for filtering. Then the system controls the comparison unit to compare the analog driving signal with the analog filtering signal; then, it determines whether the number of flips of the driving signal meets the preset number. If not, the driving signal is continuously reversed, that is, the driving subunit is controlled to continue to generate the driving signal of 010101... If the number of flips meets the requirement, the test of all analog modules to be tested is completed.

[0079] Among them, the serial test method and the parallel test method each have their own advantages. The advantage of the serial method is that it can avoid interference between modules as much as possible, and the advantage of the parallel method is that the test time is shorter. Either parallel or serial methods can be used. In actual applications, users can choose to use serial or parallel methods according to the actual situation of the chip and test requirements.

[0080] In one embodiment, the module self-test system of the digital-analog hybrid chip further includes a voltage driving unit, the self-test unit includes a driving subunit and a comparison subunit, and if the module to be tested is an ADC module, the step of using the self-test unit to test the module to be tested can be specifically performed as follows:

[0081] Reference Figure 5 , which is a schematic diagram of the structural framework of the ADC module self-test. The system obtains different voltage test gears and controls the driving subunit to generate corresponding voltage test signals according to the voltage test gears. Since the ADC conversion module converts analog signals into digital signals, directly using digital signals to drive the ADC module may cause inaccurate test results. Therefore, a voltage conversion method is adopted to set a voltage driving unit in the self-test system. Users can set voltage test signals of different gears in advance. The voltage driving unit can convert the voltage test signals into corresponding specific test voltages. After that, the system controls the voltage driving unit to generate corresponding test voltages according to the voltage test signals and transmit the test voltages to the ADC module to be tested. For example, in an embodiment of the present application, the user sets 5 groups of voltages, the system receives relevant information of the 5 groups of voltages transmitted by the user, and sets a 5-bit voltage test signal sel_lv signal. The relationship between the 5bit sel_lv signal and the voltage can be 5'b0_0001 to select 0V, 5'b0_0010 to select 0.25*Vref, 5'b0_0100 to select 0.5*Vref, 5'b0_1000 to select 0.75*Vref, and 5'b1_0000 to select Vref; the self-test unit transmits the sel_lv signal to the voltage driving unit, the voltage driving unit generates an actual test voltage according to the received sel_lv signal, and transmits the test voltage to the ADC module.

[0082] Afterwards, the ADC module to be tested is controlled to convert the test voltage into a corresponding voltage digital signal, and the voltage digital signal is transmitted to the comparison subunit. Specifically, the ADC module needs to receive a conversion instruction output from the test unit to start the conversion, for example, refer to Figure 5 In the embodiment of the present application, the self-test unit generates and outputs the adc_req instruction, the ADC module starts voltage conversion and generates a corresponding digital signal, x represents the module number when multiple ADC modules are tested, adc1_req requests the first ADC module to start conversion and test, after the conversion is completed, the ADC module transmits the converted voltage digital signal, that is, the adc_data signal, to the self-test unit, and at the same time, the ADC module generates a conversion completion signal, that is, the adc_rdy signal, which is transmitted to the self-test unit to inform the self-test unit that the conversion is completed and subsequent comparison operations can be performed.

[0083] Finally, the system controls the comparison subunit to compare the voltage digital signal and the voltage test signal; if the comparison is inconsistent, the voltage test signal and the test result are output, and if the comparison is consistent, the ADC module test ends. Specifically, since it is difficult for the ADC module to achieve 100% accurate conversion, there will be certain errors. Therefore, when comparing, a certain error range needs to be set. The consistent comparison can also be understood as the converted value is within the allowable error range, the test passes and ends; the inconsistent comparison means that the conversion value is not within the set reasonable error range, then the comparison subunit will output the converted voltage test signal and the result of test failure. The error range can be set by the user according to the actual situation. For example, the default error range is ±3%, which can also be configured to ±6%, and there is no restriction here.

[0084] In the present application, a real voltage value is generated and converted into a corresponding digital signal through the ADC module, and then compared with the original driving signal through a comparison unit to test the function of the ADC module. The entire test process is relatively simple and the test logic is simple. One-click testing of the analog module in the digital-analog hybrid chip can be achieved, thereby saving time, improving efficiency and reducing testing costs.

[0085] In one embodiment, considering that the test result of the ADC module may be inaccurate if only one voltage conversion test is performed, the following steps may be performed after the control comparison subunit compares the voltage digital signal with the voltage test signal:

[0086] After the comparison subunit has compared the voltage test signal and the voltage digital signal obtained by ADC conversion, the system determines whether the self-test unit has traversed all voltage test gears. If the self-test unit has not traversed all voltage test gears, the system controls the self-test unit to select the voltage test gear that has not been traversed and generates the corresponding voltage test signal; if the self-test unit traverses all voltage test gears, the test of the current ADC module to be tested is completed. Traversing all voltage test gears can also be understood as increasing the number of tests on the ADC module to improve the test accuracy of the ADC module.

[0087] In the present application, considering that only one voltage conversion test is performed, the test result of the ADC module may be inaccurate. By traversing all voltage test gears and increasing the number of tests, accidental situations can be avoided as much as possible, thereby improving the accuracy of the ADC module test.

[0088] In one embodiment, considering that if the ADC module fails to convert successfully due to a problem, the entire test process may be stuck. Therefore, before the control comparison subunit compares the voltage digital signal with the voltage test signal, the following steps may be performed:

[0089] The system controls the ADC module to be tested to convert the test voltage into a corresponding voltage digital signal, and after transmitting the voltage digital signal to the comparison subunit, the system first determines whether the waiting time for the comparison subunit to receive the voltage digital signal exceeds the preset time; if the waiting time for the comparison subunit to receive the voltage digital signal exceeds the preset time, the test of the current ADC module to be tested is completed and a timeout exception is returned; if the waiting time does not exceed the preset time, the comparison operation is continued to determine whether the result of the ADC conversion is accurate.

[0090] In the present application scheme, considering that if the ADC module has a problem and cannot be successfully converted, for example, the ADC module cannot return the ADC conversion end mark to the self-test unit, the entire test process may be stuck. Therefore, a timeout shutdown mechanism is set to avoid the entire test process from being stuck as much as possible, consuming too much time and reducing chip testing efficiency.

[0091] It should be noted that when there are multiple ADC modules that need to be tested, unlike the test of analog modules, users generally need to choose the serial test method, that is, test the ADC modules to be tested one by one. If the parallel test method is used, the actual voltage generated by the voltage driving unit may be inaccurate when it is transmitted to multiple ADC modules, resulting in inaccurate voltage conversion and comparison operation steps, which leads to unreliable test results. Therefore, serial testing is generally used for testing multiple ADC modules. Figure 6 , which is a flowchart of serial testing of multiple ADC modules. First, the self-test unit generates a voltage test signal and transmits it to the voltage driving unit. The voltage driving unit selects the voltage gear according to the voltage test signal. The self-test unit generates an ADC conversion instruction signal and transmits it to the ADC module. The system waits for the ADC module to convert. After the conversion is completed, the ADC module generates a conversion completion signal and transmits it to the self-test unit. After that, the expected result is compared with the received conversion result. The expected result can also be understood as a value within a reasonable error range of the original voltage test signal. After the comparison is completed, it is determined whether all voltage gears have been traversed. If they have been traversed, another ADC module is switched for testing. If the voltage gear has not been traversed, the untested voltage gear is tested; after switching the ADC module, the self-test method is used to test and determine whether all ADC modules to be tested have been traversed. If they have not been traversed, the untested ADC modules continue to be tested. If all ADC modules have been traversed, the self-test of multiple ADC modules is completed.

[0092] Figure 1 FIG. 1 is a flow chart of a method for self-testing a module of a digital-analog hybrid chip in an embodiment. It should be understood that although Figure 1The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows; unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps may be executed in other orders; and Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0093] Based on the above method, an embodiment of the present application also discloses a module self-test device for a digital-analog hybrid chip.

[0094] Reference Figure 7 , the device includes the following modules:

[0095] A type determination module 701 is used to determine the type of a module to be tested of a digital-analog hybrid chip, where the type of the module to be tested includes an analog module and an ADC module;

[0096] The self-test module 702 is used to test the module to be tested by using a self-test unit according to the determined type of the module to be tested.

[0097] In one embodiment, if the module to be tested is an analog module, the self-test module 702 is specifically used to control the driving subunit to generate an analog driving signal and transmit the analog driving signal to the module to be tested; control the analog module to process the analog driving signal and generate an analog test signal; control the comparison subunit to compare the analog test signal with the analog driving signal; if the comparison is inconsistent, control the comparison subunit to output the analog test signal and the corresponding fault status.

[0098] In one embodiment, the self-test module 702 is also used to determine whether the number of flipping times of the analog drive signal meets the preset number; if the number of flipping times of the analog drive signal does not meet the preset number, the control drive unit continues to generate the analog drive signal; if the number of flipping times of the analog drive signal meets the preset number, the test of the current module to be tested is completed.

[0099] In one embodiment, the self-test module 702 is also used to control the filtering unit to process the analog test signal and generate an analog filtering signal; controlling the comparison subunit to compare the analog test signal with the analog drive signal includes: controlling the comparison subunit to compare the analog filtering signal with the analog drive signal.

[0100] In one embodiment, if the module to be tested is an ADC module, the self-test module 702 is specifically used to obtain different voltage test gears, control the driving subunit to generate a corresponding voltage test signal according to the voltage test gear; control the voltage driving unit to generate a corresponding test voltage according to the voltage test signal, and transmit the test voltage to the ADC module to be tested; control the ADC module to be tested to convert the test voltage into a corresponding voltage digital signal, and transmit the voltage digital signal to the comparison subunit; control the comparison subunit to compare the voltage digital signal with the voltage test signal; if the comparison is inconsistent, output the voltage test signal and the test result.

[0101] In one embodiment, the self-test module 702 is also used to determine whether the self-test unit has traversed all voltage test gears; if the self-test unit has not traversed all voltage test gears, the self-test unit is controlled to select the untraversed voltage test gear and generate a corresponding voltage test signal; if the self-test unit traverses all voltage test gears, the test of the current ADC module to be tested is completed.

[0102] In one embodiment, the self-test module 702 is also used to determine whether the waiting time for the comparison subunit to receive the voltage digital signal exceeds the preset time; if the waiting time for the comparison subunit to receive the voltage digital signal exceeds the preset time, the test of the current ADC module to be tested is terminated and a timeout exception is returned.

[0103] The module self-test device of the digital-analog hybrid chip provided in the embodiment of the present application can be applied to the module self-test method of the digital-analog hybrid chip provided in the above embodiment. For relevant details, refer to the above method embodiment. The implementation principle and technical effect are similar and will not be repeated here.

[0104] It should be noted that: when the module self-test device of the digital-analog hybrid chip provided in the embodiment of the present application performs the module self-test of the digital-analog hybrid chip, only the division of the above-mentioned functional modules / functional units is used as an example. In actual applications, the above-mentioned function allocation can be completed by different functional modules / functional units as needed, that is, the internal structure of the module self-test device of the digital-analog hybrid chip is divided into different functional modules / functional units to complete all or part of the functions described above. In addition, the implementation method of the module self-test method of the digital-analog hybrid chip provided in the above method embodiment and the implementation method of the module self-test device of the digital-analog hybrid chip provided in this embodiment belong to the same concept. The specific implementation process of the module self-test device of the digital-analog hybrid chip provided in this embodiment is detailed in the above method embodiment, and will not be repeated here.

[0105] The embodiment of the present application also discloses a computer device.

[0106] Specifically, if Figure 8As shown, the computer device can be a computer device such as a desktop computer, a laptop computer, a PDA, and a cloud server. The computer device may include, but is not limited to, a processor and a memory. The processor and the memory may be connected via a bus or other means. The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, graphics processors (GPU), embedded neural network processors (NPU) or other dedicated deep learning coprocessors, discrete gates or transistor logic devices, discrete hardware components and other chips, or a combination of the above chips.

[0107] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the methods in the above-mentioned embodiments of the present application. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, the method in the above-mentioned method implementation is realized. The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0108] The embodiment of the present application also discloses a computer-readable storage medium.

[0109] Specifically, the computer-readable storage medium is used to store a computer program, and when the computer program is executed by the processor, the method in the above-mentioned method implementation is implemented. Those skilled in the art can understand that the implementation of all or part of the process in the above-mentioned implementation method of the present application can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it may include the process of the implementation of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0110] This specific embodiment is merely an explanation of the present invention and is not a limitation of the present invention. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed. However, as long as they are within the scope of the claims of the present invention, they are protected by the patent law.

Claims

1. A module self-test method for a digital-analog hybrid chip, characterized in that: The method is applied to a module self-test system of a digital-analog hybrid chip, wherein the module self-test system of the digital-analog hybrid chip comprises a self-test unit, and the method comprises: Determine the type of the module to be tested of the digital-analog hybrid chip, where the type of the module to be tested includes an analog module and an ADC module; According to the determined type of the module to be tested, using the self-test unit to test the module to be tested; The module self-test system of the digital-analog hybrid chip further includes a filtering unit and a voltage driving unit, and the self-test unit includes a driving subunit and a comparing subunit; If the module to be tested is an analog module, the step of testing the module to be tested by using the self-test unit includes: Controlling the driving subunit to generate an analog driving signal, and transmitting the analog driving signal to the module to be tested; Controlling the analog module to process the analog drive signal and generate an analog test signal; Controlling the comparison subunit to compare the analog test signal with the analog drive signal; If the comparison is inconsistent, controlling the comparison subunit to output the simulation test signal and the corresponding fault status; After the analog module is controlled to process the analog drive signal and generate an analog test signal, the method further includes: Controlling the filtering unit to process the analog test signal and generate an analog filtering signal; The controlling the comparison subunit to compare the analog test signal with the analog drive signal comprises: Controlling the comparison subunit to compare the analog filtering signal with the analog driving signal; If the module to be tested is an ADC module, the step of testing the module to be tested by using the self-test unit includes: Acquire different voltage test gears, and control the driving subunit to generate corresponding voltage test signals according to the voltage test gears; Controlling the voltage driving unit to generate a corresponding test voltage according to the voltage test signal, and transmitting the test voltage to the ADC module to be tested; Controlling the ADC module to be tested to convert the test voltage into a corresponding voltage digital signal, and transmitting the voltage digital signal to the comparison subunit; Controlling the comparison subunit to compare the voltage digital signal with the voltage test signal; If the comparison is inconsistent, output the voltage test signal and the test result; Before controlling the comparison subunit to compare the voltage digital signal with the voltage test signal, the method further includes: Determining whether the waiting time for the comparison subunit to receive the voltage digital signal exceeds a preset time; If the waiting time for the comparison subunit to receive the voltage digital signal exceeds the preset time, the test of the ADC module to be tested is terminated and a timeout exception is returned.

2. The method according to claim 1, characterized in that: After controlling the comparison subunit to compare the analog test signal with the analog drive signal, the method further includes: Determining whether the flipping times of the analog driving signal meets a preset number; If the flipping times of the analog driving signal do not meet the preset times, controlling the driving unit to continue to generate the analog driving signal; If the number of flipping times of the analog driving signal meets the preset number, the test of the current module to be tested is completed.

3. The method according to claim 1, characterized in that: After controlling the comparison subunit to compare the voltage digital signal with the voltage test signal, the method further includes: Determining whether the self-test unit has traversed all voltage test gears; If the self-test unit has not traversed all the voltage test gears, controlling the self-test unit to select the voltage test gear that has not been traversed, and generating a corresponding voltage test signal; If the self-test unit traverses all voltage test gears, the test of the ADC module currently to be tested is completed.

4. A module self-test device for a digital-analog hybrid chip, applied to the module self-test method for a digital-analog hybrid chip according to any one of claims 1 to 3, characterized in that: The device is applied to a module self-test system of a digital-analog hybrid chip, the module self-test system of the digital-analog hybrid chip includes a self-test unit, and the device includes: A type determination module (701) is used to determine the type of a module to be tested of a digital-analog hybrid chip, wherein the type of the module to be tested includes an analog module and an ADC module; The self-test module (702) is used to test the module to be tested using the self-test unit according to the determined type of the module to be tested.

5. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method as claimed in any one of claims 1 to 3.