A method and device for generating an excitation signal, a chip testing device and a storage medium
By obtaining and analyzing the excitation signal waveform information in the target VCD file and generating excitation signals, the problem of quickly generating excitation signals in chip tests is solved, and the rapid generation and efficient simulation test of excitation signals are realized.
Patent Information
- Application Number
- CN202410466124.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-04-18
AI Technical Summary
In the chip's EDA simulation test, it is a challenge to quickly generate excitation signals for simulation. The existing technology requires a long period of repeated debugging and programming, and cannot effectively meet the needs of rapid excitation signals generation.
By obtaining the excitation signal waveform information in the target VCD file, determining the time when the level value changes and the level value after the change, generating the excitation signal based on this information, using the pre-constructed waveform timing relationship to generate the waveform description text, and convert it It is a target VCD file, thereby quickly generating excitation signals.
It realizes the rapid generation of excitation signals, reduces the time for repeated debugging and programming, can quickly meet the needs of the excitation project in the corner scenario, and improves the simulation test efficiency.
Smart Images

Figure CN118068058B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of chip testing technology, and in particular to an excitation signal generating method, device, chip testing equipment and storage medium. Background Art
[0002] Related technologies During the EDA (Electronic Design Automation) simulation test of the chip, a simulation verification platform such as TestBench (an EDA verification platform) is usually built. After that, on the built simulation verification platform, the stimulus signal is constructed and generated to simulate the DUT (Design Under Test). In actual work projects, there are often situations where the stimulus signal for simulation needs to be generated quickly. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a method, device, chip testing equipment and storage medium for generating an excitation signal, so as to realize the rapid generation of an excitation signal. The specific technical solution is as follows:
[0004] In a first aspect, an embodiment of the present invention provides a method for generating an excitation signal, which is applied to a chip testing device. The method includes:
[0005] Get the target value change dump VCD file;
[0006] According to the waveform information of the excitation signal recorded in the target VCD file, determine the time when the level value of the excitation signal changes and the level value after the change, and determine the waveform timing relationship of the excitation signal;
[0007] According to the above waveform timing relationship, an excitation signal is generated.
[0008] In one embodiment of the present invention, the target VCD file is obtained by:
[0009] Based on the pre-constructed timing relationship of the excitation signal waveform, a waveform description text describing the timing relationship of the waveform is generated;
[0010] Generate a target VCD file based on the above waveform description text.
[0011] In one embodiment of the present invention, after generating the excitation signal according to the above waveform timing relationship, the method further includes:
[0012] Perform simulation test on the DUT based on the generated stimulus signal;
[0013] Collect the output signal of the above DUT;
[0014] Comparing the output signal with the expected output signal represented by the expected information recorded in the target VCD file;
[0015] When the output signal and the expected output signal do not satisfy a preset matching condition, the simulation test is stopped.
[0016] In one embodiment of the present invention, the comparing the output signal with the expected output signal represented by the expected information recorded in the target VCD file includes:
[0017] In the case that the output signal is not a preset ignore signal, the output signal is compared with the expected output signal represented by the expected information recorded in the target VCD file.
[0018] In one embodiment of the present invention, after generating the excitation signal according to the above waveform timing relationship, the method further includes:
[0019] Determine the correspondence between different stimulus signals and different interfaces of DUT;
[0020] According to the above correspondence, the excitation signal is input into the corresponding interface of the above DUT to perform a simulation test on the above DUT.
[0021] In a second aspect, an embodiment of the present invention provides an excitation signal generating device, which is applied to a chip testing device. The device includes:
[0022] The acquisition module is used to obtain the target value change dump VCD file;
[0023] A first determination module is used to determine the moment when the level value of the excitation signal changes and the level value after the change according to the waveform information of the excitation signal recorded in the target VCD file, and determine the waveform timing relationship of the excitation signal;
[0024] The generating module is used to generate an excitation signal according to the above waveform timing relationship.
[0025] In one embodiment of the present invention, the acquisition module is specifically used to:
[0026] Based on the pre-constructed timing relationship of the excitation signal waveform, a waveform description text describing the timing relationship of the waveform is generated;
[0027] Generate a target VCD file based on the above waveform description text.
[0028] In one embodiment of the present invention, the above device further includes:
[0029] The first test module is used to perform simulation test on the DUT based on the generated stimulus signal;
[0030] An acquisition module, used for acquiring the output signal of the above DUT;
[0031] A comparison module, used for comparing the output signal with the expected output signal represented by the expected information recorded in the target VCD file;
[0032] The stopping module is used to stop the simulation test when the output signal and the expected output signal do not meet the preset matching condition.
[0033] In one embodiment of the present invention, the comparison module is specifically used for:
[0034] In the case that the output signal is not a preset ignore signal, the output signal is compared with the expected output signal represented by the expected information recorded in the target VCD file.
[0035] In one embodiment of the present invention, the above device further includes:
[0036] The second determination module is used to determine the correspondence between different stimulus signals and different interfaces of the DUT;
[0037] The second test module is used to input the excitation signal into the corresponding interface of the DUT according to the corresponding relationship, and perform simulation test on the DUT.
[0038] In a third aspect, an embodiment of the present invention provides a chip testing device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;
[0039] Memory, used to store computer programs;
[0040] The processor is used to implement any method step of the first aspect when executing the program stored in the memory.
[0041] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method step of the first aspect is implemented.
[0042] Beneficial effects of the embodiments of the present invention:
[0043] An embodiment of the present invention provides a method for generating an excitation signal, which is applied to a chip testing device. The method comprises: obtaining a target VCD (Value Change Dump) file; determining, according to waveform information of the excitation signal recorded in the target VCD file, the moment when the level value of the excitation signal changes and the level value after the change, and determining the waveform timing relationship of the excitation signal; and generating an excitation signal according to the waveform timing relationship.
[0044] As can be seen from the above, in the solution provided by the embodiment of the present invention, since the target VCD file records the time when the excitation signal changes and the level value of the excitation signal after the change, the waveform timing relationship of the excitation signal in the target VCD file can be obtained based on this, and then the corresponding excitation signal is generated according to the waveform timing relationship. In the whole process described above, there is no need to perform repeated debugging and programming for a long time to generate the excitation signal, and the excitation signal can be quickly generated. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0046] Figure 1 A schematic flow chart of a first excitation signal generating method provided by an embodiment of the present invention;
[0047] Figure 2 A waveform timing diagram of an excitation signal provided by an embodiment of the present invention;
[0048] Figure 3 A schematic flow chart of a second method for generating an excitation signal provided by an embodiment of the present invention;
[0049] Figure 4 A schematic diagram of a process for obtaining a target VCD file provided by an embodiment of the present invention;
[0050] Figure 5 A schematic flow chart of a third method for generating an excitation signal provided in an embodiment of the present invention;
[0051] Figure 6 A schematic diagram of the structure of an excitation signal generating device provided by an embodiment of the present invention;
[0052] Figure 7 A schematic structural diagram of a chip testing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field based on the present invention belong to the scope of protection of the present invention.
[0054] In the process of simulating a DUT, it is often necessary to quickly generate an excitation signal for simulation. To this end, the embodiments of the present invention provide an excitation signal generation method, device, chip testing equipment and storage medium, which are described in detail below.
[0055] First, a method for generating an excitation signal provided by an embodiment of the present invention is described.
[0056] See also Figure 1 , is a flow chart of a first excitation signal generating method provided in an embodiment of the present invention, the method is applied to a chip testing device, and the method includes the following steps S101 to S103.
[0057] Step S101: Obtain the target VCD file.
[0058] In the simulation test of DUT, VCD files are mainly used to record the change information of signals involved in the simulation test process. Specifically, VCD files contain the time information of the simulation test, the definition of the stimulus signal and the change information of the stimulus signal value, the definition of the DUT output signal and the change information of the DUT output signal value, etc.
[0059] In some cases, a simulation test has been completed for the DUT, and a VCD file corresponding to the simulation test has been generated. The VCD file can be used as the target VCD file in the embodiment of the present invention, and the above-mentioned DUT can be simulated again based on the information obtained by parsing the target VCD file. In addition, if a simulation test has been completed for the DUT, the content of the file generated with the simulation test also includes the time information of the simulation test, the definition of the excitation signal and the change information of the excitation signal value, the definition of the DUT output signal and the change information of the DUT output signal value, etc., but the format of the file generated with the simulation test is not the VCD file format. For example, the file generated with the simulation test is a FSDB (Fast Signal Data Base) file. At this time, according to the relevant technology, a general tool can be used to convert the format of the file generated with the simulation test into the VCD file format, thereby obtaining the target VCD file.
[0060] In one embodiment of the present invention, the target VCD file is obtained through the following steps A to B.
[0061] Step A: Based on the pre-constructed timing relationship of the excitation signal waveform, a waveform description text describing the timing relationship of the waveform is generated.
[0062] In the embodiment of the present invention, firstly, according to the preset excitation signal requirements, the excitation signal waveform timing relationship is constructed. The excitation signal waveform timing relationship can be expressed in the form of a graph or a table, etc. The excitation signal waveform timing relationship mainly describes the change of the level value of the excitation signal over time. For example, see Figure 2 , is a waveform timing diagram of an excitation signal provided by an embodiment of the present invention. Figure 2 In the figure, "clk" is the clock signal, "req" is the request signal, "res" is the response signal, and "data" is the data signal, i.e., the excitation signal. "head" represents the excitation signal head, "body" represents the excitation signal data body, and "tail" represents the excitation signal tail. It can be seen that Figure 2 Describes the change of the excitation signal with the clock signal.
[0063] After obtaining the pre-constructed excitation signal waveform timing relationship, analyze the change of the excitation signal over time in the excitation signal waveform timing relationship, determine the excitation signal corresponding to each clock signal and other related signals, and use the relevant programming language to generate a waveform description text describing the excitation signal waveform timing relationship. Figure 2 Taking the waveform timing diagram of the excitation signal shown in the figure as an example, the corresponding waveform description text can be shown as follows:
[0064] {signal:[
[0065] {name:'clk',wave:'p.....|...'},
[0066] {name:'data',wave:'x.345x|x..,data:['head','body']'},
[0067] {name:'req',wave:'0.1..0|1.0'},
[0068] {name:'res',wave:'1....|01.'}
[0069] ]}
[0070] Among them, “signal” means “signal”, “name” means “name”, and “wave” means “waveform”.
[0071] Specifically, the above waveform description text is only an example. In actual situations, due to differences in formats, parameters, etc., the generated waveform description text is also different, that is, the generated waveform description text matches the actual situation.
[0072] Exemplarily, relevant software, such as Wavedrom, can be used to construct a waveform timing diagram of the excitation signal, and then the software can be used to generate a waveform description text describing the waveform timing diagram based on the constructed waveform timing diagram of the excitation signal.
[0073] In addition, similar to generating a corresponding waveform description text based on a pre-constructed stimulus signal waveform timing relationship, a waveform timing relationship of an expected output signal can also be pre-constructed, and a corresponding expected output signal waveform description text can be generated; wherein the above-mentioned expected output signal is a signal that the DUT should theoretically output when the pre-constructed stimulus signal acts on the DUT.
[0074] Step B: Generate a target VCD file based on the above waveform description text.
[0075] After obtaining the waveform description text, the signal types in the waveform description text and the relationship between the signals and the clock signal are determined by parsing, and the target VCD file is generated according to the format of the VCD file. In the case where the waveform description text of the expected output signal is generated, the target VCD file also contains information representing the expected output signal.
[0076] Step S102: According to the waveform information of the excitation signal recorded in the target VCD file, determine the time when the level value of the excitation signal changes and the level value after the change, and determine the waveform timing relationship of the excitation signal.
[0077] Specifically, the target VCD file records the changes of the excitation signal during the entire simulation test time. For example, at time t1, the level value of the excitation signal changes to 1, and the target VCD file records that the level value of the excitation signal at time t1 is 1; after time t1, the level value of the excitation signal changes again and changes to 2 at time t2, and the target VCD file records that the level value of the excitation signal at time t2 is 2. It can also be known that between t1 and t2, the level value of the excitation signal is 1. In this way, the time when the level value of the excitation signal changes and the level value after the change can be extracted from the target VCD file, so as to determine the waveform timing relationship of the excitation signal, that is, the change information of the excitation signal over time is obtained.
[0078] Step S103: Generate an excitation signal according to the above waveform timing relationship.
[0079] After the waveform timing relationship of the excitation signal is obtained, the corresponding excitation signal can be generated according to the level value of the excitation signal corresponding to each time point in the waveform timing relationship, so as to be used for the subsequent simulation test of the DUT.
[0080] As can be seen from the above, in the solution provided by the embodiment of the present invention, since the target VCD file records the moment when the excitation signal changes and the level value of the excitation signal after the change, the waveform timing relationship of the excitation signal in the target VCD file can be obtained based on this, and then the corresponding excitation signal is generated according to the waveform timing relationship. In the entire process described above, there is no need to perform repeated debugging programming for a long time to generate the excitation signal, and the excitation signal can be generated quickly. Especially for the case of corner (boundary) scene excitation, the related technology generates excitation through verification language programming, which takes a long time, while in the embodiment of the present invention, the excitation is generated quickly, which can effectively meet the needs of rapid implementation of corner scene excitation projects.
[0081] After the stimulus signal is generated, it is transmitted to the DUT to perform simulation test on the DUT. Figure 3 , is a flow chart of a second method for generating an excitation signal provided by an embodiment of the present invention, which is similar to the above Figure 1 Compared with the embodiment shown, after the above step S103, the following steps S104 to S107 are also included.
[0082] Step S104: Perform simulation test on the DUT based on the generated stimulus signal.
[0083] After the stimulus signal is generated, the stimulus signal is input into the DUT to test the response of the DUT under the stimulus signal.
[0084] Step S105: collecting the output signal of the DUT.
[0085] When the stimulus signal acts on the DUT, the DUT will respond to the stimulus signal, process the stimulus signal and generate a corresponding output signal. In order to evaluate the test of the DUT, it is necessary to collect the output signal of the DUT. A special output signal file can be established to store information that can represent the collected DUT output signal.
[0086] Step S106: Compare the output signal with the expected output signal represented by the expected information recorded in the target VCD file.
[0087] Specifically, the target VCD file not only records the waveform information of the stimulus signal, but also contains expected information representing the expected output signal; wherein the expected output signal is the signal that the DUT should theoretically output after the stimulus signal generated in the embodiment of the present invention is input into the DUT.
[0088] After the output signal of the DUT is collected in step S105, in order to verify whether the performance of the DUT meets expectations, the collected output signal is compared with the expected output signal represented by the expected information recorded in the target VCD file, and the tested DUT is evaluated based on the comparison result.
[0089] If the DUT output signal is completely consistent with the expected output signal represented by the expected information recorded in the target VCD file, the waveform representing the DUT output signal is aligned with the starting point of the waveform representing the expected output signal, and it can be found that the two waveforms are consistent and overlap. Exemplarily, the method of comparing the DUT output signal with the expected output signal represented by the expected information recorded in the target VCD file can be: first obtain the waveform representing the DUT output signal and the waveform representing the expected output signal, align the starting points of the two waveforms, record the data points where the level values of the two waveforms are inconsistent, and count the number of data points finally obtained. In addition, after obtaining the waveform representing the DUT output signal and the waveform representing the expected output signal and aligning the starting points of the two waveforms, the duration of inconsistency of the level values of the two waveforms can be counted, and then the proportion of the duration of inconsistency of the level values of the two waveforms in the entire test duration can be obtained. Specifically, the entire test duration here is the duration from the beginning of recording the DUT output signal to the end of recording the DUT output signal.
[0090] In actual testing of the DUT, some output signals of the DUT are insignificant to the performance of the DUT, that is, it is not necessary to compare and judge all the output signals of the DUT collected. In one embodiment of the present invention, the above step S106 can be implemented by the following step C.
[0091] Step C: When the output signal is not a preset ignore signal, compare the output signal with the expected output signal represented by the expected information recorded in the target VCD file.
[0092] In the test of DUT, some output signals that are not important to the performance of DUT, such as noise signals: DUT may generate some random or low-amplitude noise signals during the test, which usually do not have a significant impact on the overall performance of the device. In the test of DUT, these noise signals can usually be ignored. Or auxiliary and debugging signals: These signals are mainly used for internal diagnosis or troubleshooting of DUT, not for final product testing. Therefore, in DUT testing, there is no need to compare these signals with the expected output signals.
[0093] Specifically, a preset ignore signal can be determined according to actual needs, and the preset ignore signal information can be stored in a configuration file. Before comparing the output signal with the expected output signal, the preset ignore signal information in the configuration file is first read, and when it is confirmed that the output signal is not a preset ignore signal, the output signal is then compared with the expected output signal represented by the expected information recorded in the target VCD file.
[0094] By comparing the output signal with the expected output signal only when the output signal is not a preset ignored signal, the comparison process of the output signal with the expected output signal can be accelerated without affecting the DUT performance evaluation result, thereby improving the evaluation efficiency of the DUT performance.
[0095] Step S107: when the output signal and the expected output signal do not satisfy a preset matching condition, stop the simulation test.
[0096] After comparing the output signal with the expected output signal, if it is found that the output signal is consistent with the expected output signal, it naturally indicates that the tested DUT meets the preset requirements. In actual situations, there may be a situation where the DUT output signal is different from the expected output signal. In this case, it can be determined whether the comparison result between the output signal and the expected output signal meets the preset matching condition.
[0097] In one example, the preset matching condition can be set as follows: the correlation coefficient between the waveform representing the output signal and the waveform representing the expected output signal reaches a preset correlation coefficient value, and the preset correlation coefficient value can be set according to actual needs. For example, the correlation coefficient can be a Pearson correlation coefficient. For the waveform representing the output signal and the waveform representing the expected output signal, data points in the two waveforms are collected respectively. For each data point of the collected waveform, the average value of these data points is calculated, and then the data points are substituted into the calculation formula of the Pearson correlation coefficient, so that the Pearson correlation coefficient between the waveform representing the output signal and the waveform representing the expected output signal can be calculated. The closer the Pearson correlation coefficient is to 1, the more similar the two waveforms are.
[0098] In another example, the preset matching condition may also be set as: the mean square error between the waveform representing the output signal and the waveform representing the expected output signal is less than a preset mean square error value, and the preset mean square error value may be set according to actual needs. Specifically, the smaller the mean square error between the two waveforms, the more similar the two waveforms are.
[0099] Of course, other preset matching conditions may be set as needed, as long as the preset matching conditions can effectively evaluate the difference between the DUT output signal and the expected output signal.
[0100] If the DUT output signal and the above expected output signal meet the preset matching conditions, it indicates that the tested DUT meets the preset requirements; if the DUT output signal and the above expected output signal do not meet the preset matching conditions, it indicates that the tested DUT may have design problems or other unknown errors may have occurred in this test. In this case, the simulation test of the DUT is stopped, and the design of the DUT and the entire test plan are rechecked so that the DUT can be simulated again later.
[0101] As can be seen from the above, in the solution provided by the embodiment of the present invention, the DUT is simulated and tested using the generated stimulus signal, and the output signal of the DUT is compared with the expected output signal. If it is found that the output signal of the DUT and the expected output signal do not meet the preset matching condition, indicating that the current test of the DUT deviates from the expectation, the current simulation test is stopped and no simulation test resources are occupied.
[0102] In the simulation test of DUT, since DUT often has multiple different types of interfaces, different types of interfaces have different requirements for input stimulus signals. Therefore, in one embodiment of the present invention, after the above step S103, the following steps D and E are also included.
[0103] Step D: Determine the correspondence between different stimulus signals and different interfaces of the DUT.
[0104] Among the different interfaces of DUT, some interfaces may require the excitation signal to be a pulse signal, while some interfaces may require the excitation signal to be a square wave signal; some interfaces may require the level range of the excitation signal to be a first level range, while some interfaces may require the level range of the excitation signal to be a second level range; some interfaces may require the source impedance of the excitation signal to be a first impedance value, while some interfaces may require the source impedance of the excitation signal to be a second impedance value. Such requirements are not listed here one by one. In short, different interfaces of DUT correspond to different excitation signals.
[0105] Therefore, after obtaining a series of excitation signals, for each excitation signal, it is necessary to first determine the interface of the DUT corresponding to the excitation signal, so that in the subsequent simulation test, the excitation signal can be transmitted to the corresponding interface of the DUT to ensure the correct excitation signal input to the DUT. Specifically, before the simulation test of the DUT input excitation signal, a corresponding relationship configuration file indicating the corresponding relationship between different excitation signals and different interfaces of the DUT can be generated in advance according to the design structure of the DUT and the various excitation signals required by the DUT. The corresponding relationship configuration file is stored in the chip testing device that tests the DUT, or in a storage medium that the chip testing device can read information, so that the chip testing device can read the above-mentioned corresponding relationship configuration file during the process of testing the DUT and determine the corresponding relationship between different excitation signals and different interfaces of the DUT.
[0106] Step E: According to the above correspondence, the excitation signal is input into the corresponding interface of the above DUT to perform simulation test on the above DUT.
[0107] After determining the correspondence between different stimulus signals and different interfaces of the DUT, the chip testing equipment inputs each stimulus signal into the corresponding interface of the DUT according to the above correspondence, and then performs simulation testing on the DUT.
[0108] It can be seen from the above that in the solution provided by the embodiment of the present invention, by determining the correspondence between different stimulus signals and different interfaces of the DUT, the correctness of the input of the stimulus signal can be guaranteed, thereby ensuring the normal progress of the DUT simulation test.
[0109] See also Figure 4 , is a schematic diagram of a process for obtaining a target VCD file provided by an embodiment of the present invention. Figure 4 Two methods of obtaining the target VCD are shown in the figure. One is to convert the FSDB file obtained in the last simulation test into a target VCD file; the other is to pre-construct the timing relationship of the excitation signal waveform, generate a waveform description text describing the timing relationship of the waveform, and finally generate the target VCD file based on the above waveform description text.
[0110] See also Figure 5 , which is a flow chart of a third excitation signal generating method provided in an embodiment of the present invention. Figure 5The CFG (Configuration) configuration file in the test may contain the above-mentioned preset ignored signal information, the correspondence between different stimulus signals and different interfaces of DUT, the expected information representing the expected output signal and other configuration information; QSG (QuickStimulus Generator) is a subroutine running on the chip test equipment, which is used to parse the received target VCD file and CFG configuration file, generate stimulus signals, and pass the correspondence between different stimulus signals and different interfaces of DUT to the ITF (Interface) component through the CFG configuration path, so that each stimulus signal can be transmitted to the corresponding DUT interface through the ITF component. In addition, QSG will also collect the output signal information of the current DUT test process, and when the output signal is not a preset ignored signal, compare the output signal with the expected output signal represented by the expected information recorded in the target VCD file.
[0111] Corresponding to the aforementioned method for generating an excitation signal, an embodiment of the present invention further provides an excitation signal generating device.
[0112] See also Figure 6 , is a schematic diagram of the structure of an excitation signal generating device provided by an embodiment of the present invention, the device is applied to a chip testing device, and includes:
[0113] The acquisition module 601 is used to acquire the target VCD file.
[0114] The first determination module 602 is used to determine the moment when the level value of the excitation signal changes and the level value after the change according to the waveform information of the excitation signal recorded in the target VCD file, and determine the waveform timing relationship of the excitation signal.
[0115] The generating module 603 is used to generate an excitation signal according to the above waveform timing relationship.
[0116] As can be seen from the above, in the solution provided by the embodiment of the present invention, since the target VCD file records the time when the excitation signal changes and the level value of the excitation signal after the change, the waveform timing relationship of the excitation signal in the target VCD file can be obtained based on this, and then the corresponding excitation signal is generated according to the waveform timing relationship. In the whole process described above, there is no need to perform repeated debugging and programming for a long time to generate the excitation signal, and the excitation signal can be quickly generated.
[0117] In one embodiment of the present invention, the acquisition module 601 is specifically used for:
[0118] Based on the pre-constructed timing relationship of the excitation signal waveform, a waveform description text describing the timing relationship of the waveform is generated;
[0119] Generate a target VCD file based on the above waveform description text.
[0120] In one embodiment of the present invention, the above device further includes:
[0121] The first test module 604 is used to perform a simulation test on the DUT based on the generated stimulus signal.
[0122] The acquisition module 605 is used to acquire the output signal of the above-mentioned DUT.
[0123] The comparison module 606 is used to compare the output signal with the expected output signal represented by the expected information recorded in the target VCD file.
[0124] The stopping module 607 is used to stop the simulation test when the output signal and the expected output signal do not meet the preset matching condition.
[0125] As can be seen from the above, in the solution provided by the embodiment of the present invention, the DUT is simulated and tested using the generated stimulus signal, and the output signal of the DUT is compared with the expected output signal. If it is found that the output signal of the DUT and the expected output signal do not meet the preset matching condition, indicating that the current test of the DUT deviates from the expectation, the current simulation test is stopped and no simulation test resources are occupied.
[0126] In one embodiment of the present invention, the comparison module 606 is specifically used for:
[0127] In the case that the output signal is not a preset ignore signal, the output signal is compared with the expected output signal represented by the expected information recorded in the target VCD file.
[0128] By comparing the output signal with the expected output signal only when the output signal is not a preset ignored signal, the comparison process of the output signal with the expected output signal can be accelerated without affecting the DUT performance evaluation result, thereby improving the evaluation efficiency of the DUT performance.
[0129] In one embodiment of the present invention, the above device further includes:
[0130] The second determination module 608 is used to determine the correspondence between different stimulus signals and different interfaces of the DUT.
[0131] The second test module 609 is used to input the stimulus signal into the corresponding interface of the DUT according to the corresponding relationship, and perform simulation test on the DUT.
[0132] It can be seen from the above that in the solution provided by the embodiment of the present invention, by determining the correspondence between different stimulus signals and different interfaces of the DUT, the correctness of the input of the stimulus signal can be guaranteed, thereby ensuring the normal progress of the DUT simulation test.
[0133] See also Figure 7 , is a schematic diagram of the structure of a chip testing device provided by an embodiment of the present invention, comprising a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704;
[0134] Memory 703, used for storing computer programs;
[0135] The processor 701 is used to implement any step of the aforementioned excitation signal generating method when executing the program stored in the memory 703.
[0136] As can be seen from the above, in the solution provided by the embodiment of the present invention, since the target VCD file records the time when the excitation signal changes and the level value of the excitation signal after the change, the waveform timing relationship of the excitation signal in the target VCD file can be obtained based on this, and then the corresponding excitation signal is generated according to the waveform timing relationship. In the whole process described above, there is no need to perform repeated debugging and programming for a long time to generate the excitation signal, and the excitation signal can be quickly generated.
[0137] The communication bus mentioned in the chip test equipment can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0138] The communication interface is used for communication between the above chip testing equipment and other equipment.
[0139] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0140] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0141] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned excitation signal generating methods are implemented.
[0142] When the computer program stored in the computer-readable storage medium provided by the embodiment of the present invention is applied to generate the excitation signal, since the target VCD file records the time when the excitation signal changes and the level value of the excitation signal after the change, the waveform timing relationship of the excitation signal in the target VCD file can be obtained based on this, and then the corresponding excitation signal is generated according to the waveform timing relationship. In the whole process described above, there is no need to repeatedly debug the programming for a long time to generate the excitation signal, and the excitation signal can be quickly generated.
[0143] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any of the excitation signal generating methods in the above embodiments.
[0144] When the computer program product provided by the embodiment of the present invention is used to generate an excitation signal, since the target VCD file records the time when the excitation signal changes and the level value of the excitation signal after the change, the waveform timing relationship of the excitation signal in the target VCD file can be obtained based on this, and then the corresponding excitation signal is generated according to the waveform timing relationship. In the entire process described above, there is no need to perform repeated debugging and programming for a long time to generate the excitation signal, and the excitation signal can be quickly generated.
[0145] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0146] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0147] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, chip testing equipment, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0148] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A method for generating an excitation signal, characterized in that: Applied to chip testing equipment, the method comprises: Get the fast signal database FSDB file; Generate a target value change dump VCD file based on the FSDB file; Use a fast stimulus generator QSG to parse the target value change dump VCD file based on the configuration information CFG configuration file to obtain the waveform information of the stimulus signal recorded in the target value change dump VCD file, determine the moment when the level value of the stimulus signal changes and the level value after the change according to the waveform information of the stimulus signal recorded in the target value change dump VCD file, and determine the waveform timing relationship of the stimulus signal, the CFG configuration file contains the correspondence between different stimulus signals and different interfaces of the design DUT to be tested, and the expected information representing the expected output signal, the correspondence between different stimulus signals and different interfaces of the DUT is used to enable the interface ITF component to transmit the stimulus signal to the corresponding interface of the DUT, and the ITF component receives the correspondence between different stimulus signals and different interfaces of the DUT sent by the QSG through the CFG configuration path; An excitation signal is generated according to the waveform timing relationship.
2. The method according to claim 1, characterized in that: After generating the excitation signal according to the waveform timing relationship, the method further includes: Perform simulation test on the DUT based on the generated stimulus signal; Collecting an output signal of the DUT; Comparing the output signal with the expected output signal represented by the expected information recorded in the target value change dump VCD file; When the output signal and the expected output signal do not satisfy a preset matching condition, the simulation test is stopped.
3. The method according to claim 2, characterized in that The comparing the output signal with the expected output signal represented by the expected information recorded in the target value change dump VCD file includes: In the case where the output signal is not a preset ignore signal, the output signal is compared with an expected output signal represented by the expected information recorded in the target value change dump VCD file.
4. The method according to any one of claims 1 to 3, characterized in that After generating the excitation signal according to the waveform timing relationship, the method further includes: Determine the correspondence between different stimulus signals and different interfaces of DUT; According to the corresponding relationship, the excitation signal is input into the corresponding interface of the DUT to perform a simulation test on the DUT.
5. An excitation signal generating device, characterized in that: Applied to chip testing equipment, the device comprises: An acquisition module, used for acquiring a fast signal database FSDB file, and generating a target value change dump VCD file based on the FSDB file; A first determination module is used to use a fast stimulus generator QSG to parse the target value change dump VCD file based on the configuration information CFG configuration file, obtain the waveform information of the stimulus signal recorded in the target value change dump VCD file, determine the moment when the level value of the stimulus signal changes and the level value after the change according to the waveform information of the stimulus signal recorded in the target value change dump VCD file, and determine the waveform timing relationship of the stimulus signal, wherein the CFG configuration file contains the correspondence between different stimulus signals and different interfaces of the design DUT to be tested, and the expected information indicating the expected output signal, and the correspondence between different stimulus signals and different interfaces of the DUT is used to enable the interface ITF component to transmit the stimulus signal to the corresponding interface of the DUT, and the ITF component receives the correspondence between different stimulus signals and different interfaces of the DUT sent by the QSG through the CFG configuration path; A generating module is used to generate an excitation signal according to the waveform timing relationship.
6. The device according to claim 5, characterized in that The device also includes: The first test module is used to perform simulation test on the DUT based on the generated stimulus signal; An acquisition module, used for acquiring the output signal of the DUT; A comparison module, used for comparing the output signal with an expected output signal represented by the expected information recorded in the target value change dump VCD file; The stopping module is used to stop the simulation test when the output signal and the expected output signal do not meet the preset matching condition.
7. The device according to claim 6, characterized in that The comparison module is specifically used for: In the case where the output signal is not a preset ignore signal, the output signal is compared with an expected output signal represented by the expected information recorded in the target value change dump VCD file.
8. The device according to any one of claims 5 to 7, characterized in that: The device also includes: The second determination module is used to determine the correspondence between different stimulus signals and different interfaces of the DUT; The second test module is used to input the excitation signal into the corresponding interface of the DUT according to the corresponding relationship, and perform simulation test on the DUT.
9. A chip testing device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-4 when executing a program stored in a memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
