Method and system for testing multi-channel AD / DA chips

Through adaptive compensation and dynamic scheduling technology, the multi-channel AD/DA chip test system is optimized to solve the problems of hardware connection complexity and environmental factors, achieve efficient and accurate test results, and improve test efficiency and stability.

CN118249810BActive Publication Date: 2024-09-10NANJING AEROSPACE IND TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410670967.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-10
Estimated Expiration
2044-05-28

AI Technical Summary

Technical Problem

Existing multi-channel AD/DA chip testing technology has problems such as hardware connection complexity, environmental factors affecting test consistency and low efficiency, making it difficult to ensure test stability and accuracy in harsh environments.

Method used

Adopt a test system based on adaptive compensation and dynamic scheduling. Through system self-test, environmental parameter collection and temperature adaptive compensation, combined with sparse Bayesian learning and dynamic scheduling algorithms, test parameters are generated and automatically analyzed to optimize the test process and conditions. , improve testing efficiency and accuracy.

Benefits of technology

It achieves the stability and consistency of multi-channel AD/DA chip testing in complex environments, shortens test time, improves the signal-to-noise ratio of test signals and the accuracy of test results, and reduces the impact of hardware failures and cable losses. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118249810B
    Figure CN118249810B
Patent Text Reader

Abstract

The present invention discloses a method and system for multi-channel AD / DA chip testing, which is implemented based on a test system and includes the following steps: starting the test system, performing system self-check, calling a system compensation module to perform system parameter compensation; collecting and evaluating environmental parameters, and calling an adaptive compensation module and a test condition evaluation module based on the environmental parameters to obtain environmental compensation parameters and test condition evaluation results; responding to input test basic data, and combining system parameter compensation, environmental compensation parameters and test condition evaluation results, calling a pre-configured dynamic scheduling algorithm module, generating test parameters and sending them to a signal generating device; receiving test data from a signal analyzing device, and using a pre-configured automatic analysis module to analyze the test data and output test results; obtaining test process parameters and test results, giving feedback and scoring to the test scheme, and inputting them into a host computer. The present method improves test efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a software testing algorithm, in particular to a method and a system for testing a multi-channel AD / DA chip. Background Art

[0002] Multi-channel AD / DA chip testing technology is an important research direction in the field of electronic measurement, and is of vital importance to ensuring chip performance and product quality. With the continuous improvement of the integration of modern electronic systems, chip functions are becoming increasingly complex, which puts higher requirements on testing technology. As a bridge between analog signals and digital signals, the performance of AD / DA chips directly affects the working performance of the entire system. Efficient and accurate multi-channel AD / DA chip testing methods can not only reduce testing costs and shorten testing time, but also promptly discover potential quality problems of chips, which is of great significance to improving the reliability and competitiveness of electronic products.

[0003] A lot of research has been done on multi-channel AD / DA chip testing. Traditional testing methods are mainly based on manual testing with oscilloscopes and signal generators, but they are inefficient and difficult to adapt to the growing testing needs. In recent years, automated testing systems have been widely used, which have greatly improved testing efficiency by automating signal generation, acquisition, and analysis through computer control. In addition, test platforms based on virtual instrument technology have also received attention, and flexible configuration of test functions can be achieved through software and hardware collaborative design. For the testing of multi-channel AD / DA chips, researchers have proposed some new methods, such as dynamic testing technology based on FFT, which can quickly evaluate chip performance in the frequency domain; and testing schemes based on Sigma-Delta modulation, which can achieve high-precision measurement of chip indicators through analysis of quantization noise.

[0004] Although some progress has been made in existing research, there are still many challenges in the actual multi-channel AD / DA chip testing. First, with the increase in the number and complexity of the channels of the chip under test, the number of hardware devices in the test system also increases, and the connection and communication between different devices become more complicated, which may lead to unstable system performance. Secondly, since the working status of each hardware module is different, the abnormality of some modules may affect the test results of the entire system. Furthermore, the indicators of the chip under test are closely related to environmental factors such as the temperature. How to ensure the consistency and repeatability of the test in a harsh environment is a major problem. Traditional testing methods often use fixed test sequences and ignore the optimization of the test sequence, resulting in a long test time. In addition, the connecting cables used in the test system have certain losses themselves, and the losses fluctuate with temperature. If they are not compensated in time, they will directly affect the accuracy of the test results. The stability of hardware interconnection is also a major hidden danger. In a complex test environment, the connecting cables are prone to loosening, breaking and other faults, which seriously affect the reliability of the test data.

[0005] Therefore, improvement and innovation are needed. Summary of the invention

[0006] The purpose of the invention is to provide a method and system for multi-channel AD / DA chip testing, in order to solve one of the above-mentioned problems existing in the prior art.

[0007] Technical solution, according to one aspect of the present application, provides a method for testing a multi-channel AD / DA chip, the method is implemented based on a test system, the test system includes a communication-connected host computer, a signal generating device, a device to be tested and a signal analyzing device, including the following steps:

[0008] Step S1, start the test system, perform system self-check, and call the system compensation module to perform system parameter compensation;

[0009] Step S2, collecting and evaluating environmental parameters, and calling the adaptive compensation module and the test condition evaluation module based on the environmental parameters to obtain environmental compensation parameters and test condition evaluation results;

[0010] Step S3, in response to the input test basic data, and in combination with the system parameter compensation, environmental compensation parameters and test condition evaluation results, calling the pre-configured dynamic scheduling algorithm module, generating test parameters and sending them to the signal generating device;

[0011] Step S4, receiving test data from the signal analysis device, and using a pre-configured automated analysis module to analyze the test data and output test results;

[0012] Step S5: Obtain test process parameters and test results, provide feedback and score the test plan, and input them into the host computer.

[0013] According to another aspect of the present application, there is also provided a multi-channel AD / DA chip testing system, comprising a host computer connected to a product to be tested, the host computer comprising:

[0014] at least one processor; and,

[0015] a memory communicatively connected to at least one of the processors; wherein,

[0016] The memory stores instructions that can be executed by the processor, and the instructions are used to be executed by the processor to implement the multi-channel AD / DA chip testing method described in any of the above technical solutions.

[0017] The beneficial effect is to improve the test efficiency and accuracy. The specific technical advantages will be explained below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flow chart of the present invention.

[0019] Figure 2 It is a flow chart of step S1 of the present invention.

[0020] Figure 3 It is a flow chart of step S2 of the present invention.

[0021] Figure 4 It is a flow chart of step S3 of the present invention.

[0022] Figure 5 It is a flow chart of step S4 of the present invention. DETAILED DESCRIPTION

[0023] like Figure 1 As shown, a method for testing a multi-channel AD / DA chip is implemented based on a test system. The test system includes a communication-connected host computer, a signal generating device, a device to be tested, and a signal analyzing device. The method includes the following steps:

[0024] Step S1, start the test system, perform system self-check, and call the system compensation module to perform system parameter compensation;

[0025] Step S2, collecting and evaluating environmental parameters, and calling the adaptive compensation module and the test condition evaluation module based on the environmental parameters to obtain environmental compensation parameters and test condition evaluation results;

[0026] Step S3, in response to the input test basic data, and in combination with the system parameter compensation, environmental compensation parameters and test condition evaluation results, calling the pre-configured dynamic scheduling algorithm module, generating test parameters and sending them to the signal generating device;

[0027] Step S4, receiving test data from the signal analysis device, and using a pre-configured automated analysis module to analyze the test data and output test results;

[0028] Step S5: Obtain test process parameters and test results, provide feedback and score the test plan, and input them into the host computer.

[0029] In this embodiment, in order to solve the problems of complex hardware connection and system instability caused by the increase in the number and complexity of the channels of the chip under test, this embodiment introduces an adaptive noise covariance estimation and fault parameter modeling method in step S1, and realizes self-inspection and compensation of the test system through state space model and Kalman filtering, thereby improving the system's diagnosis and fault tolerance capabilities for complex faults.

[0030] To address the problem of inconsistent test results caused by differences in the working states of different hardware modules, this embodiment proposes an adaptive compensation and test condition evaluation method in step S2, which implements adaptive estimation and optimization of environmental factors and test conditions through sparse Bayesian learning and active learning, thereby ensuring the consistency and repeatability of the test process.

[0031] To address the test stability issue in harsh environments, this embodiment introduces a temperature-adaptive system loss compensation algorithm in step S2, especially a line loss compensation algorithm, which implements online learning and updating of the line loss model through variational inference, effectively addressing the test errors caused by ambient temperature changes.

[0032] In order to solve the problem of low efficiency of traditional test methods, this embodiment proposes a dynamic scheduling optimization method in step S3, which realizes adaptive optimization of the test process through causal analysis of test tasks and decoupling of test scenarios, greatly shortening the test time. The loss in the system includes cable loss. In order to solve the test uncertainty problem introduced by connection cable loss and interconnection failure, this embodiment adopts adaptive noise estimation and temperature compensation methods in steps S1 and S2 respectively, and reduces the impact of cable loss and interconnection failure through data-driven modeling and calibration.

[0033] In short, multiple links of multi-channel AD / DA chip testing have been optimized to form a complete intelligent testing solution, which provides strong support for improving test efficiency and ensuring test stability.

[0034] In a certain embodiment, a brief process is as follows, and the detailed processing process of each sub-step is described in detail later.

[0035] The device under test is connected and self-tested through this system: The device under test is connected mainly through communication cables to connect the device under test equipped with AD / DA receivers, signal analysis devices, and signal generators, and communicate through GPIB / UDP communication. Configure the AD / DA chip performance index parameters and the parameters used for AD / DA chip testing on the host computer. Send instructions from the host computer to the device equipped with AD / DA receivers, signal analysis devices, and signal generators, and receive feedback data from the AD / DA receivers, signal analysis devices, and signal generators. The test cable is connected to the signal generator and signal analysis device, and the data is fed back to the host computer through GPIB / UDP communication. In order to avoid problems caused by connection stability, the test bench is intelligently built, and software and hardware self-tests are performed in advance to avoid the influence of other factors and improve accuracy. The stability test is mainly performed through zero calibration of external hardware (RF cable, communication cable) to calibrate the external hardware information to the optimal state.

[0036] Intelligently distinguish and match the line loss values ​​at different temperatures (data collection preprocessing): By building a test platform, intelligently evaluate the ambient temperature and analyze the line loss at different temperatures. Intelligently collect the ambient temperature mainly through the external environment collected by the AD / DA receiver for analysis and optimization.

[0037] Intelligent resource scheduling for multi-channel parallelism: In response to the differences caused by different environments, the software intelligently matches the test algorithms of different parameters in different scenarios, so that accurate data can be obtained in different environments. The power values ​​measured by the chip in the process from normal temperature to high temperature are mostly qualified. When the temperature exceeds a certain value, it is sometimes qualified and sometimes unqualified; the same is true for low temperature. There are more unqualified data below a certain value, so for this: intelligently collect and distribute test data points, distribute less when the temperature is relatively normal, and distribute more at high and low temperatures to measure whether the chip indicators meet the standards. Intelligently pre-evaluate the resources required for each module. For example, after measuring the indicators at high temperature first, change the test order, and directly measure the indicators at normal temperature when it drops to normal temperature, and then cool and measure the indicators in the low temperature environment. Intelligently coordinate and schedule resources for reasonable use.

[0038] By adopting the method of multi-channel module parallel measurement, the chip models are continuously accumulated through software adaptation to form a test library. This method actively analyzes the test data for autonomous learning, automatically reads the information of different types of chips, and adapts the test step size and test scenario, thus improving the test efficiency.

[0039] Automatic differentiation of test results: For power testing, multiple frequency points are intelligently distributed, and the sampling values ​​and output power sampling data are fitted to obtain a power curve. The abnormal data is intelligently checked to determine whether the values ​​of the sampled parts are abnormal. If there are abnormal points, the abnormal data can be directly matched and re-tested.

[0040] When the AD / DA chip communicates with the signal generator, the sensitivity will be distorted when the power is increased or decreased to a certain level, so this feature can be used repeatedly to measure the sensitivity of the chip. Intelligently distribute the test power points, skip the points with smaller differences, form a test set, gradually match the test results to the critical point, and display the test results in tables and graphics. Re-check the occasional measurement errors, and generate a work log to intelligently improve the measurement accuracy.

[0041] like Figure 2 As shown, according to one aspect of the present application, step S1 is specifically:

[0042] Step S11, connecting each device in the test system through cables, sending the test signal to each device through the host computer, and transmitting the feedback data back to the host computer;

[0043] Step S12, calculating the difference between the feedback data and the preset value, and judging whether to perform system parameter compensation according to the difference; if so, proceeding to step S13;

[0044] Step S13: construct a state space model, model the input and output characteristics of the AD / DA chip to be tested as a nonlinear system, and construct potential hardware anomalies as unknown inputs of the nonlinear system by introducing fault parameters;

[0045] Step S14: calling the adaptive noise covariance estimation algorithm module to track the change of system noise and output system compensation parameters.

[0046] In a further embodiment, it also includes constructing a sparse representation of the system state based on a modified offline dictionary learning algorithm, and using the OMP algorithm to reconstruct and estimate the system state to obtain the system health indicator (HI) indicator; constructing and introducing a physics-based parameter fault model, such as a component parameter offset description based on an equivalent circuit model, mapping the fault parameters to the state space model, and enhancing the interpretability of fault modeling. The Mahalanobis distance with a forgetting factor is used to measure the change in the system HI indicator before and after compensation, and an adaptive threshold is set to evaluate the compensation effect. If the compensation effect does not meet expectations, an alarm mechanism is triggered and the system status information is passed to subsequent steps.

[0047] According to one aspect of the present application, step S14 is specifically:

[0048] Step S141, reading the state space model and introducing the time-varying system noise covariance matrix and the measurement noise covariance matrix; wherein the system noise and the measurement noise have a mean of zero and obey a multivariate Gaussian distribution with an unknown covariance;

[0049] Step S142, initialize the mean of system noise and measurement noise, and the prior estimates of system noise covariance and measurement noise covariance; and at each time step, use the state prediction and measurement update steps of Kalman filtering to calculate the state estimation error and measurement error; use the estimated error sample to update the mean estimate of system noise and measurement noise, and use the forgetting factor mechanism to update the noise covariance estimate and confidence online, giving new samples a higher weight;

[0050] Step S143, read the conjugate hyperparameters of the preconfigured system noise and measurement noise prior distributions, construct a variational objective function for noise covariance estimation, minimize the KL divergence between the variational posterior distribution and the true posterior distribution, use the expectation-maximization algorithm, alternately optimize the variational posterior distribution parameters and the noise covariance hyperparameters, and adjust the Kalman filter gain matrix at each time step according to the updated noise covariance estimate and confidence level;

[0051] Step S144, read the noise covariance estimation value and confidence level of step S142 and step S143, adjust the weight of the estimation result by weighted average method, and adjust the weight parameter in combination with the failure mode of the chip, and output the weighted noise covariance estimation value.

[0052] In order to solve the problem of increasing hardware connection complexity caused by the increase in the number of channels of the chip under test, step S1 introduces a nonlinear system modeling method based on the state space model on the basis of the traditional test system self-check. By introducing fault parameters, the hardware anomaly is modeled as an unknown input of the nonlinear system, which can flexibly characterize complex fault modes and improve the scope and accuracy of fault diagnosis. Secondly, in order to solve the random noise problem in the process of hardware interconnection and signal transmission, step S1 proposes an adaptive noise covariance estimation algorithm, which realizes the online estimation and tracking of noise statistical characteristics through the Kalman filter framework, can adaptively compensate for the non-stationarity of noise, and effectively improve the signal-to-noise ratio of the test signal. At the same time, step S1 adopts variational inference and expectation maximization algorithms to realize the adaptive learning of the hyperparameters of the noise prior distribution, avoid the subjectivity of the prior selection, and improve the robustness of noise modeling. In addition, step S1 also introduces the weighted average and forgetting factor mechanism, which can dynamically adjust the weight of the noise estimation result according to the estimation confidence, and highlight the role of new samples through the forgetting factor, so as to realize the adaptive update of noise estimation and further improve the estimation accuracy. The above-mentioned methods of noise adaptive estimation, fault parameter modeling and system identification form a close coupling and coordination in step S1. Fault diagnosis provides prior information for noise processing, noise elimination provides effective input for fault analysis, and system identification provides the basis for the entire self-check process. They promote each other and form a complete technical closed loop.

[0053] like Figure 3As shown, in step S2, the construction process of the adaptive compensation module is specifically as follows:

[0054] Step S21, obtaining system transmission parameters in various temperature ranges required by the test environment, and constructing a training set of the system loss model; the system transmission parameters include S parameters;

[0055] Step S22, reading the system transmission parameters, extracting the amplitude-frequency and phase-frequency response data; obtaining the change values ​​of the system physical parameters caused by the temperature change through electromagnetic simulation or stress analysis; constructing a system loss model training set of the system loss at multiple temperatures based on the measurement data of the system transmission parameters and the change values ​​of the system physical parameters;

[0056] Step S23, constructing a system loss model and setting the model parameters to obey the ARD prior distribution, introducing independent hyperparameters for the model parameters through the ARD prior, and controlling the prior variance of each parameter; determining the relevant temperature variables and frequency components in the system loss model through adaptive estimation of the hyperparameters;

[0057] Step S24, estimating the posterior distribution of ARD hyperparameters by a variational inference method, obtaining calibrated model parameters and confidence intervals; configuring the system loss model after calibrating the parameters into the host computer, and updating the parameters of the system loss model online at predetermined intervals;

[0058] The construction process of the test condition evaluation module is as follows:

[0059] Step S25, collecting parameter configuration data under various test conditions to form a high-dimensional test parameter space; using a local linear embedding algorithm to learn the low-dimensional manifold structure of the parameter space; extracting the correlation features of the test parameter space through nonlinear dimensionality reduction; selecting a representative test parameter combination on the low-dimensional manifold;

[0060] Step S26, divide the low-dimensional representation of the test parameter space into several sub-regions, and perform local dictionary learning in each sub-region; construct an overcomplete dictionary for each sub-region by the K-SVD method to obtain sparsely represented test parameters; dynamically adjust the sub-region division and dictionary atoms according to changes in the test parameter distribution; use the orthogonal matching pursuit algorithm to select the optimal test basis vector in the dictionary to characterize the key test conditions;

[0061] Step S27: When in use, extract key test conditions according to the input test condition data and pre-store them in the host computer.

[0062] According to one aspect of the present application, the process of online updating the parameters of the system loss model at every predetermined time period in step S24 is specifically as follows:

[0063] Step S241, using variational Bayesian inference method to approximate the posterior distribution of the system loss model to a variational distribution that is easy to handle;

[0064] Step S242, by minimizing the KL divergence between the variational distribution and the true posterior, the variational distribution parameters are iteratively optimized to achieve online learning of the system loss model; at each temperature sampling point, the expectation propagation algorithm is used to fuse the likelihood information of the new observation data into the current posterior distribution;

[0065] Step S243, by iteratively updating the variational distribution and the EP approximation, the system loss model is updated in real time to adapt to the parameter drift caused by the temperature change;

[0066] Step S244: configuring a Gaussian process regression module for searching for optimal loss compensation parameters according to parameter drift and an adaptive weighting module for dynamically adjusting the fusion weights of model parameters at different temperatures according to the degree of temperature change.

[0067] Aiming at the loss problem of the test system caused by ambient temperature changes, a temperature-adaptive line loss compensation algorithm based on sparse Bayesian learning is proposed. Different from the traditional compensation method based on physical models, this algorithm directly learns the line loss model from the measurement data of S parameters, and achieves the sparse representation of line loss parameters by introducing ARD priors. It also uses variational inference methods to learn and update the line loss model online, which can adaptively compensate for the line loss drift caused by temperature changes and effectively eliminate the influence of environmental factors on test accuracy.

[0068] Aiming at the uncertainty problem of test condition selection, a test parameter adaptive optimization method based on dictionary learning is proposed. Traditional test condition setting usually relies on experience and heuristic rules, which is difficult to deal with complex parameter combinations and constraint relationships. This method introduces dictionary learning technology, and adaptively extracts low-dimensional manifold structures and key test vectors of the test parameter space through nonlinear dimensionality reduction and local dictionary learning, realizes automatic optimization of test conditions, reduces the blindness and difficulty of test condition selection, and reduces the empirical dependence and blindness of test condition setting. At the same time, this method uses orthogonal matching pursuit algorithm to dynamically update dictionary atoms, which can track the changes of the object under test and the test environment, realize adaptive adjustment of test conditions, and further improve the dynamic adaptability of the test process. More importantly, the above-mentioned line loss adaptive compensation and test condition adaptive optimization methods cooperate with each other in step S2 to form a complete environmental adaptive test closed loop. Among them, line loss compensation eliminates the influence of ambient temperature changes on the integrity of the test signal, and provides an effective premise guarantee for test condition optimization; while test condition optimization finds the optimal test parameter combination through active exploration and intelligent search, reduces the dependence of the test process on environmental conditions, and the two complement each other to improve the environmental adaptability of the test system.

[0069] In a further embodiment, a weighted Bayesian model averaging method is also included to fuse the results of adaptive compensation and test condition evaluation to obtain a comprehensive set of environmental influencing factors and test condition constraints; based on the fusion results, the objective function and constraints in the test parameter generation algorithm are dynamically adjusted to achieve adaptive optimization of the test parameters.

[0070] In another embodiment of the present application, step S22 further includes: performing differential analysis on line losses at different temperatures.

[0071] Step S221: construct a fractional differential model, introduce a fractional differential operator, analyze the long-range dependence and non-local influence of temperature change on line loss, and determine the order and boundary conditions of the fractional differential equation according to the cable material properties and geometric structure.

[0072] Step S222: discretize the fractional-order differential equation, and use the Riemann-Liouville definition numerical method to discretize the fractional-order differential equation into a system of difference equations. The discrete system of equations is solved by a finite difference method or a finite element method.

[0073] Step S223, adaptively adjust the fractional order, estimate the fractional differential order in real time according to the dynamic characteristics of temperature change, use short-time Fourier transform or wavelet transform analysis method to extract multi-scale features of line loss signal, adaptively optimize the fractional order, and improve modeling accuracy.

[0074] Step S224: introduce a regularization term, introduce an L1 or L2 regularization term into the fractional differential model, control the model complexity, and improve the generalization performance. Adaptively adjust the regularization parameter through the cross-validation method to balance the model's fitting ability and stability.

[0075] Step S225, model solving and evaluation, using the least squares method or gradient descent optimization algorithm to solve the parameters of the fractional differential model. The fitting accuracy and prediction performance of the model are evaluated through evaluation indicators including mean square error and absolute error, and parameter fine-tuning and model update are performed.

[0076] like Figure 4 As shown, the construction and use process of the dynamic scheduling algorithm module in step S3 is specifically as follows:

[0077] Step S31, extracting basic data including test requirements, test procedures and test equipment parameters, and constructing a test task directed graph;

[0078] Step S32: read the test task directed graph and evaluate, screen and dynamically optimize it to identify the causal chain between different test indicators; adopt causal reasoning drive to build a test scenario causal model to represent and decouple the test scenarios in layers;

[0079] Step S33: In combination with the decoupled test scenario, the pre-configured dynamic scheduling algorithm module is called to generate test parameters and send them to the signal generating device.

[0080] In this embodiment, the following process is also included:

[0081] Construct a directed graph of test tasks: extract basic data such as test requirements, test processes, and test equipment parameters to construct a multi-attribute test task knowledge graph; use a graph neural network (GNN) to perform representation learning on the test task knowledge graph and automatically extract semantic associations between test tasks; based on the representation learning results, generate a directed graph of test tasks through a gated graph neural network (GGNN) to characterize the dependencies between test tasks; introduce a graph attention mechanism to adaptively adjust the dependency weights between test tasks and highlight key test paths.

[0082] Evaluation and screening of test directed graphs: For each test directed graph, a GNN-based graph embedding method is used to learn the low-dimensional vector representation of the test directed graph; the similarity between different test directed graphs is calculated through a Siamese neural network using the representation learning results; a comprehensive evaluation index for the test directed graph is constructed by combining multiple objectives such as test coverage, test time, and resource utilization; a multi-objective reinforcement learning algorithm, such as Pareto DQN and MOE-DDPG, is used to adaptively weigh various evaluation indicators and screen out the optimal test directed graph;

[0083] Dynamic optimization of the test directed graph; adopt GNN-based graph editing operations to dynamically update the test directed graph when adding, subtracting or adjusting test steps; quickly adapt to changes in test tasks through meta-learning and transfer learning, and reduce the overhead of retraining the test directed graph; based on the GNN-based Graph Markov Decision Process (Graph-MDP), model the optimization of the test directed graph as a sequential decision problem.

[0084] Adopting a test scenario adaptive algorithm driven by causal reasoning:

[0085] Causal modeling of test scenarios: Collect multi-source heterogeneous data such as test environment, test equipment, and tested objects to build a global test scenario knowledge graph; use causal discovery algorithms, such as PCMCI and Granger causality, to automatically mine causal dependencies in test scenarios; combine prior domain knowledge, manually review and optimize causal relationship graphs to improve the interpretability and reliability of causal models; introduce counterfactual inference to evaluate the causal impact strength of each factor in the test scenario to assist in test decision-making.

[0086] Hierarchical representation and decoupling of test scenarios: Based on the causal relationship graph, a multi-scale community discovery algorithm is used to adaptively extract the hierarchical module structure of the test scenario; through causal effect analysis, the causal correlation between modules at different levels is evaluated to achieve decoupled representation of the test scenario; for each module, a local causal graph is constructed to characterize the causal dependencies within the module to achieve hierarchical modeling of the test scenario; causal representation learning is used to learn low-dimensional embedding vectors of different modules to achieve efficient encoding of the test scenario. Based on the hierarchical causal graph, the dynamic evolution process of the test scenario is modeled; through the causal transmission network, the causal similarity between scenarios is utilized to achieve the migration and reuse of test knowledge between different tasks.

[0087] In view of the complex constraints and uncertainties in the scheduling and process optimization of multi-channel AD / DA chip test tasks, dynamic scheduling algorithms have shown outstanding technical advantages in improving test efficiency and reducing test costs. Traditional test task scheduling usually adopts fixed priority rules and heuristic strategies, which are difficult to deal with complex dependencies between test tasks and dynamically changing constraints. Through causal reasoning and graph embedding methods, the dependencies between test tasks are characterized from the perspective of causal modeling, and the hierarchical decoupling of test scenarios is achieved through multi-scale community discovery algorithms. On this basis, deep reinforcement learning methods can also be used to achieve dynamic scheduling optimization of test tasks. This method can also use graph neural networks to automatically learn the timing dependencies and resource constraints between tasks from the directed graph of test tasks, and focus on key task nodes through the graph attention mechanism, which greatly simplifies the complexity of the test task scheduling problem. At the same time, this method uses a multi-objective reward function to balance multiple optimization goals such as test efficiency and resource utilization, and uses hierarchical test task state representation to achieve scheduling decisions of different granularities, further improving the flexibility and refinement of scheduling. While optimizing the test task scheduling, step S3 also introduces a causal reasoning method to decouple the test scenarios. Through causal graph embedding and multi-scale community discovery, the hierarchical module structure of the test scenario is adaptively extracted, and the decoupling and reuse of test tasks are achieved at the semantic level. This collaborative optimization of test task scheduling and test scenario decoupling greatly reduces the difficulty of test task planning and improves the parallelism of the test process.

[0088] In summary, the intelligent scheduling strategy based on test task causal analysis and test scenario hierarchical decoupling can significantly improve test efficiency and resource utilization. The test scenario decoupling method based on the hierarchical causal graph adaptively extracts the hierarchical module structure of the test scenario through the multi-scale community discovery algorithm, and uses causal effect analysis to evaluate the correlation strength between modules at different levels, thus achieving low-coupling decomposition of the test scenario and greatly reducing the complexity of test task scheduling.

[0089] In another embodiment of the present application, the process of evaluating the environmental parameters in step S2 further includes S20: adaptively distributing the measurement point data based on a density peak clustering algorithm;

[0090] S201, calculate the local density of the sample, and for each measured data point, calculate its local density ρ. Use a truncated kernel function, including a Gaussian kernel or an Epsilon neighborhood, to measure the data density in the neighborhood of the sample point and obtain a density distribution map.

[0091] S202, for each measured data point, calculate the minimum distance σ between it and the sample points with a density greater than it. Calculate the distance matrix through a sorting and searching algorithm, including a heap sort or a KD tree method, to obtain a distance distribution map.

[0092] S203, adaptively determine the cluster center according to the density and distance distribution map. By introducing the decision map, select the data points with large density and distance as the cluster center, avoid artificially setting the number of clusters, and improve the adaptability of clustering.

[0093] S204, assign each sample point to the category to which the nearest cluster center belongs according to the distance from the cluster center. Use heuristic strategies, including mountain climbing and density connectivity, to handle isolated points and boundary points, and improve the accuracy and robustness of clustering.

[0094] S205, according to the dynamic feedback of the clustering process, adaptively adjust the clustering parameters such as density threshold and distance threshold. By introducing fuzzy membership, overlapping data and noise data are processed to improve the flexibility and adaptability of clustering. Finally, the clustering result of the measurement point data with adaptive distribution is obtained.

[0095] like Figure 5 As shown, the process of analyzing the test data using the preconfigured automated analysis module in step S4 is specifically as follows:

[0096] Step S41, using an intelligent frequency distribution algorithm based on Gaussian process regression to perform power testing to obtain power test results;

[0097] Step S42: Perform sensitivity test using an adaptive boundary matching algorithm based on Bayesian optimization to obtain sensitivity test results;

[0098] Step S43: construct a Bayesian causal graph model of the test results, analyze the conditional independence and causal effects under different test conditions, and use a counterfactual reasoning algorithm to evaluate the test error propagation path.

[0099] In another embodiment of the present application, the sensitivity test results are compared with the power test results, and the correlation and consistency metric between the two test results are calculated. If the consistency of the two test results is lower than the preset threshold, the adaptive retest mechanism is triggered, the frequency distribution model and the boundary matching algorithm are adjusted, and the power test and sensitivity test are re-executed until the consistency requirements are met. Based on the power test and sensitivity test results, a comprehensive evaluation model of AD / DA chip performance is constructed to achieve cross-validation and complementary optimization of test results.

[0100] According to one aspect of the present application, step S41 is specifically:

[0101] Step S411: according to the power test requirements, collect historical frequency distribution data, and extract spatial correlation characteristics and amplitude-frequency correlation between frequency points;

[0102] Step S412, using the Mattern kernel function to construct a covariance matrix between frequency points to describe the smoothness and periodicity of the frequency point distribution;

[0103] Step S413, describing the local similarity between frequency points by using a radial basis kernel function, and then removing the non-stationary characteristic data of the frequency point distribution;

[0104] Step S414: adopt a non-parametric Bayesian estimation algorithm to learn the hyperparameters of the kernel function to obtain automatic tuning data of the frequency distribution prior.

[0105] According to one aspect of the present application, step S42 is specifically:

[0106] Step S421, using Gaussian process to model the objective function of AD / DA chip sensitivity test;

[0107] Step S422: collect the sensitivity test data of the AD / DA chip under different input powers and construct a training sample set; use a Gaussian process regression model to learn the probability distribution of the power-sensitivity mapping relationship;

[0108] Step S423: construct a composite kernel function through kernel function engineering to analyze the multi-scale characteristics of power-sensitivity mapping; learn Gaussian process hyperparameters through maximum likelihood estimation to achieve adaptive kernel function selection; and output sensitivity test data.

[0109] In response to the technical challenges of frequency selection and signal reconstruction in power testing, step S4 introduces an intelligent frequency distribution algorithm based on Gaussian process regression. This method uses Gaussian process to probabilistically model the frequency domain characteristics of the power signal, and characterizes the spatial correlation and amplitude-frequency correlation between frequency points through covariance functions such as Mattern kernel and radial basis kernel, overcoming the limitation that traditional methods are difficult to capture the non-stationary characteristics of signals. At the same time, this method uses non-parametric Bayesian estimation to achieve adaptive learning of kernel function hyperparameters, avoids the blindness of manual parameter adjustment, and improves the adaptive ability of the frequency distribution model. On this basis, this method uses adaptive sampling and active learning strategies to intelligently search for the optimal frequency distribution, minimize the number of measurements while ensuring the accuracy of signal reconstruction, and effectively balance the test accuracy and test cost. In response to the difficulties of parameter optimization and boundary adaptation in sensitivity testing, step S4 proposes an adaptive boundary matching algorithm based on Bayesian optimization. This method transforms the sensitivity test of AD / DA chips into a black-box optimization problem under Gaussian process regression. The nonlinear mapping relationship between power and sensitivity is modeled by introducing a composite kernel function, and strategies such as random embedding and trust domain management are adopted to achieve dimensionality reduction search and adaptive step size control in high-dimensional parameter space, greatly improving the test efficiency. At the same time, this method can also introduce a multi-precision collaborative mechanism to balance the costs and benefits of simulation models with different fidelity through information fusion, thereby reducing the test cost while ensuring the test coverage. More importantly, the above power and sensitivity test method forms a tight closed-loop coupling with the test task scheduling of step S3. The efficient solution of frequency distribution and parameter optimization algorithm provides the prerequisite for refined task scheduling, and the rationality of task scheduling provides a strong guarantee for the test algorithm. The two complement each other to form a multi-objective collaborative optimization of test time, test accuracy, and test cost.

[0110] In another embodiment of the present application, it also includes:

[0111] Construct a Bayesian causal graph model for test results: Collect multi-source heterogeneous data from the chip test process, including environmental factors, test parameters, test results, etc. Use causal discovery algorithms, such as PC and FCI, to automatically construct a causal dependency graph for test results. Introduce prior causal knowledge, such as physical laws and expert experience, to constrain and optimize the causal graph. Use causal effect estimation to quantify the intensity and significance of the impact of different factors on test results. Analyze conditional independence and causal effects under different test conditions. Based on the causal graph, use do-calculus to derive the conditional probability distribution under different test conditions. Solve for the average causal effect of specific factors. Evaluate the impact and sensitivity of changes in test conditions on test results. Automatically identify abnormal factors and failure modes in the test process through causal anomaly detection algorithms. Evaluate the test error propagation path based on counterfactual reasoning algorithms. Based on causal graphs, use counterfactual reasoning to simulate the propagation and diffusion process of test errors. Through counterfactual analysis, identify the key influencing factors and propagation bottlenecks of test errors. Use sensitivity analysis and active learning to locate the root causes of test errors and guide test optimization. Analyze the coupling effects and synergy patterns between different error factors through causal interaction detection.

[0112] In another embodiment of the present application, the effectiveness and significance of different intervention schemes can also be evaluated through A / B testing and causal inference. Reinforcement learning and causal reinforcement learning are used to adaptively optimize the test intervention strategy and maximize the test benefits. A causal meta-learning framework is designed to quickly adapt to the optimal test strategy for different AD / DA chip models. Causal transfer learning is used to utilize the causal knowledge of different test scenarios to improve the universality of the test, construct causal graphs for different AD / DA chip test scenarios, and mine common causal patterns between scenarios. The migration causal effect estimation is used to utilize the causal knowledge of the source scenario to assist in the test optimization of the target scenario. A causal representation learning algorithm is designed to extract the causal embedding of the test scenario and realize cross-scenario test knowledge sharing.

[0113] In this embodiment, the process of obtaining test process parameters and test results in step S5, and providing feedback and scoring on the test plan should at least include: S51, verifying abnormal data

[0114] Step S511, denoise and smooth the original power test data to eliminate singular points and random disturbances. Use wavelet transform, Kalman filtering and other technologies to adaptively extract multi-scale features of the data and remove high-frequency noise components. Normalize the cleaned data to map features of different dimensions to the same scale space. Use maximum and minimum value normalization, Z-score normalization and other methods to eliminate dimensional differences between features and improve the stability of anomaly detection. Extract key features related to power anomalies from the normalized data. Use feature sorting algorithms based on information gain, chi-square test, etc. to adaptively select the most discriminative feature subsets, reduce data dimensions, and improve detection efficiency.

[0115] Step S512: Build a One-Class SVM model

[0116] According to the distribution characteristics of the power test data, select an appropriate kernel function. Common kernel functions include linear kernel, polynomial kernel, Gaussian radial basis kernel, etc. Through methods such as cross-validation, the parameters of the kernel function are adaptively optimized to improve the expression ability of the model. According to historical test data and expert experience, set the abnormal threshold of One-Class SVM. The abnormal threshold determines the definition standard of abnormal points. Too high will increase the missed detection rate, and too low will increase the false alarm rate. Adopt heuristic methods such as Parzen window estimation and extreme value theory to adaptively adjust the threshold and balance the detection accuracy and false alarm rate. Use the preprocessed normal power test data to train the One-Class SVM model. By solving the quadratic programming problem, the optimal hyperplane and support vector are obtained. Adopt optimization techniques such as sequential minimum optimization (SMO) algorithm and gradient descent method to improve the efficiency and accuracy of model training.

[0117] Step S513: Abnormal data detection

[0118] For the newly collected power test data, use the trained One-Class SVM model to calculate its anomaly score. The anomaly score reflects the degree to which the data point deviates from the normal data distribution. The higher the score, the more likely it is an anomaly. Determine the abnormal state: Determine the abnormal state of the data point based on the anomaly score and the set threshold. If the anomaly score exceeds the threshold, the data point is marked as an anomaly, otherwise it is marked as a normal point. Adopt an adaptive threshold strategy to adjust the anomaly threshold in real time according to the dynamic changes of data distribution to improve the adaptive ability of detection. Visualize the detected abnormal data, such as anomaly point heat map, abnormal interval marking, etc. Through intuitive visualization, engineers can quickly locate and analyze the cause of the anomaly and improve the efficiency of anomaly handling.

[0119] Step S5124: Model update and maintenance

[0120] For the newly collected power test data, an incremental learning strategy is used to update the One-Class SVM model in real time. By weighted fusion of new data and historical models, the model parameters are adaptively optimized without retraining the entire model to improve the real-time performance and accuracy of the model. The anomaly detection performance of the One-Class SVM model is regularly evaluated, and indicators such as precision, recall, and F1 score are calculated. The pros and cons of the model are diagnosed through the evaluation results, and parameter fine-tuning and model improvement are performed, such as introducing ensemble learning, feature engineering and other technologies to continuously improve the anomaly detection capability of the model.

[0121] It should be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.

Claims

1. A method for testing a multi-channel AD / DA chip, implemented based on a test system, the test system comprising a communication-connected host computer, a signal generating device, a device to be tested, and a signal analyzing device, characterized in that: The steps include: Step S1, start the test system, perform system self-check, and call the system compensation module to perform system parameter compensation; Step S2, collecting and evaluating environmental parameters, and calling the adaptive compensation module and the test condition evaluation module based on the environmental parameters to obtain environmental compensation parameters and test condition evaluation results; Step S3, in response to the input test basic data, and in combination with the system parameter compensation, environmental compensation parameters and test condition evaluation results, calling the pre-configured dynamic scheduling algorithm module, generating test parameters and sending them to the signal generating device; Step S4, receiving test data from the signal analysis device, and using a pre-configured automated analysis module to analyze the test data and output test results; Step S5: Obtain test process parameters and test results, provide feedback and score the test plan, and input them into the host computer; In step S2, the construction process of the adaptive compensation module is specifically as follows: Step S21, obtaining system transmission parameters in various temperature ranges required by the test environment, and constructing a training set of the system loss model; the system transmission parameters include S parameters; Step S22, reading the system transmission parameters, extracting the amplitude-frequency and phase-frequency response data; obtaining the change values ​​of the system physical parameters caused by the temperature change through electromagnetic simulation or stress analysis; Based on the measured data of system transmission parameters and the change values ​​of system physical parameters, a system loss model training set of system loss at multiple temperatures is constructed; Step S23, constructing a system loss model and setting the model parameters to obey the ARD prior distribution, introducing independent hyperparameters for the model parameters through the ARD prior, and controlling the prior variance of each parameter; determining the relevant temperature variables and frequency components in the system loss model through adaptive estimation of the hyperparameters; Step S24, estimating the posterior distribution of ARD hyperparameters by a variational inference method, obtaining calibrated model parameters and confidence intervals; configuring the system loss model after calibrating the parameters into the host computer, and updating the parameters of the system loss model online at predetermined intervals; The construction process of the test condition evaluation module is as follows: Step S25, collecting parameter configuration data under various test conditions to form a high-dimensional test parameter space; using a local linear embedding algorithm to learn the low-dimensional manifold structure of the parameter space; extracting the correlation features of the test parameter space through nonlinear dimensionality reduction; selecting a representative test parameter combination on the low-dimensional manifold; Step S26, divide the low-dimensional representation of the test parameter space into several sub-regions, and perform local dictionary learning in each sub-region; construct an overcomplete dictionary for each sub-region by the K-SVD method to obtain sparsely represented test parameters; dynamically adjust the sub-region division and dictionary atoms according to changes in the test parameter distribution; use the orthogonal matching pursuit algorithm to select the optimal test basis vector in the dictionary to characterize the key test conditions; Step S27: when in use, extract key test conditions according to the input test condition data and pre-store them in the host computer; The construction and use process of the dynamic scheduling algorithm module in step S3 is specifically as follows: Step S31, extracting basic data including test requirements, test procedures and test equipment parameters, and constructing a test task directed graph; Step S32: read the test task directed graph and evaluate, screen and dynamically optimize it to identify the causal chain between different test indicators; adopt causal reasoning drive to build a test scenario causal model to represent and decouple the test scenarios in layers; Step S33: In combination with the decoupled test scenario, the pre-configured dynamic scheduling algorithm module is called to generate test parameters and send them to the signal generating device.

2. The method for testing a multi-channel AD / DA chip according to claim 1, characterized in that: The step S1 is specifically as follows: Step S11, connecting each device in the test system through cables, sending the test signal to each device through the host computer, and transmitting the feedback data back to the host computer; Step S12, calculating the difference between the feedback data and the preset value, and judging whether to perform system parameter compensation according to the difference; if so, proceeding to step S13; Step S13: construct a state space model, model the input and output characteristics of the AD / DA chip to be tested as a nonlinear system, and construct potential hardware anomalies as unknown inputs of the nonlinear system by introducing fault parameters; Step S14: calling the adaptive noise covariance estimation algorithm module to track the change of system noise and output system compensation parameters.

3. The method for testing a multi-channel AD / DA chip according to claim 1, characterized in that: The process of analyzing the test data using the pre-configured automated analysis module in step S4 is specifically as follows: Step S41, using an intelligent frequency distribution algorithm based on Gaussian process regression to perform power testing to obtain power test results; Step S42: Perform sensitivity test using an adaptive boundary matching algorithm based on Bayesian optimization to obtain sensitivity test results; Step S43: construct a Bayesian causal graph model of the test results, analyze the conditional independence and causal effects under different test conditions, and use a counterfactual reasoning algorithm to evaluate the test error propagation path.

4. The method for testing a multi-channel AD / DA chip as claimed in claim 2, characterized in that: The step S14 is specifically as follows: Step S141, reading the state space model and introducing the time-varying system noise covariance matrix and the measurement noise covariance matrix; wherein the system noise and the measurement noise have a mean of zero and obey a multivariate Gaussian distribution with an unknown covariance; Step S142, initialize the mean of system noise and measurement noise, and the prior estimates of system noise covariance and measurement noise covariance; and at each time step, use the state prediction and measurement update steps of Kalman filtering to calculate the state estimation error and measurement error; use the estimated error sample to update the mean estimate of system noise and measurement noise, and use the forgetting factor mechanism to update the noise covariance estimate and confidence online, giving new samples a higher weight; Step S143, read the conjugate hyperparameters of the preconfigured system noise and measurement noise prior distributions, construct a variational objective function for noise covariance estimation, minimize the KL divergence between the variational posterior distribution and the true posterior distribution, use the expectation-maximization algorithm, alternately optimize the variational posterior distribution parameters and the noise covariance hyperparameters, and adjust the Kalman filter gain matrix at each time step according to the updated noise covariance estimate and confidence level; Step S144, read the noise covariance estimation value and confidence level of step S142 and step S143, adjust the weight of the estimation result by weighted average method, and adjust the weight parameter in combination with the failure mode of the chip, and output the weighted noise covariance estimation value.

5. The method for testing a multi-channel AD / DA chip according to claim 1, characterized in that: In step S24, the process of online updating the parameters of the system loss model at every predetermined time period is specifically as follows: Step S241, using variational Bayesian inference method to approximate the posterior distribution of the system loss model to a variational distribution that is easy to handle; Step S242, by minimizing the KL divergence between the variational distribution and the true posterior, the variational distribution parameters are iteratively optimized to achieve online learning of the system loss model; at each temperature sampling point, the expectation propagation algorithm is used to fuse the likelihood information of the new observation data into the current posterior distribution; Step S243, by iteratively updating the variational distribution and the EP approximation, the system loss model is updated in real time to adapt to the parameter drift caused by the temperature change; Step S244: configuring a Gaussian process regression module for searching for optimal loss compensation parameters according to parameter drift and an adaptive weighting module for dynamically adjusting the fusion weights of model parameters at different temperatures according to the degree of temperature change.

6. The method for testing a multi-channel AD / DA chip as claimed in claim 3, characterized in that: The step S41 is specifically as follows: Step S411: according to the power test requirements, collect historical frequency distribution data, and extract spatial correlation characteristics and amplitude-frequency correlation between frequency points; Step S412: constructing a covariance matrix between frequency points using the Mattern kernel function to obtain smoothness and periodicity data of the frequency point distribution; Step S413, describing the local similarity between frequency points by using a radial basis kernel function to obtain non-stationary characteristic data of frequency point distribution; Step S414: adopt a non-parametric Bayesian estimation algorithm to learn the hyperparameters of the kernel function to obtain automatic tuning data of the frequency distribution prior.

7. The method for testing a multi-channel AD / DA chip as claimed in claim 3, characterized in that: The step S42 is specifically as follows: Step S421, using Gaussian process to model the objective function of AD / DA chip sensitivity test; Step S422: collect the sensitivity test data of the AD / DA chip under different input powers and construct a training sample set; use a Gaussian process regression model to learn the probability distribution of the power-sensitivity mapping relationship; Step S423: construct a composite kernel function through kernel function engineering to analyze the multi-scale characteristics of power-sensitivity mapping; learn Gaussian process hyperparameters through maximum likelihood estimation to achieve adaptive kernel function selection; and output sensitivity test data.

8. A multi-channel AD / DA chip testing system, comprising a host computer connected to a product to be tested, characterized in that: The host computer comprises: at least one processor; and, a memory communicatively connected to at least one of the processors; wherein, The memory stores instructions executable by the processor, and the instructions are used to be executed by the processor to implement the multi-channel AD / DA chip testing method according to any one of claims 1 to 7.