A verification architecture, verification method and electronic device for compression and decompression modules

Through the combination of verification mode selector, verification scenario configurator, stimulus generator and functional verifier, the problems of code redundancy and low verification reliability in traditional compression and decompression module verification are solved, and more efficient compression and decompression are achieved. Model validation and lower code redundancy.

CN118427801BActive Publication Date: 2024-09-10BEIJING SUIYUAN INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410889036.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-10
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

The traditional compression and decompression module verification method has problems with code redundancy and low verification reliability, which may lead to data transmission errors when the compression and decompression modules are used together.

Method used

Adopt a verification architecture including verification mode selector, verification scenario configurator, incentive generator and functional verifier. By displaying multiple verification modes and scenario types, incentive data is generated and compared to determine the compression and decompression functions of the device to be verified. Is it normal?

Benefits of technology

It reduces code redundancy in verification, improves the reusability and verification accuracy of compression and decompression models, and enhances the reliability of verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427801B
    Figure CN118427801B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a verification architecture, verification method and electronic device of a compression and decompression module. The verification architecture includes: a verification mode selector, which is used to display various verification modes and determine the current verification mode and the corresponding device to be tested; a verification scene configurator, which is used to display various scene types and determine the current scene information of the current verification mode; an incentive generator, which is used to generate incentive data according to the current verification mode and the current scene information; a function verifier, which is used to generate first data to be tested according to the incentive data based on the corresponding compression and decompression rules in the current verification mode; obtain the second data to be tested generated by the device to be tested according to the incentive data based on the corresponding compression and decompression rules; compare the first data to be tested with the second data to determine whether the compression and decompression function of the device to be tested in the current verification mode is normal. The verification architecture can improve the reusability of the compression and decompression model and reduce the code redundancy in verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a verification architecture, a verification method and an electronic device for a compression and decompression module. Background Art

[0002] In data processing, repeated characters in the data are usually replaced by dictionary indexes to reduce data storage space, improve network transmission efficiency, and reduce transmission delays.

[0003] In the traditional compression and decompression module verification method, independent verification environments are developed for compression and decompression, respectively, resulting in large amounts of code and code redundancy during compression and decompression module verification.

[0004] In independent verification, both the compression and decompression modules may pass verification. However, since compression and decompression are used together, if there is a logical loophole when the compression and decompression modules are used together, data transmission errors will still occur. Therefore, the reliability of traditional independent verification is not high. Summary of the invention

[0005] The present invention provides a verification architecture, a verification method and an electronic device for a compression and decompression module, so as to improve the reusability of the compression and decompression model, reduce the code redundancy in the verification and improve the verification accuracy.

[0006] According to one aspect of the present invention, a verification architecture for a compression and decompression module is provided, the verification architecture comprising: a verification mode selector, a verification scenario configurator, a stimulus generator, and a function verifier;

[0007] Verification mode selector, used to display various verification modes of compression and decompression modules, and determine the current verification mode and the corresponding device to be verified according to the verification mode selected by the user;

[0008] Verification scene configurator, used to display various scene types in compression and decompression module verification, and determine the current scene information of the current verification mode according to the scene parameters selected by the user;

[0009] A stimulus generator, used to generate stimulus data according to the current verification mode and current scenario information;

[0010] A functional verifier is used to generate first data to be verified according to stimulus data based on corresponding compression and decompression rules in the current verification mode; obtain second data to be verified generated by the device to be verified according to the stimulus data based on corresponding compression and decompression rules; compare the first data to be verified with the second data to determine whether the compression and decompression functions of the device to be verified are normal in the current verification mode.

[0011] According to another aspect of the present invention, a verification method for a compression and decompression module is provided, the verification method comprising:

[0012] The verification mode selector displays the various verification modes of the compression and decompression modules, and determines the current verification mode and the corresponding device to be verified according to the verification mode selected by the user;

[0013] The verification scene configurator displays various scene types in the compressor and decompressor verification, and determines the current scene information of the current verification mode according to the scene parameters selected by the user;

[0014] Generate incentive data through an incentive generator according to the current verification mode and current scenario information;

[0015] Through the function verifier, in the current verification mode, based on the corresponding compression and decompression rules, the first data to be tested is generated according to the stimulus data; the second data to be tested is generated according to the stimulus data based on the corresponding compression and decompression rules of the device to be tested; the first data to be tested is compared with the second data to determine whether the compression and decompression function of the device to be tested in the current verification mode is normal.

[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0017] at least one processor; and

[0018] a memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the verification method of the compression and decompression module described in any embodiment of the present invention.

[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the verification method of the compression and decompression module described in any embodiment of the present invention when executed.

[0021] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the verification method of the compression and decompression module according to any embodiment of the present invention is implemented.

[0022] The technical solution of the embodiment of the present invention is to construct a verification architecture of a compression and decompression module including a verification mode selector, a verification scenario configurator, an incentive generator and a function verifier, wherein: the verification mode selector is used to display various verification modes of the compression and decompression module, and determine the current verification mode and the corresponding device to be tested according to the verification mode selected by the user; the verification scenario configurator is used to display various scene types in the compression and decompression module verification, and determine the current scene information of the current verification mode according to the scene parameters selected by the user; the incentive generator is used to generate incentive data according to the current verification mode and the current scene information; the function verifier is used to generate first data to be tested according to the incentive data based on the corresponding compression and decompression rules in the current verification mode; obtain the second data to be tested generated by the device to be tested according to the incentive data based on the corresponding compression and decompression rules; compare the first data to be tested with the second data to determine whether the compression and decompression function of the device to be tested under the current verification mode is normal, thereby solving the problem of code redundancy in the verification of the compression and decompression module, and can improve the reusability in the verification of the compression and decompression model through the verification architecture, reduce code redundancy, and improve verification reliability.

[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 is a schematic diagram of a structure of a verification architecture of a compression and decompression module provided according to Embodiment 1 of the present invention;

[0026] Figure 2 is a flow chart of generating incentive data according to the first embodiment of the present invention;

[0027] Figure 3 is a schematic diagram of a structure of a verification architecture of a compression and decompression module provided according to Embodiment 2 of the present invention;

[0028] Figure 4 is a structural schematic diagram of a compression module provided according to Embodiment 2 of the present invention;

[0029] Figure 5 is a structural schematic diagram of a decompression module provided according to Embodiment 2 of the present invention;

[0030] Figure 6 is a flowchart of a compression and decompression module verification method provided according to Embodiment 3 of the present invention;

[0031] Figure 7 It is a structural schematic diagram of an electronic device for implementing the verification method of the compression and decompression module of an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 without creative work should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment 1

[0035] Figure 1 1 is a schematic diagram of a compression and decompression module verification architecture according to the first embodiment of the present invention. This embodiment is applicable to the case of performing functional verification on the compression and decompression modules, for example, it is applicable to the case of performing functional verification on the compression and decompression modules corresponding to the dynamic dictionary compression algorithm. Figure 1 As shown, the verification architecture includes: a verification mode selector 110 , a verification scenario configurator 120 , a stimulus generator 130 and a functional verifier 140 .

[0036] The verification mode selector 110 is used to display various verification modes of the compression and decompression modules, and determine the current verification mode and the corresponding device to be verified according to the verification mode selected by the user.

[0037] In an embodiment of the present invention, the compression and decompression module may include multiple verification modes. For example, the verification mode may include compression module verification, decompression module verification, and loop verification. Among them, loop verification is a joint verification of the compression module and the decompression module. Through loop verification, the false pass problem when verifying the compression module alone or the decompression module alone can be avoided. Through compression module verification and decompression module verification, it can assist in accurately locating problems in compression and decompression rules.

[0038] In an optional implementation manner of an embodiment of the present invention, the verification mode selector is specifically used to: display at least one of the following verification modes of the compression and decompression modules: compression module verification, decompression module verification, and loop verification; determine the current verification mode and the corresponding device to be tested based on the verification mode selected by the user; wherein the loop verification is a joint verification of the compression module and the decompression module.

[0039] By setting up compression module verification, decompression module verification, and loop verification at the same time in a compression and decompression module verification architecture, the verification process can be reused, code redundancy in compression and decompression module verification can be reduced, and sufficient and necessary verification can be performed on the correctness of the compression and decompression modules.

[0040] In an embodiment of the present invention, the compression and decompression rules in the compression and decompression module may be a dictionary compression algorithm. The dictionary compression algorithm is to construct a dictionary containing all possible character strings and replace repeated character strings in the input data using dictionary indexes. The dictionary compression algorithm can greatly reduce data storage space, improve network transmission efficiency, and reduce transmission delays. The dictionary compression algorithm can be divided into a static dictionary compression algorithm and a dynamic dictionary compression algorithm. Among them, the dynamic dictionary compression algorithm can continuously update the dictionary according to changes in data. The dynamic dictionary compression algorithm is more suitable for fields such as real-time audio transmission. The compressed data is also reconstructed in the decompression stage by constructing a dictionary. In an embodiment of the present invention, the dynamic dictionary compression algorithm can be specifically verified.

[0041] The device to be tested can be used in different verification modes. When selecting a verification mode, you need to determine the device to be tested that is applicable to the verification mode. For example, when the verification mode is compression module verification, you can select a device to be tested that has compression rules set for specific verification. When the verification mode is decompression module verification, you can select a device to be tested that has decompression rules set for specific verification. When the verification mode is loop verification, you can select a device to be tested that has compression and decompression rules set for specific verification.

[0042] like Figure 1 As shown, the verification scene configurator is used to display various scene types in the compression and decompression module verification, and determine the current scene information of the current verification mode according to the scene parameters selected by the user.

[0043] The scene type is related to the compression and decompression module being verified. When the influencing factors of the compression and decompression module are different, the scene type is also different. For example, when the compression and decompression rules in the compression and decompression module are dynamic dictionary compression algorithms, the scene type includes: data type, data selection signal (wstrb type), data burst length, compression rate range, and at least one of data random range.

[0044] Among them, the data type may include but is not limited to integer 8-bit data (INT8), floating point 8-bit data (FP8), floating point 16-bit data (FP16), new floating point 16-bit data (BF16), and floating point 32-bit data (FP32). The wstrb type can indicate whether the data is selected. For example, when the wstrb type is 1, it indicates that the data selection is valid; when the wstrb type is 0, it indicates that the data selection is invalid. In a specific application, the wstrb type can constitute a wstrb sequence. Other data contents can constitute a data sequence. One bit of data in the wstrb sequence can correspond to multiple bits of data in the data sequence. For example, one bit of data in the wstrb sequence can correspond to 8 bits of data in the data sequence. Exemplarily, when the lowest bit in the wstrb sequence is 1, it can be stated that the low 8 bits of data in the data sequence are selected. The data burst length can be 1 to 32. The compression rate range can be divided into a compression rate greater than 1, a compression rate less than 1, a compression rate equal to 1, a maximum compression rate, and a minimum compression rate. A compression rate greater than 1 indicates that the amount of data after compression is less than the amount of data before compression. A compression ratio less than 1 indicates that the amount of data after compression is greater than the amount of data before compression. A compression ratio equal to 1 indicates that the amount of data after compression is equal to the amount of data before compression. The minimum compression ratio indicates that the amount of data after compression increases, and the dictionary encoding length corresponding to each data to be compressed is the maximum value, which belongs to the boundary scenario. The maximum compression ratio indicates that the amount of data after compression decreases, and the dictionary encoding length corresponding to each data to be compressed is the minimum value, which also belongs to the boundary scenario.

[0045] In an optional implementation of an embodiment of the present invention, the verification scenario configurator is specifically used to: display at least one of the following scenario types in the compression and decompression module verification: data type, data selection signal, data burst length, compression rate range, and data random range; determine the current scene information of the current verification mode based on the scene parameters selected by the user in each scene type.

[0046] Each scene type can be crossed. When verifying the compression and decompression module, it is necessary to perform traversal verification in each scene. The embodiment of the present invention can avoid the problem of difficult traversal of scenes and large workload in compression and decompression verification by setting a verification scene configurator to set each scene type, and cooperating with the incentive generator to generate incentive data. By setting the compression rate range, it can also avoid the data space in the prior art where the data obtained by the simple random strategy has a probability of more than 99% that the compression rate is less than 1, and cannot cover most compression scenarios. The compression rate can be adjusted dynamically to avoid the situation in the prior art where the same data is used for compression to ensure that the compression rate is always greater than 1. It can also achieve the effect of alternating compression rates greater than 1 and less than 1 in the same test case. Comprehensive verification of the compression and decompression module can be achieved through verification of the scene configuration.

[0047] like Figure 1 As shown, the incentive generator 130 is used to generate incentive data according to the current verification mode and the current scene information. The incentive data can be the input data during the verification of the compression and decompression module. For different data types, the incentive data can have different forms. For example, for the INT8 data type, the incentive data can be a compressible data segment. For the floating-point data type, the incentive data can be composed of a compressible data segment and an incompressible data segment. For different floating-point data types, the number of bits of the compressible data segment and the incompressible data segment in the incentive data can also be different. For example, for FP8, the upper 4 bits are the compressible data segment, and the lower 4 bits are the incompressible data segment. For the compressible data segment, compression rules can be used for compression processing. For the incompressible data segment, it can be directly transparently transmitted.

[0048] In order to improve the compressibility of data and make the excitation data satisfy certain correlation, in an optional implementation of an embodiment of the present invention, the excitation generator is specifically used to: based on the current scene information, when the compression rate range satisfies the preset compression condition, generate a compressible data segment that satisfies the normal distribution according to the data type, the data selection signal, the data burst length, and at least one of the data random range; generate an incompressible data segment according to the data type; when the verification mode is compression module verification or loop verification, splice the compressible data segment and the incompressible data segment into excitation data; when the verification mode is decompression module verification, splice the compressible data segment and the incompressible data segment, and compress the splicing result using compression rules to obtain excitation data.

[0049] The compression rate range that satisfies the preset compression condition may be that the compression rate range is greater than 1. The compressible data segment may satisfy the normal distribution to improve the data compressibility. The degree of data compressibility may be controlled according to the left and right offsets of the normal distribution. When generating the compressible data segment, the setting requirements of the data type, the data selection signal, the data burst length, and the data random range need to be met at the same time.

[0050] When the data type is integer, the incompressible data segment can be empty, that is, there is no incompressible data segment in the integer data. When the data type is floating point, the incompressible data segment in the excitation data can be generated according to the specific number of bits. When generating the incompressible data segment, it is not limited to the requirements of the compression rate range, the data selection signal, and the data random range. The incompressible data segment can be randomly generated based on the data type.

[0051] When the verification mode is compression module verification or loop verification, the compressible data segment and the incompressible data segment together constitute the stimulus data. When the verification mode is decompression module verification, the compressible data segment and the incompressible data segment are spliced, and the splicing result is compressed using the compression rule to obtain the stimulus data. That is, when the verification mode is decompression module verification, the compression rule can be set in the stimulus generator to compress the splicing result of the compressible data segment and the incompressible data segment to obtain the stimulus data.

[0052] Figure 2 FIG. 1 is a flow chart of generating incentive data according to the first embodiment of the present invention. Figure 2 As shown, the data type, data selection signal, data burst length, and data random range can be set first. If no specific settings are made, each scene type can be randomized within the default valid range. Under the set conditions, a compressible data segment that meets the normal distribution is generated. According to the data type, an incompressible data segment is generated, and the compressible data segment and the incompressible data segment are spliced ​​and added to the data sequence. Wstrb is generated according to the wstrb type and exists in the wstrb sequence. Among them, wstrb matches the data burst length. The repeatability of the compressible data segment can be adjusted according to the size of the left and right offsets of the normal distribution, thereby achieving the purpose of adjusting the size of the data compression rate.

[0053] like Figure 1 As shown, the functional verifier 140 is used to generate first data to be tested according to the stimulus data based on the corresponding compression and decompression rules in the current verification mode; obtain second data to be tested generated by the device to be tested according to the stimulus data based on the corresponding compression and decompression rules; compare the first data to be tested with the second data to determine whether the compression and decompression functions of the device to be tested are normal in the current verification mode.

[0054] The compression and decompression rules may include compression rules and / or decompression rules. In different verification modes, the compression and decompression rules used may be different. For example, when verifying a compression module, the compression rule may be used. When verifying a decompression module, the decompression rule may be used. When verifying a loop, the compression rule and the decompression rule may be used.

[0055] In different verification modes, the stimulus data can have different processing flows. For example, during compression module verification, the stimulus data can be compressed. During decompression module verification, the stimulus data can be decompressed. During loop verification, the stimulus data can be compressed and decompressed. Among them, the stimulus data generation flow during decompression module verification is different from the stimulus data generation flow during compression module verification and loop verification.

[0056] In different verification modes, the specific forms of expression of the first data to be verified and the second data to be verified may also be different. For example, in compression module verification, the first data to be verified may be data obtained by compressing the stimulus data by the function verifier. In decompression module verification, the first data to be verified may be data obtained by decompressing the stimulus data by the function verifier. In loop verification, the first data to be verified may be data obtained by compressing and decompressing the stimulus data by the function verifier.

[0057] During compression module verification, the second data to be verified may be data obtained by compressing the stimulus data by the device to be verified. During decompression module verification, the second data to be verified may be data obtained by decompressing the stimulus data by the device to be verified. During loop verification, the second data to be verified may be data obtained by compressing and decompressing the stimulus data by the device to be verified.

[0058] In the function verifier and the device to be tested, the compression and decompression rules used may be different interpretations of the same compression and decompression algorithm. For example, in the function verifier and the device to be tested, the compression and decompression rules used may be rules written by different technicians based on the same compression and decompression algorithm. For another example, in the function verifier and the device to be tested, the compression and decompression rules used may be rules written in different programming languages ​​based on the same compression and decompression algorithm. For another example, in the function verifier and the device to be tested, the compression and decompression rules used may be rules written based on the same compression and decompression algorithm when applied on different platforms.

[0059] By performing consistency comparison on the first data to be verified and the second data to be verified, the correctness of the compression and decompression module can be determined. When the first data to be verified and the second data to be verified are consistent, it can be determined that the compression and decompression functions of the device to be verified in the current verification mode are normal.

[0060] The technical solution of this embodiment is to construct a verification architecture of a compression and decompression module including a verification mode selector, a verification scenario configurator, a stimulus generator and a function verifier, wherein: the verification mode selector is used to display the various verification modes of the compression and decompression module, and determine the current verification mode and the corresponding device to be tested according to the verification mode selected by the user; the verification scenario configurator is used to display the various scene types in the compression and decompression module verification, and determine the current scene information of the current verification mode according to the scene parameters selected by the user; the stimulus generator is used to generate stimulus data according to the current verification mode and the current scene information; the function verifier is used to generate first data to be tested according to the stimulus data based on the corresponding compression and decompression rules in the current verification mode; obtain the second data to be tested generated by the device to be tested according to the stimulus data based on the corresponding compression and decompression rules; compare the first data to be tested with the second data to determine whether the compression and decompression function of the device to be tested under the current verification mode is normal, thereby solving the problem of code redundancy in the verification of the compression and decompression module, and can improve the reusability in the verification of the compression and decompression model through the verification architecture, reduce code redundancy, and improve verification reliability.

[0061] Embodiment 2

[0062] Figure 3 1 is a schematic diagram of a verification architecture of a compression and decompression module provided according to Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 3 As shown, the verification architecture includes: a verification mode selector 110 , a verification scenario configurator 120 , a stimulus generator 130 , and a function verifier 140 . The function verifier 140 includes: a predictor 141 and a scoreboard 142 .

[0063] Specifically, the verification mode selector is used to display the various verification modes of the compression and decompression module, and determine the current verification mode and the corresponding device to be tested according to the verification mode selected by the user. The verification scene configurator is used to display the various scene types in the compression and decompression module verification, and determine the current scene information of the current verification mode according to the scene parameters selected by the user. The stimulus generator is used to generate stimulus data according to the current verification mode and the current scene information; the function verifier is used to generate first data to be tested according to the stimulus data based on the corresponding compression and decompression rules in the current verification mode; obtain the second data to be tested generated by the device to be tested according to the stimulus data based on the corresponding compression and decompression rules; compare the first data to be tested with the second data to determine whether the compression and decompression function of the device to be tested is normal under the current verification mode.

[0064] Optionally, a verification mode selector is specifically used to: display at least one of the following verification modes of the compression and decompression modules: compression module verification, decompression module verification, and loop verification; determine the current verification mode and the corresponding device to be tested based on the verification mode selected by the user; wherein, loop verification is a joint verification of the compression module and the decompression module.

[0065] Optionally, a verification scene configurator is specifically used to: display at least one of the following scene types in the compression and decompression module verification: data type, data selection signal, data burst length, compression rate range, and data random range; determine the current scene information of the current verification mode based on the scene parameters selected by the user in each scene type.

[0066] Optionally, the excitation generator is specifically used to: based on current scene information, when the compression rate range meets the preset compression conditions, generate a compressible data segment that satisfies the normal distribution according to at least one of the data type, data selection signal, data burst length, and data random range; generate an incompressible data segment according to the data type; when the verification mode is compression module verification or loop verification, splice the compressible data segment and the incompressible data segment into excitation data; when the verification mode is decompression module verification, splice the compressible data segment and the incompressible data segment, and compress the splicing result using compression rules to obtain excitation data.

[0067] In the embodiment of the present invention, Figure 3 As shown, the function verifier 140 includes: a predictor 141 and a scoreboard 142 .

[0068] Among them, the predictor is used to compress the stimulus data based on the corresponding compression rule to generate the first data to be verified when the current verification mode is compression module verification; and obtain the second data to be verified generated by the device to be verified compressing the stimulus data based on the corresponding compression rule.

[0069] In an embodiment of the present invention, there are compressible data segments and incompressible data segments in the excitation data. The compressible data segments can be compressed using compression rules. The incompressible data segments can be transparently transmitted. Specifically, when the predictor compresses the excitation data to generate the first data to be verified, the compressible data segments in the excitation data can be compressed and the incompressible data segments can be transparently transmitted. When the compressed data is obtained by compression, the amount of data before and after compression can be compared. If the amount of data after compression is greater than the amount of data before compression, that is, the compression ratio is less than 1, the data can be transparently transmitted. Specifically, when the compression ratio is less than 1, the excitation data is used as the first data to be verified. If the amount of data after compression is less than the amount of data before compression, that is, the compression ratio is greater than 1, the data obtained after compression can be used as the first data to be verified.

[0070] Alternatively, the predictor is used to decompress the stimulus data based on the corresponding decompression rule to generate the first data to be verified when the current verification mode is decompression module verification; and obtain the second data to be verified generated by the device to be verified decompressing the stimulus data based on the corresponding decompression rule.

[0071] Among them, when the current verification mode is decompression module verification, the excitation data is the data compressed by the concatenation result of the compressible data segment and the incompressible data segment. Specifically, the compressible data segment can be compressed, and the incompressible data segment can be transparently transmitted. When the excitation data is compressed, the amount of data before and after compression can be compared. If the amount of data after compression is larger than the amount of data before compression, that is, the compression rate is less than 1, the data can be directly transparently transmitted, that is, the concatenation result of the compressible data segment and the incompressible data segment is used as the excitation data, and the data is marked as uncompressed. If the amount of data after compression is smaller than the amount of data before compression, that is, the compression rate is greater than 1, the compressed data can be directly used as the excitation data, and the data compression is marked as successful.

[0072] When decompressing the excitation data, first parse the header information of the excitation data to obtain the data type corresponding to the data, the data burst length, whether the compression is successful, and other information. If the data is not compressed, the predictor directly transmits the excitation data according to the decompression rules to generate the first data to be verified when the decompression module is verified. If the data is successfully compressed, the predictor reconstructs the data according to the decompression rules to obtain the first data to be verified when the decompression module is verified. The process of the decompression processing of the device to be verified is similar to the above content and will not be repeated here.

[0073] Alternatively, a predictor is used to compress the excitation data based on a corresponding compression rule to generate first compressed data when the current verification mode is loop verification; decompress the first compressed data based on a corresponding decompression rule to generate first data to be verified; obtain the second compressed data generated by compressing the excitation data based on the corresponding compression rule by the device to be verified, and decompress the second compressed data based on the corresponding decompression rule to generate second data to be verified.

[0074] The scoreboard is used to compare the first data to be verified with the second data to be verified to determine whether the compression and decompression functions of the device to be verified are normal in the current verification mode.

[0075] Specifically, the scoreboard is used to compare the data generated by the predictor compressing the stimulus data according to the compression rules with the data generated by the device under test compressing the stimulus data according to the compression rules during compression module verification, to verify whether the compression function of the device under test is normal.

[0076] Alternatively, the scoreboard is used to compare the data generated by the predictor decompressing the stimulus data according to the decompression rules with the data obtained by the device under test decompressing the stimulus data according to the decompression rules during the decompression module verification, to verify whether the decompression function of the device under test is normal.

[0077] Alternatively, a scoreboard is used to compare, during loop verification, first compressed data obtained by compressing the excitation data according to the compression rule by the predictor, and data obtained by decompressing the first compressed data based on the decompression rule, with second compressed data obtained by compressing the excitation data according to the compression rule of the device to be tested, and data obtained by decompressing the second compressed data based on the decompression rule, to verify whether the compression and decompression functions of the device to be tested are normal.

[0078] On the basis of the above implementation, in order to further improve the reliability of the compression and decompression module verification, in an optional implementation of the embodiment of the present invention, the scoring board includes: a first sub-scoring board and a second sub-scoring board; the first sub-scoring board is used to compare the first data to be verified with the second data to be verified in the current verification mode, to determine whether the compression and decompression functions of the device to be verified are normal in the current verification mode; the second sub-scoring board is used to compare the second data to be verified with the stimulus data when the current verification mode is loop verification, to further determine the complete correctness of the compression and decompression functions of the device to be verified.

[0079] Among them, the first sub-scoreboard is specifically used to compare the data generated by compressing the stimulus data according to the compression rule by the predictor with the data generated by compressing the stimulus data according to the compression rule by the device to be tested during the compression module verification, so as to verify whether the compression function of the device to be tested is normal; or, the scoreboard is used to compare the data generated by decompressing the stimulus data according to the decompression rule by the predictor during the decompression module verification, with the data generated by decompressing the stimulus data according to the decompression rule by the device to be tested, so as to verify whether the decompression function of the device to be tested is normal; or, during the loop verification, the first compressed data obtained by compressing the stimulus data according to the compression rule by the predictor, and the data obtained by decompressing the first compressed data based on the decompression rule, are compared with the second compressed data obtained by compressing the stimulus data according to the compression rule of the device to be tested, and the data obtained by decompressing the second compressed data based on the decompression rule are compared, so as to verify whether the compression and decompression functions of the device to be tested are normal.

[0080] The second sub-scoreboard can be used to further verify the compression and decompression functions of the device to be tested when the current verification mode is loop verification. Specifically, the second sub-scoreboard can compare the second data to be tested with the stimulus data to determine whether the data obtained by the device to be tested from decompressing the second compressed data is consistent with the original stimulus data. If the data obtained by the device to be tested from decompressing the second compressed data is consistent with the original stimulus data, the complete correctness of the compression and decompression functions of the device to be tested can be further determined.

[0081] The technical solution of the embodiment of the present invention is provided by setting up a verification architecture including: a verification mode selector, a verification scenario configurator, a stimulus generator and a function verifier, wherein the function verifier includes a predictor and a scoreboard; the scoreboard includes a first sub-scoreboard and a second sub-scoreboard, which solves the problem of code redundancy in the verification of compression and decompression modules, and can quickly generate various types of stimulus data according to needs through the verification scenario configurator and the stimulus generator, and can cover more test scenarios in a short time; the verification mode is configured by the verification mode selector, which can improve the reusability of the verification environment, and introduce tests under different verification modes into a unified test process, greatly reducing the workload of directional test development; the verification mode selector can be used to perform verification in multiple modes, thereby improving verification reliability.

[0082] To improve the reusability of the verification environment and facilitate the embedding of compression models and / or decompression models in simulation platforms (such as Emulation), you can use C++ to develop compression and / or decompression models, and use the multi-language interactive interface (Direct Programming Interface, DPI) to complete the interaction between hardware description and hardware verification language (System Verilog, SV) and C++. The reusability of compression models and / or decompression models can further reduce manpower and time costs, while ensuring the accuracy of Emulation platform verification.

[0083] like Figure 3 As shown, the AXI bus master agent (AXI Master Agent) can be used to drive the device under test (DUT), and the output of the DUT can be received through the AXI bus slave agent (AXI Slave Agent).

[0084] In order to further elaborate the compression and decompression algorithms applicable in the embodiments of the present invention. In an optional implementation of the embodiments of the present invention, the compression rules in the functional verifier are: obtaining the data to be compressed and determining the data type of the data to be compressed; splitting the data to be compressed into compressible data segments and incompressible data segments according to the data type; compressing the compressible data segments according to the preset compression rules to obtain the compression results; and packaging the compression results, incompressible data segments, data types, data burst lengths, and data selection signals according to the preset format to generate compressed data.

[0085] Figure 4 Schematic diagram of a compression module provided according to Embodiment 2 of the present invention. Figure 4 As shown, the compression module may include a data segmentation unit, a dynamic dictionary compression unit, a first cache unit, a second cache unit, and a data packaging unit.

[0086] Among them, the data segmentation unit can obtain the data to be compressed, and according to the data type, split the data to be compressed into compressible data segments and incompressible data segments. The data segmentation unit can transmit the compressible data segments to the dynamic dictionary compression unit, and transmit the incompressible data segments to the first cache unit for temporary storage and waiting to be packaged. The dynamic dictionary compression unit can compress the compressible data segments according to the preset compression rules to obtain the compression results. The second cache unit can temporarily store the data selection signal to facilitate the subsequent data restoration. The data type and the data burst length are obtained in the transmission protocol. The data packaging unit can obtain the data type, the data burst length, the compression result generated by the dynamic dictionary compression unit, the incompressible data segments in the first cache unit, and the data selection signal in the second cache unit in the transmission protocol, and package them according to the preset format to generate compressed data.

[0087] In an optional implementation of an embodiment of the present invention, the decompression rules in the functional verifier are: parsing the data to be decompressed to obtain the data type, data burst length, data selection signal, compressed data segment and uncompressed data segment; decompressing the compressed data segment according to the preset decompression rules to obtain the decompression result; and reconstructing the decompression result, uncompressed data segment, data type, data burst length, and data selection signal to obtain the decompressed data.

[0088] Figure 5 Schematic diagram of a decompression module provided according to the second embodiment of the present invention. Figure 5 As shown, the decompression module may include a data packet parsing unit, a dynamic dictionary decompression unit, a third cache unit, a fourth cache unit, and a data reconstruction unit.

[0089] Among them, the data packet parsing unit can parse the data to be decompressed to obtain the data type, data burst length, data selection signal, compressed data segment and uncompressed data segment. The dynamic dictionary decompression unit can obtain the compressed data segment parsed by the data packet parsing unit, and decompress the compressed data segment according to the preset decompression rule to obtain the decompression result. The third cache unit can cache the uncompressed data segment parsed by the data packet parsing unit. The fourth cache unit can cache the data selection signal parsed by the data packet parsing unit. The data type and data burst length can be obtained in the data packet parsing unit. The data reconstruction unit can reconstruct the decompression result decompressed by the dynamic dictionary decompression unit, the uncompressed data segment in the third cache unit, the data type, the data burst length, and the data selection signal in the fourth cache unit to obtain the decompressed data.

[0090] Through Figure 4 The compression module shown and Figure 5The decompression module shown can perform compression and decompression processing on various types of data.

[0091] Embodiment 3

[0092] Figure 6 FIG. 1 is a flowchart of a method for verifying a compression and decompression module according to Embodiment 3 of the present invention. The method may be executed by an electronic device. Figure 6 As shown, the method includes:

[0093] Step 610: Display various verification modes of the compression and decompression modules through the verification mode selector, and determine the current verification mode and the corresponding device to be verified according to the verification mode selected by the user.

[0094] Step 620: Display various scene types in the compressor and decompressor verification through the verification scene configurator, and determine the current scene information of the current verification mode according to the scene parameters selected by the user.

[0095] Step 630: Generate incentive data through an incentive generator according to the current verification mode and current scene information.

[0096] Step 640: Generate first data to be tested according to the stimulus data based on the corresponding compression and decompression rules by the function verifier in the current verification mode; obtain second data to be tested generated by the device to be tested according to the stimulus data based on the corresponding compression and decompression rules; compare the first data to be tested with the second data to determine whether the compression and decompression functions of the device to be tested are normal in the current verification mode.

[0097] Optionally, the various verification modes of the compression and decompression modules are displayed through a verification mode selector, and the current verification mode and the corresponding device to be tested are determined based on the verification mode selected by the user, including: displaying at least one of the following verification modes of the compression and decompression modules through a verification mode selector: compression module verification, decompression module verification, and loop verification; determining the current verification mode and the corresponding device to be tested based on the verification mode selected by the user; wherein, loop verification is a joint verification of the compression module and the decompression module.

[0098] Optionally, each scene type in the compression and decompression verification is displayed through the verification scene configurator, and the current scene information of the current verification mode is determined according to the scene parameters selected by the user, including: displaying at least one of the following scene types in the compression and decompression module verification through the verification scene configurator: data type, data selection signal, data burst length, compression rate range, and data random range; determining the current scene information of the current verification mode according to the scene parameters selected by the user in each scene type.

[0099] Optionally, the excitation data is generated by the excitation generator according to the current verification mode and the current scene information, including: the excitation generator generates a compressible data segment that satisfies the normal distribution according to the data type, the data selection signal, the data burst length, and at least one of the data random range when the compression rate range satisfies the preset compression condition according to the current scene information; generates an incompressible data segment according to the data type; when the verification mode is compression module verification or loop verification, the compressible data segment and the incompressible data segment are spliced ​​into excitation data; when the verification mode is decompression module verification, the compressible data segment and the incompressible data segment are spliced, and the splicing result is compressed using compression rules to obtain excitation data.

[0100] Optional, functional validators, including: predictors and scoreboards;

[0101] Generate first data to be verified according to the stimulus data based on the corresponding compression and decompression rules by the function verifier in the current verification mode; obtain second data to be verified generated by the device to be verified according to the stimulus data based on the corresponding compression and decompression rules; compare the first data to be verified with the second data to determine whether the compression and decompression functions of the device to be verified in the current verification mode are normal, including:

[0102] When the current verification mode is compression module verification, the predictor in the functional verifier compresses the stimulus data based on the corresponding compression rule to generate the first data to be verified; and obtains the second data to be verified generated by the device to be verified compressing the stimulus data based on the corresponding compression rule; or

[0103] When the current verification mode is decompression module verification, decompress the stimulus data based on the corresponding decompression rule to generate first data to be verified; obtain second data to be verified generated by the device to be verified decompressing the stimulus data based on the corresponding decompression rule; or

[0104] When the current verification mode is loop verification, compress the stimulus data based on the corresponding compression rule to generate first compressed data; decompress the first compressed data based on the corresponding decompression rule to generate first data to be verified; obtain the device to be verified to compress the stimulus data based on the corresponding compression rule to generate second compressed data, and decompress the second compressed data based on the corresponding decompression rule to generate second data to be verified;

[0105] The first data to be verified is compared with the second data to be verified through the scoreboard in the function verifier to determine whether the compression and decompression functions of the device to be verified are normal in the current verification mode.

[0106] Optionally, the scoreboard includes: a first sub-scoreboard and a second sub-scoreboard;

[0107] The first data to be tested is compared with the second data to be tested through the scoreboard in the functional verifier to determine whether the compression and decompression functions of the device to be tested are normal in the current verification mode, including: comparing the first data to be tested with the second data to be tested in the current verification mode through the first sub-scoreboard to determine whether the compression and decompression functions of the device to be tested are normal in the current verification mode; comparing the second data to be tested with the stimulus data through the second sub-scoreboard when the current verification mode is loop verification, to further determine the complete correctness of the compression and decompression functions of the device to be tested.

[0108] Optionally, the compression rules in the functional verifier are: obtain the data to be compressed and determine the data type of the data to be compressed; according to the data type, split the data to be compressed into compressible data segments and incompressible data segments; compress the compressible data segments according to preset compression rules to obtain compression results; and package the compression results, incompressible data segments, data types, data burst lengths, and data selection signals according to a preset format to generate compressed data.

[0109] Optionally, the decompression rules in the functional verifier are: parse the data to be decompressed to obtain the data type, data burst length, data selection signal, compressed data segment and uncompressed data segment; decompress the compressed data segment according to the preset decompression rules to obtain the decompression result; and reconstruct the decompression result, uncompressed data segment, data type, data burst length, and data selection signal to obtain the decompressed data.

[0110] The verification method of the compression and decompression module provided in the embodiment of the present invention can achieve the same beneficial effects as the verification architecture of the compression and decompression module provided in the embodiment of the present invention.

[0111] Embodiment 4

[0112] Figure 7 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0113] like Figure 7As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0114] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0115] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the verification method of the compression and decompression module.

[0116] In some embodiments, the verification method of the compression and decompression module can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the verification method of the compression and decompression module described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the verification method of the compression and decompression module in any other appropriate manner (for example, by means of firmware).

[0117] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0118] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0119] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0120] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0121] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0122] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0123] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0124] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A verification architecture for compression and decompression modules, It is characterized in that The verification architecture includes: a verification mode selector, a verification scenario configurator, a stimulus generator, and a functional verifier; The verification mode selector is used to display the verification modes of the compression and decompression modules, and determine the current verification mode and the corresponding device to be verified according to the verification mode selected by the user; The verification scene configurator is used to display various scene types in the compression and decompression module verification, and determine the current scene information of the current verification mode according to the scene parameters selected by the user; The incentive generator is used to generate incentive data according to the current verification mode and the current scene information; The functional verifier is used to generate first data to be tested according to the stimulus data based on corresponding compression and decompression rules in the current verification mode; obtain second data to be tested generated by the device to be tested according to the stimulus data based on corresponding compression and decompression rules; compare the first data to be tested with the second data to be tested to determine whether the compression and decompression functions of the device to be tested are normal in the current verification mode.

2. The verification architecture according to claim 1, It is characterized in that The verification mode selector is specifically used for: Demonstrating at least one of the following verification modes for compression and decompression modules: compression module verification, decompression module verification, and loop verification; According to the verification mode selected by the user, determine the current verification mode and the corresponding device to be verified; Among them, loop verification is the joint verification of the compression module and the decompression module.

3. The verification architecture according to claim 2, It is characterized in that Verify the scene configurator, specifically for: A scenario type that demonstrates at least one of the following in compression and decompression module verification: data type, data strobe signal, data burst length, compression rate range, and data random range; According to the scene parameters selected by the user in each scene type, the current scene information of the current verification mode is determined.

4. The verification architecture according to claim 3, It is characterized in that The incentive generator is specifically used for: According to the current scene information, when the compression rate range meets the preset compression condition, according to at least one of the data type, the data selection signal, the data burst length, and the data random range, a compressible data segment that meets the normal distribution is generated; Generate incompressible data segments according to data types; When the verification mode is compression module verification or loop verification, the compressible data segment and the incompressible data segment are concatenated as stimulus data; When the verification mode is decompression module verification, the compressible data segment and the incompressible data segment are spliced, and the splicing result is compressed using a compression rule to obtain the stimulus data.

5. The verification architecture according to claim 2, It is characterized in that The functional verifier includes: a predictor and a scoreboard; The predictor is used to compress the stimulus data based on the corresponding compression rule to generate first data to be verified when the current verification mode is compression module verification; and obtain second data to be verified generated by compressing the stimulus data based on the corresponding compression rule by the device to be verified; or The predictor is used to, when the current verification mode is decompression module verification, decompress the stimulus data based on the corresponding decompression rule to generate the first data to be verified; obtain the second data to be verified generated by the device to be verified decompressing the stimulus data based on the corresponding decompression rule; or The predictor is used to compress the stimulus data based on the corresponding compression rule to generate first compressed data when the current verification mode is loop verification; decompress the first compressed data based on the corresponding decompression rule to generate first data to be verified; obtain the device to be verified to compress the stimulus data based on the corresponding compression rule to generate second compressed data, and decompress the second compressed data based on the corresponding decompression rule to generate second data to be verified; The scoreboard is used to compare the first data to be verified with the second data to be verified to determine whether the compression and decompression functions of the device to be verified are normal in the current verification mode.

6. The verification architecture according to claim 5, It is characterized in that The scoreboard comprises: a first sub-scoreboard and a second sub-scoreboard; The first sub-scoreboard is used to compare the first to-be-tested data with the second to-be-tested data in the current verification mode to determine whether the compression and decompression functions of the to-be-tested device are normal in the current verification mode; The second sub-scoreboard is used to compare the second data to be tested with the stimulus data when the current verification mode is loop verification, so as to further determine the complete correctness of the compression and decompression functions of the device to be tested.

7. The authentication architecture according to claim 1, It is characterized in that The compression rules in the functional verifier are: Acquire data to be compressed, and determine the data type of the data to be compressed; split the data to be compressed into compressible data segments and incompressible data segments according to the data type; Compressing the compressible data segment according to a preset compression rule to obtain a compression result; The compression result, the incompressible data segment, the data type, the data burst length, and the data selection signal are packaged according to a preset format to generate compressed data.

8. The authentication architecture according to claim 1, It is characterized in that The decompression rules in the functional verifier are: Parsing the data to be decompressed to obtain the data type, data burst length, data strobe signal, compressed data segment and uncompressed data segment; The compressed data segment is decompressed according to a preset decompression rule to obtain a decompression result; and the decompression result, the uncompressed data segment, the data type, the data burst length, and the data selection signal are reconstructed to obtain decompressed data.

9. A verification method for compression and decompression modules, It is characterized in that The verification method comprises: The verification mode selector displays the various verification modes of the compression and decompression modules, and determines the current verification mode and the corresponding device to be verified according to the verification mode selected by the user; The verification scene configurator displays various scene types in the compressor and decompressor verification, and determines the current scene information of the current verification mode according to the scene parameters selected by the user; Generate incentive data through an incentive generator according to the current verification mode and current scenario information; Through the function verifier, in the current verification mode, based on the corresponding compression and decompression rules, the first data to be tested is generated according to the stimulus data; the second data to be tested is generated according to the stimulus data based on the corresponding compression and decompression rules by the device to be tested; the first data to be tested is compared with the second data to determine whether the compression and decompression functions of the device to be tested are normal in the current verification mode.

10. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the compression and decompression module verification method described in claim 9.

Citation Information

Patent Citations

  • Verification method and device for compression function in SOC system

    CN115145772A

  • Verification circuit and verification device for frame buffer compression

    CN116302752A

  • Abnormality processing circuit for image processor

    JP1992252340A

  • Increasing storage capacity and data transfer speed in genome data backup

    US20160373130A1

  • Compressed data verification

    US20210216468A1