Bifurcation module verification solution automatic generation method and device

The automated script tool EZ_formal generates Assertion and Formal verification environments, which solves the problem of low verification efficiency and accuracy caused by the complexity of SoC chips, achieves fast and accurate Bifurcation module verification, and improves the reliability of the chip.

CN118363869BActive Publication Date: 2024-10-15WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410613989.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-10-15
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

As the complexity of SOC chips increases, the difficulty and time of chip verification increase exponentially. It is difficult for existing technology to ensure complete verification within a limited time, which makes it difficult to improve verification efficiency and accuracy, affecting the reliability of the chip.

Method used

The automated script tool EZ_formal is used to generate Assertion and Formal verification environments by parsing the signal interface files and BIF scheme tables of the Bifurcation module, traversing the BIF path, generating assertion information and inputting it into the Formal tool for verification, and realizing customized batch generation of Assertion and Formal verification environments. .

Benefits of technology

It significantly improves the efficiency and accuracy of verification, simplifies the problem discovery process, reduces the verification work cycle, avoids clerical errors caused by manually constructing test cases, ensures the accuracy of verification results, and saves time and labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118363869B_ABST
    Figure CN118363869B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for automatically generating a Bifurcation module verification solution, the method comprising: using an automated script to obtain a signal interface file and a BIF solution table of a Bifurcation module, parsing the interface file to obtain all signals to be tested and the current BIF mode of the Bifurcation module; polling the BIF method of each signal to be tested based on the solution table, traversing all BIF paths of the Bifurcation module; generating assertion information corresponding to the current BIF mode for each BIF path through a Formal tool, and performing Formal verification on the Bifurcation module based on the assertion information. The technical solution of the present application customizes batch generation of Assertion and Formal verification environments for Bifurcation modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of chip verification, and in particular to a method and device for automatically generating a Bifurcation module verification solution. Background Art

[0002] As chip complexity increases, the efficiency of chip verification has become a major factor affecting the successful delivery of the entire chip. Generally, it is necessary to start building a platform for verification intervention when about 50% of the design and development code is completed. In the early stage, it is necessary to discover as many problems as possible within a limited time to improve the reliability of the chip.

[0003] However, the increasing complexity of Soc chips has increased the difficulty and time of verification exponentially. It becomes increasingly important to accelerate chip verification while ensuring complete verification. Summary of the invention

[0004] The purpose of this application is to provide a method and device for automatically generating a Bifurcation module verification solution, aiming to customize batch generation of Assertion and Formal verification environments for Bifurcation modules, so as to greatly improve verification efficiency and accuracy while ensuring complete verification, thereby improving chip reliability.

[0005] According to a first aspect of the present application, a method for automatically generating a Bifurcation module verification solution is provided, comprising:

[0006] Using an automated script to obtain a signal interface file and a BIF scheme table of a Bifurcation module, parsing the interface file to obtain all signals to be tested and a current BIF mode of the Bifurcation module;

[0007] Polling the BIF method of each signal to be tested based on the scheme table, traversing all BIF paths of the Bifurcation module;

[0008] Assertion information corresponding to the current BIF mode is generated for each BIF path, and the assertion information is input into a formal tool to perform formal verification on the Bifurcation module.

[0009] In a possible implementation, the BIF mode of the Bifurcation module includes a P2L_Replication mode, a P2L_Split mode, a P2L_Split flip mode, an L2P mode, and an L2P flip mode.

[0010] In a possible implementation, traversing all BIF paths of the Bifurcation module further includes:

[0011] Poll the BIF method of each signal to be tested to determine the Source, Destination, and Enable information of each link to be tested.

[0012] In a possible implementation, determining Source, Destination, and Enable information of each link to be tested further includes:

[0013] All the signals to be tested and the current BIF mode of the Bifurcation module are used to generate a port link mapping matrix, extract the key value and the number of times of the port link mapping matrix, convert them into a key value matrix and a number matrix respectively, and use the key value matrix and the number matrix to generate the Source, Destination and Enable information of each link to be tested.

[0014] In a possible implementation, the performing formal verification on the Bifurcation module further includes:

[0015] According to the signal interface file and the BIF scheme table of the Bifurcation module, the design code is generated by using an automated script, the assertion information and the design code are input into the Formal tool, and the Formal verification is performed on the Bifurcation module.

[0016] According to a second aspect of the present application, there is provided a device for automatically generating a Bifurcation module verification solution, comprising:

[0017] A parsing unit, used for obtaining a signal interface file and a BIF scheme table of a Bifurcation module by using an automated script, and parsing the interface file to obtain all signals to be tested and a current BIF mode of the Bifurcation module;

[0018] A traversal unit, used for polling the BIF method of each signal to be tested based on the scheme table, and traversing all BIF paths of the Bifurcation module;

[0019] The verification unit is used to generate assertion information corresponding to the current BIF mode for each BIF path, and input the assertion information into a formal tool to perform formal verification on the Bifurcation module.

[0020] Another aspect of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is used to read the instructions and execute the aforementioned method for automatically generating a verification solution based on a Bifurcation module.

[0021] Another aspect of the present invention provides a storage medium storing a plurality of instructions, wherein the plurality of instructions can be read by a processor and execute the aforementioned method for automatically generating a verification solution based on a Bifurcation module.

[0022] Compared with the related art, the technical solution of this application has the following advantages:

[0023] The script tool EZ_formal, which supports the automatic generation of Formal verification Assertion and the entire Formal verification environment, is used to customize batch generation of Assertion and Formal verification environment for Bifurcation modules. According to the given Bifurcation scheme table, by extracting key information, all Assertion checks for the entire BIF verification are quickly generated, thereby quickly starting Formal verification, simplifying the process of finding problems, and significantly reducing the verification work cycle. The scheme of the present invention can also be extended to all verification work involving Mux selection modules and similar Port and Lane interleaving selection modules to save time and labor costs. By directly reading the design scheme through the EZ formal tool, verification can be started synchronously with the design, speeding up the verification progress, while avoiding the mistakes caused by manually constructing formal test cases. Since both the verification and design personnel use the design documents as standard input, the accuracy of the verification results can be guaranteed.

[0024] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures and processes indicated in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. It is obvious that the drawings described below are certain embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0026] Figure 1 It is a schematic diagram of ports and lanes of a Bifurcation module according to the related art.

[0027] Figure 2 4 is a flowchart of a method for automatically generating a Bifurcation module verification solution according to an exemplary embodiment of the present application.

[0028] Figure 3 It is a schematic diagram of a BIF scheme according to an exemplary embodiment of the present application.

[0029] Figure 4 is a schematic diagram of a P2L_Replication mode according to an exemplary embodiment of the present application.

[0030] Figure 5 is a schematic diagram of the P2L_Split mode according to an exemplary embodiment of the present application.

[0031] Figure 6 is a schematic diagram of the L2P mode according to an exemplary embodiment of the present application.

[0032] Figure 7 is a schematic diagram of the Flip mode according to an exemplary embodiment of the present application.

[0033] Figure 8 It is a schematic diagram of a scheme in the P2L_Replication mode according to an exemplary embodiment of the present application.

[0034] Fig. 9 It is a schematic table of Source, Destination, and Enable information according to an exemplary embodiment of the present application.

[0035] Fig.10 It is a schematic table of multi-bit width Source, Destination, and Enable information according to an exemplary embodiment of the present application.

[0036] Fig.11 is a schematic diagram of a BIF signal input component according to an exemplary embodiment of the present application.

[0037] Fig.12 It is a schematic diagram of the BIF verification process according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] In the field of chip verification, formal verification is used to verify the correctness of the system during the hardware or software design process. It verifies whether the design specifications are met through mathematical reasoning, logical inference and automated methods without relying on testing the design. Formal verification is usually applied to the verification of digital circuit design, processor design, communication protocols and software systems. The core idea of ​​formal verification is to use formal methods to prove certain properties of the system, such as functional correctness, security, deadlock and data competition. The main steps include establishing design specifications, building mathematical models, defining properties and attributes, and using automated tools for verification. Problems can be discovered and solved in the early stages of design to improve the reliability and security of the system. In practical applications, formal verification is usually combined with traditional simulation verification to achieve more comprehensive verification coverage. The most commonly used verification method in formal verification is formal, which uses mathematical methods to build models and traverse the effects of all stimuli at the module level. As Soc chips become more and more complex, the difficulty and time of verification increase exponentially. How to accelerate chip verification under the premise of ensuring complete verification becomes increasingly important.

[0040] In high-speed I / O chips, the PCIe protocol, as a high-speed serial bus protocol, provides a reliable data transmission channel and high bandwidth capabilities. Since a large amount of data transmission is performed in real time within the PCIe protocol, including the conversion between data transmission ports (Port) and data links (Lane), this module is called a Bifurcation module, or BIF module for short. Bifurcation meets the needs of increasingly complex computer systems and applications. In some cases, users may need to connect multiple PCIe devices or functions to the same physical PCIe port, and the traditional PCIe structure may not be able to meet this need. By supporting Bifurcation, users can configure the PCIe bus more flexibly and achieve a higher degree of customization and scalability. The Bifurcation module completes various combinations between Port and Lane, including a large number of multiplexer (Mux) link selections. Figure 1 This is a typical schematic diagram of the ports and lanes of a Bifurcation module. The Bifurcation module combines 8 ports with 8 lanes, providing a flexible way to support multiple application scenarios and device access, enabling users to better manage and configure the PCIe bus to meet the connection requirements of different systems and application scenarios, and improve system performance and scalability.

[0041] However, the current PCIe system lacks internal rapid customized verification for BIF modules. The traditional general method is to test the module's functionality, that is, to send stimulus according to the connection method of different BIF modes, construct test cases, and check whether the output Port or Lane is the expected signal. This method has the following disadvantages:

[0042] 1) Verification needs to be intervened after the entire subsystem is developed, which requires a lot of time to build and debug the verification environment. When developing test cases for different BIF modes, there is a lack of fast and timely response, which affects the progress of the entire PCIe system verification.

[0043] 2) After the problem is found, it is complicated to locate it. On the basis of being familiar with the entire business, the entire BIF connection method needs to be gradually located, and there is a lack of an intuitive and rapid process for discovering problems.

[0044] 3) Verifiers need to refer to the designer’s code for verification, which can easily lead to misunderstandings between designers and verifiers, affecting the progress of the entire verification.

[0045] 4) Manually construct assertion test cases. Since assertion testing requires a large number of tests, it is easy to cause typos and affect verification accuracy.

[0046] Based on the above analysis, this application provides a method and device for automatically generating a Bifurcation module verification solution, using the script tool EZ_formal that supports automatic generation of Formal verification Assertions, combined with the combination of all Bifurcation methods, and customized batch generation of Assertion assertions based on the Formal tool, to perform Assertion checks on the Bifurcation module. Its input is the interface file provided by the design and the Excel table file of the BIF method. By parsing the signal name, single Lane width value, mode selection, flip selection and other information in the BIF file, each Bifurcation method is polled, and finally one-click generation and batch generation of the Assertion to be tested that can be directly input by the formal tool are achieved.

[0047] According to the Bifurcation implementation plan given by the chip architecture, a Formal-based verification solution is adopted at the beginning of the project. Both verification and design use the original Bifurcation table as input, generate design code based on the original table, and the verification personnel develop test cases based on the original table. The automated script processes the input table, extracts key information, and quickly generates the entire BIF verification environment and all Assertion checks, so as to quickly start the automated Formal verification using the Formal tool. All Mux paths are traversed through the Formal tool to more comprehensively discover problems in the Bifurcation module of the chip, thereby improving the accuracy of the Bifurcation module verification and saving time in the entire chip verification process.

[0048] See also Figure 2 The method for automatically generating a Bifurcation module verification solution provided in the embodiment of the present application includes:

[0049] Step 101: using an automated script to obtain a signal interface file and a BIF scheme table of a Bifurcation module, and parsing the interface file to obtain all signals to be tested and a current BIF mode of the Bifurcation module.

[0050] The embodiment of the present application takes a BIF module in X8 mode as an example to illustrate that the module needs to perform multiple permutations and combinations of lanes and ports in X8 mode to flexibly adapt to the mode output in various situations. Figure 3 As shown in the figure, the horizontal axis represents the Lane Number, and each row of the vertical axis represents the selection method of each BIF solution. For example, the second row indicates that in the mode of BIF 0, Lane 0 to Lane 7 are all Port 0. There are 26 BIF modes from BIF-0 to BIF-25, which can be flexibly selected. Therefore, when generating the assertion to be tested, it is necessary to traverse 26 situations for each signal.

[0051] The BIF module is a branch and intersection module of Lane and Port, so it can be divided into two parts: Link to Port (Lane to Port) and Port to Link (Port to Lane), referred to as P2L and L2P, and the two parts need to generate Assertion separately. For the Port to Lane part, there are two modes: P2L-Replication and P2L-Split.

[0052] Figure 4It is the replication mode of P2L, also known as the replication mode. When bif_mode is 0, the signal width of the port cfg_buffer_mode_p signal is 1, and it is set to P2L-replication mode. The port can be converted into 8 lanes from cfg_buffer_mode[0] to cfg_buffer_mode[7]. The sources of these 8 lanes are all from cfg_buffer_mode_p.

[0053] Figure 5 The split mode of P2L is also called the split mode. When bif_mode is 0, in the P2L-split mode, port_din[7:0] is converted to lane_dout[0], indicating that port0 is mapped to lane0. Similarly, port_din[7] is converted to lane_dout[7], indicating that port7 is mapped to lane7. The slices of the port signal are mapped to the corresponding Lane0 to Lane7 according to the BIF rules.

[0054] Lane to Port mode is the opposite direction of P2L, and the signals on each Lane are assigned to the corresponding Ports through different BIF mode selections. When the lane_din[7:0] signal is set to bif_mode 0, in L2P mode, refer to Figure 6 , lane_din[0] is converted to port_dout[0], indicating that lane0 is mapped to port0. Similarly, lane_din[7] is converted to port_dout[7], indicating that lane7 is mapped to port7. The slices of Lane signals are mapped to the corresponding Port0 to Port7 according to the BIF rules.

[0055] In addition to the above P2L and L2P modes, after passing through the BIF module, the output Port or Lane can be flipped according to corresponding rules, which is called Flip. Figure 7 This is a typical Flip mode, which flips Lane 0 to Lane 7 output by P2L to Lane 7 to Lane 0 of the physical layer, respectively, and can adapt to more scenarios.

[0056] Step 102: polling the BIF method of each signal to be tested based on the scheme table, and traversing all BIF paths of the Bifurcation module.

[0057] Based on the design function of the BIF module, the verification solution for the BIF module is converted into: covering 5 different modes, including P2L_Replication, P2L_Split, P2L_Split_Flip, L2P, and L2P_Flip, to accurately, completely, and efficiently traverse all BIF paths of all signals to be tested according to the input information. The Formal tool uses mathematical methods to build a model, traverse all stimuli at the module level, and can effectively traverse and check the input Assertion for the BIF module, thereby achieving the purpose of fast and complete verification. The core issue of generating the Assertion of the signal link to be tested is to find the three information of Source, Destination, and Enable of the link to be tested, so as to use the Formal tool to perform Assertion checks.

[0058] Step 103: Generate assertion information corresponding to the current BIF mode for each BIF path, and input the assertion information into a formal tool to perform formal verification on the Bifurcation module.

[0059] like Figure 8 As shown, the P2L_Replication mode under BIF mode = 3 is used as an example for explanation. For the signal cfg_elastic_buffer_mode used to configure different modes of the elastic buffer, the signal bit width is 1. Under BIF mode = 3, Port0 is mapped to Lane0 to Lane3, while Port2 is mapped to Lane4 to Lane5, and Port3 and Port7 are mapped to Lane6 and Lane7 respectively.

[0060] In a further possible embodiment of the present application, determining the Source, Destination and Enable information of each link to be tested further includes:

[0061] Generate a port link mapping matrix according to all the signals to be tested of the Bifurcation module and the current BIF mode,

[0062] Extract the key value and frequency of the port link mapping matrix and convert them into a key value matrix and a frequency matrix respectively.

[0063] The key value matrix and the frequency matrix are used to generate Source, Destination and Enable information of each link to be tested.

[0064] For example, extract the BIF mode = 3 mode into a complete port link mapping matrix BIF_3 = [0, 0, 0, 0, 2, 2, 3, 7], extract the key value and times of the matrix through the Python scripting language, and convert it into a key value matrix Key = [0, 2, 3, 7], which represents all the ports that need to be mapped in this mode; generate the times matrix Times = [4, 2, 1, 1] according to the number of times each port appears, then the matrix Key and the matrix Times can completely represent all the information in BIF_3. On this basis, the Source, Destination and Enable information of the generated Formal tool can be extracted through the information of the matrix Key and the matrix Times, such as Fig. 9 shown.

[0065] For the case where the bit width is multiple bits, the P2L_Split mode can also generate the corresponding Assertion by extracting the BIF mode key value and the frequency matrix. Take the signal tX data with a bit width of 32 bits as an example. After script processing, the generated Formal tool P2L_Split input is as follows Fig.10 See Fig.11 The port name, signal width, P2L and L2P processing modes of each signal can be directly read from the BIF signal input through scripts, thereby reducing errors introduced by human intervention in the entire process.

[0066] By taking the BIF signal input and BIF solution table provided by the design as input, parsing the signal name, single lane width, P2L mode selection and other information of each line in the BIF signal input, and polling the BIF method of each signal to be tested according to the BIF solution table, the Assertion to be tested that can be directly input by the Formal tool can be generated in one click and batch generated, and the Assertion and RTL code are used as the input of the Formal tool for verification, so as to quickly start the Formal verification of the BIF module and accurately and completely verify the entire BIF module. The whole process is as follows: Fig.12 shown.

[0067] In addition to the verification solution, the BIF module is composed of multiple Mux selection circuits according to certain rules to form a pure combinational logic, and the implementation of the design code (RTL code) can also be developed through script tools. The EZ_formal tool provided in this application includes the generation of Assertion in the entire verification and the generation of the entire Formal verification environment, covering 5 different modes including P2L_Replication, P2L_Split, P2L_Split_Flip, L2P, and L2P_Flip. In a feasible embodiment, one-click generation can be achieved for the design code, and finally a one-click solution for the entire design and verification of the BIF module is realized. The implementation method is to determine the number of Lanes that require BIF and combine them with Ports. The design can generate the BIF module logic code in one click through the script according to the BIF solution table and the required signal interface file; the verification generates the Formal Assertion to be tested of the BIF module and the entire Formal verification environment in one click through the BIF solution table and the required signal interface file. The entry points for design and verification are all from the same input component, and the design code, verification assertion, and verification environment are generated with one click, realizing a one-click solution for the entire design and verification of the BIF module.

[0068] In the actual project, the BIF module is verified using the Assertion generated by the EZ_formal tool and the method of the entire Formal verification environment. All the Assertion to be tested and the entire Formal verification environment are generated with one click, which compresses the workload that originally took several months to 2 weeks. The final code coverage result reaches 99%+.

[0069] It can be seen that this application provides a method for automatically generating a Bifurcation module verification solution, which has the following advantages over related technologies:

[0070] The script tool EZ_formal, which supports the automatic generation of Formal verification Assertion and the entire Formal verification environment, is used to customize batch generation of Assertion and Formal verification environment for Bifurcation modules. According to the given Bifurcation scheme table, by extracting key information, all Assertion checks for the entire BIF verification are quickly generated, thereby quickly starting Formal verification, simplifying the process of finding problems, and significantly reducing the verification work cycle. The scheme of the present invention can also be extended to all verification work involving Mux selection modules and similar Port and Lane interleaving selection modules to save time and labor costs. By directly reading the design scheme through the EZ formal tool, verification can be started synchronously with the design, speeding up the verification progress, while avoiding the mistakes caused by manually constructing formal test cases. Since both the verification and design personnel use the design documents as standard input, the accuracy of the verification results can be guaranteed.

[0071] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of method steps. It is understandable that, in order to realize the above functions, the computer includes a hardware structure and / or software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of a combination of hardware and computer software. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0072] The embodiment of the present application can divide the computer into functional modules according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0073] In the case of dividing each functional module according to each function, the present application also provides a Bifurcation module verification solution automatic generation device, including:

[0074] A parsing unit, used for obtaining a signal interface file and a BIF scheme table of a Bifurcation module by using an automated script, and parsing the interface file to obtain all signals to be tested and a current BIF mode of the Bifurcation module;

[0075] A traversal unit, used for polling the BIF method of each signal to be tested based on the scheme table, and traversing all BIF paths of the Bifurcation module;

[0076] The verification unit is used to generate assertion information corresponding to the current BIF mode for each BIF path, and input the assertion information into a formal tool to perform formal verification on the Bifurcation module.

[0077] The above-mentioned device can be implemented by the automatic generation method of the Bifurcation module verification solution provided by the embodiment of the first aspect above. The specific implementation method can be found in the description of the embodiment of the first aspect, which will not be repeated here.

[0078] The embodiment of the present application can divide the functional modules of the device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0079] Another aspect of an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is used to read the instructions and execute the aforementioned method for automatically generating a verification solution based on a Bifurcation module.

[0080] Another aspect of an embodiment of the present application provides a storage medium, which stores a plurality of instructions, and the plurality of instructions can be read by a processor to execute the aforementioned method for automatically generating a verification solution based on a Bifurcation module.

[0081] The processor of the embodiment of the present application is a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components that can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present application.

[0082] The memory of the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Specific memory types include but are not limited to ROM, RAM, DRAM, etc.

[0083] It is understood that the hardware structures, names and parameters described in the above embodiments are only examples. Those skilled in the art can also easily think of combinations and adjustments to the structural features of the above embodiments according to the use requirements, and should not limit the concept of the present application to the specific details of the above examples.

[0084] Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that he or she may still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein, and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for automatically generating a Bifurcation module verification solution, characterized in that: include: Using an automated script to obtain a signal interface file and a BIF scheme table of a Bifurcation module, parsing the interface file to obtain all signals to be tested and a current BIF mode of the Bifurcation module; Polling the BIF method of each signal to be tested based on the scheme table, traversing all BIF paths of the Bifurcation module; Generating assertion information corresponding to the current BIF mode for each BIF path, and inputting the assertion information into a formal tool to perform formal verification on the Bifurcation module; The traversing all BIF paths of the Bifurcation module further includes: Poll the BIF method of each signal to be tested to determine the Source, Destination and Enable information of each link to be tested; The determining of Source, Destination and Enable information of each link to be tested further includes: According to all the signals to be tested of the Bifurcation module and the current BIF mode, a port link mapping matrix is ​​generated, and the key value and the number of times of the port link mapping matrix are extracted and converted into a key value matrix and a number matrix respectively, and the key value matrix and the number matrix are used to generate the Source, Destination and Enable information of each link to be tested.

2. The method for automatically generating a Bifurcation module verification solution according to claim 1, characterized in that: The BIF modes of the Bifurcation module include P2L_Replication mode, P2L_Split mode, P2L_Split flip mode, L2P mode and L2P flip mode.

3. The method for automatically generating a Bifurcation module verification solution according to claim 1, characterized in that: The performing formal verification on the Bifurcation module further comprises: According to the signal interface file and the BIF scheme table of the Bifurcation module, the design code is generated by using an automated script, the assertion information and the design code are input into the Formal tool, and the Formal verification is performed on the Bifurcation module.

4. A Bifurcation module verification solution automatic generation device, characterized in that: include: A parsing unit, used for obtaining a signal interface file and a BIF scheme table of a Bifurcation module by using an automated script, and parsing the interface file to obtain all signals to be tested and a current BIF mode of the Bifurcation module; A traversal unit, used for polling the BIF method of each signal to be tested based on the scheme table, and traversing all BIF paths of the Bifurcation module; A verification unit, configured to generate assertion information corresponding to a current BIF mode for each BIF path, and input the assertion information into a formal tool to perform formal verification on the Bifurcation module; The traversal unit is further used for: Poll the BIF method of each signal to be tested to determine the Source, Destination and Enable information of each link to be tested; The traversal unit is further used for: According to all the signals to be tested of the Bifurcation module and the current BIF mode, a port link mapping matrix is ​​generated, and the key value and the number of times of the port link mapping matrix are extracted and converted into a key value matrix and a number matrix respectively, and the key value matrix and the number matrix are used to generate the Source, Destination and Enable information of each link to be tested.

5. The automatic generation device for Bifurcation module verification solution according to claim 4, characterized in that: The BIF modes of the Bifurcation module include P2L_Replication mode, P2L_Split mode, P2L_Split flip mode, L2P mode and L2P flip mode.

6. The automatic generation device for Bifurcation module verification solution according to claim 4, characterized in that: The verification unit is further used to: According to the signal interface file and the BIF scheme table of the Bifurcation module, the design code is generated by using an automated script, the assertion information and the design code are input into the Formal tool, and the Formal verification is performed on the Bifurcation module.

7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is used to read the instructions and execute the method for automatically generating a Bifurcation module verification solution as described in any one of claims 1 to 3.

8. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the plurality of instructions can be read by a processor and executed by the method for automatically generating a Bifurcation module verification solution as described in any one of claims 1 to 3.