FUNCTION ESTIMATION METHOD, FUNCTION ESTIMATION DEVICE, AND FUNCTION ESTIMATION PROGRAM

GCN and R-GCN convert netlists into graph representations for efficient function estimation in LSI design, addressing the challenge of vendor-specific netlist conversion and improving estimation accuracy by automating the process.

JP7541902B2Active Publication Date: 2024-08-29MITSUBISHI ELECTRIC ENG CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2020188448
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-11-26
Filing Date
2020-11-12
Publication Date
2024-08-29
Estimated Expiration
2040-11-12

AI Technical Summary

Technical Problem

Existing technologies lack an efficient method to automatically convert and abstract semiconductor vendor-specific netlists into a register transfer level (RTL) for logical design of LSIs, requiring manual learning for each function estimation.

Method used

Utilizing Graph Convolutional Networks (GCN) and Relational Graph Convolutional Networks (R-GCN) to convert netlists into graph representations, perform classification, and learn functions, enabling efficient function estimation on large-scale and complex netlists.

Benefits of technology

Enables efficient function estimation on large-scale and complex netlists, improving accuracy and reducing manual intervention by automatically generating and combining function labels, enhancing the estimation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007541902000005
    Figure 0007541902000005
  • Figure 0007541902000018
    Figure 0007541902000018
  • Figure 0007541902000016
    Figure 0007541902000016
Patent Text Reader

Abstract

To efficiently execute function estimation for an LSI netlist.SOLUTION: Provided is a function estimation method for extracting, using GCN, the functions implemented in the netlist that is used in the logic design of an LSI. This method includes: a management step for constructing the GCN class configuration information of the netlist from parameter information for GCN construction and managing, for each of constructed GCN classes, the GCN function labels held within the class and a GCN binary tree configuration that determines the order of GCN inference at inference time; a clustering step for converting the netlist into graphic representation composed of nodes and edges and separating into classes in accordance with the measured number of nodes and the constructed GCN cluster configuration information; a conversion step for executing a complementary process for making the number of nodes of each of the separated classes match; and learning-inference step for performing the learning and inference of the function on the basis of the processing results of the management and conversion steps.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the logic design of an LSI, and mainly to a function estimation method, a function estimation device, and a function estimation program having a built-in function for generating design information and a hardware language from a netlist. [Background technology]

[0002] As a design technology for semiconductor integrated circuits (hereafter referred to as LSI), a Hardware Description Language (HDL) that is efficient in development and not limited to semiconductor vendors is sometimes used. In this case, logic synthesis is used to automatically convert a circuit design using HDL into a netlist that describes the connections between components to be implemented in the circuit. Here, the HDL description level at which logic synthesis is possible is called the Register Transfer Level (hereafter referred to as RTL).

[0003] In response to this, there is a demand for extracting functions implemented in netlists or converting netlists to RTL, with the aim of utilizing past design assets for which RTL did not exist.However, technology has not yet been established to automatically abstract and convert descriptions, rather than simply converting the language, for the different netlists for each semiconductor vendor, and so netlists have mainly been read and understood manually while referring to documents.

[0004] To address this issue, there is a method for estimating the functions implemented in RTL (see, for example, Patent Document 1). Patent Document 1 introduces a method in which a neural network (hereinafter, referred to as NN) is used to learn a judgment function, then function estimation is performed, and the circuit data of the matching function is replaced. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Japanese Patent Application Publication No. 4-199369 Summary of the Invention [Problem to be solved by the invention]

[0006] However, in Patent Document 1, the target is the estimation of functions learned as conversion rules and circuit replacement. Therefore, there is no mechanism for estimating functions that are a combination of learned functions. Therefore, it is necessary to manually learn each function to be judged.

[0007] The present invention has been made to solve the above-mentioned problems, and has an object to provide a function estimation method, a function estimation device, and a function estimation program that can efficiently perform function estimation on an LSI netlist. [Means for solving the problem]

[0008] The function estimation method according to the present invention is a function estimation method executed on a computer to extract functions implemented in a netlist used in the logical design of an LSI using Graph Convolutional Networks (hereinafter referred to as GCN), which are networks with a folded graph structure, and includes a management process for constructing GCN class configuration information of the netlist from GCN configuration parameter information, and managing the GCN function labels held in each constructed GCN class and the GCN binary tree configuration that determines the GCN inference order during inference, a clustering process for converting the netlist into a graph representation composed of nodes and edges, and classifying the netlist according to the measured number of nodes and the constructed GCN class configuration information, a conversion process for executing a complementation process to match the number of nodes in each classified class, and a learning and inference process for learning and inferring functions based on the processing results of the management process and the conversion process.

[0009] The function estimation device of the present invention is a function estimation device that extracts functions implemented in a netlist used in the logical design of an LSI by using a GCN, which is a network with a folded graph structure, and has a management unit that constructs GCN class configuration information of the netlist from GCN configuration parameter information, and manages the GCN function labels held in each constructed GCN class and the GCN binary tree configuration that determines the GCN inference order during inference, a clustering unit that converts the netlist into a graph representation composed of nodes and edges, and performs classification according to the measured number of nodes and the constructed GCN class configuration information, a conversion unit that executes a complementation process to match the number of nodes in each classified class, and a learning and inference unit that learns and infers functions based on the processing results of the management unit and the conversion unit.

[0010] The function estimation program of the present invention is a function estimation program executed on a computer to extract functions implemented in a netlist used in the logical design of an LSI using a GCN, which is a network with a folded graph structure, and causes the computer to function as a management means for constructing GCN class configuration information of the netlist from GCN configuration parameter information, and managing the GCN function labels held in each constructed GCN class and the GCN binary tree configuration that determines the GCN inference order during inference, a clustering means for converting the netlist into a graph representation composed of nodes and edges, and classifying the netlist according to the measured number of nodes and the constructed GCN class configuration information, a conversion means for executing a complementation process to match the number of nodes in each classified class, and a learning and inference means for learning and inferring functions based on the processing results of the management means and the conversion means. Effect of the Invention

[0011] The present invention allows efficient functional inference even for large, complex or undocumented netlists. [Brief description of the drawings]

[0012] [Figure 1] FIG. 2 is a diagram showing a functional configuration of a program for estimating implemented functions for an LSI netlist in the first embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing a method for constructing a GCN class configuration based on the circuit scale of a netlist in the first embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram showing a binary tree configuration for determining an order of function determination during function estimation in a GCN in the first embodiment of the present invention. [Figure 4] FIG. 2 is a diagram in which a netlist is converted into a graph representation in the first embodiment of the present invention. [Diagram 5] 4 is a flowchart showing a series of processes executed by a GCN configuration management unit in the first embodiment of the present invention. [Figure 6] 1 is a diagram showing differences in GCN class configurations based on GCN configuration parameter information in embodiment 1 of the present invention. FIG. [Figure 7] 11 is a flowchart showing a series of processes executed by a node number clustering unit in the first embodiment of the present invention. [Figure 8] 4 is a flowchart showing a series of processes executed by a netlist matrix conversion unit in the first embodiment of the present invention. [Figure 9] FIG. 4 is a diagram showing an example of conversion of a feature vector matrix X in the first embodiment of the present invention. [Figure 10] FIG. 4 is a diagram showing an example of conversion of a connection matrix A in the first embodiment of the present invention. [Figure 11] FIG. 4 is a diagram showing an example of conversion of a correct label matrix Y in the first embodiment of the present invention. [Figure 12] 4 is a flowchart showing a series of processes executed by a learning and inference unit in the first embodiment of the present invention. [Figure 13] FIG. 4 is a diagram showing an example of adding learning data in the first embodiment of the present invention. [Figure 14] FIG. 4 is a diagram showing an example of adding learning data in the first embodiment of the present invention. [Figure 15] FIG. 2 is a diagram showing an example of automatic generation of learning matrices by a learning and inference unit in the first embodiment of the present invention. [Figure 16] FIG. 2 is a diagram showing a graph representation and an adjacency matrix for representing the connection relationships between nodes using GCN, which has already been described in the first embodiment of the present invention. [Figure 17] 11 is a diagram showing a graph representation and an adjacency matrix for representing the connection relationship between nodes using an R-GCN described in a second embodiment of the present invention. FIG. [Figure 18] 11 is a flowchart showing a series of processes executed by a netlist matrix conversion unit in the second embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, preferred embodiments of the function estimation method, function estimation device, and function estimation program of the present invention will be described with reference to the drawings. In particular, the present invention is characterized in that it efficiently estimates functions implemented in an LSI netlist using GCN or Relational Graph Convolutional Networks (hereinafter referred to as R-GCN), which is a type of NN and a network in which a graph structure is convoluted. The case where GCN is used will be described in detail in embodiment 1, and the case where R-GCN is used will be described in detail in embodiment 2.

[0014] Embodiment 1 Fig. 1 is a diagram showing a functional configuration of a program for estimating built-in functions for an LSI netlist in the first embodiment of the present invention. As shown in Fig. 1, the input data includes GCN configuration parameter information 1, a learning or inference netlist 2, function label information 3 that is input as a function identification tag of the netlist during learning and becomes an inference candidate during inference, and standard cell information 4 specific to an LSI device for learning or inference.

[0015] 1, the program according to the first embodiment is composed of a GCN configuration management unit 5 that manages the GCN class configuration and the GCN binary tree configuration in each class based on GCN configuration parameter information 1, a node number clustering unit 6 that replaces composite gates in a netlist and their connection relationships as nodes and edges to perform class classification according to the number of nodes in the netlist, a netlist matrix conversion unit 7 for GCN internal calculations, and a learning and inference unit 8 that learns functions.The program according to the first embodiment is executed on a computer so as to output a function label name that matches during inference or the absence of a function as an inference result 9.

[0016] Next, each of the functional components shown in FIG. 1 will be described individually. The GCN configuration management unit 5 constructs classes according to the circuit scale of the netlist from the input GCN configuration parameter information 1. In addition, for each constructed class, the GCN configuration management unit 5 manages the GCN function labels held within the class and the GCN binary tree configuration that determines the GCN inference order during inference. Note that when the netlist is input, if function label information 3 is input, the GCN configuration management unit 5 operates as a learning process, and if function label information 3 is not input, it operates as an inference process.

[0017] First, class management will be described. Fig. 2 is a diagram showing a method for constructing a GCN class configuration based on the circuit scale of a netlist in the first embodiment of the present invention. The GCN configuration parameter information 1, by specifying three types of parameters, constructs a GCN class hierarchy as a lowest class 11, and upper classes 12 and 13, as shown in Fig. 2. In order to classify the GCN to be inferred based on the circuit scale of the netlist, the number of classes to be managed is input as a parameter P1 (hereinafter referred to as P1).

[0018] It also has a function of automatically generating function labels that combine function labels of lower classes, and in order to perform this automatic generation, the maximum number of nodes in the lowest class 11 is input as parameter P2 (hereinafter referred to as P2), and the number of combinations of functions in the lowest class 11 is input as parameter P3 (hereinafter referred to as P3).

[0019] Next, the function label will be explained. The function label may be given by the user as correct answer information during learning, or may be automatically generated and notified by the learning and inference unit 8. The function label defines one function per GCN as a function to be inferred by the GCN.

[0020] Next, binary tree configuration management will be described. Fig. 3 is a diagram showing a binary tree configuration for determining the order of function judgment during function estimation in GCN in the first embodiment of the present invention. When a GCN class has multiple function labels, there are as many GCNs for judging each function label as there are function labels. Therefore, the GCN configuration management unit 5 needs to manage the judgment order of these multiple GCNs during inference.

[0021] Therefore, the GCN configuration management unit 5 manages the GCN as a binary tree. Specifically, the GCN configuration management unit 5 performs function estimation from the GCN located at the top of the tree, and ends the estimation if it is determined that the function is present, and manages the GCN as a binary tree in such a configuration that function estimation is performed in a child GCN if it is determined that the function is not present.

[0022] During learning, the GCN configuration management unit 5 judges whether the functional label given by the user is a new label or not. If the result of the judgment is that the functional label is a new label, or if a notification of automatic generation of a GCN is input from the learning and inference unit 8, the GCN configuration management unit 5 adds a GCN to the apex of the GCN binary tree configuration.

[0023] On the other hand, during inference, the GCN configuration management unit 5 outputs the GCN binary tree configuration information of the corresponding class to the learning and inference unit 8. If the learning and inference unit 8 determines that the function is present, it terminates inference as the functional label at that point matches, and if it determines that the function is not present, it switches to the GCN located in the child position and performs function estimation.

[0024] The node number clustering unit 6 converts the netlist 2 into a graph representation consisting of nodes and edges. The node number clustering unit 6 also performs class classification judgment based on the measured node number and GCN class configuration information from the GCN configuration management unit 5.

[0025] 4 is a diagram showing a netlist converted into a graph representation in the first embodiment of the present invention. As shown in Fig. 4, the node number clustering unit 6 represents the composite gates in the netlist as nodes and the connections between the composite gates as edges in a graph representation.

[0026] Nodes are created from standard cell information used during logic synthesis from RTL to netlist. At this time, nodes that have the same circuit configuration and differ only in drive capacity are treated as the same node type because they have the same function.

[0027] The node number clustering unit 6 outputs node type information classified from the standard cell information and a graph-expressed netlist to the netlist matrix conversion unit 7. In addition, the node number clustering unit 6 performs classification based on the class hierarchy information acquired from the GCN configuration management unit 5, and notifies the learning and inference unit 8 of the judgment result.

[0028] The netlist matrix conversion unit 7 creates a feature vector matrix X, an adjacency matrix A, and a correct label matrix Y from the graph representation input from the node number clustering unit 6.

[0029] The netlist matrix conversion unit 7 expresses the type of composite gate at each node in the netlist as a feature vector matrix X. Specifically, the netlist matrix conversion unit 7 expresses nodes as rows and composite gates as columns, with the number of rows being the maximum number of nodes in each class and the number of columns being the number of composite gates.

[0030] Furthermore, netlist matrix conversion unit 7 expresses the connection relationships among the nodes in the netlist as an adjacency matrix A. Specifically, netlist matrix conversion unit 7 expresses the nodes as rows and columns, expresses nodes in a connected relationship as 1, and expresses other nodes as 0.

[0031] Furthermore, the netlist matrix conversion unit 7 expresses the GCN judgment result at each node in the netlist as a label data matrix Y. Specifically, the netlist matrix conversion unit 7 creates the label data matrix Y when notified by the GCN configuration management unit 5 that it is learning time, and does not create the label data matrix Y when notified that it is inference time.

[0032] The learning and inference unit 8 performs function learning and inference. During learning, if there is a notification of an existing function from the GCN configuration management unit 5, the learning and inference unit 8 inputs the feature vector matrix X, the adjacency matrix A, and the correct label matrix Y to the notified GCN, and updates the weight parameters inside the GCN.

[0033] Furthermore, the learning and inference unit 8 creates a new GCN when a new function is notified from the GCN configuration management unit 5. If it is possible to create a new GCN as a combined function with an existing function in the class classified by the node count clustering unit 6 after learning, the learning and inference unit 8 automatically generates a GCN and notifies the GCN configuration management unit 5 of the function label information.

[0034] During inference, the learning and inference unit 8 inputs the feature vector matrix X and the adjacency matrix A to obtain the output matrix Z, which is the result of determining whether or not a function exists. Specifically, the learning and inference unit 8 expresses nodes as rows, and the results of determining whether or not a function exists as columns, {Number of nodes with the judgement result that the function is present ≧ Number of nodes with the judgement result that the function is present} If the above is true, it is determined that the determined function is present.

[0035] On the other hand, if the determined function does not exist, the learning and inference unit 8 continues the determination according to the GCN binary tree structure in the class, and if there is no match, outputs the absence of the corresponding function.

[0036] Next, the processing in the program explained so far will be explained using the processing flow for each block in FIG.

[0037] Fig. 5 is a flowchart showing a series of processes executed by the GCN configuration management unit 5 in the first embodiment of the present invention. The flow of processes in the GCN configuration management unit 5 in Fig. 1 will be described with reference to Fig. 5.

[0038] In step S100, the GCN configuration management unit 5 inputs the function label information 3 of the netlist or the GCN configuration parameter information 1 of the class.

[0039] Next, in step S101, the GCN configuration management unit 5 updates the GCN class configuration, sets a class from the node count information of each class input in step S100, and notifies the node count clustering unit 6 of the class setting.

[0040] Fig. 6 is a diagram showing differences in GCN class configurations according to GCN configuration parameter information in the first embodiment of the present invention. Each class shown in Fig. 6 is classified according to the number of nodes. In order to perform calculations in GCN, the number of nodes must match. Therefore, the netlist matrix conversion unit 7 performs a matrix complement process from the number of nodes in the input netlist to the maximum number of nodes in the classified class.

[0041] The learning and inference unit 8 also has a function of automatically generating a function label that combines the function labels of the lower classes. The learning and inference unit 8 then realizes the automatic generation of the function label by renumbering the nodes of the combined functions.

[0042] Therefore, the maximum number of nodes in an automatically generated matrix is {Maximum number of nodes in the lowest class (P2) × Number of combined functions (P3)} Therefore, the GCN configuration management unit 5 receives the GCN configuration parameter information 1 in order to perform GCN calculations in the higher class.

[0043] Next, in step S102, the GCN configuration management unit 5 judges whether learning or inference is performed. If the function label information 3 is input in step S100, the GCN configuration management unit 5 judges learning, and if nothing is input, it judges inference. If the GCN configuration management unit 5 judges learning, it notifies the netlist matrix conversion unit 7 that a learning process should be executed.

[0044] In step S102, if the GCN configuration management unit 5 determines that the process is learning, the process proceeds to step S103, and if the GCN configuration management unit 5 determines that the process is inference, the process proceeds to step S108.

[0045] If the process proceeds to step S103, the GCN configuration management unit 5 performs a new function determination based on the comparison result between the function label for each class based on the class classification result input by the node number clustering unit 6 and the function label identified by the function label information 3 already acquired in step S100.

[0046] If the GCN configuration management unit 5 obtains a comparison result in which the function labels of both do not match, it determines that it is a new function and proceeds to processing in step S104. On the other hand, if the GCN configuration management unit 5 obtains a comparison result in which the function labels of both match, it determines that it is not a new function and proceeds to processing in step S107.

[0047] When the process proceeds to step S104, the GCN configuration management unit 5 issues a learning instruction to the learning and inference unit 8 and notifies the learning and inference unit 8 of the new function.

[0048] Next, in step S105, the GCN configuration management unit 5 acquires, from the learning and inference unit 8, information on the GCN added by the learning and inference unit 8.

[0049] Next, in step S106, the GCN configuration management unit 5 reflects the added GCN at the apex position of the binary tree configuration. The GCN configuration management unit 5 can determine whether the function input by inference does not exist as a learned function by having a GCN that judges whether a function exists or not in a binary tree configuration. In this case, by preparing learning data for the input function, it is possible to easily add a judgment function.

[0050] On the other hand, when the process proceeds from step S103 to step S107, the GCN configuration management unit 5 notifies the learning and inference unit 8 of an instruction to learn the function labels.

[0051] Also, when the process proceeds from step S102 to step S108, the GCN configuration management unit 5 notifies the GCN class configuration information of the relevant class based on the class information input from the node number clustering unit 6.

[0052] Next, there will be described a process flow of the node number clustering unit 6 in Fig. 1. Fig. 7 is a flowchart showing a series of processes executed by the node number clustering unit 6 in the first embodiment of the present invention.

[0053] The node number clustering unit 6 inputs the learning or inference netlist 2 specified by the user, the standard cell information 4 specific to the LSI device, and the GCN configuration information specifying the node number information on a class basis from the GCN configuration management unit 5. The node number clustering unit 6 is able to perform appropriate classification by specifying the number of nodes, taking into consideration that the configuration of the composite gate differs depending on the standard cell information used, resulting in a change in the number of nodes.

[0054] In step S200, the node number clustering unit 6 performs node conversion so that the composite gates in the netlist 2 of the circuit data are represented as nodes and the connections between the composite gates are represented as edges.

[0055] Nodes can be created from standard cell information 4 used for logic synthesis. In addition to the composite gate type, the standard cell information 4 also includes an identification number that is assigned according to the drive capacity of the circuit. The drive capacity of the circuit is not required for function estimation. Therefore, the node number clustering unit 6 creates a conversion table that treats composite gates that have the same input / output but different drive capacities as the same node.

[0056] Furthermore, the node number clustering unit 6 converts into nodes in units of composite gates according to a conversion table, and performs numbering by treating the nodes as edges.

[0057] Next, in step S201, the node number clustering unit 6 counts the number of numbered nodes.

[0058] Next, in step S202, the node number clustering unit 6 performs class determination based on the measured node count and the node number information for each class input from the GCN configuration management unit 5, thereby classifying the nodes. At the same time, the node number clustering unit 6 obtains the maximum node number for the corresponding class, and notifies the netlist matrix conversion unit 7 and the GCN configuration management unit 5 of the maximum node number.

[0059] Next, there will be described a flow of processing by the netlist matrix conversion unit 7 in Fig. 1. Fig. 8 is a flowchart showing a series of processing executed by the netlist matrix conversion unit 7 in the first embodiment of the present invention.

[0060] In step S300, the netlist matrix conversion unit 7 creates a feature vector matrix X by using the maximum number of nodes of the class notified by the node number clustering unit 6 as rows and an additional column representing no match in the number of composite gate types on the conversion table generated from the standard cell information 4 as columns.

[0061] Fig. 9 is a diagram showing an example of conversion of feature vector matrix X in the first embodiment of the present invention. Feature vector matrix X expresses the composite gate type for each node. Therefore, when creating feature vector matrix X, as shown in Fig. 9, netlist matrix conversion unit 7 sets only one 1 in each row of the matrix, and sets the remaining elements to 0. In addition, for column element "not applicable", netlist matrix conversion unit 7 sets 1 to node number numbers equal to or greater than the number of nodes in the input netlist in the classified class.

[0062] Next, in step S301, netlist matrix conversion unit 7 creates an adjacency matrix A by using the maximum number of nodes of the class notified by node number clustering unit 6 as rows and columns.

[0063] Fig. 10 is a diagram showing an example of conversion of the connection matrix A in the first embodiment of the present invention. When creating the connection matrix A, the netlist matrix conversion unit 7 sets 1 to the elements of the node numbers connected to each row, as shown in Fig. 10, and sets the remaining elements to 0. Unlike the feature vector matrix X, the connection matrix A expresses the connection relationship, so there are cases where two or more elements are set to 1.

[0064] Next, in step S302, the netlist matrix conversion unit 7 performs processing according to the learning instruction or inference instruction notified from the GCN configuration management unit 5. If a learning instruction has been notified, the process proceeds to step S303, where the netlist matrix conversion unit 7 creates a label data matrix Y.

[0065] The label data matrix Y is expressed by forming rows with the maximum number of nodes in the class notified by the node number clustering unit 6, and columns with / without a function for each node. Fig. 11 is a diagram showing an example of conversion of the correct answer label matrix Y in the first embodiment of the present invention. As shown in Fig. 11, in order to learn the netlist in function units, the netlist matrix conversion unit 7 creates a label data matrix Y having a correct answer label of function for all nodes.

[0066] Next, there will be described a process flow of the learning and inference unit 8 in Fig. 1. Fig. 12 is a flowchart showing a series of processes executed by the learning and inference unit 8 in the first embodiment of the present invention.

[0067] In step S400, the learning and inference unit 8 acquires parameter information 1 for configuring the GCN.

[0068] Next, in step S401, the learning and inference unit 8 determines whether the instruction notified from the GCN configuration management unit 5 is a learning instruction or an inference instruction. If a learning instruction has been notified, the learning and inference unit 8 proceeds to step S402, and if an inference instruction has been notified, the learning and inference unit 8 proceeds to step S406.

[0069] In step S402, the learning and inference unit 8 determines whether or not the learning data notified from the GCN configuration management unit 5 is a new function. If it is determined that the learning data is a new function, the learning and inference unit 8 proceeds to step S403, where it adds a new GCN.

[0070] Fig. 13 and Fig. 14 are diagrams showing an example of adding learning data in the first embodiment of the present invention. Specifically, Fig. 13 and Fig. 14 show an example in which the GCN configuration management unit 5 configures a class with GCN configuration parameter information 1 set as P1=2, P2=100, and P3=2.

[0071] 13, when a new function label A having a node number in class 1 that is not managed is input, the learning and inference unit 8 creates a new GCN function A in step S403. The learning and inference unit 8 repeatedly performs learning for the netlist having the new function label A the number of times prepared by the user. In addition, there is only one function in class 1, the function label A, and the learning and inference unit 8 does not perform automatic generation of a GCN in class 2, which is a higher class.

[0072] Next, when a new function label B having the number of nodes in class 1 that is not managed is input, the learning and inference unit 8 creates a new GCN function B in step S403. The learning and inference unit 8 repeatedly learns the netlist having the new function label B the number of times prepared by the user. In addition, the functions in class 1 are two, function labels A and B, and the learning and inference unit 8 automatically generates a GCN having a combination function label AB in class 2, which is the higher class.

[0073] In this way, the learning and inference unit 8 creates a new matrix from the learning data of function label A and function label B prepared by the user, and performs repeated learning. Fig. 15 is a diagram showing an example of automatic generation of a learning matrix by the learning and inference unit 8 in the first embodiment of the present invention. Among the matrices of function label A and function label B created by the netlist matrix conversion unit 7, the learning and inference unit 8 converts the node numbers nB0 to nB99 of function label B into nAB100 to nAB199 to create each matrix.

[0074] 14, when a new function label C that is not managed by the GCN configuration management unit 5 is input, the learning and inference unit 8 creates a new GCN function C in step S403. The learning and inference unit 8 repeatedly learns the netlist with the new function label C the number of times prepared by the user. In addition, the functions in class 1 are three, function labels A, B, and C, and the learning and inference unit 8 automatically generates a GCN with combination function labels AC and BC in class 2, which is the higher class.

[0075] After the learning and inference unit 8 newly adds the GCN in step S403, the learning and inference unit 8 notifies the GCN configuration management unit 5 of the function label information of the added GCN in step S404.

[0076] Also, if it is determined in previous step S402 that the instruction is to learn an existing label, the process proceeds to step S405, where the learning and inference unit 8 performs learning of an additional GCN.

[0077] If it is determined in previous step S 401 that the instruction is an inference instruction, the process proceeds to step S 406 , where the learning and inference unit 8 prepares a GCN for inference notified by the GCN configuration management unit 5 .

[0078] 3, the GCN configuration management unit 5 manages the GCN for each class as a binary tree configuration. Then, in step S406, the learning and inference unit 8 selects whether or not there is a functional label for the GCN at the apex of the binary tree.

[0079] Next, if it is determined in step S407 that there is a functional label of the GCN at the apex of the binary tree, the process proceeds to step S409, where the learning and inference unit 8 outputs the functional label of the GCN used in the determination as an inference result.

[0080] On the other hand, if it is determined in step S407 that there is no functional label for the GCN at the apex of the binary tree, the process proceeds to step S408, where the learning and inference unit 8 determines whether or not the GCN can be updated. If there is a GCN one level lower in the binary tree configuration of the GCN acquired in step S400, the learning and inference unit 8 determines that the GCN can be updated, returns to step S406, and updates the GCN.

[0081] On the other hand, if there is no GCN to update in the lower hierarchy in the binary tree structure of the GCN obtained in step S400, the learning and inference unit 8 determines that the GCN cannot be updated, proceeds to step S409, and outputs the functional label of the GCN used in the judgment as the inference result.

[0082] As described above, according to the first embodiment, function estimation is performed using Graph Convolutional Networks (GCN), which is a type of NN. The graph handled in this method is a data structure based on graph theory that is composed of nodes, edges, weights, etc. Examples of such data structures include various familiar things such as the Internet, transportation networks, and SNS connections.

[0083] In GCN, a NN is constructed for such a graph using convolutional operations based on the connection relationships between nodes and edges, and graph features are extracted to classify the graph.In the prior art literature, features for each node are extracted and the extracted features are used to classify the nodes.

[0084] In contrast, in the first embodiment, the extracted feature quantity is applied to a netlist having one function in the entire graph, and it is determined whether or not there is a learned function. By configuring these GCNs as a binary tree as a function discriminator, it becomes possible to extract unlearned functions. This suppresses misclassification of unlearned functions.

[0085] Furthermore, in the first embodiment, the netlist is classified according to the circuit scale, and the GCN is managed for each class. This allows the functions of a class with a small circuit scale to be combined to automatically generate a GCN of a higher class, which can be used as a candidate for determining the combination function. In addition, since the GCN to be determined during inference can be selected, efficiency can be improved.

[0086] Embodiment 2 In the above embodiments, a function estimation method, a function estimation device, and a function estimation program executed on a computer have been described to extract functions implemented in a netlist used in the logical design of an LSI by using a GCN, which is a network with a folded graph structure.

[0087] In contrast, in the second embodiment, a function estimation method, a function estimation device, and a function estimation program executed on a computer are described, which use R-GCN instead of GCN to extract functions implemented in a netlist used in the logical design of an LSI.

[0088] First, the difference between GCN and R-GCN will be described with reference to Fig. 16 and Fig. 17. Fig. 16 is a diagram showing a graph representation and an adjacency matrix for representing the connection relationships between nodes by GCN, which has already been described in the first embodiment of the present invention. On the other hand, Fig. 17 is a diagram showing a graph representation and an adjacency matrix for representing the connection relationships between nodes by R-GCN, which will be described in the second embodiment of the present invention.

[0089] 16 and 17 show an example of the connection relationship when five nodes, n0 to n4, are used. The GCN described in the first embodiment uses an undirected graph in which the input / output relationship of the netlist is not maintained, as shown in FIG. 16(a). That is, the GCN expresses which nodes are connected to each other, but does not express information on the input / output relationship indicating which node outputs a signal to which node.

[0090] Therefore, the adjacency matrix A corresponding to the graph representation in GCN shown in FIG. 16(a) was expressed as 1 when there is a connection between nodes and 0 when there is no connection between nodes, as shown in FIG. 16(b).

[0091] In contrast, the R-GCN described in the second embodiment uses a directed graph that holds the input / output relationships of a netlist, as shown in Fig. 17(a). That is, in the R-GCN, which nodes are connected to each other are expressed, and the information on the input / output relationships indicating which node outputs a signal to which node is also expressed as arrows.

[0092] Therefore, the adjacency matrix A corresponding to the graph representation in R-GCN shown in Figure 17(a) can be expressed using three types of adjacency matrix: the adjacency matrix (input side) Ain shown in Figure 17(b), the adjacency matrix (self) Aown shown in Figure 17(c), and the adjacency matrix (output side) Aout shown in Figure 17(d).

[0093] In other words, in this second embodiment, the three types of adjacency matrices representing the connection relationships and input / output relationships at each node in the netlist are composed of a first adjacency matrix Ain indicating the connection relationships regarding input between nodes at each node, a second adjacency matrix Aown indicating the unit matrix with each node as an element, and a third adjacency matrix Aout indicating the connection relationships regarding output between nodes at each node.

[0094] In the adjacency matrix (input side) Ain corresponding to the first adjacency matrix shown in Fig. 17(b), the rows indicate the nodes on the input side, and the columns indicate the nodes on the output side, with the presence of an input relationship between the nodes being expressed as 1, and the absence of an input relationship being expressed as 0. For example, when focusing on node n1, since it receives a signal from node n0, the element in the second row and first column of the adjacency matrix (input side) Ain is "1".

[0095] In addition, the adjacency matrix (self) Aown, which corresponds to the second adjacency matrix shown in FIG. 17(c), is an identity matrix in which elements of nodes in the same row and column are “1”.

[0096] Furthermore, in the adjacency matrix (output side) Aout corresponding to the third adjacency matrix shown in Fig. 17(d), the rows indicate the nodes on the output side, and the columns indicate the nodes on the input side, with the case where there is an output relationship between the nodes being expressed as 1, and the case where there is no output relationship being expressed as 0. For example, when focusing on node n0, since it outputs a signal to node n1, the element in the first row and second column of the adjacency matrix (output side) Aout is "1".

[0097] In this way, when one adjacency matrix A in GCN is used, only information on the connection relationship between nodes is obtained, and information on the input / output relationship is not obtained. Therefore, as is clear from Figures 16(a) and 16(b), for example, although information on the connection between node n0 and node n1 is obtained, it is not possible to obtain information on whether the signal is from node n0 to node n1 or from node n1 to node n0.

[0098] In other words, when a signal is output from node n0 to node n1 and when a signal is output from node n1 to node n0, the same graph representation and the same adjacency matrix A are obtained, and it is not possible to distinguish between the two.

[0099] In contrast, when the three adjacency matrices (input) Ain, adjacency matrix (self) Aown, and adjacency matrix (output side) Aout in R-GCN are used, information on the connection relationships between nodes as well as information on the input / output relationships can be obtained.

[0100] Therefore, as is clear from Figures 17(a) to 17(d), for example, in addition to information that nodes n0 and n1 are connected, information that a signal is being output from node n0 to node n1 can also be obtained.

[0101] In other words, it is possible to distinguish between the case where a signal is output from node n0 to node n1 and the case where a signal is output from node n1 to node n0 by using the graph representation and three types of adjacency matrices. Therefore, by using R-GCN, it is possible to realize more versatile and highly accurate function estimation compared to the case where GCN is used.

[0102] The configuration of the function estimation device in the second embodiment is basically the same as the configuration in the first embodiment described above with reference to Fig. 1 when using GCN. However, the process of the netlist matrix conversion unit 7 in the second embodiment is different in that it generates three types of adjacency matrices, an adjacency matrix (input) Ain, an adjacency matrix (self) Aown, and an adjacency matrix (output side) Aout, as shown in Fig. 17, instead of generating one type of adjacency matrix A as shown in Fig. 16.

[0103] Next, a description will be given of the flow of processing by the netlist matrix conversion unit 7 in the present embodiment 2. Fig. 18 is a flowchart showing a series of processing executed by the netlist matrix conversion unit 7 in the embodiment 2 of the present invention.

[0104] 18 is compared with the flowchart shown in FIG 8 in the first embodiment, the process of creating an adjacency matrix in step S301 is changed to generate three types of adjacency matrix (input) Ain, adjacency matrix (self) Aown, and adjacency matrix (output side) Aout. Therefore, the following will mainly explain the process of step S301 that has been changed.

[0105] Step S301 in the present embodiment 2 is configured as three steps S301-1, S301-2, and S301-3. After creating a feature vector matrix X in step S300, netlist matrix conversion unit 7 creates an adjacency matrix (input) Ain in step S301-1, with the maximum number of nodes of the class notified by node number clustering unit 6 as rows and columns.

[0106] Next, in step S301-2, netlist matrix conversion unit 7 creates an adjacency matrix (self) Aown, with the maximum number of nodes of the class notified by node number clustering unit 6 as rows and columns.

[0107] Furthermore, in step S301-3, netlist matrix conversion unit 7 creates an adjacency matrix (output) Aout with the maximum number of nodes of the class notified by node number clustering unit 6 as rows and columns.

[0108] Thereafter, the netlist matrix conversion unit 7 executes the processes of steps S302 and S303.

[0109] As described above, according to the second embodiment, function estimation is performed using Relational Graph Convolutional Networks (R-GCN), which is a type of NN. The graph handled in this method is a data structure based on graph theory that is composed of nodes, edges, weights, etc., as in the first embodiment where function estimation is performed using GCN. Examples of such data structures include various familiar things such as the Internet, transportation networks, and SNS connections.

[0110] In R-GCN, a NN is constructed for such a graph using convolutional operations based on the connection relationships between nodes and edges, and the graph features that take into account the input / output relationships between nodes are extracted to classify the graph.In prior art documents, features for each node are extracted and the extracted features are used to classify the nodes.

[0111] In contrast, in the second embodiment, the extracted feature quantity is applied to a netlist having one function in the entire graph, and it is determined whether or not there is a learned function. By configuring these R-GCNs as a binary tree discriminator for the function, it becomes possible to extract unlearned functions. This suppresses misclassification of unlearned functions.

[0112] Furthermore, in the second embodiment, the netlist is classified according to the circuit scale, and the R-GCN is managed for each class. This allows the functions of a class with a small circuit scale to be combined to automatically generate an R-GCN of a higher class, which can be used as a candidate for determining the combination function. In addition, since the R-GCN to be determined during inference can be selected, efficiency can be improved.

[0113] Furthermore, in the second embodiment, by using the R-GCN, function estimation based on a directed graph representation and three types of adjacency matrices becomes possible. As a result, it becomes possible to realize more versatile and highly accurate function estimation compared to the case where the GCN is used. [Explanation of symbols]

[0114] 1 Parameter information for GCN configuration, 2 Netlist, 3 Function label information, 4 Standard cell information, 5 GCN configuration management unit (management process, management unit, management means), 6 Node number clustering unit (clustering process, clustering unit, clustering means), 7 Netlist matrix conversion unit (conversion process, conversion unit, conversion means), 8 Learning and inference unit (learning and inference process, learning and inference means), 9 Inference result, 11 Lowest class, 12, 13 Highest classes.

Claims

1. A function estimation method executed on a computer to extract functions implemented in a netlist used in an LSI logic design using a GCN, which is a network formed by convolving a graph structure, comprising the steps of: A management process for constructing GCN class configuration information of the netlist from GCN configuration parameter information, and for each constructed GCN class, managing a GCN function label held within the class and a GCN binary tree configuration that determines a GCN inference order during inference; A clustering process for converting the netlist into a graph representation composed of nodes and edges, and classifying the netlist into classes according to the number of nodes measured and the GCN class configuration information constructed; a conversion step of executing a complementation process to make the number of nodes in each of the classes obtained by the classification consistent; a learning and inference step for learning and inferring the function based on the processing results of the management step and the conversion step; A function estimation method having the following structure.

2. In the converting step, a feature vector matrix representing a type of a composite gate at each node in the netlist; an adjacency matrix representing a connection relationship between each node in the netlist; a correct label matrix representing the GCN determination result for each node in the netlist; Create a In the learning and inference step, The learning is performed based on the feature vector matrix, the adjacency matrix, and the correct label matrix created in the conversion process. The function estimation method according to claim 1 .

3. In the learning and inference step, When a new label that is not managed in the management process is input, a new GCN function is generated, and a new GCN is automatically generated by combining the newly generated GCN functions. The function estimation method according to claim 1 or 2.

4. In the management step, Using the GCN binary tree structure, determine whether the function has been learned. The function estimation method according to claim 1 .

5. A function estimation device that extracts functions implemented in a netlist used in an LSI logic design by using a GCN, which is a network formed by folding a graph structure, comprising: a management unit that constructs GCN class configuration information of the netlist from GCN configuration parameter information, and manages a GCN function label held in each constructed GCN class and a GCN binary tree configuration that determines a GCN inference order during inference; a clustering unit that converts the netlist into a graph representation composed of nodes and edges, and performs classification according to the measured number of nodes and the constructed GCN class configuration information; a conversion unit that executes a complementation process to make the number of nodes in each of the classes obtained by the classification consistent; a learning and inference unit that learns and infers the function based on the processing results of the management unit and the conversion unit; A function estimation device having the above structure.

6. A function estimation program executed on a computer to extract functions implemented in a netlist used in an LSI logic design using a GCN, which is a network formed by folding a graph structure, comprising: The computer, A management means for constructing GCN class configuration information of the netlist from GCN configuration parameter information, and for each constructed GCN class, managing a GCN function label held within the class and a GCN binary tree configuration for determining a GCN inference order during inference; A clustering means for converting the netlist into a graph representation composed of nodes and edges, and classifying the netlist into classes according to the number of nodes measured and the GCN class configuration information that has been constructed; A conversion means for executing a complementation process to make the number of nodes in each of the classes obtained by the classification consistent; a learning and inference means for learning and inferring the function based on the processing results of the management means and the conversion means; A function estimation program that makes it work.

7. A function estimation method executed on a computer to extract functions implemented in a netlist used in an LSI logic design, using an R-GCN as a GCN that is a network obtained by folding a graph structure, comprising: A management process of constructing GCN class configuration information of the netlist from GCN configuration parameter information, and managing the GCN function label held in each constructed GCN class and the GCN binary tree configuration that determines the GCN inference order at the time of inference; A clustering process for converting the netlist into a graph representation composed of nodes and edges, and classifying the netlist into classes according to the number of nodes measured and the GCN class configuration information constructed; a conversion step of executing a complementation process to make the number of nodes in each of the classes obtained by the classification consistent; a learning and inference step for learning and inferring the function based on the processing results of the management step and the conversion step; A function estimation method comprising: In the converting step, a feature vector matrix representing a type of a composite gate at each node in the netlist; Three types of adjacency matrices that represent connection relationships and input / output relationships at each node in the netlist; a correct label matrix representing the GCN determination result for each node in the netlist; Create a In the learning and inference step, The learning is performed based on the feature vector matrix, the three types of adjacency matrices, and the correct label matrix created in the conversion process; The three types of adjacency matrices are composed of a first adjacency matrix indicating a connection relationship between the nodes with respect to inputs at each of the nodes, a second adjacency matrix indicating a unit matrix with each node as an element, and a third adjacency matrix indicating a connection relationship between the nodes with respect to outputs at each of the nodes. Functional estimation methods.

8. A function estimation device that extracts functions implemented in a netlist used in an LSI logic design by using an R-GCN as a GCN that is a network obtained by folding a graph structure, comprising: a management unit that constructs GCN class configuration information of the netlist from GCN configuration parameter information, and manages a GCN function label held in each constructed GCN class and a GCN binary tree configuration that determines a GCN inference order during inference; a clustering unit that converts the netlist into a graph representation composed of nodes and edges, and performs classification according to the measured number of nodes and the constructed GCN class configuration information; a conversion unit that executes a complementation process to make the number of nodes in each of the classes obtained by the classification consistent; a learning and inference unit that learns and infers the function based on the processing results of the management unit and the conversion unit; A function estimation device having: The conversion unit is a feature vector matrix representing a type of a composite gate at each node in the netlist; Three types of adjacency matrices that represent connection relationships and input / output relationships at each node in the netlist; a correct label matrix representing the GCN determination result for each node in the netlist; Create a The learning and inference unit includes: The learning is performed based on the feature vector matrix, the three types of adjacency matrices, and the correct label matrix created by the conversion unit; The three types of adjacency matrices are composed of a first adjacency matrix indicating a connection relationship between the nodes with respect to inputs at each of the nodes, a second adjacency matrix indicating a unit matrix with each node as an element, and a third adjacency matrix indicating a connection relationship between the nodes with respect to outputs at each of the nodes. Functional estimation device.

9. A function estimation program executed on a computer to extract functions implemented in a netlist used in an LSI logic design, using an R-GCN as a GCN that is a network obtained by folding a graph structure, comprising: The computer, A management means for constructing GCN class configuration information of the netlist from GCN configuration parameter information, and for each constructed GCN class, managing a GCN function label held within the class and a GCN binary tree configuration for determining a GCN inference order during inference; A clustering means for converting the netlist into a graph representation composed of nodes and edges, and classifying the netlist into classes according to the number of nodes measured and the GCN class configuration information that has been constructed; A conversion means for executing a complementation process to make the number of nodes in each of the classes obtained by the classification consistent; a learning and inference means for learning and inferring the function based on the processing results of the management means and the conversion means; A function estimation program for causing a function to function as described above, The conversion means is a feature vector matrix representing a type of a composite gate at each node in the netlist; Three types of adjacency matrices that represent connection relationships and input / output relationships at each node in the netlist; a correct label matrix representing the GCN determination result for each node in the netlist; Create a The learning and inference means includes: The learning is performed based on the feature vector matrix, the three types of adjacency matrices, and the correct label matrix created by the conversion means; The three types of adjacency matrices are composed of a first adjacency matrix indicating a connection relationship between the nodes with respect to inputs at each of the nodes, a second adjacency matrix indicating a unit matrix with each node as an element, and a third adjacency matrix indicating a connection relationship between the nodes with respect to outputs at each of the nodes. Function estimation program.

Citation Information

Patent Citations

  • Circuit optimization system

    JP1992199369A

  • Method and device for separately evaluating logic circuit, method and device for preparing product specification data base, method and device for estimating product specification and method and device for automatically generating logic circuit hierarchy

    JP1994203106A

  • Graph representation transforming method and its device, and automatic rearranging method and its device

    JP2000200298A