Information processing device and information processing method
The information processing device enables accurate conversion between electric circuits and graphs by generating an element graph with attached type and value information, addressing the challenge of converting graphs back into electric circuits.
Patent Information
- Application Number
- JP2025549936
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-10-02
- Publication Date
- 2026-12-04
- Estimated Expiration
- 2043-10-02
AI Technical Summary
Existing technologies struggle to convert a graph representing an electric circuit back into an electric circuit due to the inability to determine the type and value of elements from the graph.
An information processing device comprising an element graph generation unit, a wiring node generation unit, and an electrical circuit graph generation unit, which generates an element graph with attached type and element value information, and connects it with wiring nodes to form a graph representing the electric circuit, enabling mutual conversion between electric circuits and graphs.
The generated graph includes type and element value information, allowing for accurate conversion back into an electric circuit, facilitating mutual conversion and enabling graph-based calculations to be reflected in circuit diagrams.
Smart Images

Figure 0007961400000001 
Figure 0007961400000002 
Figure 0007961400000003
Abstract
Description
Technical Field
[0001] The present disclosure relates to an information processing device and an information processing method.
Background Art
[0002] By converting an electric circuit into a graph, the electric circuit can be mathematically handled. A graph is a mathematical method for expressing the relationship between elements, and utilization of a graph neural network (GNN; GRAPH NEURAL NETWORK) or the like is known.
[0003] Conventionally, a search system for searching a circuit diagram from a database has been disclosed (see Patent Document 1). The invention described in Patent Document 1 converts an electric circuit on a database and an electric circuit to be searched into graphs using three elements of an element, a terminal, and wiring, respectively, and calculates the degree of similarity between the graphs.
Prior Art Document
Patent Document
[0004]
Patent Document 1
Summary of Invention
Problem to be Solved by the Invention
[0005] By the way, in order to convert a graph generated by converting an electric circuit back into an electric circuit again, it is required that the type of an element and an element value can be determined from the graph. However, the invention described in Patent Document 1 has a problem that the graph cannot be converted into an electric circuit because the type of the element and the element value cannot be determined from the graph.
[0006] The present disclosure solves the above-described problem, and an object thereof is to provide an information processing device and an information processing method that enable mutual conversion between an electric circuit and a graph.
Means for Solving the Problem
[0007] The information processing device according to this disclosure comprises: an element graph generation unit that generates an element graph representing elements included in an electrical circuit based on information representing an electrical circuit; a wiring node generation unit that generates wiring nodes representing wiring that are at the same potential in an electrical circuit based on information representing an electrical circuit; and an electrical circuit graph generation unit that generates a graph representing an electrical circuit by connecting the element graph generated by the element graph generation unit and the wiring nodes generated by the wiring node generation unit with edges based on information representing an electrical circuit, wherein the element graph generation unit generates an element graph to which element information is attached, which includes at least one of type information indicating the type of element and element value information indicating the element value of the element. [Effects of the Invention]
[0008] According to this disclosure, the graph representing the generated electrical circuit includes at least one of type information indicating the type of element and element value information indicating the element value of the element, thus enabling mutual conversion between the electrical circuit and the graph. [Brief explanation of the drawing]
[0009] [Figure 1] A block diagram showing the configuration of the information processing device according to Embodiment 1. [Figure 2] A block diagram showing an example of the hardware configuration of the information processing device according to Embodiment 1. [Figure 3] A block diagram showing an example of the hardware configuration of the information processing device according to Embodiment 1. [Figure 4] A flowchart illustrating the processing performed by the information processing device according to Embodiment 1. [Figure 5] Figure 5A is a circuit diagram showing a coil included in the information indicating an electrical circuit input to the information processing device according to Embodiment 1, and Figure 5B is a graph showing a coil generated by the information processing device according to Embodiment 1. [Figure 6]Figure 6A is a circuit diagram showing diodes included in the information indicating an electrical circuit input to the information processing device according to Embodiment 1, and Figure 6B is a graph showing diodes generated by the information processing device according to Embodiment 1. [Figure 7] Figure 7A is a circuit diagram showing a DC / DC converter included in the information indicating the electrical circuit input to the information processing device according to Embodiment 1, and Figure 7B is a graph showing the DC / DC converter generated by the information processing device according to Embodiment 1. [Figure 8] Figure 8A is a circuit diagram showing an electrical circuit related to information indicating an electrical circuit input to the information processing device according to Embodiment 1, and Figure 8B is a graph showing an electrical circuit generated by the information processing device according to Embodiment 1. [Figure 9] A block diagram showing the configuration of the information processing device according to Embodiment 2. [Figure 10] A flowchart illustrating the processing performed by the information processing device according to Embodiment 2. [Modes for carrying out the invention]
[0010] The embodiments relating to this disclosure will be described in detail below with reference to the drawings. Embodiment 1. First, the configuration of the information processing device 100 according to Embodiment 1 will be described with reference to Figure 1. Figure 1 is a block diagram showing the configuration of the information processing device 100 according to Embodiment 1. The information processing device 100 according to Embodiment 1 is a device that converts information representing an electrical circuit into a graph based on the input of information representing the electrical circuit. As shown in Figure 1, the information processing device 100 includes an element graph generation unit 101, a wiring node generation unit 102, and an electrical circuit graph generation unit 103.
[0011] The element graph generation unit 101 comprises an element information acquisition unit 110, an element classification unit 111, a graph configuration generation unit 112, and an attribute assignment unit 113. The element information acquisition unit 110 extracts each element included in an electrical circuit based on information indicating the electrical circuit input to the information processing device 100, and acquires element information for each extracted element. For example, the element information acquired by the element information acquisition unit 110 includes type information indicating the type of element, element value information indicating the element value of the element, and terminal identification information for identifying the terminals of the element. The terminal identification information may be a terminal number indicating the number of the terminal, a code or symbol that can identify the terminal, or polarity information for identifying the polarity of the terminal. The polarity information may be a code or symbol indicating either positive or negative polarity, or a numerical value associated with polarity in advance.
[0012] The element classification unit 111 classifies each element included in the electrical circuit based on the element information acquired by the element information acquisition unit 110. Specifically, the element classification unit 111 classifies each element based on the presence or absence of polarity and the number of terminals of the element included in the element information. For example, the element classification unit 111 classifies elements into three types: two-terminal elements that do not have polarity, two-terminal elements that do have polarity, and elements with three or more terminals.
[0013] The graph configuration generation unit 112 generates an element graph, which is a graph representing each element included in the electrical circuit, based on the element information acquired by the element information acquisition unit 110 and the classification results from the element classification unit 111. For example, if the element is a two-terminal element that does not have polarity, the graph configuration generation unit 112 generates an element graph with a single element node representing that element. If the element is an element other than a two-terminal element that does not have polarity, the graph configuration generation unit 112 generates an element graph having a single element node representing that element, multiple terminal nodes representing the multiple terminals that the element has, and edges connecting the element node and the multiple terminal nodes. Details of the element graph generated by the graph configuration generation unit 112 will be described later.
[0014] The attribute assigning unit 113 assigns, to each node of the element graph generated by the graph configuration generation unit 112, element information indicating attributes of each element and each terminal, based on the element information acquired by the element information acquisition unit 110. For example, the attribute assigning unit 113 assigns type information to an element node of the element graph. Also, for example, the attribute assigning unit 113 assigns element value information to an element node of the element graph. Also, for example, the attribute assigning unit 113 assigns terminal identification information to a terminal node of the element graph. Also, for example, the attribute assigning unit 113 assigns, to each node of the element graph, element information including one or more of the type information, the element value information, and the terminal identification information. For example, the attribute assigning unit 113 assigns, as the element information, “type: R, element value: 10” to an element node of the element graph. This makes it possible to identify the element node as an element node indicating a resistor whose element value is 10Ω. Also, for example, the attribute assigning unit 113 assigns, as the element information, “polarity: positive” to a terminal node of the element graph. This makes it possible to identify the terminal node as a terminal node indicating a terminal whose polarity is positive. Also, for example, the attribute assigning unit 113 assigns, as the element information, “terminal number: 1” to a terminal node of the element graph. This makes it possible to identify the terminal node as a terminal node indicating a terminal whose terminal number is 1. Note that a part or all of the element information may be configured by a multidimensional vector including, as components, pieces of information included in the element information, or a part or all of the element information may be configured by a one-hot vector. Further, the element information may include information other than the type information, the element value information, and the terminal identification information, for example, information related to an element, such as withstand voltage of an element component, accuracy of an element value, a manufacturer, a distributor, and a selling price.
[0015] The wiring node generation unit 102 generates a wiring node representing wiring of an electric circuit, based on information indicating the electric circuit input to the information processing apparatus 100. For example, the wiring node generation unit 102 identifies portions of the wiring included in the electric circuit that are at the same potential and portions that are not at the same potential, based on the connection relationship of the electric circuit. The wiring node generation unit 102 generates wiring nodes such that, in the wiring of the electric circuit, portions that are at different potentials from each other due to being connected via a specific element or the like are set as different wiring nodes, and portions that are at the same potential as each other due to being integrally formed in the wiring of the electric circuit are set as the same wiring node. In other words, the wiring node generation unit 102 converts portions of the wiring of the electric circuit that are at different potentials into different wiring nodes, and converts portions of the wiring of the electric circuit that are at the same potential into the same wiring node. For example, when the electric circuit has a plurality of elements connected to each other by wiring, the wiring node generation unit 102 generates one wiring node representing the wiring. Further, for example, when a specific element included in the electric circuit has a plurality of terminals, and one terminal among the plurality of terminals is connected to another terminal by wiring, the wiring node generation unit 102 generates one wiring node representing the wiring.
[0016] The electric circuit graph generation unit 103 generates a graph representing the electric circuit, based on the information indicating the electric circuit input to the information processing device 100 and the calculation results of the element graph generation unit 101 and the wiring node generation unit 102. Specifically, the electric circuit graph generation unit 103 connects the element graph generated by the element graph generation unit 101 and the wiring node generated by the wiring node generation unit 102 by edges, based on the information indicating the electric circuit input to the information processing device 100, thereby generating an electric circuit graph that is a graph representing the electric circuit. The information processing device 100 outputs the electric circuit graph generated by the electric circuit graph generation unit 103. As a result, the information indicating the electric circuit is converted into the electric circuit graph. The electric circuit graph generation unit 103 is not limited to outputting the graph in a manner that can be visually recognized by an operator or the like, and may output data that can generate a visually recognizable graph, for example, by representing the connection between nodes using an adjacency matrix or the like.
[0017] Next, the hardware configuration of the information processing device 100 will be described with reference to Figures 2 and 3. Figure 2 is a block diagram showing an example of the hardware configuration of the information processing device 100 according to Embodiment 1, and Figure 3 is a block diagram showing an example of a hardware configuration of the information processing device 100 according to Embodiment 1 that is different from Figure 2. For example, as shown in Figure 2, the information processing device 100 has a processor 100a, a memory 100b, and an I / O port 100c, and is configured so that the processor 100a reads and executes a program stored in the memory 100b. The memory 100b is composed of, for example, a non-volatile or volatile semiconductor memory such as RAM, ROM, flash memory, EPROM, EEPROM, etc., or a combination thereof. The memory 100b may also be a magnetic disk, flexible disk, optical disk, compact disk, minidisc, DVD, etc. Furthermore, the memory 100b may be an HDD or SSD.
[0018] Furthermore, as shown in Figure 3, for example, the information processing device 100 has dedicated hardware, namely a processing circuit 100d and an I / O port 100c. The processing circuit 100d is composed of, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, a system LSI (Large-Scale Integration), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a combination thereof. Each function of the information processing device 100 is realized by these processors 100a or the dedicated hardware, namely the processing circuit 100d, executing a program which is software, firmware, or a combination of software and firmware.
[0019] Next, with reference to Figures 4 to 8, the details of the process by which the information processing device 100 according to Embodiment 1 generates a graph representing an electrical circuit based on the information of the electrical circuit will be described. Figure 4 is a flowchart of the process performed by the information processing device 100 according to Embodiment 1. As shown in Figure 4, when the information processing device 100 starts processing (step ST201), it reads the information of the electrical circuit (step ST202). For example, the information processing device 100 starts processing based on the input of information indicating the electrical circuit for which a graph is to be generated.
[0020] Furthermore, in the process of step ST202, the information processing device 100 acquires information indicating the electrical circuit to be graphed by reading, for example, information input from another electrically connected device (not shown) or information input from a storage device (not shown) provided by the information processing device 100. Specifically, the information processing device 100 acquires text information indicating the electrical circuit, such as a netlist containing element information of each element included in the electrical circuit. The information processing device only needs to be configured to acquire information from which element information of each element included in the electrical circuit and information indicating the connection destination of the wiring can be extracted. For example, the information processing device may be configured to acquire information such as electrical circuit layout data and image data of a circuit diagram showing the electrical circuit.
[0021] After performing the process in step ST202, the information processing device 100 extracts wiring from the read electrical circuit using the wiring node generation unit 102 and generates wiring nodes representing the extracted wiring (step ST203). In other words, the information processing device 100 extracts multiple wires in the electrical circuit that are at the same potential as each other using the wiring node generation unit 102, and defines each of the extracted wires as a wiring node.
[0022] After performing the process in step ST203, the information processing device 100 extracts element information for one of the elements included in the electrical circuit (step ST204). In this process, the information processing device 100 selects one of the elements included in the electrical circuit for which element information has not yet been obtained, and obtains element information for the selected element.
[0023] After performing the process in step ST204, the information processing device 100 determines whether the number of terminals of the element for which element information was acquired in step ST204 is 2 (step ST205). In this process, the information processing device 100 classifies the elements using the element classification unit 111 based on whether the number of terminals of the element for which element information was acquired is 2.
[0024] In the process of step ST205, if the number of terminals of the element is 2 (YES in step ST205), the information processing device 100 determines whether or not the element is a non-polarized element (step ST206). In this process, the information processing device 100 classifies the element using the element classification unit 111 based on whether or not the element for which element information has been acquired is a non-polarized element.
[0025] In the processing of step ST206, if the element is non-polar (YES in step ST206), the information processing device 100 generates an element graph of the element as a single element node (step ST207). For example, a two-terminal element that is non-polar is a coil.
[0026] Figure 5A is a circuit diagram showing a coil L1 included in the information indicating an electrical circuit input to the information processing device 100 according to Embodiment 1, and Figure 5B is a graph showing the coil L1 generated by the information processing device according to Embodiment 1. For example, if the element whose element information was acquired in the processing of step ST204 was the coil L1 shown in Figure 5A, the information processing device 100 generates an element graph of the coil L1 as a single element node shown in Figure 5B.
[0027] In step ST205, if the number of terminals of the element is not 2 (NO in step ST205), or in step ST206, if the element has polarity (NO in step ST206), the information processing device 100 defines a plurality of terminal nodes that the element has (step ST208). In this process, the information processing device 100 defines a plurality of terminal nodes that are equal in number to the number of terminals that the element has, for example.
[0028] After performing the process in step ST208, the information processing device 100 graphs the element using a single element node and multiple terminal nodes (step ST209). Specifically, in this process, the information processing device 100 uses the graph configuration generation unit 112 to generate an element graph of the element, which has a single element node, multiple terminal nodes that the element has, and edges connecting the element node and the multiple terminal nodes. For example, a diode is an example of an element with two terminals and polarity. Also, for example, a DC / DC converter is an example of an element with more than two terminals.
[0029] Figure 6A is a circuit diagram showing diode D1 included in the information indicating an electrical circuit input to the information processing device 100 according to Embodiment 1, and Figure 6B is a graph showing diode D1 generated by the information processing device 100 according to Embodiment 1. For example, if the element whose element information was acquired in the processing of step ST204 is diode D1 shown in Figure 6A, which is an element with two terminals and polarity, the information processing device 100 generates an element graph of diode D1 as shown in Figure 6B, which has a single element node, two terminal nodes that the element has, and an edge connecting the element node and the two terminal nodes.
[0030] When either step ST207 or step ST208 is performed, the information processing device 100 assigns attributes to each element node and terminal node (step ST210). In this process, the information processing device 100 assigns element information indicating the attributes of each element and each terminal to each node of the element graph generated by the graph configuration generation unit 112, based on the element information acquired by the element information acquisition unit 110.
[0031] For example, as shown in Figures 5A and 5B, if the element whose element information was acquired in step ST204 was a coil L1, then in step ST210, the information processing device 100 assigns to the element node the following element information indicating the attribute of the element: "L", which is type information indicating that the type of element is a coil, and "2.2u", which is element value information indicating that the inductance value of the element is 2.2 μH (2.2 microhenries). Also, for example, if the type of element is a resistor, the information processing device 100 assigns to the element node the type information indicating that it is a resistor "R" and element value information "10Ω", and if the type of element is a capacitor, it assigns the type information indicating that it is a capacitor "C" and element value information "10pF". Note that if the unit of the element value is clear, the element value information handled by the information processing device may be information that only shows the value of the element value without units.
[0032] Furthermore, for example, as shown in Figures 6 and 6B, if the element whose element information was acquired in step ST204 was diode D1, in step ST210, the information processing device 100 assigns to the element node element information indicating the attribute of the element, namely "D" which indicates the type of element is a diode and "1N5818" which indicates the type number of the element, and assigns to the terminal node terminal identification information for identifying the terminal, namely polarity information for identifying the polarity of the terminal, namely "+" and "-".
[0033] Furthermore, for example, as shown in Figures 7 and 7B, if the element whose element information was acquired in step ST204 was a DC / DC converter, in step ST210, the information processing device 100 assigns to the element node element information indicating the attribute of the element, namely "X", which indicates that the type of element is an IC component, and namely "LT3489", which indicates the model number of the element. For each terminal node of the DC / DC converter, it assigns to the terminal identification information for identifying the terminal, namely polarity information for identifying the polarity of the terminal, namely "-SHDN", "Vin", "SW", "FB", "SS", "GND", "Comp", and "Vc". In this way, the type information, element value information, and terminal identification information as element information function as labels for identifying element nodes and terminal nodes.
[0034] After performing the process in step ST210, the information processing device 100 determines whether or not it has extracted element information for all elements included in the electrical circuit (step ST211). In other words, after performing the process in step ST210, the information processing device 100 determines whether or not there are any elements included in the electrical circuit for which element information has not yet been obtained. If, in the process of step ST211, there are elements included in the electrical circuit for which element information has not yet been obtained (NO in step ST211), the information processing device 100 returns to step ST204 and obtains element information for other elements for which element information has not yet been obtained.
[0035] In step ST211, if element information for all elements included in the electrical circuit is extracted (YES in step ST211), the information processing device 100 generates an electrical circuit graph by connecting each element graph and the wiring nodes generated in step ST203 with edges using the electrical circuit graph generation unit 103 (step ST212).
[0036] Figure 8A is a circuit diagram showing the electrical circuit related to the information indicating the electrical circuit input to the information processing device 100 according to Embodiment 1, and Figure 8B is a graph showing the electrical circuit generated by the information processing device 100 according to Embodiment 1. In Figure 8B, "Line1", "Line2", "Line3", "Line4", "Line5", "IN", and "OUT" each indicate a wiring node. In the following description, the information used to identify (specify) these wires, such as "Line1," "Line2," "Line3," "Line4," "Line5," "IN," and "OUT," will also be referred to as wiring information. Furthermore, wiring information is not limited to the above; any information that can uniquely identify a wire is acceptable.
[0037] After completing step ST212, the information processing device 100 outputs the generated electrical circuit graph and terminates the process (step ST213).
[0038] As described above, the information processing device 100 according to Embodiment 1 includes: an element graph generation unit 101 that generates an element graph representing elements included in an electrical circuit based on information indicating an electrical circuit; a wiring node generation unit 102 that generates wiring nodes representing wiring in an electrical circuit based on information indicating an electrical circuit; and an electrical circuit graph generation unit 103 that generates a graph representing an electrical circuit by connecting the element graph generated by the element graph generation unit 101 and the wiring nodes generated by the wiring node generation unit with edges based on information indicating an electrical circuit. The wiring node generation unit generates wiring nodes such that parts of the wiring in the electrical circuit with different potentials are treated as different wiring nodes, and parts of the electrical circuit with the same potential are treated as the same wiring node. The element graph generation unit 101 generates an element graph to which element information including type information indicating the type of element, element value information indicating the element value of the element, and terminal identification information for identifying the terminals of the element is attached.
[0039] The graph generated from the electrical circuit by such an information processing device 100 does not construct multiple edges or self-loops, so the connections between elements are uniquely determined. Furthermore, the graph can determine the type of element, element value, polarity, terminal number, etc., from the information assigned to each node. Thus, the information processing device 100 according to Embodiment 1 enables mutual conversion between electrical circuits and graphs by generating a graph that can be converted back into an electrical circuit. Furthermore, the information processing device 100 enables the mutual conversion of circuit diagrams and graphs, making it possible to reflect the results of calculations using graph theory (for example, adding and deleting nodes and edges, and editing attribute information) in the circuit diagram.
[0040] The information processing device 100 according to Embodiment 1 is configured to generate an element graph to which element information is provided, including type information indicating the type of element, element value information indicating the element value of the element, and terminal identification information for identifying the terminals of the element, but is not limited thereto. The information processing device is configured to create a graph that includes the information necessary when converting the graph to an electrical circuit, among the type information indicating the type of element, element value information indicating the element value of the element, and terminal identification information for identifying the terminals of the element. For example, the information processing device may be configured to generate an element graph to which element information is provided, including at least one of type information indicating the type of element and element value information indicating the element value of the element. Specifically, if all elements included in an electrical circuit are elements that can be identified by type information alone, the graph does not need to include element value information and terminal identification information.
[0041] Furthermore, the information processing device 100 according to Embodiment 1 is configured to assign polarity information to the terminal nodes of two-terminal elements having polarity, and to assign terminal identification information other than polarity information to the terminal nodes of elements with three or more terminals, but is not limited to this. The information processing device only needs to be configured to generate a graph in which the connection destination of the terminals can be determined, and for example, it may be configured to assign terminal identification information representing the terminal number to both the terminal nodes of two-terminal elements having polarity and the terminal nodes of elements with three or more terminals. Furthermore, the information processing device 100 according to Embodiment 1 generates an element graph using an electrical circuit graph generation unit 103, which includes a single element node representing an element other than a two-terminal element that does not have polarity, a plurality of terminal nodes representing the plurality of terminals that the element has, and edges connecting the element node and the plurality of terminal nodes, but is not limited to this. The information processing device only needs to be configured to generate a graph that can be converted back into an electrical circuit. For example, the information processing device may be configured to generate an element graph using an electrical circuit graph generation unit without distinguishing between a single node representing an element and a plurality of terminals that the element has, and to assign element information to these nodes using an attribute assignment unit, so that it is possible to determine whether each node corresponds to an element node or a terminal node based on element type information, element value information, polarity information, and element information representing terminal numbers assigned by the attribute assignment unit. For example, if an information processing device generates an element graph using an electrical circuit graph generation unit without distinguishing between a single node representing an element and nodes representing multiple terminals of that element, the attribute assignment unit can assign element information such as "Type: R, Element Value: 10, Polarity: None, Terminal Number: None" to a node in the element graph, thereby allowing the device to identify that node as an element node representing a resistor with an element value of 10Ω. Similarly, if the attribute assignment unit assigns element information such as "Type: None, Element Value: None, Polarity: Positive, Terminal Number: None" to a node in the element graph, the device can identify that node as a terminal node representing a terminal with positive polarity. Likewise, if the attribute assignment unit assigns element information such as "Type: None, Element Value: None, Polarity: None, Terminal Number: 1" to a node in the element graph, the device can identify that node as a terminal node representing a terminal with terminal number 1. Similarly, by assigning element information such as "Type: X, Element Value: LT3489, Polarity: None, Terminal Number: Vin" to a node in the element graph using the attribute assignment unit, the node can be identified as a terminal node representing the Vin terminal of an IC component with model number LT3489. The attribute assignment unit 113 according to Embodiment 1 is configured to assign element information to each node of the element graph based on the element information acquired by the element information acquisition unit 110, but is not limited to this. The element assignment unit may be configured to assign information (labels) to nodes or edges other than the element graph in addition to assigning element information to each node of the element graph. For example, the attribute assignment unit may be configured to assign information indicating the attributes of a wiring node to a wiring node. Specifically, the attribute assignment unit may be configured to assign information indicating attributes such as the type of wiring node, wiring length, withstand voltage, manufacturer, distributor, and sales price to a wiring node.
[0042] Embodiment 2. Next, the information processing device 500 according to Embodiment 2 will be described with reference to Figures 9 and 10. The information processing device 500 according to Embodiment 2 is a device that generates information indicating an electrical circuit corresponding to an electrical circuit graph based on the input of an electrical circuit graph generated by the information processing device 100 according to Embodiment 1. Note that components similar to those in Embodiment 1 are given the same reference numerals and names, and their descriptions are omitted.
[0043] Figure 9 is a block diagram showing the configuration of the information processing device 500 according to Embodiment 2. As shown in Figure 9, the information processing device 500 includes a node extraction unit 501 and a netlist generation unit 503. The node extraction unit 501 includes an element node extraction unit 510, a first adjacent node extraction unit 511, a second adjacent node extraction unit 512, and an attribute acquisition unit 513.
[0044] The node extraction unit 501 acquires information about the electrical circuit graph generated by the information processing device 100 according to Embodiment 1. Specifically, the node extraction unit 501 acquires graph information that includes a plurality of nodes, information indicating the connections between the plurality of nodes, and element information which is the attribute of each node. The node extraction unit 501 extracts the information necessary to generate information indicating an electrical circuit from the acquired graph information.
[0045] The element node extraction unit 510 extracts element nodes from the graph information input to the graph information processing device 500.
[0046] The first adjacent node extraction unit 511 extracts nodes adjacent to the element nodes extracted by the element node extraction unit 510. These extracted nodes are referred to as first adjacent nodes. Here, adjacent nodes are those connected by an edge.
[0047] The second adjacent node extraction unit 512 extracts nodes adjacent to the first adjacent nodes extracted by the first adjacent node extraction unit 511. These extracted nodes will be referred to as second adjacent nodes.
[0048] The attribute acquisition unit 513 acquires the node attributes of the element node, first adjacent node, and second adjacent node extracted by the element node extraction unit 510, the first adjacent node extraction unit 511, and the second adjacent node extraction unit 512.
[0049] The netlist generation unit 503 creates a netlist from the information obtained by the node extraction unit 501. To do this, it obtains the element type and element value from the node attributes of the element node. Next, it obtains the wiring to which the element or the terminals of the element are connected. This utilizes the fact that for non-polarized two-terminal elements, the first adjacent node becomes the wiring node, and for polarized two-terminal elements or elements with three or more terminals, the second adjacent node becomes the wiring node. Through the above operations, the element type, element value, and the wiring to which the terminals of the element are connected are obtained, and a netlist for the extracted elements can be created. By performing this operation for all elements, a netlist of the entire electrical circuit can be created.
[0050] Figure 10 is a flowchart showing the processing performed by the information processing device 500 according to Embodiment 2. As shown in Figure 10, when the information processing device 500 starts processing (step ST601), it extracts one of the element nodes included in the graph based on the input graph information (step ST602). For example, the information processing device 500 starts processing based on the input of graph information that is the target of generating information indicating an electrical circuit. In the processing of step ST601, the information processing device 500 acquires information indicating an electrical circuit that is the target of generating a graph by reading, for example, information input from another electrically connected device (not shown) or information input from a storage device (not shown) provided by the information processing device 500. The information processing device only needs to be configured to acquire information from which information about each node included in the graph can be extracted. For example, the information processing device may be configured to acquire information such as graph image data. In the processing of step ST602, the information processing device 500 uses an element node extraction unit to select (extract) one of the element nodes included in the graph from which information has not yet been extracted.
[0051] When the process of step ST602 is performed, the information processing device 500 acquires element information as attribute information attached to the extracted element node by the attribute information acquisition unit (step ST603). In this process, the information processing device 500 acquires, for example, type information, element value information, and terminal identification information as element information attached to the extracted element node. The information processing device only needs to be configured to acquire the information necessary when converting the graph to an electrical circuit from among the type information, element value information, and terminal identification information. For example, the information processing device may be configured to acquire element information that includes at least one of the type information and element value information.
[0052] When the process of step ST603 is performed, the information processing device 500 extracts the first neighbor node, which is another node adjacent to the element node extracted in the process of step ST602 (step ST604).
[0053] When the process of step ST604 is performed, the information processing device 500 extracts a second neighbor node, which is another node adjacent to the first neighbor node extracted in the process of step ST604 on the opposite side from the element node (step ST605).
[0054] After performing the process in step ST605, the information processing device 500 determines whether the first adjacent node extracted in the process in step ST604 is a wiring node (step ST606).
[0055] In the process of step ST606, if the first adjacent node is a wiring node (YES in step ST606), the information processing device 500 obtains wiring information from that first adjacent node to which the element extracted in step ST602 is connected (step ST607).
[0056] In the process of step ST606, if the first adjacent node is not a wiring node (NO in step ST606), the information processing device 500 obtains node attribute information from the first adjacent node (step ST608).
[0057] When the process in step ST608 is performed, the information processing device 500 obtains wiring information to which the terminals of the element are connected from the second adjacent node, which is a wiring node extracted in the process in step ST605 (step ST609).
[0058] After performing either step ST607 or step ST609, the information processing device 500 generates a netlist for the element using the netlist generation unit 503 based on the acquired element type information, element value information, and wiring information of the wiring to which the element is connected (step ST610).
[0059] After performing the process in step ST610, the information processing device 500 determines whether or not all element nodes included in the graph have been extracted (step ST611). In other words, after performing the process in step ST610, the information processing device 500 determines whether or not there are any element nodes included in the graph that have not yet been extracted. If, in the process of step ST611, there are any element nodes included in the graph that have not yet been extracted (NO in step ST611), the information processing device 500 returns to step ST602 and extracts any other element nodes that have not yet been extracted.
[0060] In step ST611, if all element nodes included in the graph are extracted (YES in step ST611), the information processing device 500 generates a netlist of the entire electrical circuit using the netlist generation unit 503 based on the netlist of each element generated (step ST612).
[0061] After performing the process in step ST612, the information processing device 500 outputs the generated netlist and terminates the process (step ST613).
[0062] As described above, the information processing device 500 according to Embodiment 2 includes: an element node extraction unit that extracts element nodes included in an element graph based on a graph representing an electrical circuit having an element graph representing elements included in an electrical circuit, wiring nodes indicating wiring in an electrical circuit, and edges connecting the element graph and the wiring nodes; a first adjacent node extraction unit that extracts first adjacent nodes adjacent to an element node based on a graph representing an electrical circuit; a second adjacent node extraction unit that extracts second adjacent nodes adjacent to the first adjacent node on the opposite side from the element node based on a graph representing an electrical circuit; an attribute information acquisition unit that acquires information about the attributes of each node from each node, including the element node, the first adjacent node, and the second adjacent node; and a netlist generation unit that generates a netlist of an electrical circuit based on the element node, the first adjacent node, the second adjacent node, and information about the attributes of each node.
[0063] With this configuration, the information processing device 500 according to Embodiment 2 can reconstruct an electrical circuit based on a graph converted from an electrical circuit, thus enabling mutual conversion between electrical circuits and graphs. Furthermore, a graph generated by the information processing device 100 according to Embodiment 1, in which either or both nodes and edges have been added, deleted, or modified, can also be similarly converted back into an electrical circuit.
[0064] Furthermore, the information processing device 100 according to Embodiment 1 may also have the functions of the information processing device according to Embodiment 2.
[0065] Furthermore, this disclosure allows for free combination of each embodiment, modification of any component of each embodiment, or omission of any component in each embodiment. [Industrial applicability]
[0066] The information processing device relating to this disclosure can be used, for example, to convert an electrical circuit into a graph in order to mathematically treat the electrical circuit, or to convert a graph into an electrical circuit. [Explanation of symbols]
[0067] 100 Information processing device, 101 Element graph generation unit, 102 Wiring node generation unit, 103 Electrical circuit graph generation unit, 110 Element information acquisition unit, 111 Element classification unit, 112 Graph configuration generation unit, 113 Attribute assignment unit, 500 Information processing device, 501 Node extraction unit, 503 Netlist generation unit, 510 Element node extraction unit, 511 First adjacent node extraction unit, 512 Second adjacent node extraction unit, 513 Attribute acquisition unit, D1 Diode, L1 Coil.
Claims
1. An element graph generation unit generates an element graph representing the elements included in the electrical circuit based on information indicating the electrical circuit, A wiring node generation unit generates wiring nodes representing the wiring in the electrical circuit based on information indicating the electrical circuit, The system includes an electrical circuit graph generation unit that generates a graph representing the electrical circuit by connecting the element graph generated by the element graph generation unit and the wiring nodes generated by the wiring node generation unit with edges, based on information indicating the electrical circuit. The wiring node generation unit generates wiring nodes such that parts of the electrical circuit with different potentials become different wiring nodes, and parts of the electrical circuit with the same potential become the same wiring node. The element graph generation unit generates an element graph to which element information is provided, which includes at least one of type information indicating the type of element and element value information indicating the element value of the element. An information processing device characterized by the following:
2. The element graph generation unit generates an element graph to which element information, including terminal identification information for identifying multiple terminals of the element, is assigned. The information processing apparatus according to claim 1, characterized in that it is a product of the present invention.
3. The element graph generation unit generates the element graph based on whether or not the element has polarity. The information processing apparatus according to claim 2, characterized in that it is a product of the present invention.
4. The element graph generation unit generates the element graph as a single element node when the element is a two-terminal element that does not have polarity. The information processing apparatus according to claim 3, characterized in that it is a product of the same method.
5. The element graph generation unit generates an element graph having, if the element is an element other than a two-terminal element that does not have polarity, a single element node to which at least one of the type information and the element value information is assigned, a plurality of terminal nodes to which the terminal identification information is assigned, and edges connecting the element node and the plurality of terminal nodes. The information processing apparatus according to feature 4.
6. If the element is a two-terminal element with polarity, the element graph generation unit generates an element graph having terminal nodes to which polarity information for identifying polarity is assigned as terminal identification information. The information processing apparatus according to claim 5, characterized in that it is a product of the present invention.
7. The element information is composed of a multidimensional vector whose components are each piece of information contained in the element information. An information processing apparatus according to any one of claims 1 to 6.
8. The aforementioned element information is composed of one-hot vectors. An information processing apparatus according to any one of claims 1 to 6.
9. An element node extraction unit extracts element nodes included in an element graph based on a graph representing the electrical circuit, which includes an element graph representing elements included in the electrical circuit, wiring nodes indicating wiring in the electrical circuit, and edges connecting the element graph and the wiring nodes. A first adjacent node extraction unit extracts first adjacent nodes adjacent to the element node based on a graph representing the electrical circuit, A second adjacent node extraction unit extracts a second adjacent node that is adjacent to the first adjacent node on the opposite side from the element node, based on a graph representing the electrical circuit, An attribute information acquisition unit acquires information regarding the attributes of each node from each node, including the element node, the first adjacent node, and the second adjacent node. The system includes a netlist generation unit that generates a netlist of the electrical circuit based on the element node, the first neighbor node, the second neighbor node, and information regarding the attributes of each node. An information processing device characterized by the following:
10. An information processing method performed by an apparatus comprising an element graph generation unit, a wiring node generation unit, and an electrical circuit graph generation unit, The element graph generation unit generates an element graph representing the elements included in the electrical circuit based on information indicating the electrical circuit, The wiring node generation unit generates wiring nodes representing the wiring of the electrical circuit based on information indicating the electrical circuit, The electrical circuit graph generation unit comprises the step of generating a graph representing the electrical circuit by connecting the element graph generated by the element graph generation unit and the wiring nodes generated by the wiring node generation unit with edges, based on information indicating the electrical circuit. The wiring node generation unit generates wiring nodes such that parts of the electrical circuit with different potentials become different wiring nodes, and parts of the electrical circuit with the same potential become the same wiring node. The element graph generation unit generates an element graph to which element information is provided, which includes at least one of type information indicating the type of element and element value information indicating the element value of the element. An information processing method characterized by the following:
11. An information processing method performed by an apparatus comprising: an element node extraction unit; a first adjacent node extraction unit; a second adjacent node extraction unit; an attribute information acquisition unit; and a netlist generation unit, The element node extraction unit extracts element nodes included in the element graph based on a graph representing the electrical circuit, which has an element graph representing elements included in the electrical circuit, wiring nodes indicating wiring in the electrical circuit, and edges connecting the element graph and the wiring nodes. The first adjacent node extraction unit extracts first adjacent nodes adjacent to the element node based on a graph representing the electrical circuit, The second adjacent node extraction unit extracts a second adjacent node that is adjacent to the first adjacent node on the opposite side from the element node, based on a graph representing the electrical circuit. When the attribute information acquisition unit acquires information regarding the attributes of each node from each node, including the element node, the first adjacent node, and the second adjacent node, The netlist generation unit includes the step of generating a netlist of the electrical circuit based on the element node, the first neighbor node, the second neighbor node, and information regarding the attributes of each node. An information processing method characterized by the following:
Citation Information
Patent Citations
Connection verifying device for electronic circuit
JP1992060872A
Graph representation transforming method and its device, and automatic rearranging method and its device
JP2000200298A
Complex layout-based topological data analysis of analog netlists to extract hierarchy and functionality
US20150100928A1
Search method, search device, and search system
WO2020229927A1
