Register function verification method and device and test verification equipment

By generating register function test cases and using integrated learning models for automatic verification, the consistency and efficiency issues of register verification in large-scale SOC integrated circuit chips are solved, and efficient automatic register verification is achieved.

CN118798102APending Publication Date: 2024-10-18BEIJING TONGFANG MICROELECTRONICS
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411129120.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In large-scale SOC integrated circuit chip design, the verification of registers is difficult to ensure the consistency of documents and codes, and the existing technology fails to effectively verify the error information of registers, resulting in a long and inefficient verification process.

Method used

By generating register function test cases and performing regression simulations, the trained integrated learning model is used to extract error information, predict read and write attributes, and record the prediction results to achieve automatic verification of registers.

Benefits of technology

Automatic verification of register functions is realized, reducing time and labor costs, simplifying the verification process, and improving efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798102A_ABST
    Figure CN118798102A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of integrated circuits, and discloses a register function verification method which comprises the following steps: generating a register function test case according to a register list file; performing regression simulation on the register function test case to obtain a log record; error information in the log records is extracted; and performing read-write attribute prediction on the register corresponding to the error information by utilizing the trained integrated learning model, and recording a prediction result in a register list file. The method can realize automatic verification of register functions, reduces time cost and labor cost, and is simple, convenient and high in efficiency. The invention further discloses a register function verification device and test verification equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of integrated circuit technology, for example, to a method and apparatus for register function verification, and test verification equipment. Background Art

[0002] The registers in the chip play important functions such as managing modules and configuring parameters. In the design of large-scale SOC integrated circuit chips, register verification is very important. However, as the scale of chips increases, the number of registers is also on the rise, and a module can easily have hundreds or thousands of registers. What's more, during the chip design and verification process, the register definition will face a large number of changes. Due to the large number of registers and frequent changes, it is difficult to ensure the consistency of documents and codes during the modification process, and the test cases generated using the design documents are also prone to be inconsistent with the design intent. And because the verification environment is relatively complex, it takes a long time to modify the test cases one by one after the registers are modified.

[0003] A method for generating register test cases is disclosed in the related technology, comprising: reading a register description table and a register description table of a circuit module in an integrated circuit design specification; generating a register initial list file under a verification platform development framework according to the register description table of the circuit module; updating the register initial list file according to the register description table of the circuit module to obtain a register test list file; performing read and write tests on registers and generating test cases according to the register test information stored in the register test list file.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art: The related art only discloses how to generate a register test case, but does not disclose how to verify the error information of the register.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The embodiments of the present disclosure provide a method and apparatus for register function verification, and a test verification device to achieve automatic verification of registers.

[0008] In some embodiments, the method includes: generating register function test cases based on a register list file; performing regression simulation on the register function test cases to obtain log records; extracting error information from the log records; using a trained integrated learning model to predict the read and write properties of the register corresponding to the error information, and recording the prediction results in the register list.

[0009] In some embodiments, the apparatus includes: a processor and a memory storing program instructions, and the processor is configured to execute the aforementioned method for register function verification when running the program instructions.

[0010] In some embodiments, the test verification device includes: a test verification device body; and the aforementioned apparatus for register function verification, installed in the test verification device body.

[0011] The method and apparatus for register function verification and the test verification equipment provided by the embodiments of the present disclosure can achieve the following technical effects: The disclosed embodiment generates register function test cases based on the register list file and performs regression simulation. Based on the trained ensemble learning model, the register read and write properties of the error information in the regression simulation log are predicted, and the prediction results are recorded in the register list file. In this way, the automatic verification of the register function can be realized, the time cost and labor cost can be reduced, and the verification method is simple and efficient.

[0012] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 is a schematic diagram of a method for register function verification provided by an embodiment of the present disclosure; Figure 2 It is a schematic diagram of a method for generating a register function test case in the method provided by an embodiment of the present disclosure; Figure 3 It is a schematic diagram of a method for extracting error information from a log record in a method provided by an embodiment of the present disclosure; Figure 4 is a schematic diagram of a method for obtaining a trained integrated learning model in the method provided by an embodiment of the present disclosure; Figure 5 is a schematic diagram of another method for register function verification provided by an embodiment of the present disclosure; Figure 6 It is a schematic diagram of a method for generating a register design document in the method provided by an embodiment of the present disclosure; Figure 7 It is a schematic diagram of a device for register function verification provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0014] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0015] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure 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 terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0016] Unless otherwise stated, the term "plurality" means two or more.

[0017] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0018] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0019] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0020] Combination Figure 1 As shown, the embodiment of the present disclosure provides a method for register function verification, including: S101, the test verification device generates a register function test case according to the register list file.

[0021] S102, the test verification device performs regression simulation on the register function test case to obtain log records.

[0022] S103, testing and verifying the error information in the device extraction log record.

[0023] S104, the test verification device uses the trained integrated learning model to predict the read and write properties of the register corresponding to the error information, and records the prediction results in the register list file.

[0024] Here, the test verification device is provided with a test case generation script. Based on the test case generation script, the register list file can be used to generate register function test cases. Specifically, the register list file is traversed, and the information of the relevant registers is extracted to fill in the demo file. The demo file contains a test vector framework for generating test vectors, so after the demo file is filled in, a test vector file, namely a register function test case, is generated. Then, the register function test case is added to the simulation environment for simulation regression to obtain the simulation results. The simulation results include log records, waveform files, etc. During simulation, parameters such as modules, test items, and number of threads can be specified to meet various test requirements.

[0025] The error information that occurs during the simulation process is stored in the log record, and the log record is analyzed and processed to extract the error information in the log. Then, the integrated learning model is used to predict the read and write properties of the register data corresponding to the error information, that is, the register data corresponding to the error information is input into the integrated learning model to output the predicted read and write properties. The prediction results are recorded in the register list for reference to facilitate error verification. Among them, the integrated learning model is a trained model, that is, the model is trained through the existing register data so that the accuracy of the read and write properties output by the model meets the requirements.

[0026] By adopting the method for register function verification provided by the embodiment of the present disclosure, a register function test case can be generated according to the register list file, and regression simulation can be performed. Then, based on the trained ensemble learning model, the register data of the error information in the regression simulation log record is predicted for read and write properties, and the prediction results are recorded in the register list file. In this way, automatic verification of register functions is achieved, time costs and labor costs are reduced, and the verification method is simple and efficient.

[0027] Optionally, in step S101, the test verification device generates a register function test case according to the register list file, including: S111, the test verification device stores the register list file in a preset directory and determines the name of the module to be tested.

[0028] S112, the test verification device extracts the register information contained in the module name to be tested to generate multiple test vectors.

[0029] S113, the test verification device uses a set of multiple test vectors as a register function test case.

[0030] Here, the preset directory is a directory that includes test cases, test scripts and other files and data, and the preset directory is customized. The preset directory can improve management efficiency and ensure the consistency and security of files. Store the register list in the preset directory, and at the same time, determine the name of the module to be tested. Among them, the module to be tested can be one or some modules, or all modules. Then, based on the name of the module to be tested, filter the registers in the register list file to obtain the information of all registers contained in the module to be tested. Fill the obtained register information into the demo file to generate multiple test vectors, and each register generates a corresponding test vector, so the set of multiple test vectors is used as a register function test case. In this way, based on the project design and test requirements, create a test vector for the corresponding module; so that the module can be tested and verified in a targeted manner later.

[0031] It should be noted that register function testing usually includes reset source testing, reset value testing, and full-bit read and write testing (bit width, read and write permission compliance). When generating test cases, select test content based on project requirements and verification purposes. As an example, if the register in the module to be tested in the project design does not have a reset function, the test content only includes full-bit read and write testing.

[0032] Optionally, the test verification device extracts register information contained in the module name to be tested, including: The test verifies that the device extracts the register's name, base address, offset address, and reset value, and / or, reset source information, and / or, address partition, and / or, read / write mask information.

[0033] Here, the register name is the unique identifier of the register, and extracting the register name ensures that the register targeted by the test is the register in the module to be tested. The register base address and offset address are used to locate the position of the register, so as to access the register to be tested in the test. Address partitioning is the address space where the register is located, and the register is ensured to be in the correct address space through address partitioning. The read-write mask information indicates the read-write properties of each bit in the register, such as which bits are readable, which bits are writable or read-only. It is used to determine whether the read and write operations of the register follow the designed access rules in the test. The reset value and reset source information are used to verify the reset function and understand the reset logic, respectively. Among them, the register name, base address and offset address are used to determine the register and the register position, so these three information are necessary. Based on the test content, other related information is extracted, such as reset information, read-write mask information, etc. In some embodiments, in order to ensure the comprehensiveness of register verification, all the above information is extracted to test the register.

[0034] Optionally, before the test verification device extracts the register information contained in the module name to be tested, it also includes: The test verifies that the device marks special registers in the register list file.

[0035] Here, special registers include registers with special write conditions or special values ​​(i.e., the value of the register affects the normal operation of the system). Such as read-only registers, system key registers, status flag registers, etc. In order to avoid accidental modification of special registers during testing, special registers are marked. In this way, although special registers will also generate test cases, they will be skipped during testing to prevent the value of the register from being modified.

[0036] Optionally, in step S102, the test verification device performs regression simulation on the register function test case to obtain a log record, including: The test verification device performs regression simulation on the register function test case according to the test parameters of the regression simulation.

[0037] The test verification device saves the log records generated by the regression simulation.

[0038] The test parameters include target module name, and / or target module quantity, and / or target detection items, and / or target waveform, and / or number of regression parallel threads.

[0039] Here, for generating functional test cases for all registers based on the register list file, or generating functional test cases for corresponding registers based on the module to be tested, the test parameters can be specified during the test. For example, specify the target module name, target module number, target detection items, target waveform, number of regression parallel threads, etc. for regression simulation. The target detection items include the reset source test, reset value test, and full bit read and write test mentioned above. In this way, the test parameters can be selected based on the needs to adjust the test scope, thereby improving the pertinence and efficiency of the regression simulation, reducing unnecessary tests, and saving time and resources.

[0040] It should be noted that if the test parameters are not set during regression simulation, the entire test case will be simulated by default, that is, all modules and all detection items will be simulated, and waveforms will be saved (if waveforms are saved by default), and the default number of regression parallel threads will be used. In this way, the most comprehensive simulation test can be performed, which is helpful for discovering errors in newly developed designs or changed designs.

[0041] Optionally, step S103, testing and verifying the error information in the extraction log record of the device, includes: S131, the test verification device clears redundant information in the log record so that the error information has a unified format.

[0042] S132, the test verification device traverses the cleared log records using regular expressions to match the error information; wherein the regular expressions are defined based on the unified format of the error information.

[0043] S133, the test verification device stores the matched error information.

[0044] Here, in addition to error information, the log records also include redundant information such as blank lines, time information, and UVM (Universal Verification Methodology) information. Specifically, the redundant information can be cleared by using the following means: using Perl commands to clear blank lines in the log file; using regular matching to clear time information and UVM information. After clearing redundant information, the log records have a unified error information format.

[0045] Then, based on the unified error message format, a regular expression is created. The regular expression is used to search the log records to match the error message. In detail, the log records after removing redundant information are split into lines, and the regular expression is used to traverse each line to match the error message. Among them, the regular expression is set based on the keywords of the error message. As an example, assuming that the error message starts with ERROR:, followed by the register name and error description; the regular expression can be error_pattern=re.compile (r'^ERROR: (.*)').

[0046] The matched error information is stored. As an example, the error information is stored in a dictionary format; the key of the dictionary is the register name / error identifier, and the value is the error information content. As another example, the error information is stored in a list format. In this way, the data of the error information is clearer and facilitates the subsequent model prediction.

[0047] Optionally, the error information includes error information of reset value check, error information of reset source check and error information of full-bit read and write. Among them, the error information of reset value check includes: error register offset address, expected reset value, actual reset value. The error information of reset source check includes: error register offset address, expected reset source, actual reset source. The error information of full-bit read and write includes error register offset address, data before writing, written data, expected data after writing, and read data.

[0048] Here, the content of the error information corresponds to the target detection item in the previous text. The offset address in the error information is used to locate the register. During the test, if the expected value and the actual value are inconsistent, the error information is recorded. For example, the error information of the reset value check indicates that the actual reset value of the register in the reset state is inconsistent with the expected reset value.

[0049] Optionally, in step S104, the test verification device obtains the trained integrated learning model in the following manner: S141, the test verification device constructs a training data set; wherein the training data set includes multiple groups of register read and write data, each group of read and write data includes an original value, a written value and a written result, and each group of read and write data has read and write attributes marked.

[0050] S142, the test verification device uses the training data set to train and evaluate the integrated learning model until the prediction effect of the integrated learning model meets the preset conditions.

[0051] Here, the training data set is constructed using multiple groups of register read and write data. The number of groups can be 600 to 1500 groups to avoid too little data, which makes the model unable to capture the complex patterns of the data; and to avoid too much data, which makes the model overfit. Each group of read and write data includes the original value, the written value, and the written result; the original value refers to the current actual value of the register, the written value refers to the value attempted to be written to the register, and the written result refers to the actual value of the register after the write operation is completed. The read and write properties of the register are for each bit, so the read and write properties of each bit of each group of registers are labeled. This helps the model understand the read and write properties of the register, and then helps understand the data to improve the accuracy of the prediction.

[0052] The constructed training data set is used to train the ensemble learning model. Specifically, the training data set is divided into two, one is the test set and the other is the training set. The training set is used to train the model, and the test set is used to test and evaluate the trained model. When training the model with the training set, the parameters of the model are adjusted to optimize the hyperparameters of the model. Then, the performance of the model is evaluated using the test set, and the evaluation indicators include accuracy, F1 score, and confusion matrix. If the model performance meets the preset conditions (such as an accuracy rate of 95%), the trained model is obtained. If the model performance does not meet the preset conditions, retrain by adjusting the model parameters, removing some unimportant features, and increasing the amount of data until a model with better prediction effect is obtained. Among them, the ensemble learning model can be a random forest model, a neural network model, etc.

[0053] In this way, using the trained model to predict the read and write properties of the register data corresponding to the error information can provide additional diagnostic information to quickly identify problematic registers, reduce manual operations and improve verification efficiency.

[0054] Optionally, the value of each group of registers in the training data set is a 32-bit value. Here, because the data width of the register is usually 32 bits, the value of each group of registers is 32 bits. In practical applications, the read and write data bit values ​​can be set based on the width of the register.

[0055] Combination Figure 5 As shown, the embodiment of the present disclosure provides another method for register function verification, including: S101, the test verification device generates a register function test case according to the register list file.

[0056] S102, the test verification device performs regression simulation on the register function test case to obtain log records.

[0057] S103, testing and verifying the error information in the device extraction log record.

[0058] S205, the test verification device generates a register design document according to the register list file.

[0059] S206, the test verification device reads the information of the register corresponding to the error information in the register design document.

[0060] S207, the test verification device compares the error information and the read information, and if the contents are inconsistent, marks them in the register list file and the register design document.

[0061] S104, the test verification device uses the trained integrated learning model to predict the read and write properties of the register corresponding to the error information, and records the prediction results in the register list file and the register design document.

[0062] Here, the register list file is a structured data document used to store and analyze the specific properties of the register (register name, address, bit allocation, etc.). The register design document is an unstructured document used to record the design information of the register (the design information includes design specifications, functional descriptions, access rights, etc.). Therefore, after the error information is obtained by the regression simulation of the register function test case, the information of the error register in the register design document is read (the register is located by the offset address of the register) to compare with the error information. The inconsistent content is marked in the register list file and the register design document. In this way, it is convenient for later technicians to check to locate and solve the problem. Similarly, after the integrated learning model predicts the read and write properties of the error register, the prediction results are also recorded in the register list file and the register design document for reference and modification. In this way, the full process of register automatic verification is realized, and the correctness and consistency of the design intent, design documents and design code are guaranteed.

[0063] In addition, it should be noted that steps S205 to S207 and steps S101 to S103 are performed in no particular order.

[0064] Optionally, in step S205, the test verification device generates a register design document according to the register list file, including: S251, the test verification device obtains a module name list in a register list file, and creates a design document according to the module name.

[0065] S252, the test verification device extracts information of registers in the module to generate a description table and a description table of the registers in the design document.

[0066] Here, the register list file contains a module name list, and the module name list is obtained by reading the file according to the specified path. Among them, the module name to be obtained can be specified to obtain a list including only the specified module name. If not specified, a list of all module names is obtained. Then, a design document is created based on the module name. Among them, the design document can be one or more word documents. Then extract the information of the registers in each module and fill in the design document to generate a description table for each register and a description table for the register. In this way, a register design document can be automatically generated based on the register list file.

[0067] Optionally, in step S252, the test verification device extracts information of registers in the module to generate a register description table and a register description table in the design document, including: The test verification equipment extracts all register names and base addresses for each module and creates a register summary table.

[0068] The test verification device extracts the offset address, reset value, address partition, reset source name of the register and fills in the register summary table to obtain the description table.

[0069] The test verification device extracts the field description of the register and the read and write attributes of each field to generate a description table of the register.

[0070] Here, the register description table includes summary information of all registers, namely, register name, base address, offset address, reset value, address partition, and reset source name information. The register description table includes a specific functional description of each register, including at least field description and read / write attributes. Table 1 is an example of a register description table. In this way, design documents can be automatically generated based on the register list, and the consistency of the design documents and the design intent, as well as the accuracy of the design documents, can be ensured.

[0071] Table 1

[0072] Optionally, before obtaining the module list in the register list file, the test verification device further includes: The test verifies that the device fills in the register list according to the design intent and ensures that the register list format is unified.

[0073] Here, the register list usually includes the name, address, size, purpose, readability and writability of the register, and the specific content depends on the design intention. And when filling in, the format must be unified, such as using the VBA (Visual Basic for Applications, application macro language) editor for format control. Table 2 shows an example of the register list format.

[0074] Table 2

[0075] Combination Figure 7 As shown, an embodiment of the present disclosure provides a device 200 for register function verification, including a processor 201 and a memory 202. Optionally, the device 200 may also include a communication interface 203 and a bus 204. The processor 201, the communication interface 203, and the memory 202 may communicate with each other through the bus 204. The communication interface 203 may be used for information transmission. The processor 101 may call the logic instructions in the memory 202 to execute the method for register function verification of the above embodiment.

[0076] In addition, the logic instructions in the memory 202 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0077] The memory 202 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 201 executes the function application and data processing by running the program instructions / modules stored in the memory 202, that is, the method for register function verification in the above embodiment is implemented.

[0078] The memory 202 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 202 may include a high-speed random access memory and may also include a non-volatile memory.

[0079] The embodiments of the present disclosure provide a test verification device, including: a test verification device body, and the above-mentioned device 200 for register function verification. The device 200 for register function verification is installed in the test verification device body. The installation relationship described here is not limited to placement inside the test verification device body, but also includes installation connections with other components of the test verification device, including but not limited to physical connections, electrical connections or signal transmission connections, etc. Those skilled in the art can understand that the device 200 for register function verification can be adapted to a feasible product body, thereby realizing other feasible embodiments.

[0080] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for register function verification.

[0081] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.

[0082] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0083] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0084] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0085] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for register function verification, It is characterized in that include: Generate register function test cases based on register list file; Perform regression simulation on register functional test cases to obtain log records; Extract error information from log records; The trained ensemble learning model is used to predict the read and write properties of the registers corresponding to the error information, and the prediction results are recorded in the register list file.

2. The method according to claim 1, It is characterized in that Generate register function test cases based on the register list file, including: Store the register list file in the preset directory and determine the name of the module to be tested; Extracting register information contained in the module name to be tested to generate multiple test vectors; A collection of multiple test vectors is used as a register functional test case.

3. The method according to claim 2, It is characterized in that The register information contained in the module name to be tested includes: Extract the register name, base address, offset address, and reset value, and / or, reset source information, and / or, address partition, and / or, read / write mask information.

4. The method according to claim 1, It is characterized in that Run regression simulation on register functional test cases to obtain log records, including: Perform regression simulation on the register function test case according to the test parameters of the regression simulation; Save the log records generated by the regression simulation; The test parameters include target module name, and / or target module quantity, and / or target detection items, and / or target waveform, and / or number of regression parallel threads.

5. The method according to claim 1, It is characterized in that Extract error information from log records, including: Clean up redundant information in log records so that error messages have a uniform format; Use regular expressions to traverse the cleared log records to match the error information; wherein the regular expressions are defined based on the unified format of the error information; Stores the matching error information.

6. The method according to claim 1, It is characterized in that The trained ensemble learning model is obtained by: Constructing a training data set; wherein the training data set includes multiple groups of register read and write data, each group of read and write data includes an original value, a written value, and a written result, and each group of read and write data has been annotated with read and write attributes; The ensemble learning model is trained and evaluated using the training data set until the prediction effect of the ensemble learning model meets the preset conditions.

7. The method according to any one of claims 1 to 6, It is characterized in that After extracting the error information in the log record, it also includes: Generate register design document based on register list file; Read the register information corresponding to the error information in the register design document; Compare the contents of the error information and the read information, and if the contents are inconsistent, mark the register list file and the register design document.

8. The method according to claim 7, It is characterized in that Generate register design documents based on the register list file, including: Get the module name list in the register list file and create a design document based on the module name; Extract the information of registers in the module to generate register description tables and description tables in the design document.

9. A device for register function verification, comprising a processor and a memory storing program instructions, It is characterized in that The processor is configured to execute the method for register function verification according to any one of claims 1 to 8 when running the program instructions.

10. A test verification device, It is characterized in that include: Test and verify the equipment itself; The device for register function verification as described in claim 9 is installed in the test verification equipment body.

Citation Information

Cited By

  • Power domain hanging prevention simulation verification method and system based on AI model

    CN120822472A

  • Chip test reproduction method, device and equipment and computer readable storage medium

    CN121052181A

  • General register Pattern generation method based on Chroma platform

    CN121455763A