Method for graphically scanning digital vector parameters
Technical Field
The invention relates to the technical field of digital vector parameter scanning, in particular to a method for graphically scanning digital vector parameters.
Background
In the original scheme, the digital vector parameters can only use constant values, once the digital vector operation result has fail, an oscilloscope is needed to be used for checking the waveform of the digital signal to judge whether the corresponding vector parameters need to be adjusted, then a test program is modified, vector parameter values are reset, a vector file is operated, the process needs repeated attempts to determine an available value of the vector parameters, and if the accuracy requirement of the vector parameters is high, the debugging efficiency is obviously reduced.
When the original scheme is used for debugging the multi-parameter linkage change requirement, each related parameter needs to be modified in sequence in the test program, for example, when the debugging needs to ensure that the difference between the high level and the low level of two Pin digital signals is unchanged and the requirement of a high level value capable of enabling the digital signals to stably operate is searched, the vector DriveHi value needs to be synchronously modified DriveLow value each time when the test program is modified, errors are easy to occur when the parameters are involved in the modification, maintainability of the test program also becomes poor, and the test program needs to be rewritten according to the debugging requirement for different DUTs and digital vector files, so that the reusability of the test scheme is poor.
Disclosure of Invention
The present invention is directed to a method for graphically scanning digital vector parameters, so as to solve the above-mentioned problems in the prior art.
In order to achieve the above purpose, the present invention provides the following technical solutions: a method for graphically scanning digital vector parameters, comprising the following specific steps:
S1: after confirming that the tested digital circuit is connected correctly, running a test program;
s2: in the test procedure, each Pin of the tested digital circuit is ensured to be correctly connected with the PE module, and the Pin of the power supply is correctly electrified;
s3: opening a digital vector parameter scanning tool and configuring scanning parameters;
s4: the parameter scanning tool automatically completes the parameter scanning process and buffers intermediate data:
s5: drawing parameter scanning results of all dimensions according to the cached intermediate data;
s6: and acquiring the numerical vector parameter value range according to the scanning result, and ending the debugging.
Preferably, the step S4 of automatically completing the parameter scanning process by the parameter scanning tool includes the following specific steps:
S4.1: judging whether the current dimension parameter scanning is finished or not:
s4.2: if not, acquiring the next iteration value according to the configured scanning algorithm:
s4.3: all pins and TimeSet needing modification are obtained:
s4.4: if the scan parameter type is Level, modifying the Level value:
s4.5: if the scan parameter type is Edge/Period, modifying the timing value:
S4.6: if the scan parameter type is AC Spec, modifying all timing values:
s4.7: if the scan parameter type is DC Spec, modify all level values:
s4.8: if the scan parameter type is Global Spec, modifying all timing and level values:
s4.9: running a digital vector:
s4.10: recording the current running result:
s4.11: and judging whether the parameter scanning of all the dimensions is completed, and if not, selecting the next dimension.
Preferably, the defined digital vector parameters in S3 include a Type target parameter Type, a Name target parameter Name and a PARAMETER RANGE parameter range, where the Type target parameter Type content includes a Level, edge timing, period, an intermediate variable of DC Spec for a Level value, an intermediate variable of AC Spec for a timing value, and an intermediate variable of Global Spec for both a Level value and a timing value, after the Name target parameter Name selects a Type, a specific debug parameter is determined by the Name, when type=level, names DriveHi, driveLow, compareHi and CompareLow are selected by the Name, when type=edge, a Name selects DriveOn, driveData, driveReturn, driveOff and Open, and the PARAMETER RANGE parameter range includes a start point, an end point, a step number and a step length of the parameter, steps of which are shown as reference numbers 1,2,3, 4 and 5 in fig. 3, step number 1 is a target parameter Name, step number 2 is a defined parameter range, step number 3 is a parameter value algorithm, step 4 is a required target Pin, and step number 5 is a start or end.
Preferably, after the step S4.10 records the result of the current operation, the step S4.1 is returned to determine whether the current dimension parameter scanning is completed, and then whether the current dimension parameter scanning is completed is performed, if not completed, the step S4.2 is repeated, if the step S4.11 is completed to determine whether the parameter scanning of all the dimensions is completed, if not completed, the next dimension is selected, the step S4.1 is returned again to determine whether the current dimension parameter scanning is completed, and when the parameter scanning of all the dimensions is completed, the step S5 is entered to draw the result.
Preferably, the scanning Algorithm in S4.2 includes Algorithm, pins and TimeSet, the algoritm parameter value Algorithm combines a starting point, an ending point, a step number and a step length of the parameter, determines a specific value used by the target parameter, and the algoritm parameter value Algorithm includes, but is not limited to, one or more than one of a Binary, a Linear, a Jump Linear and a List, wherein the next point value of the Binary is half of the starting point and the ending point, the ending point is updated, the next point of the Linear is the starting point plus the step length, the Jump Linear is ignored by Argument input box, and the List uses only the value in the Argument input box as the iteration value.
Preferably, the Pins need to be validated target Pins, defaults to all Pins used by the vector file, the TimeSet needs to be validated time sequence, and the sum of Edge and Period time parameters defaults to all TimeSet used by the vector file.
Preferably, the digital signal generated by the digital vector on the input Pin of the DUT is a square wave with a period of 1us, the digital vector expects to detect a high level at 500ns of each period on the output Pin of the DUT, the current test target is to adjust the influence of the high level start time of the input signal on the test vector result, the target parameter DRIVEDATA is set at a starting point of 250ns, the ending point is 650ns, the step size is 50ns, the value algorithm selects Linear, DRIVEDATA starts from 250ns, the digital vector file is gradually increased by 50ns, the digital signal generated each time is repeatedly executed, the high level duration in each period is gradually reduced, when DRIVEDATA is greater than 500ns, the output Pin can only detect a low level at 500ns, and the vector result is fail.
Preferably, the input Pin digital signal is high for one quarter of the period throughout each period, and to meet this requirement, an AC Spec intermediate variable named BaseEdge can be defined, and DRIVEDATA and DriveReturn are associated with BaseEdge by the following formula
Then, the target parameter is set to BaseEdge, and the other configurations are unchanged, so that the debugging requirement can be met.
Preferably, the step S5 of drawing the parameter scan results of all dimensions involves visualization of multi-dimensional data, and adopts a software scatter diagram matrix and multi-dimensional data dimension reduction visualization software.
The invention has the technical effects and advantages that:
(1) The method uses a value algorithm in the scanning range to replace the original method for assigning the value constant to the vector parameter, and has the advantages that all parameter values meeting the correct operation of the vector can be obtained in the target range at one time according to the precision requirement, so that the trouble of repeatedly modifying the test program and the dependence on auxiliary tools such as an oscilloscope are avoided.
(2) The invention provides a solution for simplifying multi-parameter association debugging. The vector parameters to be debugged are related with intermediate variables by using formulas, and then the intermediate variables are used as target parameters, so that the mode that the original scheme needs to manually search and modify parameters in the test program one by one before running the vector each time is replaced. For parameters without direct correlation, the invention provides a multidimensional parameter debugging mode, and debugging information can be respectively and independently configured for a plurality of parameters.
(3) The invention provides a set of general solution for scanning digital vector parameters by using a graphical configuration interface mode, the tool encapsulates business logic of digital vector test, and the mode of using the graphical configuration interface to expose parameters needing to be changed to a user.
Drawings
FIG. 1 is a schematic block diagram of the flow chart of the present invention.
FIG. 2 is a diagram of the digital vector parameters of the present invention.
FIG. 3 is a diagram of a digital vector debug configuration interface according to the present invention.
FIG. 4 is a schematic diagram of an algorithm scan DRIVEDATA of the present invention.
FIG. 5 is a diagram showing the result of the digital vector parameter scan according to the present invention.
FIG. 6 is a schematic diagram of an example of a two-dimensional parameter joint debugging result according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a method for graphically scanning digital vector parameters, which is shown in fig. 1-6, and comprises the following specific steps:
S1: after confirming that the tested digital circuit is connected correctly, running a test program;
S2: in the test program, each Pin of the tested digital circuit is ensured to be correctly connected with the PE module, and the Pin of the power supply is correctly electrified, so that the running stability of the test program is ensured;
S3: turning on a digital vector parameter scanning tool, configuring scanning parameters, as shown in fig. 3, and defining digital vector parameters in S3 to include a Type target parameter Type, a Name target parameter Name and a PARAMETER RANGE parameter range, wherein the Type target parameter Type content includes a Level, edge time sequence, period, intermediate variables of DC Spec for Level values, intermediate variables of AC Spec for time sequence values, global Spec for both Level values and intermediate variables of time sequence values, after the Name target parameter Name selects a Type, determining a specific debugging parameter through the Name, when the type=level, the Name selects DriveHi, driveLow, compareHi and CompareLow, and when the type=edge, the Name selects DriveOn, driveData, driveReturn, driveOff and Open, and the PARAMETER RANGE parameter range comprises the starting point, the ending point, the step number and the step length of the parameters;
s4: the parameter scanning tool automatically completes the parameter scanning process and buffers intermediate data:
S5: drawing parameter scanning results of all dimensions according to the cached intermediate data so as to facilitate visual display of the parameter scanning results;
S6: and acquiring the numerical vector parameter value range according to the scanning result, and ending the debugging, thereby outputting the parameter scanning result.
In particular, the parameter scanning tool in S4 automatically completes the parameter scanning process, which includes the following specific steps:
S4.1: judging whether the current dimension parameter scanning is finished or not:
s4.2: if not, acquiring the next iteration value according to the configured scanning algorithm:
s4.3: all pins and TimeSet needing modification are obtained:
s4.4: if the scan parameter type is Level, modifying the Level value:
s4.5: if the scan parameter type is Edge/Period, modifying the timing value:
S4.6: if the scan parameter type is AC Spec, modifying all timing values:
s4.7: if the scan parameter type is DC Spec, modify all level values:
s4.8: if the scan parameter type is Global Spec, modifying all timing and level values:
s4.9: running a digital vector:
s4.10: recording the current running result:
s4.11: and judging whether the parameter scanning of all the dimensions is completed, and if not, selecting the next dimension.
Further, after the current running result is recorded in the step S4.10, returning to the step S4.1 to determine whether the current dimensional parameter scanning is completed, and then performing the step of determining whether the current dimensional parameter scanning is completed, if not, repeating the step S4.2 to determine whether the current dimensional parameter scanning is completed in the step S4.2, wherein in one dimension, if not, determining whether the parameter scanning is completed in the step S4.11, and if not, selecting the next dimension, entering the step S4.1 again to determine whether the current dimensional parameter scanning is completed, determining whether the parameter scanning is completed in the step S4.1, scanning the parameters in all dimensions, and when the parameter scanning is completed in all dimensions, entering the step S5 to draw the result, and automatically completing the parameter scanning process by the step S4 parameter scanning tool is shown in fig. 1.
Specifically, the scanning Algorithm in S4.2 includes Algorithm, pins and TimeSet, the algoritm parameter value Algorithm combines the starting point, the ending point, the step number and the step length of the parameter to determine the specific value used by the target parameter, the algoritm parameter value Algorithm includes, but is not limited to, binary two, linear, jump Linear and List, the next point of Binary two is half of the starting point and the ending point, and updates the ending point, binary two search, also called Binary search, is an Algorithm for searching specific elements in the ordered array, the basic idea is to compare the target value with the middle element of the array, if the target value is equal to the middle element, find the target value, if the target value is smaller than the middle element, continue to search in the first half of the array, if the target value is larger than the middle element, continue to search in the second half of the array, by reducing the search range by half each comparison, the target value can be found or the target value can be determined to be absent within the time complexity of O (log n), the Linear next point is the starting point plus the step size, the Linear search is a simple and intuitive search Algorithm, also called sequential search, which examines each element in the array or List one by one until the target element is found or the entire dataset is traversed, a simple but less efficient search Algorithm with the time complexity of O (n), where n is the size of the dataset, and since it needs to examine each element one by one, the performance is relatively poor in large-scale data, in general, the Linear search is applicable to cases where small datasets or datasets are not arranged in a specific order, the Linear search with Jump ignores Argument the iteration value specified by the input box, the List only uses the value in Argument input boxes as an iteration value, pins need to be validated target Pins, defaults to all Pins used by the vector file, timeSet needs to be validated time sequence, and the sum of Edge and Period time parameters defaults to all TimeSet used by the vector file.
In particular, the digital signal generated by the digital vector on the input Pin of the DUT is a square wave with a period of 1us, the digital vector expects to detect a high level at 500ns in each period on the output Pin of the DUT, the current test target is to adjust the influence of the high level start time of the input signal on the test vector result, the target parameter DRIVEDATA is set at a starting point of 250ns, the ending point is 650ns, the step size is 50ns, if the precision needs to be improved, the step size can be reduced, the value-taking algorithm selects Linear, the tool operation debugging process is as shown in fig. 4, DRIVEDATA starts from 250ns, gradually increases for 50ns, and re-executes the digital vector file, the high level duration in each period gradually decreases, the output Pin can only detect a low level at 500ns after DRIVEDATA is greater than 500ns, and the vector result is fail.
Further, for multi-parameter joint debugging, the target parameter can be set as an intermediate variable, the input Pin digital signal always lasts for one quarter of a period in each period, to meet the requirement, an AC Spec intermediate variable named BaseEdge can be defined, and DRIVEDATA and DriveReturn are associated with BaseEdge by the following formula
Then, the target parameter is set to BaseEdge, and the other configurations are unchanged, so that the debugging requirement can be met, for example, fig. 5 and 6 are respectively a digital vector parameter scanning result schematic diagram and a two-dimensional parameter joint debugging result schematic diagram, the abscissa in fig. 5 refers to the debugging quantity in one-dimensional parameters, the abscissa in fig. 6 refers to the debugging quantity in one-dimensional parameters, and the ordinate in fig. 6 refers to the dimension quantity debugged in two-dimensional parameters.
Specifically, the step S5 of drawing the parameter scan results of all dimensions involves visualization of multi-dimensional data, and adopts a software scatter diagram matrix and multi-dimensional data dimension reduction visualization software, such data is usually collected by running a model or experiment under different parameter combinations, and each parameter may have a different value range.
Finally, it should be noted that: the foregoing description is only illustrative of the preferred embodiments of the present invention, and although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described, or equivalents may be substituted for elements thereof, and any modifications, equivalents, improvements or changes may be made without departing from the spirit and principles of the present invention.