Combination equivalence verification method based on intelligent engine selection

By constructing the Miter circuit in combination equivalence verification, identifying equivalence node pairs, extracting embedded vectors and predicting the optimal scanning engine, the problems of insufficient engine selection and limited adaptability to specific circuit structures in the prior art are solved, and efficient and adaptive combination equivalence verification is achieved, which significantly improves the efficiency and accuracy of handling high XOR density circuits.

CN120196533AActive Publication Date: 2025-06-24NINGBO UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510669160.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2025-06-24
Estimated Expiration
2045-05-23

AI Technical Summary

Technical Problem

The prior art has insufficient engine selection in combination equivalence verification (CEC), limited adaptability to specific circuit structures, and deal with the problems of low efficiency of medium-sized, high XOR density circuits.

Method used

By building a Miter circuit and representing it in AIG format, random simulation is performed to identify potential equivalence pairs, extract the embedding vectors and input them into the trained AlexNet network, dynamically predict the optimal scanning engine to perform equivalence verification, merge equivalence nodes, and finally use the SAT solver to verify equivalence.

Benefits of technology

It realizes efficient and adaptable optimal scanning engine selection, significantly improving the efficiency and accuracy of processing high XOR density circuits, reducing solution time, and improving verification stability and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120196533A_ABST
    Figure CN120196533A_ABST
Patent Text Reader

Abstract

The invention discloses a combination equivalence verification method based on intelligent engine selection, and the method comprises the steps: constructing Mitter circuit random simulation, extracting embedded vectors, splicing the embedded vectors into an image, inputting the image into a trained AlexNet network, carrying out the prediction to obtain an optimal scanning engine, and carrying out the equivalence verification of a candidate equivalent node pair, and after all candidate equivalent node pairs are verified and merged, performing final equivalence verification by using an SAT solver. According to the method, efficient and self-adaptive optimal scanning engine selection can be realized, when a high-XOR density circuit is processed, remarkable advantages are shown, the processing speed is greatly improved, and the verification efficiency and accuracy of equivalence verification of the two circuits can be remarkably improved. According to the method, a new research thought is provided for the design of the combination equivalence verification tool, the solving time can be remarkably shortened, the stability and adaptability of solving are improved, and the method has important practical significance in application of the logic synthesis field and development of the equivalence verification tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a combination equivalence verification method based on intelligent engine selection. Background Art

[0002] Combinational Equivalence Checking (CEC) is a key technology for formally proving whether two designs are functionally equivalent. It is widely used in Electronic Design Automation (EDA) and digital integrated circuit (IC) design. CEC runs through the entire EDA process, from high-level design inputs such as register transfer level (RTL) to silicon wafer manufacturing. Its core purpose is to verify whether circuits at different design stages maintain functional equivalence, such as performing equivalence checks between RTL and netlist.

[0003] Currently, most combinatorial CEC algorithms create a "miter" circuit by connecting the inputs and outputs of the two circuits being compared. If the output of the miter circuit is 0, it indicates that the two designs are functionally equivalent. The miter circuit can be treated as a single entity, and its output values ​​can be verified using a boolean satisfiability (SAT) solver or a binary decision diagram (BDD) solver. However, as the circuit size increases, the memory usage and computation time grow nonlinearly, making it difficult for the solver to handle. To address this issue, circuit scanning techniques are used to merge potentially equivalent internal nodes, thereby reducing the size of the overall circuit. First, potentially equivalent pairs of internal nodes are identified through random simulation. Then, the scanning engine checks the equivalence of each pair of nodes and merges the equivalent nodes after verification.

[0004] Typically, scan engines include BDD scan, SAT scan, and simulation. The efficiency of these engines depends on the structure of the circuit. In circuits with dense XOR chains (such as datapath circuits containing multipliers, adders, and multiplexers), SAT solvers are often challenged, while exact probability-based simulation (EPS) and BDD scans are more effective. Hybrid-CEC is one of the most advanced CEC tools, which uses SAT scans in circuits with low XOR density and EPS in small-scale, high-XOR density circuits. However, it is not suitable for medium-sized circuits with high XOR density, and there is a lack of appropriate scheduling methods for these scan engines, which needs further research and optimization. Summary of the Invention

[0005] The purpose of the present invention is to provide a combined equivalence verification method based on intelligent engine selection, aiming to solve the problems in the prior art such as insufficient engine selection in combined equivalence verification (CEC), limited adaptability to specific circuit structures, and low efficiency in processing medium-scale and high-XOR density circuits. The method of the present invention can realize efficient and adaptive optimal scan engine selection according to the specific characteristics of the two circuits to be verified for equivalence, show significant advantages when processing high-XOR density circuits, greatly improve the processing speed, and can significantly improve the verification efficiency and accuracy of the equivalence verification of the two circuits.

[0006] The technical solution adopted by the present invention to solve the above technical problems is as follows: A combined equivalence verification method based on intelligent engine selection. First, construct the two circuits to be verified for equivalence into a Miter circuit and represent it in AIG format. Then, perform random simulation on the Miter circuit to identify potential equivalent node pairs, and then extract the embedding vectors of the function and structure of each pair of candidate equivalent node pairs. After splicing the extracted embedding vectors into an image, input it into the trained AlexNet network. The optimal scan engine is predicted by the trained AlexNet network, and the candidate equivalent node pairs are verified for equivalence through the optimal scan engine, and the candidate equivalent node pairs verified to be equivalent are merged. After all candidate equivalent node pairs are verified and merged, use a SAT solver to perform the final equivalence verification on the Miter circuit.

[0007] Preferably, the combined equivalence verification method based on intelligent engine selection of the present invention specifically includes the following steps: Step 1: Construct the two circuits to be verified for equivalence into a Miter circuit and represent it in AIG format; Step 2: Perform random simulation on the Miter circuit, identify potential equivalent node pairs and classify them as candidate equivalent node pairs to obtain a candidate equivalent set, and enter Step 3; if a counterexample is found in the random simulation, it is determined that the two circuits are not equivalent, and the verification process is terminated; Step 3: Input the candidate equivalent node pairs in the candidate equivalent set into a circuit characterization learning tool to extract the embedding vectors of the function and structure of each pair of candidate equivalent node pairs; Step 4: Adjust the first layer of the existing AlexNet network from a three-channel convolutional layer to a single-channel convolutional layer, train the adjusted AlexNet network to obtain the trained AlexNet network; splice the extracted embedding vectors into an image and input the image into the trained AlexNet network, and the trained AlexNet network predicts the optimal scanning engine based on the spliced embedding vectors. Verify the equivalence of the candidate equivalent node pairs through the optimal scanning engine. If the candidate equivalent node pairs are verified to be equivalent, merge them. Step 5: After all candidate equivalent node pairs are verified and merged, use a SAT solver to perform a final equivalence verification on the Miter circuit. If the verification result is SAT, it means that the two circuits are not equivalent; if the verification result is UNSAT, it means that the two circuits are equivalent.

[0008] Preferably, in the random simulation of Step 2, a set of random values is assigned to the input ports of the Miter circuit, and these random values are propagated to the output ports of the Miter circuit. Record and compare the logical behaviors of different internal nodes to identify potential equivalent node pairs.

[0009] Preferably, in Step 3, the circuit characterization learning tool is the DeepGate2 tool. DeepGate2 is a known circuit characterization learning tool based on deep learning, which is specifically used to extract the functional and structural features of nodes or sub-circuits from digital logic circuits. It analyzes the circuit through a neural network model to generate embedding vectors that can characterize the logical behavior and topological structure of the circuit. These vectors can be used for various EDA downstream tasks, such as equivalence verification, logic optimization, and fault diagnosis.

[0010] Preferably, in Step 4, the process of training the adjusted AlexNet network is as follows: Use EPS, SAT, and BDD as candidate scanning engines, represent the labels corresponding to the candidate scanning engines with one-hot encoding, and test whether the two candidate equivalent nodes in each pair of candidate equivalent node pairs are equivalent through EPS, SAT, and BDD respectively. Select the label corresponding to the scanning engine with the shortest test time as the measured optimal scanning engine label; splice the embedding vectors of each pair of candidate equivalent node pairs into an image, and use the spliced embedding vectors and the measured optimal scanning engine label as training data. Use 80% of the training data as the training set, 10% of the training data as the validation set, and the remaining 10% of the training data as the test set to train the adjusted AlexNet network to obtain the trained AlexNet network.

[0011] The embedded vectors are concatenated into an image. This concatenation method preserves the structural and functional relationships between nodes, enabling the AlexNet network to learn meaningful representations and perform classification. To adapt to the input form of the embedded vectors, the first layer of the AlexNet network in the present invention is adjusted. The original three-channel convolutional layer is adjusted to a single-channel convolutional layer. This adjustment enables the AlexNet network to process the concatenated embedded vectors as a single-channel image and use it as a classifier. The present invention uses three scanning engines, namely EPS, SAT, and BDD, as candidate scanning engines, represents the labels corresponding to the candidate scanning engines using one-hot encoding, and tests each pair of candidate equivalent node pairs. This method can dynamically predict the optimal scanning engine according to the characteristics of each pair of candidate equivalent node pairs, thereby improving the efficiency and accuracy of equivalence verification.

[0012] Compared with the prior art, the present invention has the following advantages: The combined equivalence verification method based on intelligent engine selection in the present invention is a machine learning-based adaptive engine selection method, aiming to solve the problems of insufficient engine selection in the prior art in combined equivalence verification (CEC), limited adaptability to specific circuit structures, and low efficiency in processing medium-scale and high-XOR-density circuits. The method of the present invention can achieve efficient and adaptive optimal scanning engine selection according to the specific characteristics of the two circuits to be verified for equivalence. When processing high-XOR-density circuits, it shows significant advantages, with a substantial increase in processing speed, and can significantly improve the verification efficiency and accuracy of the equivalence verification of the two circuits. The present invention provides a new research idea for the design of combined equivalence verification tools, which can not only significantly reduce the solving time but also improve the stability and adaptability of the solution, and has important practical significance for the application in the field of logic synthesis and the development of equivalence verification tools. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 Schematic diagram of the Miter circuit in the embodiment; Figure 2 Schematic diagram of an AIG; Figure 3 Schematic diagram of the core content of Steps 2 to 4 in the embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0014] The present invention will be further described in detail below in conjunction with the embodiments of the drawings.

[0015] Embodiment: The method of the present invention is used to Figure 1 perform equivalence verification on the Figure 1 circuit shown. As shown in (A) of Figure 1 are Circuit 1 and Circuit 2, and as shown in (B) of Figure 1Among them, p is the output of Circuit 1, q is the output of Circuit 2, a and b are the inputs of Circuit 1 and Circuit 2, and z is the output of the XOR gate with p and q as inputs. For Figure 1 The method for verifying the equivalence of the shown circuit specifically includes the following steps: Step 1: Construct the Miter circuit from the two circuits (i.e., Circuit 1 and Circuit 2) whose equivalence is to be verified. As shown in Figure 1 (B) therein, connect the two circuits through an XOR gate to form a Miter circuit, and represent the Miter circuit in AIG format. AIG is a special directed acyclic graph, often used to represent digital logic circuits. In AIG, each node has two inputs, representing an AND gate, and the directed edges with inverters are used to connect these nodes, thus forming a logically complete Boolean function. Figure 2 shows a schematic diagram of an AIG, which includes three primary inputs a, b, c, two primary outputs p0, p1, and six AND gate nodes AND. The solid black lines with arrows represent the signal transmission paths, and the dashed black lines with arrows represent the edges with inverters.

[0016] Step 2: Perform random simulation on the Miter circuit. By assigning a set of random values to the input ports of the Miter circuit and propagating these random values to the output ports of the Miter circuit. During this process, record the logical behavior of each internal node, including its output value and state changes. By comparing the logical behaviors of different internal nodes, identify potential equivalent node pairs, that is, those node pairs with consistent output results in multiple random simulations, and classify these potential equivalent node pairs as candidate equivalent node pairs to obtain a candidate equivalent set, and then enter Step 3; if it is found in multiple random simulations that the output results of a certain node pair are inconsistent, that is, there is a counterexample, then it is determined that the two circuits are not equivalent, and the verification process is terminated.

[0017] Step 3: Input the candidate equivalent node pairs in the candidate equivalent set into the circuit representation learning tool DeepGate2 to extract the embedding vectors of the function and structure of each pair of candidate equivalent node pairs. This embedding vector can comprehensively represent the logical behavior and circuit structure characteristics of the candidate equivalent node pairs.

[0018] Step 4: Adjust the first layer of the existing AlexNet network from a three-channel convolutional layer to a single-channel convolutional layer, and then train the adjusted AlexNet network. The process is as follows: Use three scanning engines, namely EPS, SAT (specifically Kissat in this embodiment), and BDD, as candidate scanning engines. Represent the labels corresponding to the three candidate scanning engines EPS, SAT, and BDD with one-hot encodings [1, 0, 0], [0, 0, 1], and [0, 1, 0] respectively. Test whether the two candidate equivalent nodes in each pair of candidate equivalent nodes are equivalent through the three scanning engines EPS, SAT, and BDD respectively, and select the label corresponding to the scanning engine with the shortest test time as the measured optimal scanning engine label. For example, if the adjusted AlexNet network outputs [0, 0, 1], it indicates that for the tested pair of candidate equivalent nodes, the SAT scanning engine is the predicted optimal scanning engine. This method enables the adjusted AlexNet network to dynamically predict the optimal scanning engine according to the characteristics of the node pairs, thereby improving the efficiency and accuracy of equivalence verification; Concatenate the embedding vectors of each pair of candidate equivalent nodes into an image, and use the concatenated embedding vector and its measured optimal scanning engine label as training data. Use 80% of the training data as the training set, 10% of the training data as the validation set, and the remaining 10% of the training data as the test set to train the adjusted AlexNet network to obtain the trained AlexNet network; Concatenate the extracted embedding vectors into an image, input the concatenated embedding vector into the trained AlexNet network. The trained AlexNet network predicts the optimal scanning engine based on the concatenated embedding vector, and the optimal scanning engine performs equivalence verification on the candidate equivalent node pairs. If a candidate equivalent node pair is verified to be equivalent, merge it to reduce the redundant structure of the circuit.

[0019] Schematic diagrams of the core content of the above Steps 2 to 4 are as Figure 3 shown. Figure 3 In the figure, the solid blue circles represent candidate equivalent nodes, the hollow circles represent the nodes around the candidate equivalent nodes, "Node 1" and "Node 2" represent the two candidate equivalent nodes in a pair of candidate equivalent nodes, the solid blue rectangle represents the concatenated embedding vector, and the numbers in the brackets represent one-hot encodings.

[0020] Step 5: After all candidate equivalent node pairs are verified and merged, use the SAT solver to perform the final equivalence verification on the Miter circuit to ensure the correctness and integrity of the verification result. If the verification result is SAT, it means the two circuits are not equivalent; if the verification result is UNSAT, it means the two circuits are equivalent.

[0021] We compared Auto-CEC (the abbreviation of the method of the present invention) with the &cec command in the ABC tool and Hybrid-CEC. The results are shown in Table 1. The solution time of Auto-CEC was successfully accelerated by 11.29 times compared with Hybrid-CEC, and it can solve instances that &cec cannot solve. When dealing with circuits with high XOR density, the method of the present invention significantly improves the verification efficiency and accuracy of the equivalence verification of two circuits.

[0022] All of the above experiments were conducted on a system equipped with an 11th-generation Intel(R) Core(TM) i5-1155G7 CPU @ 2.50GHz and 8GB of memory, and the operating system was Ubuntu 20.04 LTS (64-bit). The benchmark test sets used in the experiments included industrial test cases and several modified combinational circuits. All circuits were represented in the AIG format and consisted of Miter circuits formed by connecting two potentially equivalent circuits. Among them, the dp circuit is a typical data path circuit containing a multiply-accumulate mixed operation unit, the ec circuit is a hybrid circuit composed of the dp circuit and fewer arithmetic units, and the equ and TOP circuits are arithmetic circuits with a small number of equivalent nodes.

[0023] Table 1

[0024] In summary, the combinational equivalence verification method based on intelligent engine selection proposed in the present invention significantly improves the solution efficiency and optimizes the intelligence of engine selection. By introducing the intelligent engine selection method, the Auto-CEC method of the present invention not only makes up for the deficiencies of Hybrid-CEC in specific scenarios but also achieves a significant performance improvement in most test cases, with an acceleration ratio of up to 11.29 times. The present invention provides a new research idea for the design of combinational equivalence verification tools, which can not only significantly reduce the solution time but also improve the stability and adaptability of the solution, and has important practical significance for the application in the field of logic synthesis and the development of equivalence verification tools.

Claims

1. A combined equivalence verification method based on intelligent engine selection, characterized in that, First, construct two circuits whose equivalence is to be verified into a Miter circuit and represent it in AIG format. Then, perform random simulation on the Miter circuit to identify potential equivalent node pairs. Next, extract the embedded vectors of the function and structure of each pair of candidate equivalent node pairs. After concatenating the extracted embedded vectors into an image, input it into the trained AlexNet network. The optimal scan engine is predicted by the trained AlexNet network. Use the optimal scan engine to verify the equivalence of the candidate equivalent node pairs, and merge the candidate equivalent node pairs that are verified to be equivalent. After all candidate equivalent node pairs are verified and merged, use a SAT solver to perform the final equivalence verification on the Miter circuit.

2. The combination equivalence verification method based on intelligent engine selection according to claim 1, characterized in that, This method specifically includes the following steps: Step 1: Construct two circuits whose equivalence is to be verified into a Miter circuit and represent it in AIG format; Step 2: Perform random simulation on the Miter circuit, identify potential equivalent node pairs and classify them as candidate equivalent node pairs to obtain a candidate equivalent set, and then proceed to Step 3; if a counterexample is found in the random simulation, it is determined that the two circuits are not equivalent, and the verification process is terminated; Step 3: Input the candidate equivalent node pairs in the candidate equivalent set into a circuit representation learning tool to extract the embedded vectors of the function and structure of each pair of candidate equivalent node pairs; Step 4: Adjust the first layer of the existing AlexNet network from a three-channel convolutional layer to a single-channel convolutional layer, train the adjusted AlexNet network to obtain a trained AlexNet network; after concatenating the extracted embedded vectors into an image, input it into the trained AlexNet network. The optimal scan engine is predicted by the trained AlexNet network based on the concatenated embedded vectors. Use the optimal scan engine to verify the equivalence of the candidate equivalent node pairs. If a candidate equivalent node pair is verified to be equivalent, merge it; Step 5: After all candidate equivalent node pairs are verified and merged, use a SAT solver to perform the final equivalence verification on the Miter circuit. If the verification result is SAT, it indicates that the two circuits are not equivalent; if the verification result is UNSAT, it indicates that the two circuits are equivalent.

3. The combination equivalence verification method based on intelligent engine selection according to claim 2, wherein In the random simulation of Step 2, by assigning a set of random values to the input ports of the Miter circuit and propagating these random values to the output ports of the Miter circuit, record and compare the logical behaviors of different internal nodes to identify potential equivalent node pairs.

4. The combination equivalence verification method based on intelligent engine selection according to claim 2, wherein In Step 3, the circuit representation learning tool is the DeepGate2 tool.

5. The combined equivalence verification method based on intelligent engine selection according to claim 2, wherein In step 4, the process of training the adjusted AlexNet network is as follows: Use the three scanning engines EPS, SAT, and BDD as candidate scanning engines, represent the labels corresponding to the candidate scanning engines with one-hot encoding, and test whether the two candidate equivalent nodes in each pair of candidate equivalent node pairs are equivalent through the three scanning engines EPS, SAT, and BDD respectively. Select the label corresponding to the scanning engine with the shortest test time as the measured optimal scanning engine label; Concatenate the embedding vectors of each pair of candidate equivalent node pairs into an image, and use the concatenated embedding vectors and the measured optimal scanning engine label as training data. Use 80% of the training data as the training set, 10% of the training data as the validation set, and the remaining 10% of the training data as the test set to train the adjusted AlexNet network to obtain the trained AlexNet network.

Citation Information

Patent Citations

  • Combination operation circuit equivalence verification method and system based on complete simulation

    CN116050311A

  • Combination logic circuit equivalence judgment method based on graph neural network model

    CN117150920A

  • Distributed data path combination equivalence verification method and distributed server

    CN119494301A