Bank structure determination method and device, storage medium and electronic equipment
By replacing and matching circuit diagram templates, a target circuit diagram template of universal circuit component symbols is generated, and a qualified circuit infrastructure is selected, which solves the problem of long time and low efficiency in determining the bank structure in the existing technology, and achieves efficient and accurate bank The structure is determined.
Patent Information
- Application Number
- CN202411228712.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2025-01-21
AI Technical Summary
When determining the Bank structure of an analog circuit, designers are required to label each circuit diagram, resulting in the time-consuming and inefficient determination of the Bank structure when there are a large number of circuit diagrams.
By obtaining the circuit structure of the target circuit diagram, the circuit component symbol is replaced, and the target circuit diagram of the general circuit component symbol is generated. Then, the target circuit diagram template matches multiple predetermined circuit diagram templates, obtains multiple circuit infrastructure, selects the target circuit infrastructure that meets the structural characteristics conditions, and generates the BANK structure corresponding to the target circuit diagram.
It realizes the unified processing of different circuit diagrams and adapts to circuit diagrams generated by any circuit diagram software. It improves the versatility and accuracy of bank structure determination, saves human resources, reduces the time required to generate bank structures, and improves efficiency.
Smart Images

Figure CN119339404A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit technology, and in particular to a method, device, storage medium and electronic device for determining a Bank structure. Background Art
[0002] In electronic engineering and computer science, a bank structure usually refers to organizing a group of similar components or resources into a bank for easier management and performance optimization. This structure has applications in many fields, including memory systems, power management, analog circuits, etc.
[0003] At present, the Bank structure of analog circuits is determined mainly by having circuit schematic designers label the basic structures in the circuit diagram and determine the Bank structure corresponding to the analog circuit based on the basic structures corresponding to the labels.
[0004] However, using this method of determining the Bank structure requires designers to label each circuit diagram. When there are a large number of circuit diagrams that need to be labeled, the Bank structure determination is time-consuming and inefficient because multiple circuit diagrams cannot be processed uniformly. Summary of the invention
[0005] In view of this, the present application provides a Bank structure determination method, device, storage medium and electronic device, the main purpose of which is to improve the current existing technology that requires designers to label each circuit diagram. When there are a large number of circuit diagrams that need to be labeled, it is impossible to uniformly process multiple circuit diagrams, which will lead to technical problems such as long time and low efficiency in Bank structure determination.
[0006] In a first aspect, the present application provides a method for determining a Bank structure, comprising:
[0007] Acquire a circuit diagram template including a circuit structure of a target circuit diagram;
[0008] Replacing the circuit element symbols of the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols;
[0009] Matching the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively to obtain a plurality of circuit basic structures included in the target circuit diagram, wherein the plurality of predetermined circuit diagrams correspond to basic structures of different Bank structure categories;
[0010] Selecting at least one target circuit infrastructure structure that meets the structural feature condition from the plurality of circuit infrastructure structures;
[0011] Based on the at least one target circuit infrastructure, a Bank structure corresponding to the target circuit diagram is generated. In a second aspect, the present application provides a Bank structure determination device, comprising:
[0012] An acquisition module, configured to acquire a circuit diagram template including a circuit structure of a target circuit diagram;
[0013] A replacement module is configured to perform a circuit element symbol replacement process on the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols;
[0014] A matching module is configured to match the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively to obtain a plurality of circuit basic structures included in the target circuit diagram, wherein the plurality of predetermined circuit diagrams correspond to basic structures of different Bank structure categories;
[0015] A selection module, configured to select at least one target circuit infrastructure structure that meets the structural feature condition from the plurality of circuit infrastructure structures;
[0016] A generation module is configured to generate a Bank structure corresponding to the target circuit diagram based on the at least one target circuit infrastructure structure.
[0017] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the Bank structure determination method described in the first aspect is implemented.
[0018] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the Bank structure determination method described in the first aspect when executing the computer program.
[0019] Through the above-mentioned technical scheme, the present application provides a Bank structure determination method, device, storage medium and electronic device. Compared with the current existing technology, the present application replaces the circuit element symbols of the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols, which can uniformly process different circuit diagrams and adapt to circuit diagrams generated by any circuit diagram software, thereby improving versatility; it also selects at least one target circuit infrastructure that meets the structural feature conditions from multiple circuit infrastructures, and generates a Bank structure corresponding to the target circuit diagram based on at least one target circuit infrastructure, thereby achieving the purpose of generating not only the basic circuit structure but also the Bank structure, thereby improving the accuracy of Bank structure determination, while saving human resources, reducing the time required to generate the Bank structure, and improving the efficiency of generating the Bank structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0022] Figure 1 A schematic diagram of a process of determining a Bank structure provided in an embodiment of the present application is shown;
[0023] Figure 2 A schematic diagram of a process of determining a Bank structure provided in an embodiment of the present application is shown;
[0024] Figure 3 A schematic diagram showing an example provided by an embodiment of the present application;
[0025] Figure 4 A schematic diagram of a process of determining a Bank structure provided in an embodiment of the present application is shown;
[0026] Figure 5 A schematic diagram showing an example provided by an embodiment of the present application;
[0027] Figure 6 A schematic diagram showing an example provided by an embodiment of the present application;
[0028] Figure 7 A schematic diagram showing an example provided by an embodiment of the present application;
[0029] Figure 8 A schematic diagram showing an example provided by an embodiment of the present application;
[0030] Fig. 9 A schematic diagram showing an example provided by an embodiment of the present application;
[0031] Fig.10 A schematic diagram showing an example provided by an embodiment of the present application;
[0032] Fig.11 A schematic diagram of an example process provided by an embodiment of the present application is shown;
[0033] Fig.12 A schematic diagram of the structure of a Bank structure determination device provided in an embodiment of the present application is shown;
[0034] Fig.13 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0035] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0036] In order to improve the current existing technology, designers need to label each circuit diagram. When there are a large number of circuit diagrams that need to be labeled, it is impossible to uniformly process multiple circuit diagrams, which will lead to technical problems such as long time consumption and low efficiency in determining the Bank structure. This embodiment provides a method for determining the Bank structure, such as Figure 1 As shown, the method includes:
[0037] Step 101: Acquire a circuit diagram template including a circuit structure of a target circuit diagram.
[0038] In an embodiment of the present application, the target circuit diagram is a circuit diagram for which a Bank structure needs to be determined, and accordingly, the circuit structure of the target circuit diagram is a circuit connection structure in the target circuit diagram.
[0039] Optionally, the circuit diagram template may be a circuit diagram template obtained based on the target circuit diagram. Specifically, the circuit diagram template may be a circuit diagram in a computer application, or may be in other forms, which are not limited here.
[0040] Step 102: Replace the circuit component symbols in the circuit diagram template to generate a target circuit diagram template using universal circuit component symbols.
[0041] In some examples, circuit component symbols are standard graphical identifiers used in circuit diagrams to represent various electronic components.
[0042] It should be noted that the circuit element symbols used in the circuit diagram template may be the circuit element symbols used by the application that generates the circuit diagram template, that is, the circuit element symbols used by the application may be non-universal circuit element symbols. Therefore, in the present application, it is necessary to replace all the element symbols used in the circuit diagram template with universal circuit element symbols.
[0043] Furthermore, common circuit component symbols generally follow a set of international standards, such as the standards of the International Electrotechnical Commission (IEC).
[0044] Correspondingly, the target circuit diagram template is a circuit diagram template using universal circuit component symbols corresponding to the target circuit diagram.
[0045] Step 103: Match the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively to obtain a plurality of circuit infrastructure structures included in the target circuit diagram.
[0046] Among them, multiple predetermined circuit diagrams correspond to basic structures of different Bank structure categories.
[0047] For this embodiment, the basic structures of different Bank structure categories may include a current mirror structure, a differential pair structure, a Cascode structure, etc. The specific contents of the basic structures of different Bank structure categories are not limited here.
[0048] For example, a current mirror is a circuit structure used to replicate current, which can ensure that the current flowing through two or more branches is the same. This structure is widely used in the design of current sources in analog circuits and in the bias circuit of amplifiers.
[0049] Accordingly, a differential pair is a common amplifier structure that amplifies the difference between two input signals while ignoring their common mode components. Differential pairs are often used in preamplifiers and instrumentation amplifiers.
[0050] Accordingly, the cascode structure is an amplifier configuration consisting of two transistors cascaded together, where the first transistor acts as the input stage and the second transistor acts as the output stage.
[0051] In some examples, matching the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively may be performing diagram matching.
[0052] Specifically, graph matching refers to finding a one-to-one correspondence between nodes in two graphs so that the edges between these corresponding nodes match as much as possible. In the embodiment of the present application, graph matching may specifically include matching transistors in the graph and matching nodes in the graph.
[0053] Correspondingly, the multiple circuit basic structures obtained after matching may be basic circuit structures existing in the target circuit diagram.
[0054] Step 104: Select at least one target circuit infrastructure structure that meets the structural feature condition from the multiple circuit infrastructure structures.
[0055] In the embodiment of the present application, the structural characteristic conditions may be structural characteristic conditions corresponding to different Bank structure categories.
[0056] For example, if the Bank structure categories corresponding to multiple predetermined templates include Bank structure 1 and Bank structure 2, Bank structure 1 can correspond to structural feature conditions a, b, c, and Bank structure 2 can correspond to structural feature conditions d, e, f, then it is necessary to screen based on the structural feature conditions corresponding to Bank structure 1 and Bank structure 2.
[0057] In some examples, the target circuit infrastructure is a qualified circuit infrastructure selected from a plurality of circuit infrastructures.
[0058] Step 105: Generate a Bank structure corresponding to the target circuit diagram based on at least one target circuit infrastructure structure.
[0059] In the embodiments of the present application, the Bank structure generally refers to organizing multiple similar components or resources into a Bank for easy management and performance optimization. This structure is used in many fields, including memory systems, power management, analog circuits, etc. The Bank structure in this embodiment is mainly a Bank structure in the analog circuit field.
[0060] Specifically, in analog circuit design, the Bank structure may refer to connecting multiple similar analog circuit modules in parallel or in series to achieve higher performance or meet specific application requirements.
[0061] In some examples, the Bank structure corresponding to the target circuit diagram can be composed of at least one target circuit basic structure.
[0062] Compared with the current existing technology, this embodiment replaces the circuit element symbols of the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols, which can uniformly process different circuit diagrams and adapt to circuit diagrams generated by any circuit diagram software, thereby improving versatility; it also selects at least one target circuit infrastructure that meets the structural feature conditions from multiple circuit infrastructures, and generates a Bank structure corresponding to the target circuit diagram based on the at least one target circuit infrastructure, thereby achieving the purpose of generating not only a basic circuit structure but also a Bank structure, thereby improving the accuracy of Bank structure determination, while saving human resources, reducing the time required to generate a Bank structure, and improving the efficiency of generating a Bank structure.
[0063] As a refinement and extension of the above embodiment, when matching the target circuit diagram template with a plurality of predetermined circuit diagram templates to obtain a plurality of circuit infrastructure structures included in the target circuit diagram, the following methods may be used but are not limited to: Figure 2 As shown, the method includes:
[0064] Step 201: Use a graph matching algorithm to match a target circuit diagram template with a plurality of predetermined circuit diagram templates respectively, to obtain a plurality of circuit sub-diagrams corresponding to the target circuit diagram template.
[0065] Among them, multiple circuit sub-diagrams correspond to at least one Bank structure category.
[0066] Optionally, step 201 may be performed using, but not limited to, the following methods, including:
[0067] Step 11: for the matching process between the target circuit diagram template and the target predetermined template, determine the circuit structure to be matched corresponding to the target circuit diagram template and the target circuit structure corresponding to the target predetermined template.
[0068] The target predetermined template is any one of a plurality of predetermined circuit diagram templates.
[0069] Exemplarily, the target circuit diagram needs to be matched with a plurality of predetermined templates respectively, for example, Figure 3 As shown, taking the process of matching the target circuit diagram with the predetermined template A among multiple predetermined templates as an example, the target circuit diagram can be matched with the predetermined template A.
[0070] Specifically, the target circuit structure in the predetermined template A may correspond to Figure 3 In the 1.1 picture, it is also necessary to determine the circuit structure to be matched corresponding to the target circuit diagram, which can be Figure 3 Referring to Figure 1.2, the predetermined template A is matched with the circuit structure to be matched.
[0071] ,Step 12, select a target area containing a target circuit structure from the circuit structure to be matched, and determine the target area as a circuit subgraph.
[0072] Exemplarily, based on step 11, if it is determined that the circuit structure to be matched contains the basic structure in the predetermined template A, then a target area containing the target circuit structure is selected from the circuit structure to be matched, that is, Figure 3 In the picture 1.3 in the figure, the selected target area is determined as the circuit sub-diagram corresponding to the predetermined template A.
[0073] Step 202: extract multiple circuit infrastructure structures from multiple circuit subgraphs.
[0074] In some examples, based on step 201, the target circuit template needs to be matched with each predetermined circuit template. When there is a match result between the target circuit template and at least one predetermined circuit template, each circuit template in the at least one circuit template will correspond to at least one circuit sub-diagram.
[0075] Furthermore, each circuit sub-graph includes the basic structure of the corresponding circuit template.
[0076] Furthermore, when selecting a target circuit infrastructure structure that meets the structural feature condition from a plurality of circuit infrastructure structures, the following methods may be used but are not limited to: Figure 4 As shown, the method includes:
[0077] Step 301: Determine a structural feature condition corresponding to each Bank structure category in at least one Bank structure category, and at least one circuit infrastructure structure contained in each Bank structure category.
[0078] Exemplarily, taking at least one Bank structure type as Cascode as an example, determining the characteristics of Cascode may include: 1. All parameters except m are consistent, 2. Gate connections are the same, 3. Drain connections are different, 4. Source / Bulk are the same and are power / ground;
[0079] Furthermore, we first define the most basic connection topology of the current mirror—the Gate terminals are directly connected, and then use the subgraph matching algorithm to match all the pairwise connection structures that meet the requirements, as shown below: Figure 5 At least one circuit infrastructure is shown.
[0080] Step 302: Select a target circuit infrastructure structure that meets the structural feature conditions corresponding to the Bank structure category from at least one circuit infrastructure structure included in each Bank structure category.
[0081] Correspondingly, such as Figure 6 As shown, according to the characteristics of Cascode, in the post-processing algorithm, i.e., the screening process of this embodiment, the matching results are first filtered according to the above-mentioned Cascode characteristic conditions to obtain the target circuit infrastructure corresponding to the Cascode, and then the results with common nodes are merged and combined to finally obtain the correct Cascode bank structure.
[0082] Furthermore, when executing step 105, the following method may be used, but is not limited to the following method, which includes:
[0083] Step 21, merging the common nodes between the target circuit infrastructure structures selected by each Bank structure category to obtain the Bank structure corresponding to each Bank structure category;
[0084] Step 22: Determine the Bank structure corresponding to each Bank structure category as the Bank structure corresponding to the target circuit diagram.
[0085] When executing step 21 and step 22, the following methods can be used: Figure 7As shown, specifically including:
[0086] like Figure 7 The picture in 2.1 can be used to correspond to the target circuit infrastructure structure of each Bank structure category, such as Figure 7 Figure 2.2 shows how to merge the common nodes between the target circuit infrastructures to obtain the Bank structures corresponding to each Bank structure category.
[0087] It should be noted that the present application can match common basic modules in analog circuits, such as current mirrors, differential pairs, Cascode structures, etc. Figure 8 middle Figure 3 .1 shows a basic current mirror, such as Figure 8 middle Figure 3 .2 shows a current mirror bank structure and can be implemented in different schematics.
[0088] Accordingly, when executing step 102, the following method may be specifically adopted but is not limited to the following method, which includes:
[0089] Step 31, determining the circuit elements corresponding to each circuit element symbol in the circuit diagram template;
[0090] Step 32: Based on the universal circuit element symbols corresponding to the circuit elements, the circuit element symbols of the circuit diagram template are replaced to obtain a target circuit diagram template.
[0091] Accordingly, when executing step 101, the following method may be specifically adopted but is not limited to the following method, which includes:
[0092] Step 41, obtaining a template file describing the circuit structure of the target circuit diagram;
[0093] Step 42: parse the template file to obtain a circuit diagram template.
[0094] When executing step 41 and step 42, the following methods may be used, including:
[0095] like Fig. 9 As shown, it can be an example diagram of obtaining a template file describing the circuit structure of a target circuit diagram. Fig. 9 The circuit structure of the target circuit diagram includes a Cascode structure.
[0096] Further, such as Fig.10 The figure shows an example of template matching in the program interface. Specifically, the matching process can be started by clicking the corresponding function menu, and the program outputs the matching results in the Schematic.
[0097] Compared with the current existing technology, this embodiment replaces the circuit element symbols of the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols, which can uniformly process different circuit diagrams and adapt to circuit diagrams generated by any circuit diagram software, thereby improving versatility; it also selects at least one target circuit infrastructure that meets the structural feature conditions from multiple circuit infrastructures, and generates a Bank structure corresponding to the target circuit diagram based on the at least one target circuit infrastructure, thereby achieving the purpose of generating not only a basic circuit structure but also a Bank structure, thereby improving the accuracy of Bank structure determination, while saving human resources, reducing the time required to generate a Bank structure, and improving the efficiency of generating a Bank structure.
[0098] In order to illustrate the specific implementation process of this embodiment, the following specific application examples are given: Fig.11 As shown, but not limited to:
[0099] This application is mainly divided into two steps. First, use the graph matching algorithm to match the basic characteristic structure of the module. Second, use the post-processing algorithm to filter and combine the results of the first step of matching. The result output after post-processing is the matched circuit module content.
[0100] In the process of performing the graph matching algorithm, it is first necessary to parse the template file that describes the circuit structure of the target circuit diagram. If the parsing is successful, the circuit element symbols of the obtained template are replaced to generate an abstract template, which is the target circuit diagram template using universal circuit element symbols in this application.
[0101] Furthermore, the target circuit diagram template is matched with the basic structures defined by multiple predetermined circuit templates (i.e., including the current mirror template and differential pair template shown in the figure), and multiple circuit basic structures included in the target circuit diagram are matched through a sub-graph matching algorithm.
[0102] Accordingly, a post-processing algorithm is performed to determine the characteristic conditions corresponding to multiple predetermined templates (i.e., including the current mirror processing algorithm and the differential pair processing algorithm shown in the figure), and screening is performed according to the corresponding characteristic conditions to obtain at least one target circuit basic structure corresponding to the target circuit diagram, and at least one target circuit basic structure is merged to obtain multiple Bank structures (including current mirror Bank structure and differential pair Bank structure), and the multiple Bank structures are determined as the Bank structure of the target circuit diagram.
[0103] Compared with the current existing technology, this embodiment replaces the circuit element symbols of the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols, which can uniformly process different circuit diagrams and adapt to circuit diagrams generated by any circuit diagram software, thereby improving versatility; it also selects at least one target circuit infrastructure that meets the structural feature conditions from multiple circuit infrastructures, and generates a Bank structure corresponding to the target circuit diagram based on the at least one target circuit infrastructure, thereby achieving the purpose of generating not only a basic circuit structure but also a Bank structure, thereby improving the accuracy of Bank structure determination, while saving human resources, reducing the time required to generate a Bank structure, and improving the efficiency of generating a Bank structure.
[0104] Further, as Figure 1 , Figure 2 and Figure 4 The specific implementation of the method shown in the embodiment provides a Bank structure determination device, such as Fig.12 As shown, the device includes: an acquisition module 41, a replacement module 42, a matching module 43, a selection module 44, and a generation module 45.
[0105] An acquisition module 41 is configured to acquire a circuit diagram template including a circuit structure of a target circuit diagram;
[0106] The replacement module 42 is configured to perform a circuit element symbol replacement process on the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols;
[0107] A matching module 43 is configured to match the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively to obtain a plurality of circuit basic structures included in the target circuit diagram, wherein the plurality of predetermined circuit diagrams correspond to basic structures of different Bank structure categories;
[0108] A selection module 44 is configured to select at least one target circuit infrastructure structure that meets the structural feature condition from the plurality of circuit infrastructure structures;
[0109] The generating module 45 is configured to generate a Bank structure corresponding to the target circuit diagram based on the at least one target circuit infrastructure structure.
[0110] In some examples of this embodiment, the matching module 43 is specifically configured to use a graph matching algorithm to match the target circuit diagram template with multiple predetermined circuit diagram templates respectively, to obtain multiple circuit sub-diagrams corresponding to the target circuit diagram template, wherein the multiple circuit sub-diagrams correspond to at least one Bank structure category; and extract the multiple circuit basic structures from the multiple circuit sub-diagrams.
[0111] In some examples of the present embodiment, the matching module 43 is further specifically configured to determine, for the matching process between the target circuit diagram template and the target predetermined template, a circuit structure to be matched corresponding to the target circuit diagram template and a target circuit structure corresponding to the target predetermined template, wherein the target predetermined template is any one of the multiple predetermined circuit diagram templates; select a target area containing the target circuit structure from the circuit structure to be matched, and determine the target area as the circuit sub-diagram.
[0112] In some examples of this embodiment, the selection module 44 is specifically configured to determine the structural feature conditions corresponding to each Bank structure category in the at least one Bank structure category, and at least one circuit infrastructure structure contained in each Bank structure category; and from the at least one circuit infrastructure structure contained in each Bank structure category, select a target circuit infrastructure that meets the structural feature conditions corresponding to the Bank structure category.
[0113] In some examples of this embodiment, the generation module 45 is specifically configured to merge the common nodes between the target circuit infrastructure structures selected by each Bank structure category to obtain the Bank structure corresponding to each Bank structure category; and determine the Bank structure corresponding to each Bank structure category as the Bank structure corresponding to the target circuit diagram.
[0114] In some examples of this embodiment, the replacement module 42 is specifically configured to determine the circuit elements corresponding to each circuit element symbol in the circuit diagram template; based on the common circuit element symbols corresponding to the circuit elements, the circuit element symbol replacement processing is performed on the circuit diagram template to obtain the target circuit diagram template.
[0115] In some examples of this embodiment, the acquisition module 41 is specifically configured to acquire a template file describing the circuit structure of the target circuit diagram; and parse the template file to obtain the circuit diagram template.
[0116] It should be noted that for other corresponding descriptions of the functional units involved in the Bank structure determination device provided in this embodiment, please refer to Figure 1 , Figure 2 and Figure 4 The corresponding description in will not be repeated here.
[0117] Based on the above Figure 1 , Figure 2 and Figure 4 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 , Figure 2 and Figure 4 The method shown.
[0118] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0119] like Fig.13 The figure shows a hardware structure diagram of an electronic device of the present invention, including:
[0120] at least one processor 501; and,
[0121] A memory 502 is communicatively connected to at least one of the processors 501; wherein,
[0122] The memory 502 stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to execute the Bank structure determination method as described above.
[0123] Fig.13 A processor 501 is taken as an example.
[0124] The electronic device may further include: an input device 503 and a display device 504 .
[0125] The processor 501, the memory 502, the input device 503 and the display device 504 may be connected via a bus or other means, and the figure takes the connection via a bus as an example.
[0126] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the Bank structure determination method in the embodiment of the present application, for example, Figure 1 , Figure 2 The processor 501 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 502, that is, the Bank structure determination method in the above embodiment is implemented.
[0127] The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required by at least one function; the data storage area may store data created according to the use of the Bank structure determination method, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to a device for executing the Bank structure determination method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0128] The input device 503 can receive user clicks and generate signal inputs related to user settings and function control of the bank structure determination method. The display device 504 can include display devices such as a display screen.
[0129] The one or more modules are stored in the memory 502, and when executed by the one or more processors 501, the Bank structure determination method in any of the above method embodiments is executed.
[0130] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0131] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0132] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0133] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware. By applying the solution of this embodiment, compared with the current prior art, this embodiment replaces the circuit element symbols of the circuit diagram template to generate a target circuit diagram template using general circuit element symbols, which can uniformly process different circuit diagrams and adapt to circuit diagrams generated by any circuit diagram software, thereby improving versatility; and by selecting at least one target circuit basic structure that meets the structural feature conditions from multiple circuit basic structures, based on at least one target circuit basic structure, generating a Bank structure corresponding to the target circuit diagram, achieving the purpose of generating not only a basic circuit structure but also a Bank structure, improving the accuracy of Bank structure determination, while saving human resources, reducing the time required to generate a Bank structure, and improving the efficiency of generating a Bank structure.
[0134] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0135] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. A method for determining a bank structure, characterized in that: include: Acquire a circuit diagram template including a circuit structure of a target circuit diagram; Replacing the circuit element symbols of the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols; Matching the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively to obtain a plurality of circuit basic structures included in the target circuit diagram, wherein the plurality of predetermined circuit diagrams correspond to basic structures of different Bank structure categories; Selecting at least one target circuit infrastructure structure that meets the structural feature condition from the plurality of circuit infrastructure structures; Based on the at least one target circuit infrastructure, a Bank structure corresponding to the target circuit diagram is generated.
2. The method according to claim 1, characterized in that The target circuit diagram template is matched with a plurality of predetermined circuit diagram templates respectively to obtain a plurality of circuit infrastructure structures included in the target circuit diagram, including: Using a graph matching algorithm to match the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively, to obtain a plurality of circuit sub-diagrams corresponding to the target circuit diagram template, wherein the plurality of circuit sub-diagrams correspond to at least one Bank structure category; The plurality of circuit infrastructures are extracted from the plurality of circuit sub-graphs.
3. The method according to claim 2, characterized in that The method of using a graph matching algorithm to match the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively to obtain a plurality of circuit sub-diagrams corresponding to the target circuit diagram template includes: For the matching process between the target circuit diagram template and the target predetermined template, determining the circuit structure to be matched corresponding to the target circuit diagram template and the target circuit structure corresponding to the target predetermined template, wherein the target predetermined template is any one of the multiple predetermined circuit diagram templates; A target area including the target circuit structure is selected from the circuit structure to be matched, and the target area is determined as the circuit sub-graph.
4. The method according to claim 2, characterized in that: The step of selecting a target circuit infrastructure structure that meets the structural feature condition from the plurality of circuit infrastructure structures comprises: Determine a structural feature condition corresponding to each Bank structure category in the at least one Bank structure category, and at least one circuit infrastructure structure included in each Bank structure category; From at least one circuit infrastructure structure included in each Bank structure category, a target circuit infrastructure structure that meets the structural feature conditions corresponding to the Bank structure category is selected.
5. The method according to claim 4, characterized in that The generating a Bank structure corresponding to the target circuit diagram based on the at least one target circuit infrastructure structure includes: Merge the common nodes between the target circuit infrastructures selected by each Bank structure category to obtain the Bank structures corresponding to each Bank structure category; The Bank structure corresponding to each Bank structure category is determined as the Bank structure corresponding to the target circuit diagram.
6. The method according to claim 1, characterized in that The step of replacing the circuit element symbols on the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols includes: Determine the circuit elements corresponding to each circuit element symbol in the circuit diagram template; Based on the universal circuit element symbol corresponding to the circuit element, the circuit element symbol of the circuit diagram template is replaced to obtain the target circuit diagram template.
7. The method according to any one of claims 1 to 6, characterized in that The step of obtaining a circuit diagram template including a circuit structure of a target circuit diagram includes: Acquire a template file describing the circuit structure of the target circuit diagram; The template file is parsed to obtain the circuit diagram template.
8. A Bank structure determination device, characterized in that: include: An acquisition module, configured to acquire a circuit diagram template including a circuit structure of a target circuit diagram; A replacement module is configured to perform a circuit element symbol replacement process on the circuit diagram template to generate a target circuit diagram template using universal circuit element symbols; A matching module is configured to match the target circuit diagram template with a plurality of predetermined circuit diagram templates respectively to obtain a plurality of circuit basic structures included in the target circuit diagram, wherein the plurality of predetermined circuit diagrams correspond to basic structures of different Bank structure categories; A selection module, configured to select at least one target circuit infrastructure structure that meets the structural feature condition from the plurality of circuit infrastructure structures; A generation module is configured to generate a Bank structure corresponding to the target circuit diagram based on the at least one target circuit infrastructure structure.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.