A simulation circuit solving method, device, storage medium and electronic device

By obtaining and matching circuit characteristics in the simulation software, and using historical solutions in the database to directly solve the simulation circuit solution problem, the problem of long solution time for complex circuits is solved, and the overall efficiency of the simulation circuit is improved.

CN118586342BActive Publication Date: 2024-09-27INTELLIGENT IMITATION TECHNOLOGY (ZHEJIANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411066415.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-09-27
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

In simulation software, the solution process for complex circuits takes a lot of time, causing development efficiency and research progress to be affected.

Method used

By obtaining the topology of the target circuit, determine its circuit characteristics, and search for matching historical circuit characteristics in the database. If it matches, use the solution of the historical circuit, otherwise perform an independent solution, directly identify the unadjusted situation and eliminate redundant steps. .

Benefits of technology

It greatly improves the efficiency of simulation circuit solving, reduces redundant data processing, and improves the overall simulation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586342B
    Figure CN118586342B
Patent Text Reader

Abstract

This specification discloses a simulation circuit solution method, device, storage medium and electronic device. In the simulation circuit solution method provided in this specification, a target circuit is obtained, and the target circuit is modeled in simulation software to obtain a simulation circuit to be solved; according to the topological structure of the simulation circuit, the circuit characteristics of the simulation circuit are determined as target characteristics; a historical circuit corresponding to the simulation circuit is searched in a database, and the circuit characteristics of the historical circuit are obtained as reference characteristics; it is determined whether the target characteristics match the reference characteristics; in response to the target characteristics matching the reference characteristics, the solution of the historical circuit is determined as the solution of the simulation circuit; in response to the target characteristics not matching the reference characteristics, the simulation circuit is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a simulation circuit solving method, device, storage medium and electronic device. Background Art

[0002] Circuit modeling and design simulation refers to an engineering method that uses models to simulate the parameters and real behaviors of electronic circuits. In a computer environment, simulation software can simulate the functional behavior of circuits without building actual circuits. By simulating and verifying the circuit, designers can observe and study the behavior of the circuit in advance, which will greatly improve design efficiency and reduce the huge time and economic costs for the physical implementation of the circuit. Therefore, circuit modeling and simulation is a very practical tool.

[0003] However, there are still some shortcomings when solving circuits in simulation software. Generally speaking, the time to solve a circuit is related to the complexity of the circuit and the solution settings. For very complex circuits, the time required to solve may take several days. In large-scale engineering or projects, frequent fine-tuning and solving of circuits is a necessary debugging process, which will result in a considerable amount of time spent in the solution process, greatly affecting the overall development efficiency and research progress.

[0004] Therefore, how to reduce the time required for repeated circuit solving when debugging circuits in simulation software is an urgent problem to be solved. Summary of the invention

[0005] This specification provides a simulation circuit solving method, device, storage medium and electronic device to at least partially solve the above-mentioned problems existing in the prior art.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides a simulation circuit solving method, including:

[0008] Obtaining a target circuit, and modeling the target circuit in simulation software to obtain a simulation circuit to be solved;

[0009] Determining, according to the topological structure of the simulation circuit, a circuit feature of the simulation circuit as a target feature;

[0010] Searching a database for a historical circuit corresponding to the simulation circuit, and obtaining circuit features of the historical circuit as comparison features;

[0011] determining whether the target feature matches the control feature;

[0012] In response to the target feature matching the reference feature, determining the solution of the historical circuit as the solution of the simulation circuit;

[0013] In response to the target signature not matching the reference signature, the simulation circuit is solved.

[0014] Optionally, according to the topological structure of the simulation circuit, determining a circuit feature of the simulation circuit as a target feature specifically includes:

[0015] According to the topological structure of the simulation circuit, the components included in the simulation circuit, the connection relationship between the components and the configuration parameters of the simulation circuit are determined as target features.

[0016] Optionally, determining the connection relationship between the components specifically includes:

[0017] For any two elements included in the simulation circuit, whether the two elements are connected is determined according to the topological structure of the simulation circuit, and the connection direction between the two elements is determined according to the flow direction of the current in the simulation circuit.

[0018] Optionally, searching a database for a historical circuit corresponding to the simulation circuit specifically includes:

[0019] Determining a circuit identifier of the target circuit;

[0020] According to the circuit identifier, a historical circuit corresponding to the circuit identifier is searched in the database.

[0021] Optionally, determining whether the target feature matches the reference feature specifically includes:

[0022] determining whether the target feature is the same as the reference feature;

[0023] When the target feature is the same as the reference feature, determining that the target feature matches the reference feature;

[0024] When the target feature is not completely identical to the reference feature, it is determined that the target feature does not match the reference feature.

[0025] Optionally, determining whether the target feature is the same as the reference feature specifically includes:

[0026] Determining whether each component included in the simulation circuit is the same as each component included in the historical circuit;

[0027] If the components included in the simulation circuit are different from the components included in the historical circuit, determining that the target feature does not match the reference feature, otherwise determining whether the configuration parameters of the simulation circuit are the same as the configuration parameters of the historical circuit;

[0028] If the configuration parameters of the simulation circuit are different from the configuration parameters of the historical circuit, it is determined that the target feature does not match the reference feature, otherwise it is determined whether the connection relationship of the components included in the simulation circuit is the same as the connection relationship of the components included in the historical circuit;

[0029] If the connection relationship between the components included in the simulation circuit is different from the connection relationship between the components included in the historical circuit, it is determined that the target feature does not match the reference feature; otherwise, it is determined that the target feature matches the reference feature.

[0030] Optionally, after solving the simulation circuit, the method further includes:

[0031] The simulated circuit and a solution to the simulated circuit are stored in the database.

[0032] This specification provides a simulation circuit solving device, the device comprising:

[0033] An acquisition module is used to acquire a target circuit and model the target circuit in simulation software to obtain a simulation circuit to be solved;

[0034] A determination module, configured to determine a target feature of the simulation circuit according to a topological structure of the simulation circuit;

[0035] A search module, used to search a database for a historical circuit corresponding to the simulation circuit, and obtain a comparison feature of the historical circuit;

[0036] A matching module, used to determine whether the target feature matches the control feature;

[0037] an application module, configured to determine the solution of the historical circuit as the solution of the simulation circuit in response to the target feature matching the reference feature;

[0038] A solution module is used for solving the simulation circuit in response to the target feature not matching the reference feature.

[0039] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the simulation circuit solving method is implemented.

[0040] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned simulation circuit solving method when executing the program.

[0041] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0042] In the simulation circuit solving method provided in the present specification, a target circuit is obtained, and the target circuit is modeled in simulation software to obtain a simulation circuit to be solved; based on the topological structure of the simulation circuit, the circuit characteristics of the simulation circuit are determined as target characteristics; a historical circuit corresponding to the simulation circuit is searched in a database, and the circuit characteristics of the historical circuit are obtained as reference characteristics; it is determined whether the target characteristics match the reference characteristics; in response to the target characteristics matching the reference characteristics, the solution of the historical circuit is determined as the solution of the simulation circuit; in response to the target characteristics not matching the reference characteristics, the simulation circuit is solved.

[0043] When the simulation circuit solving method provided in this specification is used to determine the solution of the simulation circuit in the simulation software, after the simulation circuit is modeled, the circuit characteristics of the simulation circuit can be obtained according to the topological structure of the simulation circuit as the target characteristics; then the historical circuit corresponding to the simulation circuit is found in the database, and the circuit characteristics of the historical circuit are aligned with the comparison characteristics; finally, different solution processing is performed according to whether the target characteristics match the comparison characteristics. When the simulation circuit is solved by this method, the situation where the target circuit has not been adjusted can be directly identified, and the solution of the corresponding historical circuit can be obtained in the database and directly used as the solution of the simulation circuit, eliminating invalid solution steps, reducing redundant data that needs to be processed, and greatly improving the overall efficiency of solution and circuit simulation. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0045] Figure 1 A flowchart of a simulation circuit solving method in this specification;

[0046] Figure 2 A schematic diagram of a circuit structure of a simulation circuit in this specification;

[0047] Figure 3 A schematic diagram of a simulation circuit solving device provided in this specification;

[0048] Figure 4The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0051] Figure 1 The following is a flow chart of a simulation circuit solving method in this specification, which specifically includes the following steps:

[0052] S100: Acquire a target circuit, and model the target circuit in simulation software to obtain a simulation circuit to be solved.

[0053] All steps in the simulation circuit solving method provided in this specification can be implemented by any electronic device with computing functions, such as terminals, servers and other devices.

[0054] This method is mainly used to solve circuits in simulation software. Simulation software is a tool that simulates and analyzes the behavior of electronic circuits in a computer environment. It simulates the behavior of electronic components through mathematical models and algorithms, and uses these models to analyze the behavior of the entire circuit. This simulation can help designers predict how the circuit will work under different conditions, avoiding expensive physical experiments before actual manufacturing, thereby optimizing the design and reducing errors and costs in the actual manufacturing process.

[0055] Based on this, in this step, the target circuit to be solved, that is, the design prototype of the simulation circuit to be solved can be first obtained. Based on the target circuit, the simulation circuit to be solved can be constructed in the simulation software.

[0056] In the simulation circuit solving method provided in this specification, the target circuit can be a complete circuit obtained by any means, such as obtaining from the Internet, obtaining from a database, or designed by the user; the simulation software used can also be any simulation software, including but not limited to common simulation software Multisim, Proteus, LTspice, SmartEDA, etc., and this specification does not make specific restrictions on this.

[0057] S102: Determine circuit characteristics of the simulation circuit according to the topological structure of the simulation circuit as target characteristics.

[0058] In step S100, after the simulation circuit to be solved is constructed using simulation software, in this step, the circuit characteristics of the simulation circuit can be determined according to the topological structure of the constructed simulation circuit as target characteristics to be used in subsequent steps.

[0059] Among them, the topology of the simulation circuit refers to the abstract representation of the connection mode between the components in the simulation circuit, without considering the specific parameters of the components and the electrical characteristics of the components, but only focusing on the relative position and connection relationship between the components. In other words, the topology of the circuit is a graphical representation method, using graphics to represent components and line segments to represent the connections between components, thus forming a network diagram representing the circuit connection mode. The topology plays an important role in circuit analysis because it provides a basic framework for understanding and analyzing circuits. Different topologies may have different electrical characteristics and functions. In complex circuits, topology analysis can help determine the equivalent circuit of the circuit, simplify the circuit, calculate circuit parameters, and perform troubleshooting. In addition, the topology is also of great significance for the design and optimization of the circuit. By rationally designing the topology of the circuit, specific electrical performance can be achieved and the reliability and stability of the circuit can be improved.

[0060] According to the topological structure of the simulation circuit, various circuit features of the simulation circuit can be determined. For example, according to the topological structure of the simulation circuit, the components included in the simulation circuit, the connection relationship between the components, and the configuration parameters of the simulation circuit can be determined as target features.

[0061] In this method, the circuit features that need to be applied mainly include the components contained in the circuit, the connection relationship of the components, and the configuration parameters of the circuit. Among them, the components contained in the circuit may include but are not limited to resistors, capacitors, inductors, power supplies, switches, and any other components that can be applied to circuit design; the configuration parameters of the circuit may include but are not limited to the specific values ​​of each component in the circuit and the simulation parameters of the circuit during simulation, such as the type of simulation signal, frequency amplitude, simulation time, step size and other parameters.

[0062] Among them, the connection relationship of each element in the circuit includes not only whether any two elements are connected, but also the path relationship between the two interconnected elements. Based on this, when determining the connection relationship between each element in the simulation circuit, it can be specifically determined whether the two elements are connected according to the topological structure of the simulation circuit for any two elements included in the simulation circuit, and the connection direction between the two elements can be determined according to the flow direction of the current in the simulation circuit. Usually, according to the setting of the power supply in the simulation circuit, the flow direction of the overall current in the simulation circuit can be determined, and the flow direction between any two elements can be further determined.

[0063] The obtained circuit features can be represented in the form of a set. For example, any circuit feature can be represented as a set X (v: {m1, m2, ..., m n}, c:{m1:{in:{m i1 , m i2 , …, m in}, out: {m o1 , m o2 ,…,m on}, …, m j :{in:{m i1 , m i2 ,…,m in}, out: {m o1 , m o2 ,…,m on}}, s: {time: t, otherSettings: {…settings}}). Among them, v represents the components contained in the circuit, c represents the connection relationship between the components, and s represents the configuration parameters.

[0064] Figure 2 The following is a schematic diagram of a feasible simulation circuit provided in this specification. Figure 2 For example, the circuit characteristics of the circuit can be expressed as X={v:{DC, R1, R2}, c:{DC:{in:{R2}, out:{R1}}, R1:{in:{DC}, out:{R2}}, R2:{in:{R1}, out:{DC}}}, s:{time:10s}. The meaning of the circuit characteristics is that the circuit contains three components: DC, R1, and R2; among which, at the component DC, the current flows in from R2 and flows out to R1; at the component R1, the current flows in from DC and flows out to R2; at the component R2, the current flows in from R1 and flows out to DC; the simulation time of the circuit is 10 seconds.

[0065] By adopting the above method, the circuit characteristics of the simulation circuit can be determined as target characteristics to be used in subsequent steps.

[0066] S104: Searching a database for a historical circuit corresponding to the simulation circuit, and obtaining circuit features of the historical circuit as comparison features.

[0067] After determining the circuit feature of the simulation circuit, that is, the target feature, in step S102, a historical circuit corresponding to the simulation circuit can be searched in this step, and the circuit feature of the historical circuit can be obtained as a reference feature for use in subsequent steps.

[0068] Among them, the historical circuit is a circuit that has been simulated and solved in the simulation software in the past. The historical circuit, the solution of the historical circuit and the circuit characteristics of the historical circuit will be saved in the database. When determining the historical circuit corresponding to the simulation circuit, it can be determined by means of circuit identification. Specifically, the circuit identification of the target circuit can be determined; according to the circuit identification, the historical circuit corresponding to the circuit identification is searched in the database.

[0069] When designing a target circuit, no matter what kind of modification is made to the circuit structure of the target circuit, the identification of the target circuit will not change. The identification of the target circuit is determined when the target circuit project is created. During the circuit design process, a target circuit may be modified and simulated for many times, but the identification of the target circuit will never change. In this method, the simulation circuit is constructed based on the target circuit. Therefore, according to the circuit identification of the target circuit, the historical circuit corresponding to the simulation circuit can be found in the database.

[0070] In simple terms, in this method, the simulation circuit can be regarded as the latest version of the target circuit currently in use, and the historical circuit can be regarded as the historical version of the target circuit previously used. That is, the simulation circuit and the historical circuit are actually different versions of the target circuit, both of which correspond to the target circuit and can be queried by the same circuit identifier.

[0071] In the database, the historical circuit, the solution of the historical circuit and the circuit characteristics of the historical circuit are stored together. After the historical circuit is determined, the solution of the historical circuit and the circuit characteristics of the historical circuit, that is, the comparison characteristics, can be obtained together.

[0072] S106: Determine whether the target feature matches the control feature.

[0073] After determining the historical circuit corresponding to the simulation circuit and the comparison feature in step S104, it is possible to determine whether the comparison feature of the historical circuit obtained matches the target feature of the simulation circuit in this step. There are many ways to determine whether the target feature matches the comparison feature, and this specification provides a specific embodiment for reference.

[0074] Specifically, it can be determined whether the target feature is the same as the control feature; when the target feature is the same as the control feature, it is determined that the target feature matches the control feature; when the target feature is not completely the same as the control feature, it is determined that the target feature does not match the control feature.

[0075] In circuit design, any adjustment to the circuit structure and parameters may cause the circuit solution to change. Therefore, generally speaking, the target feature and the reference feature can only be judged to match when all the contents contained in the target feature are exactly the same as those contained in the reference feature.

[0076] Further, as described in step S102, in the present method, the circuit characteristics may at least include the components contained in the circuit, the connection relationship between the components, and the configuration parameters of the circuit. On this basis, when judging whether the circuit characteristics of the simulation circuit match the circuit characteristics of the historical circuit, that is, judging whether the target characteristics match the reference characteristics, the above-mentioned contents may be compared one by one. Specifically, it may be determined whether the components contained in the simulation circuit are the same as the components contained in the historical circuit; if the components contained in the simulation circuit are different from the components contained in the historical circuit, it is determined that the target characteristics do not match the reference characteristics, otherwise it is determined whether the configuration parameters of the simulation circuit are the same as the configuration parameters of the historical circuit; if the configuration parameters of the simulation circuit are different from the configuration parameters of the historical circuit, it is determined that the target characteristics do not match the reference characteristics, otherwise it is determined whether the connection relationship of the components contained in the simulation circuit is the same as the connection relationship of the components contained in the historical circuit; if the connection relationship of the components contained in the simulation circuit is different from the connection relationship of the components contained in the historical circuit, it is determined that the target characteristics do not match the reference characteristics, otherwise it is determined that the target characteristics match the reference characteristics.

[0077] In the above embodiment, when judging whether the target feature matches the reference feature, the comparison can be carried out in the order of whether the components contained in the circuit are the same, whether the configuration parameters of the circuit are the same, and whether the connection relationship of the components is the same. During the comparison process, as long as any one element is different, the comparison can be terminated and it is considered that the target feature does not match the reference feature.

[0078] The reason for adopting the above method is that, usually, in the circuit features, the item containing the least amount of data is the components contained in the circuit, followed by the configuration parameters of the circuit, and the item containing the most amount of data is the connection relationship between the components. When making a comparison, the content containing the least amount of data will be processed first. If after comparing one of the items, it can be determined that the target feature and the reference feature do not match, then there is no need to process the subsequent content, that is, there is no need to compare the data items that require processing of a large amount of data. In this way, the amount of data that needs to be processed during the comparison can be effectively reduced, and the efficiency of the comparison can be significantly improved.

[0079] S108: In response to the target feature matching the reference feature, determining the solution of the historical circuit as the solution of the simulation circuit.

[0080] After the comparison between the target feature and the control feature is completed in step S106, two results may be obtained: the target feature matches the control feature or the target feature does not match the control feature. This step considers the case where the target feature matches the control feature.

[0081] When the target feature matches the reference feature, it indicates that the current simulation circuit to be solved is exactly the same as the historical circuit found. Therefore, the solution of the historical circuit obtained from the database can be directly used as the solution of the simulation circuit, eliminating the solution step.

[0082] Usually, a large design project or project will contain multiple different circuits. When adjusting the circuits, you may not adjust all the circuits included in the project, but only some of them. In the simulation and solution process, the entire project file needs to be simulated. Therefore, it may happen that the circuits that have not been modified are also simulated and solved, and the same solution as before is obtained. Obviously, this process is repetitive and ineffective, and it will only increase the amount of data that needs to be processed during simulation.

[0083] In this method, before solving, all circuits included in the entire project can be used as target circuits to implement this method. In this way, it is possible to identify circuits that have not been adjusted, and directly find the corresponding historical circuits in the database, assign the solutions of the historical circuits to the circuits, and save the invalid solving process.

[0084] S110: In response to the target feature not matching the reference feature, solving the simulation circuit.

[0085] In another case, when the target feature of the simulation circuit does not match the reference feature of the historical circuit, it means that the simulation circuit is not the same as the historical circuit stored in the database, that is, the target circuit has been adjusted based on the historical circuit. In this case, it is impossible to directly obtain the existing solution from the database as the solution of the simulation circuit, and the simulation circuit needs to be solved normally.

[0086] Additionally, after the simulation circuit is solved, the subsequent processing of the solution of the simulation circuit can be determined based on the result of the solution. Normally, you can choose to store the simulation circuit and the solution of the simulation circuit in the database, or discard the solution of the simulation circuit without any processing. For example, when the solution of the simulation circuit is as expected, or is better than the solution of the existing historical circuit corresponding to the simulation circuit (including the case where the historical circuit does not exist), you can choose to store the solution of the simulation circuit in the database, and store the simulation circuit itself and the circuit characteristics of the simulation circuit; additionally, you can choose to delete the historical circuit corresponding to the simulation circuit, the solution of the historical circuit, and the circuit characteristics of the historical circuit. When the solution of the simulation circuit is not better than the solution of the corresponding historical circuit, you can choose to delete the solution of the simulation circuit obtained this time.

[0087] When the simulation circuit solving method provided in this specification is used to determine the solution of the simulation circuit in the simulation software, after the simulation circuit is modeled, the circuit characteristics of the simulation circuit can be obtained according to the topological structure of the simulation circuit as the target characteristics; then the historical circuit corresponding to the simulation circuit is found in the database, and the circuit characteristics of the historical circuit are aligned with the comparison characteristics; finally, different solution processing is performed according to whether the target characteristics match the comparison characteristics. When the simulation circuit is solved by this method, the situation where the target circuit has not been adjusted can be directly identified, and the solution of the corresponding historical circuit can be obtained in the database and directly used as the solution of the simulation circuit, eliminating invalid solution steps, reducing redundant data that needs to be processed, and greatly improving the overall efficiency of solution and circuit simulation.

[0088] The above is the simulation circuit solving method provided in this specification. Based on the same idea, this specification also provides a corresponding simulation circuit solving device, such as Figure 3 shown.

[0089] Figure 3 A schematic diagram of a simulation circuit solving device provided in this specification specifically includes:

[0090] The acquisition module 200 is used to acquire a target circuit and model the target circuit in simulation software to obtain a simulation circuit to be solved;

[0091] A determination module 202, configured to determine a target feature of the simulation circuit according to a topological structure of the simulation circuit;

[0092] A search module 204 is used to search a historical circuit corresponding to the simulation circuit in a database and obtain a comparison feature of the historical circuit;

[0093] A matching module 206, used to determine whether the target feature matches the reference feature;

[0094] an application module 208 for determining the solution of the historical circuit as the solution of the simulation circuit in response to the target feature matching the reference feature;

[0095] The solving module 210 is configured to solve the simulation circuit in response to the target feature not matching the reference feature.

[0096] Optionally, the determination module 202 is specifically used to determine, according to the topological structure of the simulation circuit, the components included in the simulation circuit, the connection relationship between the components and the configuration parameters of the simulation circuit as target features.

[0097] Optionally, the determination module 202 is specifically used to determine whether any two elements included in the simulation circuit are connected according to the topological structure of the simulation circuit, and determine the connection direction between the two elements according to the flow direction of current in the simulation circuit.

[0098] Optionally, the search module 204 is specifically configured to determine a circuit identifier of the target circuit; and search the database for a historical circuit corresponding to the circuit identifier according to the circuit identifier.

[0099] Optionally, the matching module 206 is specifically used to determine whether the target feature is the same as the control feature; when the target feature is the same as the control feature, determine that the target feature matches the control feature; when the target feature is not completely the same as the control feature, determine that the target feature does not match the control feature.

[0100] Optionally, the matching module 206 is specifically used to determine whether the components included in the simulation circuit are the same as the components included in the historical circuit; if the components included in the simulation circuit are different from the components included in the historical circuit, it is determined that the target feature does not match the reference feature, otherwise it is determined whether the configuration parameters of the simulation circuit are the same as the configuration parameters of the historical circuit; if the configuration parameters of the simulation circuit are different from the configuration parameters of the historical circuit, it is determined that the target feature does not match the reference feature, otherwise it is determined whether the connection relationship between the components included in the simulation circuit is the same as the connection relationship between the components included in the historical circuit; if the connection relationship between the components included in the simulation circuit is different from the connection relationship between the components included in the historical circuit, it is determined that the target feature does not match the reference feature, otherwise it is determined that the target feature matches the reference feature.

[0101] Optionally, the device further includes a storage module 212, specifically configured to store the simulation circuit and the solution of the simulation circuit in the database.

[0102] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 The simulation circuit solving method is provided.

[0103] This manual also provides Figure 4 The schematic structure diagram of the electronic device shown in FIG. Figure 4 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0104] For the improvement of a technology, it can be clearly distinguished whether it is a hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0105] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.

[0106] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0107] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0108] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0109] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0110] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0111] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0112] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0113] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0114] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0115] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0116] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0117] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0118] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0119] The above description is only an embodiment of this specification and is not intended to limit this specification. For those skilled in the art, this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification should be included in the scope of the claims of this application.

Claims

1. A simulation circuit solving method, characterized in that: include: Obtaining a target circuit, and modeling the target circuit in simulation software to obtain a simulation circuit to be solved; Determining, according to the topological structure of the simulation circuit, a circuit feature of the simulation circuit as a target feature; Searching a database for a historical circuit corresponding to the simulation circuit, and obtaining circuit features of the historical circuit as comparison features; determining whether the target feature matches the control feature; In response to the target feature matching the reference feature, determining the solution of the historical circuit as the solution of the simulation circuit; In response to the target signature not matching the reference signature, the simulation circuit is solved.

2. The method according to claim 1, characterized in that According to the topological structure of the simulation circuit, circuit characteristics of the simulation circuit are determined as target characteristics, specifically including: According to the topological structure of the simulation circuit, the components included in the simulation circuit, the connection relationship between the components and the configuration parameters of the simulation circuit are determined as target features.

3. The method according to claim 2, characterized in that Determining the connection relationship between the components specifically includes: For any two elements included in the simulation circuit, whether the two elements are connected is determined according to the topological structure of the simulation circuit, and the connection direction between the two elements is determined according to the flow direction of the current in the simulation circuit.

4. The method according to claim 1, characterized in that Searching a database for a historical circuit corresponding to the simulation circuit specifically includes: Determining a circuit identifier of the target circuit; According to the circuit identifier, a historical circuit corresponding to the circuit identifier is searched in the database.

5. The method according to claim 2, characterized in that Determining whether the target feature matches the reference feature specifically includes: determining whether the target feature is the same as the reference feature; When the target feature is the same as the reference feature, determining that the target feature matches the reference feature; When the target feature is not completely identical to the reference feature, it is determined that the target feature does not match the reference feature.

6. The method according to claim 5, characterized in that Determining whether the target feature is the same as the reference feature specifically includes: Determining whether each component included in the simulation circuit is the same as each component included in the historical circuit; If the components included in the simulation circuit are different from the components included in the historical circuit, determining that the target feature does not match the reference feature, otherwise determining whether the configuration parameters of the simulation circuit are the same as the configuration parameters of the historical circuit; If the configuration parameters of the simulation circuit are different from the configuration parameters of the historical circuit, it is determined that the target feature does not match the reference feature, otherwise it is determined whether the connection relationship of the components included in the simulation circuit is the same as the connection relationship of the components included in the historical circuit; If the connection relationship between the components included in the simulation circuit is different from the connection relationship between the components included in the historical circuit, it is determined that the target feature does not match the reference feature; otherwise, it is determined that the target feature matches the reference feature.

7. The method according to claim 4, characterized in that After solving the simulation circuit, the method further includes: The simulated circuit and a solution to the simulated circuit are stored in the database.

8. A simulation circuit solving device, characterized in that: include: An acquisition module is used to acquire a target circuit and model the target circuit in simulation software to obtain a simulation circuit to be solved; A determination module, configured to determine a target feature of the simulation circuit according to a topological structure of the simulation circuit; A search module, used to search a database for a historical circuit corresponding to the simulation circuit, and obtain a comparison feature of the historical circuit; A matching module, used to determine whether the target feature matches the reference feature; an application module, configured to determine the solution of the historical circuit as the solution of the simulation circuit in response to the target feature matching the reference feature; A solution module is used for solving the simulation circuit in response to the target feature not matching the reference feature.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in any one of claims 1 to 7 is implemented.