Waveform data preloading method and apparatus, and electronic device

By using a Pin-based encoding and compression method to identify the repetition pattern of the Pin code and compress and encode the Pattern data, the problem of long Pattern data preloading time in semiconductor testing is solved, and more efficient data transmission and preloading is achieved.

CN120546705BActive Publication Date: 2025-10-10HANGZHOU CHANGCHUAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511013631.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-23
Publication Date
2025-10-10
Estimated Expiration
2045-07-23

AI Technical Summary

Technical Problem

In semiconductor testing, the preloading time of pattern data is too long, and existing compression schemes are inefficient or cause data expansion, affecting test efficiency.

Method used

The coding compression method based on Pin is adopted. By identifying the repetitive rules of Pin code, the Pattern data is compressed and encoded, and then decompressed and preloaded on the lower computer side, and the repetitiveness of Pin is used for efficient compression.

Benefits of technology

It improves the preloading efficiency of pattern data, reduces data transmission time, and improves the interaction efficiency between the host computer and the slave computer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120546705B_ABST
    Figure CN120546705B_ABST
Patent Text Reader

Abstract

The application relates to a waveform data preloading method and device and electronic equipment. The method comprises the following steps: receiving a plurality of pin corresponding test encoding results issued by an upper computer, wherein the test encoding result comprises a data format, encoding data and a repetition indication parameter; the data format is used for indicating the data type of the encoding data; the repetition indication parameter is used for indicating that the encoding data is not repeated and is only reserved during decompression, or indicating the repetition number of the encoding data during decompression; decompressing the encoding data based on the data format and the repetition indication parameter to obtain original waveform data used for testing each pin; and preloading the original waveform data corresponding to each pin into a storage unit; wherein the original waveform data corresponding to the same pin is stored in the same row of the storage unit, and the original waveform data corresponding to different pins is stored in different rows. The method can improve the preloading efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of semiconductor testing technology, and in particular to a waveform data preloading method, device, and electronic equipment. Background Art

[0002] In the field of semiconductor testing, a host computer typically preloads pattern data (i.e., waveform data or test vectors) for testing pins into a storage unit (e.g., memory) on a slave computer. Pattern data is a collection of time-sequentially arranged code patterns used to test pins for proper operation. When a test task requires the pattern data, the slave computer retrieves it from the storage unit and supplies it to the PatternGenerator module.

[0003] However, since the amount of pattern data is usually large, the preloading time is very long. Therefore, how to improve the preloading efficiency of pattern data is an urgent problem to be solved. Summary of the Invention

[0004] Based on this, it is necessary to provide a waveform data preloading method, device, electronic device, computer-readable storage medium and computer program product that can improve preloading efficiency in response to the above technical problems.

[0005] In a first aspect, the present application provides a waveform data preloading method, the method comprising:

[0006] Receive test coding results corresponding to multiple pins sent by the host computer, the test coding results including data format, coded data and repeat indication parameter; wherein the data format is used to indicate the data type of the coded data; the repeat indication parameter is used to indicate whether the coded data is to be retained without being repeated during decompression, or to indicate the number of times the coded data is repeated during decompression;

[0007] Decompress the encoded data based on the data format and repeat indication parameters to obtain the original waveform data for testing each pin;

[0008] The original waveform data corresponding to each pin is preloaded into the storage unit; wherein the original waveform data corresponding to the same pin is stored in the same row of the storage unit, and the original waveform data corresponding to different pins are stored in different rows.

[0009] In one embodiment, when the data format is a fixed code pattern, the encoded data is a fixed code pattern data, and the repetition indication parameter is used to indicate the number of repetitions M of the fixed code pattern data, where M is ≥ 1 and is a positive integer;

[0010] Decompress the encoded data based on the data format and repeat indication parameters to obtain the original waveform data used to test each pin, including:

[0011] In the case where the data format is a fixed code pattern, fixed code pattern data is extracted from the test encoding result, and M fixed code pattern data are generated to decompress and reconstruct the original waveform data.

[0012] In one embodiment, when the data format is a cyclic code pattern, the encoded data is a code pattern segment or a code table number used to indicate the code pattern segment; the code pattern segment includes multiple code pattern data; the repetition indication parameter is used to indicate the number of repetitions N of the code pattern segment, where N is ≥ 1 and is a positive integer;

[0013] Decompress the encoded data based on the data format and repeat indication parameters to obtain the original waveform data used to test each pin, including:

[0014] In the case where the data format is a cyclic code pattern, extracting a code pattern segment from the test coding result, or extracting a code table sequence number from the test coding result and obtaining the code pattern segment indicated by the code table sequence number from the target code table in the storage unit;

[0015] Generate N pattern segments to decompress and reconstruct the original waveform data.

[0016] In one embodiment, when the data format is raw data, the encoded data is raw waveform data, and the repetition indication parameter is used to indicate that the encoded data is not repeated but retained during decompression;

[0017] Decompress the encoded data based on the data format and repeat indication parameters to obtain the original waveform data used to test each pin, including:

[0018] When the data format is raw data, the raw waveform data is extracted from the test encoding result and retained.

[0019] In one embodiment, the test encoding result corresponding to a pin includes multiple sub-encoding results, each of which is obtained by compressing and encoding a sub-waveform data segment in the original waveform data; each sub-encoding result includes a data format, encoding data, and a repeat indication parameter;

[0020] Decompress the encoded data based on the data format and repeat indication parameters to obtain the original waveform data used to test each pin, including:

[0021] Based on the data format and repetition indication parameter in each sub-encoding result, decompress the corresponding encoded data to obtain sub-waveform data corresponding to the sub-encoding result;

[0022] According to the sub waveform data corresponding to the plurality of sub encoding results respectively, the original waveform data is obtained.

[0023] In a second aspect, the application further provides another waveform data preloading method, which comprises:

[0024] An original waveform file for testing a plurality of pins is obtained; the original waveform file includes original waveform data corresponding to each pin;

[0025] According to the code type repetition rule in the original waveform data corresponding to each pin, the original waveform data is compressed and encoded to obtain a test encoding result corresponding to each pin; the test encoding result includes a data format, encoded data and a repetition indication parameter; the data format is used to indicate the data type of the encoded data; the repetition indication parameter is used to indicate that the encoded data is not repeated and only retained during decompression, or to indicate the repetition number of the encoded data during decompression;

[0026] The test encoding result corresponding to each pin is issued to a lower computer, so that the lower computer obtains the original waveform data corresponding to each pin based on the test encoding result, and preloads the original waveform data into a storage unit.

[0027] In one embodiment, in the case that the original waveform data includes a single fixed code type data that is cyclically repeated, the data format is a fixed code type, the encoded data is a single fixed code type data, and the repetition indication parameter is the repetition number M of the fixed code type data, M≥1 and is a positive integer.

[0028] In one embodiment, in the case that the original waveform data includes a code type segment that is cyclically repeated, the data format is a cyclic code type, the encoded data is a code type segment or a code table serial number indicating the code type segment in a target code table, and the repetition indication parameter is the repetition number N of the code type segment, N≥1 and is a positive integer.

[0029] The target code table is preloaded into the storage unit of the lower computer, and the code table serial number is used to indicate that the lower computer obtains the code type segment from the target code table in the storage unit during decompression.

[0030] In one embodiment, according to the code type repetition rule in the original waveform data corresponding to each pin, the original waveform data is compressed and encoded to obtain a test encoding result corresponding to each pin, which comprises:

[0031] The original waveform data corresponding to each pin is traversed to analyze the code type repetition rule;

[0032] Each time original waveform data including a cyclically repeated code pattern segment is traversed, a final code pattern segment that is cyclically repeated in the original waveform data and is used for compression encoding is determined based on the maximum code length supported by a preset target code table, the final code pattern segment is added to the target code table, and a code table sequence number corresponding to the final code pattern segment in the target code table is obtained, until the traversal is completed, and the target code table after the traversal is completed is preloaded into the storage unit of the lower computer;

[0033] For each original waveform data including a cyclically repeated code pattern segment, a test coding result corresponding to the pin to which the original waveform data belongs is generated based on the data format representing the cyclic code pattern, the code table number corresponding to the final code pattern segment in the original waveform data, and the number of repetitions N corresponding to the final code pattern segment.

[0034] In one embodiment, when the code pattern of the original waveform data has no cyclic repetition pattern, the data format is the original data, the encoded data is the original waveform data, and the repetition indication parameter is used to indicate that the original waveform data is not repeated but only retained during decompression.

[0035] In one embodiment, the original waveform data is compressed and encoded according to the pattern repetition rule in the original waveform data corresponding to each pin to obtain the test encoding result corresponding to each pin, including:

[0036] For each pin, if there is more than one code pattern repetition pattern in the original waveform data corresponding to the pin, the original waveform data is divided into multiple segments of sub-waveform data; two adjacent segments of sub-waveform data correspond to different code pattern repetition patterns;

[0037] Based on the code pattern repetition rule corresponding to each segment of sub-waveform data, the sub-waveform data is compressed and encoded to obtain the corresponding sub-encoding result;

[0038] Generate the test coding result corresponding to the pin according to the sub-coding result corresponding to each segment of sub-waveform data.

[0039] In a third aspect, the present application further provides a waveform data preloading device, the device comprising:

[0040] The receiving module is used to receive the test coding results corresponding to multiple pins sent by the host computer, and the test coding results include data format, coded data and repeat indication parameter; wherein the data format is used to indicate the data type of the coded data; the repeat indication parameter is used to indicate whether the coded data is to be retained without being repeated during decompression, or to indicate the number of times the coded data is repeated during decompression;

[0041] A decompression module, configured to decompress the encoded data based on the data format and the repeat indication parameter to obtain the original waveform data for testing each pin;

[0042] The preloading module is used to preload the original waveform data corresponding to each pin into the storage unit; wherein the original waveform data corresponding to the same pin is stored in the same row of the storage unit, and the original waveform data corresponding to different pins are stored in different rows.

[0043] In a fourth aspect, the present application further provides a waveform data preloading device, the device comprising:

[0044] A compression encoding module is used to obtain an original waveform file for testing multiple pins; the original waveform file includes original waveform data corresponding to each pin; the original waveform data is compressed and encoded according to the code pattern repetition pattern in the original waveform data corresponding to each pin to obtain a test encoding result corresponding to each pin; the test encoding result includes a data format, encoded data, and a repetition indication parameter; the data format is used to indicate the data type of the encoded data; the repetition indication parameter is used to indicate that the encoded data is not repeated but retained during decompression, or to indicate the number of repetitions of the encoded data during decompression;

[0045] The coding result sending module is used to send the test coding results corresponding to multiple pins to the lower computer, so that the lower computer decompresses the test coding results to obtain the original waveform data corresponding to each pin, and preloads the original waveform data into the storage unit.

[0046] In a fifth aspect, the present application further provides an electronic device. The electronic device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method mentioned in the first aspect when executing the computer program.

[0047] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method mentioned in the first aspect.

[0048] In a seventh aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method mentioned in the first aspect.

[0049] The waveform data preloading method, apparatus, electronic device, computer-readable storage medium, and computer program product described above receive test encoding results corresponding to multiple pins from a host computer. The test encoding results include a data format, encoded data, and a repeat indicator parameter. The data format indicates the type of the encoded data, and the repeat indicator parameter indicates whether the encoded data should be retained during decompression or whether the encoded data should be repeated during decompression. It should be understood that pattern data for the same pin is highly repetitive, and compression encoding on a pin-by-pin basis can achieve a good compression effect without increasing the data size after compression. Therefore, the test encoding results issued by the host computer can be received more quickly, improving interaction efficiency with the host computer. Furthermore, the encoded data is decompressed based on the data format and repeat indicator parameter to obtain raw waveform data for testing each pin. The raw waveform data corresponding to each pin is preloaded into a storage unit. The raw waveform data corresponding to the same pin is stored in the same row of the storage unit, while the raw waveform data corresponding to different pins is stored in different rows. That is, the pattern data can be preloaded into the storage unit more quickly in units of pins, thereby improving the preloading efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A schematic diagram of a conventional solution for preloading waveform data in one embodiment;

[0051] Figure 2 is a schematic diagram of a waveform file in one embodiment;

[0052] Figure 3 This is an SPI timing diagram of a chip in one embodiment;

[0053] Figure 4 1 is a flow chart of a waveform data preloading method according to an embodiment;

[0054] Figure 5 is a flow chart of a waveform data preloading method according to another embodiment;

[0055] Figure 6 is a timing diagram of a waveform data preloading method in one embodiment;

[0056] Figure 7 is a structural block diagram of a waveform data preloading device in one embodiment;

[0057] Figure 8 is a structural block diagram of a waveform data preloading device in another embodiment;

[0058] Figure 9 FIG. 1 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0060] Figure 1 FIG. 1 is a schematic diagram of a conventional scheme for preloading waveform data in one embodiment. Figure 1 As shown, waveform data (i.e., Pattern data) is provided at the user layer. The waveform data provided belongs to the total waveform data and is used to test all Pins (also called Pin feet or pins). Specifically, the user usually inputs a configured Pattern file (i.e., a configured waveform file) based on the upper computer. The Pattern file is configured with waveform data for testing multiple Pins (also called Pin feet or pins). The upper computer subpackages the waveform data and sends it to the lower computer according to the communication protocol. The lower computer receives the waveform data and stores the waveform data in a storage unit. It should be understood that the Pattern file in each embodiment of the present application is a file that has been generated and can be directly preloaded into the storage unit of the lower computer to perform the test.

[0061] from Figure 1 As can be seen, in traditional solutions, the host computer directly sends the raw pattern data to the slave computer. Raw pattern data is typically large, and due to limited communication bandwidth, preloading takes a very long time. Especially with the advancement of chip technology and its increasing complexity, the preloading time for pattern data is becoming increasingly longer. Generally speaking, preloading time is often on the order of hours, significantly affecting test efficiency.

[0062] Some schemes have proposed similar substitution compression schemes, such as dictionary encoding schemes, which compress and encode pattern data before transmitting it to the lower computer in an attempt to reduce the amount of data transmission.

[0063] In similar substitution compression schemes, similar data within a pattern is typically replaced with specific data. For example, a pointer or index pointing to the duplicate content replaces the duplicate content. This requires complex compression encoding calculations at the software level, and when there is less regular repeating data, the compression effect is poor. In some cases, the overhead of pointers or indexes (i.e., the number of bytes occupied by metadata used to identify the location of duplicate data) may exceed the original data length, causing data bloat and increasing the compressed data size.

[0064] To understand the problems of similar alternative compression schemes, we now combine Figure 2Give an example. Figure 2 A schematic diagram of a waveform file (ie, a Pattern file) configured by a user in one embodiment. Figure 2 In a pattern file, a line contains pattern data for multiple pins (such as Pin0, Pin1, Pin2, etc.). Taking the first line as an example, the pattern data corresponding to Pin0, Pin1, and Pin2 are 1, 0, and 0, respectively. It should be understood that pattern data is a collection of these pattern data.

[0065] For simplicity, Figure 2 Only a portion of the pins in the pattern file and a small amount of pattern data are shown. In reality, when viewed horizontally (i.e., by row), a real-world pattern file will contain dozens to hundreds of pins. When viewed vertically (i.e., by column), a real-world pattern file will contain millions to tens of millions of lines of pattern data.

[0066] The similar substitution compression scheme compresses the pattern data within a row (i.e., the pattern data for all pins within the same clock cycle) on a row-by-row basis. In some cases, the pattern data corresponding to different pins in the same row has little or no regular repetition, resulting in poor compression and even an increase in the amount of compressed data. Therefore, the similar substitution compression scheme has limited improvement in preloading efficiency and may even reduce it in some cases.

[0067] After in-depth research, the inventors of this application found that the pattern data of most Pins are highly repetitive. For example, a Pin remains at 1 in dozens or hundreds of lines. For another example, a Pin repeatedly sends out a code segment of 0101 in hundreds or thousands of lines.

[0068] For ease of understanding, combined Figure 3 Provide a schematic explanation. Figure 3 The SPI (Serial Peripheral Interface) timing diagram of the chip in an embodiment includes a diagram of the SCLK signal (Serial Clock, serial clock signal), a diagram of the CS signal (Chip Select, chip select signal), a diagram of the SDI signal (Serial Data Input, serial data input signal), and a diagram of the BUSY signal (busy status indication signal). Figure 3 WRITE DAC0 means writing 0 to the DAC (digital-to-analog converter), and WRITEDAC1 means writing 1 to the DAC (digital-to-analog converter).

[0069] It should be understood that the pattern data of a pin is a column of pattern data in the pattern file, that is, the pattern data of the pin in multiple clock cycles. Figure 2 For example, the Pattern file in , the Pattern data of Pin0 is a column of code data corresponding to Pin0: 1111_1111_1111_1111. Figure 3 The signal values ​​within each clock cycle in the signal graph correspond to the pattern data within each clock cycle in the pattern file. For example, a high-level signal can correspond to a pattern of 1, and a low-level signal can correspond to a pattern of 0. A signal graph corresponds to a column of pattern data for a pin. For example, the SCLK signal graph corresponds to a column of pattern data for a clock pin.

[0070] from Figure 3 It can be seen that the SCLK signal is in the clock waveform state of 0101 for a long time, the CS signal is in the long level state of 0 or 1 for a long time, the SDI signal is in the X state for a long time (the X state is a special state for the tester, which means that the pin level is not important), and the BUSY signal is in the long level state of H or L for a long time. Figure 3 This can more intuitively reflect that the pattern data of most Pins are highly repetitive.

[0071] The inventor of this application discovered through in-depth research that the pattern data of the same Pin is highly repetitive, and creatively utilized this feature to propose a unique new encoding compression method, that is, encoding and compressing the original pattern data in the pattern file in units of Pins.

[0072] Specifically, the host computer encodes and compresses the original pattern data on a pin-by-pin basis (i.e., compresses and encodes the pattern data for the same pin), and sends the compressed data (also known as the test encoding result) to the slave computer. The slave computer then decompresses the compressed data to obtain the original pattern data and preloads it into the storage unit.

[0073] Exemplarily, the host computer may be a PC (Personal Computer), a workstation or an ARM processor, the slave computer may be an ASIC (Application-Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array), etc., and the storage unit may be a DDR (Double Data Rate), an SSD (Solid State Drive), a Flash, a BlockRAM (Block Random Access Memory), etc.

[0074] Because pattern data for the same pin is highly repetitive, compression encoding per pin achieves better compression results without increasing the data size after compression. Consequently, the lower computer can more quickly receive compressed data from the upper computer, improving interaction efficiency with the upper computer and thus increasing the efficiency of pattern data preloading.

[0075] It should be noted that the novel encoding and compression method proposed in the embodiments of this application differs from conventional alternative compression schemes not only in that the encoding and compression are performed in units of Pins, but also in the specific processing methods or encoding rules of the compression encoding. Furthermore, the lower computer also differs in the processing methods for decompression and preloading, which will be described in detail below.

[0076] In one embodiment, Figure 4 As shown, a waveform data preloading method is provided, which is described by taking the application of the method to a host computer as an example. The method includes the following steps:

[0077] S402 , obtaining an original waveform file for testing a plurality of pins; the original waveform file includes original waveform data corresponding to each pin.

[0078] Specifically, the host computer responds to the user's operation and obtains the configured original waveform files for testing multiple pins. The original waveform files can be found in Figure 2 shown.

[0079] S404 , compress and encode the original waveform data according to the code pattern repetition rule in the original waveform data corresponding to each pin to obtain a test encoding result corresponding to each pin; the test encoding result includes data format, encoding data and repetition indication parameters.

[0080] Specifically, the host computer can split an entire pattern file (i.e., the original waveform file) into a data structure based on pins, that is, into the original waveform data corresponding to each pin (the pattern data for each pin). Based on the code pattern repetition pattern in the original waveform data corresponding to each pin, the host computer compresses and encodes the original waveform data corresponding to each pin according to preset encoding rules, and sends the test encoding results corresponding to each pin to the slave computer. The code pattern repetition pattern refers to the repetitive change pattern of the code pattern data in the original waveform data corresponding to the same pin.

[0081] by Figure 2 For example, the Pattern file in , based on the pin (Pin), can be divided into at least:

[0082] Pin0 pattern data: 1111_1111_1111_1111;

[0083] Pin1's pattern data: 0101_0101_0101_0101;

[0084] Pin2's pattern data: 0000_0100_0010_1101.

[0085] Pin0, Pin1, and Pin2 each have their own corresponding test encoding results. Taking Pin0 as an example, the test encoding result corresponding to Pin0 refers to the result generated by compressing and encoding 1111_1111_1111_1111.

[0086] Exemplarily, the preset encoding rules include at least three fields, namely a data format field (for recording the data format), an encoded data field (for recording the encoded data), and a repeat indication parameter field (for recording the repeat indication parameter). The test encoding result corresponding to each pin includes the data format, encoded data, and repeat indication parameter. That is, the test encoding result corresponding to each pin includes the specific information recorded in the above three fields. Exemplarily, Table 1 is used to illustrate the encoding rules in the embodiment of the present application. In Table 1, Field 0 is the digital format field, Field 1 is the encoded data field, and Field 2 is the repeat indication parameter field.

[0087] Table 1

[0088]

[0089] The encoded data indicates the substantive, valid data obtained after compression encoding (i.e., after redundancy removal) of the original waveform data. This encoded data must be decompressed to restore the original waveform data. For example, the encoded data may be the substantive, valid data itself, or index data indicating access to the substantive, valid data, where the index data has fewer bits than the substantive, valid data.

[0090] The data format is used to indicate the data type of the encoded data. Exemplarily, the data format can include at least one of a fixed pattern, a cyclic pattern, or raw data. A fixed pattern indicates that the substantive valid data indicated by the encoded data is a fixed, single pattern (also referred to as fixed pattern data). A cyclic pattern indicates that the substantive valid data indicated by the encoded data is a cyclically repeating pattern segment. Raw data indicates that the substantive valid data indicated by the encoded data is the original, full waveform data (i.e., the original waveform data before compression encoding).

[0091] The repetition indication parameter is used to indicate that the coded data should be retained without being repeated during decompression, or to indicate the number of times the coded data should be repeated during decompression. For example, when the coded data format is raw data, the repetition indication parameter is used to indicate that the coded data should be retained without being repeated during decompression. When the coded data format is a fixed pattern or a cyclic pattern, the repetition indication parameter is used to indicate the number of times the coded data should be repeated during decompression.

[0092] S406 , sending the test coding results corresponding to the plurality of pins to the lower computer, so that the lower computer decompresses the test coding results based on the test coding results to obtain the original waveform data corresponding to each pin, and preloads the original waveform data into the storage unit.

[0093] Specifically, the host computer can transmit the test code results corresponding to each pin to the slave computer. The data volume of the test code results corresponding to each pin is much smaller than the original waveform data corresponding to each pin, and thus can be transmitted to the slave computer more quickly. The slave computer can decompress the test code results to obtain the original waveform data corresponding to each pin and preload the original waveform data into the storage unit.

[0094] In the above method, compression encoding is performed in pin units, which can achieve good compression effects and avoid the situation where the data volume increases after compression. Therefore, the test encoding results can be sent to the lower computer more quickly, improving the interaction efficiency between the lower computer and the overall preloading efficiency.

[0095] In addition, through the unique encoding rules in this application, the waveform data can be compressed and encoded concisely and effectively, and the lower computer can decompress it more quickly, further improving the preloading efficiency.

[0096] In some embodiments, if the original waveform data for a pin includes a single, cyclically repeated fixed pattern data, the host computer may determine the data format as a fixed pattern, use the single fixed pattern data as the encoding data, and determine the repetition indication parameter as the number of repetitions M corresponding to the fixed pattern data, where M ≥ 1 and is a positive integer. Furthermore, the host computer may generate a test encoding result for the pin based on the determined data format, the single fixed pattern data, and the number of repetitions M.

[0097] by Figure 2 For example, the data pattern for Pin 0 is 1111_1111_1111_1111. Analysis reveals that the pattern repetition pattern is a fixed pattern 1 repeated 16 times. Therefore, the data format is a fixed pattern, the encoded data is pattern 1, and the number of repetitions M of pattern 1 during decompression is 16. Assuming compression encoding is performed according to the encoding rules shown in Table 1, the test encoding result for Pin 0 is {1-fixed pattern, pattern 1 repeated 16 times}. Clearly, excellent compression is achieved.

[0098] In some embodiments, when the original waveform data includes a cyclically repeated code pattern segment, the data format is a cyclic code pattern, the encoded data is the code pattern segment or the code table number indicating the code pattern segment in the target code table, and the repetition indication parameter is the number of repetitions N corresponding to the code pattern segment, where N≥1 and is a positive integer.

[0099] Specifically, the raw waveform data for multiple pins may include cyclically repeating pattern segments. The pattern repetition pattern in this raw waveform data indicates that the pattern segments repeat cyclically within the raw waveform data. For ease of presentation, this type of raw waveform data is referred to as target raw waveform data. For each (or each) piece of target raw waveform data, the host computer can determine whether the data format is a cyclic pattern and the number of repetitions N of the pattern segment in the target raw waveform data. The host computer can use the pattern segment as encoded data or store it in a target code table, using the code table sequence number of the pattern segment in the target code table as the encoded data.

[0100] Furthermore, for each target original waveform data, the host computer can generate the test coding result of the pin to which the target original waveform data belongs based on the code pattern segment or code table number, combined with the determined data format and repetition number N. M and N can be the same or different.

[0101] by Figure 2For example, consider the pattern data for Pin 1: 0101_0101_0101_0101. Analysis reveals that the pattern repetition pattern is: pattern segment 0101_0101 is repeated twice. Therefore, the data format is a cyclic pattern, with a repetition count N of 2. The host computer can store pattern segment 0101_0101 in the target code table. Table 2 below illustrates the correspondence between code table numbers and pattern segments in the target code table. As shown in Table 2, pattern segment 0101_0101 corresponds to code table number 0 in the target code table, so pattern number 0 can be used as the encoded data. Combined with the encoding rules shown in Table 1, the test encoding result for Pin 1 is {2-cyclic pattern, code table number 0, repeated twice}. Clearly, code table number 0 has a smaller data size than pattern segment 0101_0101, so performing compression encoding based on pattern number 0 can further improve the compression effect.

[0102] Table 2

[0103]

[0104] It should be understood that all code segments in the target raw waveform data are stored in the target code table. In other words, a target code table records multiple cyclically repeated code segments in the target raw waveform data and used for compression encoding. For example, if there are 32 pins in total, and the raw waveform data of three pins (Pin0, Pin3, and Pin9) contains cyclically repeated code segments, then there are three target raw waveform data. The cyclically repeated code segments in these three target raw waveform data can be stored in the target code table respectively.

[0105] The host computer can preload a target code table containing multiple target pattern segments from the original waveform data into the storage unit of the slave computer, so that the slave computer can retrieve the pattern segment indicated by the code table sequence number from the target code table in the storage unit during decompression. The length of the pattern segment should not exceed the maximum code length supported by the target code table (i.e., the maximum length that the target code table can store). For example, the maximum code length can be 512 bits, or other bit lengths, depending on the storage capacity of the slave computer.

[0106] In some embodiments, the host computer can traverse the original waveform data corresponding to each pin to analyze the code pattern repetition pattern; each time the original waveform data including a cyclically repeated code pattern segment (i.e., the target original waveform data) is traversed, the final code pattern segment in the original waveform data that is cyclically repeated and used for compression encoding is determined based on the maximum code length supported by the preset target code table. The host computer can add the final code pattern segment to the target code table, obtain the code table sequence number corresponding to the final code pattern segment in the target code table, until the traversal is completed, and preload the target code table after the traversal into the storage unit of the lower computer. It should be understood that the target code table after the traversal is completed records the final code pattern segment in all target original waveform data (i.e., the original waveform data including the cyclically repeated code pattern segment).

[0107] For each original waveform data including a cyclically repeated code pattern segment, the upper computer can generate a test coding result corresponding to the pin to which the original waveform data belongs based on the data format representing the cyclic code pattern, the code table number corresponding to the final code pattern segment in the original waveform data, and the number of repetitions N corresponding to the final code pattern segment.

[0108] A cyclically repeating pattern segment is equivalent to a cyclic unit. In some cases, the pattern data of a pin can be split into different cyclic units (i.e., it is not limited to a single cyclically repeating pattern segment). Taking the pattern data of Pin 1: 0101_0101_0101_0101 as an example, it can be split into four repetitions of 0101 or two repetitions of 0101_0101. In this case, the host computer can determine the final pattern segment for compression encoding from multiple candidate pattern segments based on the maximum code length supported by the target code table. In other words, the length of the final determined pattern segment should not exceed the maximum code length supported by the target code table.

[0109] For example, if there are multiple code pattern segments with lengths less than the maximum code length, the host computer may randomly select one or select one according to a preset rule as the final code pattern segment for compression encoding. The host computer may also further analyze the code pattern segments in combination with other data to select the code pattern segment most suitable for compression encoding from the multiple code pattern segments with lengths less than the maximum code length.

[0110] Specifically, the host computer can calculate the amount of data after compression encoding based on each cyclically repeated pattern segment. Based on the amount of compressed data corresponding to each pattern segment and the maximum code length supported by the target code table, the host computer can determine the pattern segment to be ultimately used for compression encoding. For example, the host computer can select the pattern segment corresponding to the minimum amount of compressed data from candidate pattern segments whose lengths do not exceed the maximum code length as the final pattern segment to be used for compression encoding. In this way, using more appropriate pattern segments can more effectively improve compression performance.

[0111] To illustrate with the above example, assuming that the maximum code length supported by the target code table is greater than 8, and the amount of compressed data after splitting the Pattern data of Pin1 into the code segment 0101_0101 for compression encoding is less than the amount of compressed data after splitting it into the code segment 0101 for compression encoding, then it can be determined that the code segment of the loop repetition is 0101_0101, and the number of repetitions N is 2, so compression encoding is performed.

[0112] In some embodiments, if the pattern of the pin's original waveform data lacks a cyclic repetition pattern, the host computer may determine that the data format is original data, use the original waveform data as the encoded data, and use a repetition indicator parameter to indicate that the original waveform data should not be repeated but retained during decompression. The host computer may generate a test encoding result for the pin based on the original waveform data, the determined data format, and the repetition indicator parameter.

[0113] For example, the value of the Repeat Indication Parameter, which indicates that the original waveform data is retained without being repeated during decompression, can be empty. That is, when the value of the Repeat Indication Parameter field is empty, it indicates that the original waveform data is retained without being repeated during decompression. In other examples, the Repeat Indication Parameter field can also use a specific flag value to indicate that the original waveform data is retained without being repeated during decompression. This is not limited to this.

[0114] by Figure 2 For example, the pattern data for Pin 2 is: 0000_0100_0010_1101. Since the code pattern in this pattern data has no obvious cycle period or obvious cyclic repetition pattern, the data format is original data, the encoded data is 0000_0100_0010_1101 (i.e., original waveform data), and the repeat indicator parameter is empty. Combined with the encoding rules shown in Table 1, the test encoding result for Pin 2 is {0-original data, 0000_0100_0010_1101}. It should be understood that since the repeat indicator parameter field is blank, it is not shown in the test encoding result.

[0115] The above scheme can achieve the effect of not increasing the data volume even for waveform data with no repetitive patterns. Compared with the traditional scheme in which the data volume increases after compression coding, the coding effect is better.

[0116] In some embodiments, in step S404, the original waveform data is compressed and encoded according to the code pattern repetition pattern in the original waveform data corresponding to each pin to obtain a test coding result corresponding to each pin, including: for each pin, when there is more than one code pattern repetition pattern in the original waveform data corresponding to the pin, the original waveform data is divided into multiple segments of sub-waveform data; two adjacent segments of sub-waveform data correspond to different code pattern repetition patterns; the sub-waveform data is compressed and encoded based on the code pattern repetition pattern corresponding to each segment of sub-waveform data to obtain a corresponding sub-coding result; and the test coding result corresponding to the pin is generated according to the sub-coding results corresponding to each segment of sub-waveform data.

[0117] Specifically, the raw waveform data corresponding to a pin may have more than one pattern repetition pattern. Based on the multiple pattern repetition patterns in the raw waveform data, the host computer can divide the raw waveform data into multiple sub-waveform data segments, each with a corresponding pattern repetition pattern. The sub-waveform data segments are sequential, with adjacent sub-waveform data segments corresponding to different pattern repetition patterns. Non-adjacent sub-waveform data segments can have the same or different pattern repetition patterns, without limitation.

[0118] The host computer can compress and encode each segment of sub-waveform data based on the code pattern repetition rule corresponding to the segment of sub-waveform data to obtain the corresponding sub-encoding result, and generate the test encoding result corresponding to the pin based on the sub-encoding results corresponding to multiple segments of sub-waveform data.

[0119] For example, a pin's pattern data consists of 10W bits. The first 5W bits might be cyclically repeating a fixed pattern (i.e., pattern repetition rule 1). Assuming the fixed pattern is 1, the first 5W bits contain 50,000 instances of pattern 1. The remaining 5W bits are cyclically repeating a pattern segment (i.e., pattern repetition rule 2). Assuming the pattern segment is 0101, the remaining 5W bits contain 1.25W instances of the 0101 pattern segment. 0101 is stored in the target code table, resulting in code table index 0. The host computer can encode the first 5W bits of data as {1-fixed pattern, pattern 1, repeated 5W times} and the remaining 5W bits as {2-cyclic pattern, code table index 0, repeated 1.25W times}. Then, the test encoding result corresponding to the Pin includes two sub-encoding results: {1-fixed code pattern, code pattern is 1, repeated 50,000 times} and {2-cyclic code pattern, code table sequence number is 0, repeated 1.25W times}.

[0120] It should be understood that the compression encoding principle of each segment of sub-waveform data is the same as that of the entire original waveform data. The only difference is the data size of the waveform data, so it will not be repeated here.

[0121] Exemplarily, the multiple sub-encoding results in the test encoding result are arranged in sequence. Therefore, after decompressing the multiple sub-encoding results, the lower computer can combine the decompressed multiple sub-waveform data segments according to this sequence to reconstruct and restore the complete original waveform data. In other examples, the test encoding result may further include a field for recording the sequence between the multiple sub-encoding results. The lower computer can combine the decompressed multiple sub-waveform data segments according to the sequence recorded in this field to reconstruct and restore the complete original waveform data.

[0122] The above scheme, by identifying the repetition patterns of multiple code patterns and splitting multiple segments of sub-waveform data for compression coding, refines the granularity of compression coding and can perform compression coding more fully and flexibly.

[0123] In one embodiment, Figure 5 As shown, a waveform data preloading method is provided, which is described by taking the application of the method to a lower computer as an example, and includes the following steps:

[0124] S502, receiving test coding results corresponding to a plurality of pins respectively issued by a host computer, the test coding results including a data format, coded data and a repeat indication parameter.

[0125] S504 : Decompress the coded data based on the data format and the repetition indication parameter to obtain original waveform data for testing each pin.

[0126] Specifically, the lower computer can determine the decompression method of the coded data based on the data format in the test coding result corresponding to each pin, and implement the decompression processing of the coded data in combination with the repeat indication parameter to obtain the original waveform data. A more detailed decompression process will be described later.

[0127] S506 , pre-loading the original waveform data corresponding to each pin into a storage unit; wherein the original waveform data corresponding to the same pin is stored in the same row of the storage unit, and the original waveform data corresponding to different pins are stored in different rows.

[0128] After decompressing the raw waveform data corresponding to each pin, the lower computer preloads the raw waveform data corresponding to each pin into the storage unit, on a pin-by-pin basis. This way, raw waveform data corresponding to the same pin is stored in the same row of the storage unit, while raw waveform data corresponding to different pins is stored in different rows. It should be understood that the data length that can be stored in each row of the storage unit (i.e., the storage space for a single row) is limited, which is determined by the hardware characteristics of the storage unit itself. Therefore, raw waveform data corresponding to the same pin can be stored in multiple rows of the storage unit.

[0129] More specifically, the original waveform data corresponding to multiple pins can be stored alternately in a storage unit in a loop. That is, based on a single row of storage space in the storage unit, the original waveform data corresponding to multiple pins is sequentially split into multiple segments of sub-waveform data, and multiple rounds of cyclic storage are performed. In each round of storage, the sub-waveform data corresponding to multiple pins in the current round are sequentially stored in the storage unit, and then the next round of storage is performed. It should be understood that in each round of storage, the sub-waveform data for the same pin is stored in a row. After the sub-waveform data corresponding to the previous pin in the current round is stored, the sub-waveform data corresponding to the next pin in the current round is stored in the next row.

[0130] For example, suppose there are three pins, namely Pin0, Pin1, and Pin2. Then, in the first round of storage, the lower computer can first store the first round of sub-waveform data of Pin0 in the first row of the storage unit, store the first round of sub-waveform data of Pin1 in the second row, and store the first round of sub-waveform data of Pin2 in the third row, thus completing the first round of storage. In the second round of storage, the second round of sub-waveform data corresponding to Pin0, Pin1, and Pin2 are stored in rows 4 to 6, respectively. In this way, the original waveform data of multiple pins can be stored in the storage unit in a cyclic and alternating manner.

[0131] In this method, since pattern data for the same pin is highly repetitive, compression encoding on a pin-by-pin basis achieves superior compression. This allows for faster reception of test encoding results from the host computer, improving interaction efficiency with the host computer. Furthermore, based on the data format and repetition indication parameters, the encoded data is quickly and accurately decompressed, improving subsequent preloading efficiency.

[0132] In addition, a unique preloading processing method adapted to the encoding rules is adopted, that is, the pattern data is preloaded into the storage unit more quickly in units of pins, further improving the preloading efficiency.

[0133] In some embodiments, when the data format is a fixed code pattern, the encoded data is fixed code pattern data, and the repetition indication parameter is used to indicate the number of repetitions M of the fixed code pattern data, where M ≥ 1 and is a positive integer. In this embodiment, step S504 includes: when the data format is a fixed code pattern, extracting the fixed code pattern data from the test encoding result, and generating M fixed code pattern data to decompress and reconstruct the original waveform data.

[0134] Specifically, if the parsed data format is a fixed pattern, the lower computer can extract the fixed pattern data from the coded data field in the test coding result and extract the number of repetitions, M, from the repetition indication parameter field. Furthermore, based on the number of repetitions, M, the lower computer can generate M fixed pattern data to decompress and reconstruct the original waveform data. For example, if the test coding result is {1-fixed pattern, pattern 1, repeated 16 times}, 16 patterns of 1 will be generated during decompression, allowing for rapid decompression and reconstruction of the original pattern data: 1111_1111_1111_1111.

[0135] In some embodiments, when the data format is a cyclic pattern, the encoded data is a pattern segment or a code table number indicating a pattern segment; the pattern segment includes multiple pattern data; and the repetition indication parameter indicates the number of repetitions N of the pattern segment, where N ≥ 1 and is a positive integer. In this embodiment, step S504 includes: when the data format is a cyclic pattern, extracting the pattern segment from the test encoding result, or extracting the code table number from the test encoding result and obtaining the pattern segment indicated by the code table number from the target code table in the storage unit; and generating N pattern segments to decompress and reconstruct the original waveform data.

[0136] Specifically, when the parsed data format is a cyclic code pattern, the lower computer may extract the coded data from the coded data field in the test coding result, and extract the number of repetitions N from the repetition indication parameter field.

[0137] In some examples, when the encoded data is a code pattern segment, the lower computer may directly generate N code pattern segments based on the number of repetitions N to decompress and reconstruct the original waveform data.

[0138] In other examples, when the encoded data is a code table number indicating a pattern segment, the lower computer can retrieve the pattern segment indicated by the code table number from the target code table in the storage unit based on the code table number. Furthermore, N pattern segments are generated based on the number of repetitions N. For example, if the test encoding result is {2-cycle pattern, code table number 0, repeated 2 times}, and code table number 0 indicates pattern segment 0101_0101, then during decompression, two pattern segments 0101_0101 are generated, allowing for rapid decompression and reconstruction of the original pattern data: 0101_0101_0101_0101.

[0139] In some embodiments, when the data format is raw data, the encoded data is raw waveform data, and the repetition indication parameter is used to indicate that the encoded data is not repeated but retained during decompression. In this embodiment, step S504 includes: when the data format is raw data, extracting the raw waveform data from the test encoding result and retaining it.

[0140] Specifically, in the case that the data format is original data, it is indicated that the original waveform data is not compressed, the original waveform data is recorded in the field indicating the encoded data in the test encoding result, and the repetition indication parameter indicates reservation, for example, the value of the repetition indication parameter is empty. Therefore, the lower machine can extract and reserve the original waveform data, and realize fast decompression.

[0141] In some embodiments, the test encoding result corresponding to one pin includes a plurality of sub-encoding results, and each sub-encoding result is obtained by compressing and encoding a piece of sub-waveform data in the original waveform data; each sub-encoding result includes a data format, encoded data, and a repetition indication parameter. In this embodiment, step S404 includes: decompressing the encoded data corresponding to each sub-encoding result based on the data format and the repetition indication parameter in the sub-encoding result to obtain the sub-waveform data corresponding to the sub-encoding result; and obtaining the original waveform data according to the sub-waveform data corresponding to each sub-encoding result.

[0142] It should be understood that the decompression principle for each sub-encoding result is the same as the decompression principle for the test encoding result described above, which will not be described here.

[0143] As shown in FIG. 1, Figure 6 a timing diagram of a waveform data preloading method is provided, including the following steps:

[0144] (1) The user layer provides an original waveform file to the upper machine.

[0145] (2) The upper machine groups the original waveform file according to the pins.

[0146] (3) The upper machine analyzes the code type repetition rule in the original waveform data of each pin.

[0147] (4) In the case that there is no cyclic repetition rule in the code type data in the original waveform data (referred to as case 1), the upper machine generates the test encoding result of the pin according to the data format (original data), the original waveform data, and the repetition indication parameter indicating reservation.

[0148] Exemplarily, in the case that there is no cyclic repetition rule, the repetition indication parameter indicates that only reservation is performed without repetition, and the repetition indication parameter field is empty when the test encoding result is generated.

[0149] (5) In the case that there is cyclic repetition of fixed code type data in the original waveform data (referred to as case 2), the upper machine generates the test encoding result of the pin according to the data format (fixed code type), the fixed code type data, and the repetition number M of the fixed code type data.

[0150] (6) In the case that there is a cyclically repeated code segment in the original waveform data (referred to as case 3), the host computer generates the test encoding result of the pin according to the data format (cyclic code), the code table serial number of the code segment in the target code table, and the repetition number N of the code segment.

[0151] (7) The host computer instructs the lower computer to preload the target code table.

[0152] As can be seen from the foregoing, the preloaded target code table records a plurality of cyclically repeated code segments in the original waveform data for compression encoding.

[0153] (8) The lower computer receives the target code table.

[0154] (9) The lower computer stores the target code table in the storage unit.

[0155] (10) The host computer obtains the test encoding result of the plurality of pins.

[0156] (11) The host computer issues the test encoding result of each pin to the lower computer.

[0157] (12) The lower computer parses the data format in the test encoding result.

[0158] Exemplarily, when parsing the data format, the lower computer can first determine whether the data format is original data, and if not, determine whether the data format is a fixed code, and if not, determine whether the data format is a cyclic code. It should be noted that the focus of the embodiments of the present application is to adopt different decompression processing for different data formats, and the order of determining the data format is not limited.

[0159] (13) In the case that the data format is original data, the lower computer stores the waveform data in the storage unit.

[0160] That is, the original waveform data in the test encoding result is stored.

[0161] (14) In the case that the data format is a fixed code, the lower computer generates M fixed code data according to the repetition number M in the test encoding result to reconstruct the waveform data.

[0162] (15) The lower computer stores the waveform data in the storage unit.

[0163] That is, the reconstructed waveform data is stored. The reconstructed waveform data is the original waveform data of the pin.

[0164] (16) In the case that the data format is a cyclic code, the lower computer queries the corresponding code segment from the target code table in the storage unit according to the code table serial number in the test encoding result.

[0165] (17) The storage unit returns the code segment corresponding to the code table number to the lower computer.

[0166] (18) The lower computer copies the code segment according to the number of repetitions N in the test coding result to obtain N code segment.

[0167] (19) The lower computer reconstructs the waveform data of the pin based on the N code fragments.

[0168] It should be understood that the reconstructed waveform data is the original waveform data of the pin.

[0169] (20) The lower computer stores the waveform data in the storage unit.

[0170] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0171] Based on the same inventive concept, embodiments of the present application further provide a waveform data preloading device for implementing the aforementioned waveform data preloading method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more waveform data preloading device embodiments provided below can be found in the aforementioned limitations of the waveform data preloading method and will not be further elaborated here.

[0172] In one embodiment, Figure 7 As shown, a waveform data preloading device is provided, characterized in that the device includes:

[0173] The compression coding module 702 is used to obtain the original waveform file for testing multiple pins; the original waveform file includes the original waveform data corresponding to each pin; the original waveform data is compressed and encoded according to the code repetition pattern in the original waveform data corresponding to each pin to obtain the test coding result corresponding to each pin; the test coding result includes the data format, the encoded data and the repetition indication parameter; the data format is used to indicate the data type of the encoded data; the repetition indication parameter is used to indicate that the encoded data is not repeated but only retained during decompression, or to indicate the number of repetitions of the encoded data during decompression.

[0174] The coding result sending module 704 is used to send the test coding results corresponding to multiple pins to the lower computer, so that the lower computer decompresses the test coding results to obtain the original waveform data corresponding to each pin, and preloads the original waveform data into the storage unit.

[0175] In one embodiment, Figure 8 As shown, another waveform data preloading device is provided, comprising:

[0176] The receiving module 802 is used to receive the test coding results corresponding to the multiple pins sent by the host computer. The test coding results include a data format, coded data, and a repeat indication parameter. The data format is used to indicate the data type of the coded data. The repeat indication parameter is used to indicate whether the coded data should be retained during decompression or to indicate the number of times the coded data should be repeated during decompression.

[0177] A decompression module 804 is configured to decompress the encoded data based on the data format and the repeat indication parameter to obtain original waveform data for testing each pin;

[0178] The preloading module 806 is used to preload the original waveform data corresponding to each pin into the storage unit; wherein the original waveform data corresponding to the same pin is stored in the same row of the storage unit, and the original waveform data corresponding to different pins are stored in different rows.

[0179] Each module in the waveform data preloading device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in hardware form, or can be stored in a memory in the electronic device in software form, so that the processor can call and execute the corresponding operations of each module.

[0180] In one embodiment, an electronic device is provided. The electronic device may be a slave computer or a host computer, and its internal structure diagram may be as follows: Figure 9As shown in the figure. The electronic device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the electronic device is used to provide computing and control capability. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The input / output interface of the electronic device is used to exchange information between the processor and external devices. The communication interface of the electronic device is used to communicate with external terminals through network connection. The computer program is executed by the processor to implement a waveform data preloading method.

[0181] Those skilled in the art can understand that, Figure 9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0182] In one embodiment, an electronic device is provided, including a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the steps in the embodiments of the present application.

[0183] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and the computer program is executed by a processor to implement the steps in the embodiments of the present application.

[0184] In one embodiment, a computer program product is provided, including a computer program, and the computer program is executed by a processor to implement the steps in the embodiments of the present application.

[0185] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0186] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.

[0187] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0188] The above embodiments merely illustrate several embodiments of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A waveform data preloading method, characterized in that: The method comprises: Receive test coding results corresponding to multiple pins issued by the upper computer; each pin has its own corresponding test coding result, and the test coding result corresponding to each pin includes a data format, coding data and a repetition indication parameter; wherein the coding data corresponding to each pin is obtained by compressing and encoding the original waveform data corresponding to the pin; the data format is used to indicate the data type of the coding data; the data format is a fixed code pattern, a cyclic code pattern or original data; the fixed code pattern indicates that the substantial valid data indicated by the coding data is a single fixed code pattern data that is cyclically repeated, the cyclic code pattern indicates that the substantial valid data indicated by the coding data is a cyclically repeated code pattern segment, and the original data indicates that the substantial valid data indicated by the coding data is the original full waveform data; the repetition indication parameter corresponding to the original data is used to indicate that the coding data is not repeated but only retained during decompression; the repetition indication parameter corresponding to the fixed code pattern or the cyclic code pattern is used to indicate the number of repetitions of the coding data during decompression; Decompressing the encoded data based on the data format and the repeat indication parameter to obtain original waveform data for testing each of the pins; The original waveform data corresponding to each pin is preloaded into a storage unit; wherein the original waveform data corresponding to the same pin is stored in the same row of the storage unit, and the original waveform data corresponding to different pins are stored in different rows.

2. The method according to claim 1, characterized in that In the case where the data format is a fixed code pattern, the encoded data is a fixed code pattern data, and the repetition indication parameter is used to indicate the number of repetitions M of the fixed code pattern data, where M is ≥ 1 and is a positive integer; The decompressing the encoded data based on the data format and the repeat indication parameter to obtain original waveform data for testing each of the pins includes: In the case where the data format is a fixed code pattern, the fixed code pattern data is extracted from the test encoding result, and M fixed code pattern data are generated to decompress and reconstruct the original waveform data.

3. The method according to claim 1, characterized in that In the case where the data format is a cyclic code pattern, the coded data is a code pattern segment or a code table number used to indicate the code pattern segment; the code pattern segment includes multiple code pattern data; the repetition indication parameter is used to indicate the number of repetitions N of the code pattern segment, where N is ≥ 1 and is a positive integer; The decompressing the encoded data based on the data format and the repeat indication parameter to obtain original waveform data for testing each of the pins includes: In the case where the data format is a cyclic code pattern, extracting the code pattern segment from the test encoding result, or extracting the code table sequence number from the test encoding result and obtaining the code pattern segment indicated by the code table sequence number from a target code table in a storage unit; Generate N code pattern segments to decompress and reconstruct the original waveform data.

4. The method according to any one of claims 1 to 3, characterized in that In the case where the data format is original data, the coded data is the original waveform data, and the repetition indication parameter is used to indicate that the coded data is not repeated but retained during decompression; The decompressing the encoded data based on the data format and the repeat indication parameter to obtain original waveform data for testing each of the pins includes: In the case where the data format is original data, the original waveform data is extracted from the test encoding result and retained.

5. The method according to claim 1, wherein The test coding result corresponding to a pin includes multiple sub-coding results, each of which is obtained by compressing and coding a sub-waveform data segment in the original waveform data; each sub-coding result includes the data format, the coded data, and a repeat indication parameter; The decompressing the encoded data based on the data format and the repeat indication parameter to obtain original waveform data for testing each of the pins includes: decompressing the corresponding encoded data based on the data format and the repetition indication parameter in each sub-encoding result to obtain the sub-waveform data corresponding to the sub-encoding result; The original waveform data is obtained according to the sub-waveform data respectively corresponding to the plurality of sub-encoding results.

6. A waveform data preloading method, characterized in that: The method comprises: Obtaining an original waveform file for testing a plurality of pins; the original waveform file includes original waveform data corresponding to each pin; According to the code pattern repetition rule in the original waveform data corresponding to each pin, the original waveform data is compressed and encoded to obtain the test encoding result corresponding to each pin; the test encoding result corresponding to each pin includes a data format, encoding data and a repetition indication parameter; the encoding data corresponding to each pin is obtained by compressing and encoding the original waveform data corresponding to the pin; the data format is used to indicate the data type of the encoding data; the data format is a fixed code pattern, a cyclic code pattern or original data; the fixed code pattern indicates that the substantial valid data indicated by the encoding data is a single fixed code pattern data that is cyclically repeated, the cyclic code pattern indicates that the substantial valid data indicated by the encoding data is a cyclically repeated code pattern segment, and the original data indicates that the substantial valid data indicated by the encoding data is the original full waveform data; the repetition indication parameter corresponding to the original data is used to indicate that the encoding data is not repeated but only retained during decompression; the repetition indication parameter corresponding to the fixed code pattern or the cyclic code pattern is used to indicate the number of repetitions of the encoding data during decompression; The test coding results corresponding to multiple pins are sent to the lower computer, so that the lower computer decompresses the test coding results to obtain the original waveform data corresponding to each pin, and preloads the original waveform data into the storage unit.

7. The method according to claim 6, characterized in that In the case where the original waveform data includes a single fixed code pattern data that is cyclically repeated, the data format is a fixed code pattern, the encoded data is one fixed code pattern data, and the repetition indication parameter is the number of repetitions M corresponding to the fixed code pattern data, where M≥1 and is a positive integer.

8. The method according to claim 6, characterized in that In a case where the original waveform data includes a cyclically repeated code pattern segment, the data format is a cyclic code pattern, the encoded data is the code pattern segment or a code table sequence number indicating the code pattern segment in a target code table, and the repetition indication parameter is the number of repetitions N corresponding to the code pattern segment, where N is ≥ 1 and is a positive integer; The target code table is preloaded into the storage unit of the lower computer, and the code table sequence number is used to instruct the lower computer to obtain the code pattern segment from the target code table in the storage unit during decompression.

9. The method according to claim 8, characterized in that The method of compressing and encoding the original waveform data according to the code pattern repetition rule in the original waveform data corresponding to each pin to obtain the test coding result corresponding to each pin includes: Traversing the original waveform data corresponding to each pin to analyze the code pattern repetition regularity; Each time original waveform data including a cyclically repeated code pattern segment is traversed, a final code pattern segment that is cyclically repeated in the original waveform data and is used for compression encoding is determined based on the maximum code length supported by a preset target code table, the final code pattern segment is added to the target code table, and a code table sequence number corresponding to the final code pattern segment in the target code table is obtained, until the traversal is completed, and the target code table after the traversal is completed is preloaded into the storage unit of the lower computer; For each original waveform data including a cyclically repeated code pattern segment, a test coding result corresponding to the pin to which the original waveform data belongs is generated based on the data format representing the cyclic code pattern, the code table number corresponding to the final code pattern segment in the original waveform data, and the number of repetitions N corresponding to the final code pattern segment.

10. The method according to claim 6, characterized in that When the code pattern of the original waveform data has no cyclic repetition pattern, the data format is original data, the encoded data is the original waveform data, and the repetition indication parameter is used to indicate that the original waveform data is not repeated but only retained during decompression.

11. The method according to any one of claims 6 to 8, characterized in that The method of compressing and encoding the original waveform data according to the code pattern repetition rule in the original waveform data corresponding to each pin to obtain the test coding result corresponding to each pin includes: For each pin, if there is more than one code pattern repetition regularity in the original waveform data corresponding to the pin, the original waveform data is divided into multiple segments of sub-waveform data; two adjacent segments of sub-waveform data correspond to different code pattern repetition regularities; Compression encoding is performed on the sub-waveform data based on a code pattern repetition rule corresponding to each segment of sub-waveform data to obtain a corresponding sub-encoding result; According to the sub-coding results corresponding to the sub-waveform data of each segment, a test coding result corresponding to the pin is generated.

12. A waveform data preloading device, characterized in that: The device comprises: A receiving module, for receiving test coding results corresponding to multiple pins issued by a host computer; each pin has its own corresponding test coding result, and the test coding result corresponding to each pin includes a data format, coding data and a repetition indication parameter; wherein the coding data corresponding to each pin is obtained by compressing and encoding the original waveform data corresponding to the pin; the data format is used to indicate the data type of the coding data; the data format is a fixed code pattern, a cyclic code pattern or original data; the fixed code pattern indicates that the substantial valid data indicated by the coding data is a single fixed code pattern data that is cyclically repeated, the cyclic code pattern indicates that the substantial valid data indicated by the coding data is a cyclically repeated code pattern segment, and the original data indicates that the substantial valid data indicated by the coding data is the original full waveform data; the repetition indication parameter corresponding to the original data is used to indicate that the coding data is not repeated but only retained during decompression; the repetition indication parameter corresponding to the fixed code pattern or the cyclic code pattern is used to indicate the number of repetitions of the coding data during decompression; a decompression module, configured to decompress the encoded data based on the data format and the repeat indication parameter to obtain original waveform data for testing each of the pins; The preloading module is used to preload the original waveform data corresponding to each pin into the storage unit; wherein the original waveform data corresponding to the same pin is stored in the same row of the storage unit, and the original waveform data corresponding to different pins are stored in different rows.

13. A waveform data preloading device, characterized in that: The device comprises: A compression coding module is used to obtain an original waveform file for testing multiple pins; the original waveform file includes original waveform data corresponding to each pin; the original waveform data is compressed and encoded according to the code pattern repetition rule in the original waveform data corresponding to each pin to obtain a test coding result corresponding to each pin; the test coding result corresponding to each pin includes a data format, coding data and a repetition indication parameter; the coding data corresponding to each pin is obtained by compressing and encoding the original waveform data corresponding to the pin; the data format is used to indicate the data type of the coding data; the data format is a fixed code pattern, a cyclic code pattern or original data; the fixed code pattern indicates that the actual valid data indicated by the coding data is a single fixed code pattern data that is cyclically repeated, the cyclic code pattern indicates that the actual valid data indicated by the coding data is a cyclically repeated code pattern segment, and the original data indicates that the actual valid data indicated by the coding data is the original full waveform data; the repetition indication parameter corresponding to the original data is used to indicate that the coding data is not repeated but only retained during decompression; the repetition indication parameter corresponding to the fixed code pattern or the cyclic code pattern is used to indicate the number of repetitions of the coding data during decompression; The coding result sending module is used to send the test coding results corresponding to multiple pins to the lower computer, so that the lower computer decompresses the test coding results to obtain the original waveform data corresponding to each pin, and preloads the original waveform data into the storage unit.

14. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 or 6 to 11 are implemented.

Citation Information

Patent Citations

  • Coding method of test vector

    CN114325311A

  • Test machine code pattern data loading device and method and test machine

    CN118939182A