Circuit design method, virtual device, circuit design equipment and storage medium
By acquiring user requirements and automatically generating circuit design schemes and script commands using a circuit design library, the inefficiency and errors caused by manual operation are solved, achieving efficient and accurate circuit design.
Patent Information
- Application Number
- CN202410787855.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2025-12-23
AI Technical Summary
In the existing technology, the circuit design process relies on manual operation, which leads to low work efficiency and is prone to errors.
By obtaining the user's circuit design requirements, calling the pre-maintained circuit design library, automatically generating or adjusting circuit design schemes using mapping relationships, generating circuit design script commands and executing them to achieve automated circuit design.
It enables automated and efficient circuit design without manual intervention, improving work efficiency and accuracy.
Smart Images

Figure CN121189245A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of circuit design, and particularly relates to a circuit design method, a virtual device, a circuit design equipment and a storage medium. BACKGROUND
[0002] According to the prior art, in the process of designing the hardware circuit of an electronic product, a schematic design file needs to be drawn according to design requirements, and the design and drawing process is usually completed by a design engineer using a computer-aided design tool.
[0003] In the process of designing the circuit by the design engineer using the computer-aided design tool, the design engineer needs to manually operate for design, which will result in low work efficiency and errors.
[0004] Therefore, finding a circuit design method without manual operation of the design engineer has become a current research hotspot. SUMMARY
[0005] The present application provides a circuit design method, a virtual device, a circuit design equipment and a storage medium, which realizes automatic and efficient circuit design without manual operation, and improves work efficiency and work accuracy.
[0006] The present application provides a circuit design method, which comprises the following steps: obtaining a target circuit design requirement of a user; calling a pre-maintained circuit design library, wherein the circuit design library comprises a mapping relationship between different circuit design requirements and different circuit design schemes; in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirement, performing target circuit design based on the target circuit design scheme; in the case that the mapping relationship in the circuit design library does not exist a target circuit design scheme corresponding to the target circuit design requirement, generating a circuit design script command based on the target circuit design requirement, and executing the circuit design script command to perform target circuit design.
[0007] According to the circuit design method provided by the application, the target circuit design requirement comprises target component requirement information and target circuit building requirement information; the mapping relationship between different circuit design requirements and different circuit design schemes comprises the mapping relationship between different component requirement information and different components, and the mapping relationship between different circuit building requirement information and different circuit building principles; in the case that the mapping relationship in the circuit design library corresponds to the target circuit design scheme of the target circuit design requirement, the target circuit design is performed based on the target circuit design scheme, specifically comprising: determining the target component and the target circuit building principle corresponding to the target circuit design requirement according to the mapping relationship between different component requirement information and different components, and the mapping relationship between different circuit building requirement information and different circuit building principles in the circuit design library; determining the target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle; and performing target circuit design based on the target circuit design scheme.
[0008] According to the circuit design method provided by the application, the determination of the target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle specifically comprises: in the case that the mapping relationship in the circuit design library does not correspond to the target component corresponding to the target component requirement information according to the mapping relationship between different component requirement information and different components, analyzing the target component feature of the target component; searching for a replacement component with a component feature difference less than a difference threshold from the target component feature in the circuit design library according to the target component feature, and initiating prompt information to a user, wherein the prompt information is used to prompt the user to replace the target component with the replacement component; in the case that an instruction for allowing replacement is initiated by the user, determining the target circuit design scheme corresponding to the target circuit design requirement based on the replacement component and the target circuit building principle, wherein the instruction for allowing replacement is used to represent an instruction for allowing the replacement component to replace the target component.
[0009] According to the circuit design method provided by the application, after determining that the mapping relationship in the circuit design library does not correspond to the target component corresponding to the target component requirement information according to the mapping relationship between different component requirement information and different components, the method further comprises: determining the target component; and updating the circuit design library based on the mapping relationship between the target component requirement information and the target component.
[0010] According to the circuit design method provided by the application, the target circuit design requirement at least includes target component requirement information and target circuit building requirement information; the circuit design script command is generated based on the target circuit design requirement, and the circuit design script command is executed to perform target circuit design, specifically including: generating a first circuit design script command based on the target component requirement information, wherein the first circuit design script command is used to represent the circuit design script command of the target component requirement; generating a second circuit design script command based on the target circuit building requirement information, wherein the second circuit design script command is used to represent the circuit design script command of the target circuit building principle; and sequentially executing the first circuit design script command and the second circuit design script command to perform target circuit design.
[0011] According to the circuit design method provided by the application, after the first circuit design script command and the second circuit design script command are sequentially executed to perform target circuit design, the method further includes: verifying whether the designed target circuit meets the target circuit design requirement based on the target component requirement information and the target circuit building requirement information; in the case that the designed target circuit does not meet the target circuit design requirement, modifying the first circuit design script command and / or the second circuit design script command until the target circuit based on the modified first circuit design script command and / or the second circuit design script command meets the target circuit design requirement.
[0012] The application further provides a circuit design virtual device, which includes: an acquisition module, configured to acquire target circuit design requirement of a user; a calling module, configured to call a pre-maintained circuit design library, wherein the circuit design library includes mapping relationship between different circuit design requirements and different circuit design schemes; a first processing module, configured to perform target circuit design based on a target circuit design scheme corresponding to the target circuit design requirement in the mapping relationship in the circuit design library; and a second processing module, configured to generate a circuit design script command based on the target circuit design requirement and execute the circuit design script command to perform target circuit design in the case that the mapping relationship in the circuit design library does not include a target circuit design scheme corresponding to the target circuit design requirement.
[0013] The application further provides a circuit design device, which includes: a touch screen, configured to acquire target circuit design requirement of a user based on touch operation of the user and send the target circuit design requirement to a processor; and the processor, configured to execute any one of the circuit design methods.
[0014] The application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the circuit design method according to any one of the above when executing the program.
[0015] The application further provides a non-transitory computer-readable storage medium, which stores a computer program, wherein the computer program is executed by a processor to implement the circuit design method according to any one of the above.
[0016] The application further provides a computer program product, comprising a computer program, wherein the computer program is executed by a processor to implement the circuit design method according to any one of the above.
[0017] The circuit design method, the virtual device, the circuit design device and the storage medium provided by the application obtain a target circuit design requirement of a user, call a pre-maintained circuit design library, wherein the circuit design library comprises a mapping relationship between different circuit design requirements and different circuit design schemes, in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirement, perform target circuit design based on the target circuit design scheme, in the case that the mapping relationship in the circuit design library does not exist a target circuit design scheme corresponding to the target circuit design requirement, generate a circuit design script command based on the target circuit design requirement, and execute the circuit design script command to perform target circuit design, so that automatic and efficient circuit design is realized without manual operation, and the work efficiency and work accuracy are improved. BRIEF DESCRIPTION OF DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the present application or prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0019] Figure 1 is one of the flowcharts of the circuit design method provided by the application.
[0020] Figure 2 is a flowchart of performing target circuit design based on a target circuit design scheme in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirement.
[0021] Figure 3 is a flowchart of determining a target circuit design scheme corresponding to a target circuit design requirement based on a target component and a target circuit building principle.
[0022] Figure 4 is a flowchart of a process of generating a circuit design script command based on a target circuit design requirement and executing the circuit design script command to perform the target circuit design, provided by the present application.
[0023] Figure 5 is a structural diagram of a circuit design virtual device, provided by the present application.
[0024] Figure 6 is a structural diagram of a circuit design device, provided by the present application.
[0025] Figure 7 is a structural diagram of an electronic device, provided by the present application. DETAILED DESCRIPTION
[0026] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely below with reference to the drawings in the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0027] The circuit design method provided by the present application can realize touch control of component selection, schematic diagram building, error reporting and self-correction of circuit design software, so that the circuit design work is more intelligent and agile.
[0028] Figure 1 is one of flowcharts of a circuit design method, provided by the present application.
[0029] The process of the circuit design method provided by the present application will be described below. Figure 1 The process of the circuit design method provided by the present application will be described below.
[0030] In an exemplary embodiment of the present application, the circuit design method can include steps 110 to 140, which will be introduced respectively. Figure 1
[0031] In step 110, the target circuit design requirement of a user is acquired.
[0032] In step 120, a pre-maintained circuit design library is called, wherein the circuit design library includes a mapping relationship between different circuit design requirements and different circuit design schemes.
[0033] In step 130, in the case that the mapping relationship in the circuit design library has a target circuit design scheme corresponding to the target circuit design requirement, the target circuit design is performed based on the target circuit design scheme.
[0034] In an embodiment, a target circuit design requirement issued by a user can be acquired. Further, a pre-maintained circuit design library can be invoked, and according to a mapping relationship of different circuit design requirements and different circuit design schemes in the circuit design library, it is determined whether a target circuit design scheme corresponding to the target circuit design requirement exists in the circuit design library.
[0035] Further, in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirement, the target circuit design scheme corresponding to the target circuit design requirement can be directly invoked from the circuit design library, and the target circuit design is directly performed based on the target circuit design scheme. Through this embodiment, the target circuit design scheme can be quickly retrieved from the circuit design library, and the target circuit design is quickly performed, without generating a circuit design script command based on the target circuit design requirement, and executing the circuit design script command to perform the target circuit design.
[0036] In step 140, in the case that the mapping relationship in the circuit design library does not exist a target circuit design scheme corresponding to the target circuit design requirement, a circuit design script command is generated based on the target circuit design requirement, and the target circuit design is performed by executing the circuit design script command.
[0037] In another embodiment, in the case that according to the mapping relationship of different circuit design requirements and different circuit design schemes in the circuit design library, it is determined that the circuit design library does not exist a target circuit design scheme corresponding to the target circuit design requirement, the target circuit design scheme cannot be quickly retrieved from the circuit design library, and therefore it is necessary to generate a circuit design script command based on the target circuit design requirement, and execute the circuit design script command to perform the target circuit design.
[0038] Based on the foregoing embodiments, it is known that whether the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirement, automatic and efficient circuit design can be achieved, without manual operation, thereby improving work efficiency and work accuracy.
[0039] The circuit design method provided by the application obtains target circuit design requirements of a user, calls a pre-maintained circuit design library, wherein the circuit design library comprises a mapping relationship between different circuit design requirements and different circuit design schemes, in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirements, target circuit design is performed based on the target circuit design scheme, in the case that the mapping relationship in the circuit design library does not exist a target circuit design scheme corresponding to the target circuit design requirements, a circuit design script command is generated based on the target circuit design requirements, and the circuit design script command is executed to perform target circuit design, so that automatic and efficient circuit design is realized, manual operation is not required, and work efficiency and work accuracy are improved.
[0040] Figure 2 is a flowchart of the process of performing target circuit design based on a target circuit design scheme in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirements.
[0041] The following will be described in combination with Figure 2 The process of performing target circuit design based on a target circuit design scheme in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirements will be described.
[0042] In an exemplary embodiment of the application, the target circuit design requirements can at least include target component requirement information and target circuit building requirement information. The target component requirement information can represent selection information and placement position information of the target component, and the target circuit building requirement information can represent connection information and connection line type information of the target component. The mapping relationship between different circuit design requirements and different circuit design schemes can comprise a mapping relationship between different component requirement information and different components, and a mapping relationship between different circuit building requirement information and different circuit building principles.
[0043] In combination with Figure 2 It can be known that, in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirements, target circuit design is performed based on the target circuit design scheme, which can comprise steps 210 to 230, and each step will be introduced below.
[0044] In step 210, according to the mapping relationship between different component requirement information and different components, and the mapping relationship between different circuit building requirement information and different circuit building principles in the circuit design library, a target component and a target circuit building principle corresponding to the target circuit design requirements are determined respectively.
[0045] In step 220, a target circuit design scheme corresponding to the target circuit design requirement is determined based on the target component and the target circuit building principle.
[0046] In step 230, the target circuit design is performed based on the target circuit design scheme.
[0047] In an embodiment, since the circuit design library includes different component requirement information and mapping relationship of different components, and different circuit building requirement information and mapping relationship of different circuit building principles, the target component corresponding to the target circuit design requirement can be determined according to the mapping relationship of different component requirement information and different components in the circuit design library, and the target circuit building principle corresponding to the target circuit design requirement can be determined according to the mapping relationship of different circuit building requirement information and different circuit building principles in the circuit design library.
[0048] Further, the target circuit design scheme corresponding to the target circuit design requirement is determined based on the target component and the target circuit building principle, and the target circuit design is performed according to the target circuit design scheme. Therefore, the design of the target circuit can be quickly completed without manual operation, and the work efficiency and accuracy are improved.
[0049] Figure 3 The flowchart of determining the target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle is provided in the present application.
[0050] The following will be described in combination with Figure 3 The process of determining the target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle will be described.
[0051] In an exemplary embodiment of the present application, the process of determining the target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle will be described. Figure 3 It can be known that the process of determining the target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle can include steps 310 to 330, which will be introduced respectively.
[0052] In step 310, the target component feature is analyzed in the case that the mapping relationship does not exist the target component corresponding to the target component requirement information according to the mapping relationship of different component requirement information and different components in the circuit design library.
[0053] In step 320, the alternative component with a component feature difference less than a difference threshold between the target component feature is searched in the circuit design library according to the target component feature, and a prompt information is initiated to the user.
[0054] In step 330, in the case that the user initiates the replacement permission instruction, a target circuit design scheme corresponding to the target circuit design requirement is determined based on the substitute component and the target circuit building principle.
[0055] In an embodiment, in the case that the mapping relationship does not exist the target component corresponding to the target component requirement information according to the mapping relationship between the different component requirement information and the different components in the circuit design library, it is indicated that the corresponding target component cannot be directly called based on the circuit design library. In order to directly use the existing components in the circuit design library, the target component feature of the target component can be parsed in the application process, and the substitute component with the component feature difference between the target component feature and the substitute component being less than the difference threshold can be searched in the circuit design library according to the target component feature. In this way, the substitute component can be used as the substitute of the target component.
[0056] In an example, the user can also be prompted with prompt information, wherein the prompt information can be used to prompt the user to replace the target component with the substitute component.
[0057] In another embodiment, in the case that the user initiates the replacement permission instruction, the target circuit design scheme corresponding to the target circuit design requirement can be directly determined based on the existing substitute component in the circuit design library and the target circuit building principle, so that the target circuit design can be performed based on the target circuit design scheme. The replacement permission instruction is used to represent the instruction for allowing the substitute component to be replaced by the target component.
[0058] In another example embodiment of the present application, the previous embodiment is taken as an example for description, after the mapping relationship does not exist the target component corresponding to the target component requirement information according to the mapping relationship between the different component requirement information and the different components in the circuit design library, the circuit design method further comprises the following steps: determining the target component; updating the circuit design library based on the mapping relationship between the target component requirement information and the target component.
[0059] In an embodiment, the model, feature and other information of the target component can be determined, so that the target component can be uniquely determined. Further, the mapping relationship between the target component requirement information and the target component is updated to the circuit design library. Thus, the user can directly call the corresponding target component for circuit design based on the mapping relationship between the target component requirement information and the target component in the subsequent process.
[0060] Figure 4 is a flowchart provided by the present application for generating a circuit design script command based on a target circuit design requirement, and executing the circuit design script command to perform target circuit design.
[0061] The following will be described in combination with Figure 4 The process of generating circuit design script commands based on target circuit design requirements and executing the circuit design script commands to perform the target circuit design will be described.
[0062] In an exemplary embodiment of the present application, the target circuit design requirements can at least include target component requirement information and target circuit building requirement information. In combination with Figure 4 It can be seen that generating circuit design script commands based on target circuit design requirements and executing the circuit design script commands to perform the target circuit design can include steps 410 to 430, which will be introduced respectively.
[0063] In step 410, first circuit design script commands are generated based on the target component requirement information, wherein the first circuit design script commands are used to represent circuit design script commands of the target component requirements.
[0064] In step 420, second circuit design script commands are generated based on the target circuit building requirement information, wherein the second circuit design script commands are used to represent circuit design script commands of the target circuit building principles.
[0065] In step 430, the first circuit design script commands and the second circuit design script commands are executed in sequence to perform the target circuit design.
[0066] In an embodiment, the target circuit design requirements can be parsed to obtain the target component requirement information and the target circuit building requirement information. Further, the first circuit design script commands are generated based on the target component requirement information, and the second circuit design script commands are generated based on the target circuit building requirement information, and the first circuit design script commands and the second circuit design script commands are executed in sequence to perform the target circuit design. Through this embodiment, automatic and efficient circuit design can be realized without manual operation, thereby improving work efficiency and work accuracy.
[0067] In yet another exemplary embodiment of the present application, the previous embodiment described above will be taken as an example for description. After the first circuit design script commands and the second circuit design script commands are executed in sequence to perform the target circuit design, the circuit design method can further include the following steps: Based on the target component requirement information and the target circuit building requirement information, it is verified whether the designed target circuit meets the target circuit design requirements; In a case where the target circuit after design does not meet the target circuit design requirement, the first circuit design script command and / or the second circuit design script command is modified until the target circuit obtained based on the modified first circuit design script command and / or the second circuit design script command meets the target circuit design requirement.
[0068] In a case where the target circuit after design does not meet the target circuit design requirement, the first circuit design script command and / or the second circuit design script command is modified until the target circuit obtained based on the modified first circuit design script command and / or the second circuit design script command meets the target circuit design requirement.
[0069] According to the foregoing description, the circuit design method provided by the present application obtains the target circuit design requirement of a user, calls a pre-maintained circuit design library, wherein the circuit design library includes a mapping relationship between different circuit design requirements and different circuit design schemes, and in a case where the mapping relationship in the circuit design library includes a target circuit design scheme corresponding to the target circuit design requirement, the target circuit is designed based on the target circuit design scheme; in a case where the mapping relationship in the circuit design library does not include a target circuit design scheme corresponding to the target circuit design requirement, a circuit design script command is generated based on the target circuit design requirement, and the target circuit is designed by executing the circuit design script command, thereby realizing automatic and efficient circuit design without manual operation, improving work efficiency and work accuracy.
[0070] The circuit design virtual device provided by the present application is described below, and the circuit design virtual device described below can be referred to in correspondence with the circuit design method described above.
[0071] Figure 5 FIG. 1 is a structural schematic diagram of the circuit design virtual device provided by the present application.
[0072] The circuit design virtual device provided by the present application is described below, and the circuit design virtual device described below can be referred to in correspondence with the circuit design method described above. Figure 5 The circuit design virtual device provided by the present application is described below, and the circuit design virtual device described below can be referred to in correspondence with the circuit design method described above.
[0073] In an exemplary embodiment of the present application, the circuit design virtual device provided by the present application is described in combination with the circuit design method provided by the present application. Figure 5It can be known that the circuit design virtual device can include an acquisition module 510, a calling module 520, a first processing module 530 and a second processing module 540, and the following will introduce each module respectively.
[0074] The acquisition module 510 can be configured to acquire a target circuit design requirement of a user. The calling module 520 can be configured to call a pre-maintained circuit design library, wherein the circuit design library includes a mapping relationship between different circuit design requirements and different circuit design schemes. The first processing module 530 can be configured to perform target circuit design based on a target circuit design scheme corresponding to the target circuit design requirement in the mapping relationship in the circuit design library; and the second processing module 540 can be configured to generate a circuit design script command based on the target circuit design requirement and execute the circuit design script command to perform target circuit design in the case that the mapping relationship in the circuit design library does not include a target circuit design scheme corresponding to the target circuit design requirement.
[0075] In an exemplary embodiment of the present application, the target circuit design requirement includes at least target component requirement information and target circuit building requirement information; and the mapping relationship between different circuit design requirements and different circuit design schemes includes a mapping relationship between different component requirement information and different components, and a mapping relationship between different circuit building requirement information and different circuit building principles. The first processing module 530 can be configured to perform target circuit design based on a target circuit design scheme corresponding to the target circuit design requirement in the mapping relationship in the circuit design library in the following manner: According to the mapping relationship between different component requirement information and different components, and the mapping relationship between different circuit building requirement information and different circuit building principles in the circuit design library, a target component and a target circuit building principle corresponding to the target circuit design requirement are determined respectively; Based on the target component and the target circuit building principle, a target circuit design scheme corresponding to the target circuit design requirement is determined; Based on the target circuit design scheme, target circuit design is performed.
[0076] In an example embodiment of the present application, the first processing module 530 can be configured to determine a target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle in the following manner: determining the target component characteristics of the target component based on the fact that the mapping relationship between the different component requirement information and the different components in the circuit design library does not have a target component corresponding to the target component requirement information; searching for a substitute component in the circuit design library based on the target component characteristics, wherein the difference between the target component characteristics and the substitute component characteristics is less than a difference threshold; and initiating a prompt message to the user, wherein the prompt message is used to prompt the user to replace the target component with the substitute component. In an example embodiment of the present application, the first processing module 530 can be configured to determine a target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle in the following manner: determining the target component characteristics of the target component based on the fact that the mapping relationship between the different component requirement information and the different components in the circuit design library does not have a target component corresponding to the target component requirement information; searching for a substitute component in the circuit design library based on the target component characteristics, wherein the difference between the target component characteristics and the substitute component characteristics is less than a difference threshold; and initiating a prompt message to the user, wherein the prompt message is used to prompt the user to replace the target component with the substitute component. In an example embodiment of the present application, the first processing module 530 can be configured to determine a target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle in the following manner: determining the target component characteristics of the target component based on the fact that the mapping relationship between the different component requirement information and the different components in the circuit design library does not have a target component corresponding to the target component requirement information; searching for a substitute component in the circuit design library based on the target component characteristics, wherein the difference between the target component characteristics and the substitute component characteristics is less than a difference threshold; and initiating a prompt message to the user, wherein the prompt message is used to prompt the user to replace the target component with the substitute component.
[0077] In an example embodiment of the present application, the first processing module 530 can be configured to determine a target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle in the following manner: determining the target component characteristics of the target component based on the fact that the mapping relationship between the different component requirement information and the different components in the circuit design library does not have a target component corresponding to the target component requirement information; searching for a substitute component in the circuit design library based on the target component characteristics, wherein the difference between the target component characteristics and the substitute component characteristics is less than a difference threshold; and initiating a prompt message to the user, wherein the prompt message is used to prompt the user to replace the target component with the substitute component. determining a target component; updating the circuit design library based on the mapping relationship between the target component requirement information and the target component.
[0078] In an example embodiment of the present application, the target circuit design requirement includes at least target component requirement information and target circuit building requirement information. In an example embodiment of the present application, the second processing module 540 can be configured to generate a circuit design script command based on the target circuit design requirement and execute the circuit design script command to perform target circuit design in the following manner: generating a first circuit design script command based on the target component requirement information, wherein the first circuit design script command is used to represent a circuit design script command of target component requirement; generating a second circuit design script command based on the target circuit building requirement information, wherein the second circuit design script command is used to represent a circuit design script command of target circuit building principle; sequentially executing the first circuit design script command and the second circuit design script command to perform target circuit design.
[0079] In an example embodiment of the present application, the second processing module 540 can be configured to perform the following operations: verifying whether the target circuit after design meets the target circuit design requirement based on the target component requirement information and the target circuit building requirement information. In a case where the designed target circuit does not meet the target circuit design requirement, the first circuit design script command and / or the second circuit design script command is modified until the target circuit obtained based on the modified first circuit design script command and / or the second circuit design script command meets the target circuit design requirement.
[0080] Based on the same inventive concept, the application further provides a circuit design device.
[0081] Figure 6 FIG. 1 is a structural schematic diagram of a circuit design device provided by the application.
[0082] The application will be described below in conjunction with Figure 6 The structure of the circuit design device will be described.
[0083] In an exemplary embodiment of the application, the circuit design device is combined with Figure 6 As can be seen, the circuit design device can include a touch screen 610 and a processor 620, which will be described below.
[0084] The touch screen 610 is configured to obtain a target circuit design requirement of a user based on a touch operation of the user and send the target circuit design requirement to the processor 620. The processor 620 is configured to execute the circuit design method of any one of the preceding embodiments.
[0085] In an embodiment, the user can complete the touch operation through the touch screen 610, so as to obtain the target circuit design requirement of the user. Since the touch screen 610 is in communication connection with the processor 620, the target circuit design requirement of the user can be sent to the processor 620. Further, the processor 620 can execute the circuit design method of any one of the preceding embodiments, so as to realize the automatic design of the target circuit.
[0086] It should be noted that the process of circuit design by the engineer after confirming the hardware function requirement is a process of multiple and repeated selection of components, circuit analysis and repeated debugging. From the perspective of related art, the steps for circuit design cannot be separated from the traditional mouse-keyboard operation. The circuit design device provided by the application replaces the operation mode of the traditional circuit design software with the touch operation mode, so as to realize the touch control of the component selection, schematic diagram building, error self-correction and other operations of the circuit design software, and make the circuit design work more intelligent and agile.
[0087] Figure 7 An example of an entity structure schematic diagram of an electronic device is shown in FIG. 1. Figure 7As shown, the electronic device can include a processor 710, a communications interface 720, a memory 730, and a communications bus 740, wherein the processor 710, the communications interface 720, and the memory 730 complete mutual communication through the communications bus 740. The processor 710 can invoke a logic instruction in the memory 730 to execute a circuit design method, which includes: obtaining a target circuit design requirement of a user; invoking a pre-maintained circuit design library, wherein the circuit design library includes a mapping relationship between different circuit design requirements and different circuit design schemes; in the case that the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirement, performing target circuit design based on the target circuit design scheme; in the case that the mapping relationship in the circuit design library does not exist a target circuit design scheme corresponding to the target circuit design requirement, generating a circuit design script command based on the target circuit design requirement, and executing the circuit design script command to perform target circuit design.
[0088] In addition, the logic instruction in the memory 730 described above can be implemented in the form of a software functional unit and sold or used as an independent product, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or the part of the technical solutions that make essential contributions to the prior art or the part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0089] In another aspect, the present application also provides a computer program product comprising a computer program, which can be stored on a non-transitory computer readable storage medium, and the computer program, when executed by a processor, enables a computer to perform the circuit design method provided by the above-mentioned methods, which comprises: obtaining a target circuit design requirement of a user; calling a pre-maintained circuit design library, wherein the circuit design library comprises a mapping relationship between different circuit design requirements and different circuit design schemes; in a case where the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirement, performing target circuit design based on the target circuit design scheme; in a case where the mapping relationship in the circuit design library does not exist a target circuit design scheme corresponding to the target circuit design requirement, generating a circuit design script command based on the target circuit design requirement, and executing the circuit design script command to perform target circuit design.
[0090] In yet another aspect, the present application also provides a non-transitory computer readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a circuit design method provided by the above-mentioned methods, which comprises: obtaining a target circuit design requirement of a user; calling a pre-maintained circuit design library, wherein the circuit design library comprises a mapping relationship between different circuit design requirements and different circuit design schemes; in a case where the mapping relationship in the circuit design library exists a target circuit design scheme corresponding to the target circuit design requirement, performing target circuit design based on the target circuit design scheme; in a case where the mapping relationship in the circuit design library does not exist a target circuit design scheme corresponding to the target circuit design requirement, generating a circuit design script command based on the target circuit design requirement, and executing the circuit design script command to perform target circuit design.
[0091] The device embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., they can be located in one place, or distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the present embodiment scheme according to actual needs. Those skilled in the art can understand and implement it without creative labor.
[0092] Those skilled in the art can clearly understand the technical solutions of the various embodiments from the above description of the embodiments, and the various embodiments can be implemented by means of software with the necessary general hardware platforms, and of course, can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that makes a contribution, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0093] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method of circuit design, characterized by, The method comprises: acquiring a target circuit design requirement of a user; calling a pre-maintained circuit design library, wherein the circuit design library comprises a mapping relationship between different circuit design requirements and different circuit design schemes; in a case where the mapping relationship in the circuit design library has a target circuit design scheme corresponding to the target circuit design requirement, performing target circuit design based on the target circuit design scheme; in a case where the mapping relationship in the circuit design library does not have a target circuit design scheme corresponding to the target circuit design requirement, generating a circuit design script command based on the target circuit design requirement, and executing the circuit design script command to perform target circuit design.
2. The circuit design method of claim 1, wherein, The target circuit design requirement at least comprises target component requirement information and target circuit building requirement information; the mapping relationship between different circuit design requirements and different circuit design schemes comprises a mapping relationship between different component requirement information and different components, and a mapping relationship between different circuit building requirement information and different circuit building principles; in the case where the mapping relationship in the circuit design library has a target circuit design scheme corresponding to the target circuit design requirement, the target circuit design is performed based on the target circuit design scheme, specifically comprising: determining a target component and a target circuit building principle corresponding to the target circuit design requirement according to the mapping relationship between different component requirement information and different components in the circuit design library, and the mapping relationship between different circuit building requirement information and different circuit building principles; determining a target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle; performing target circuit design based on the target circuit design scheme.
3. The circuit design method of claim 2, wherein, The determination of the target circuit design scheme corresponding to the target circuit design requirement based on the target component and the target circuit building principle specifically comprises: in a case where the mapping relationship between different component requirement information and different components in the circuit design library does not have a target component corresponding to the target component requirement information, analyzing a target component feature of the target component; searching for a replacement component having a component feature difference with the target component feature less than a difference threshold in the circuit design library according to the target component feature, and initiating prompt information to the user, wherein the prompt information is used to prompt the user to replace the target component with the replacement component; in a case where an instruction for allowing replacement is initiated by the user, determining a target circuit design scheme corresponding to the target circuit design requirement based on the replacement component and the target circuit building principle, wherein the instruction for allowing replacement is used to represent an instruction for allowing the replacement component to replace the target component.
4. The circuit design method of claim 3, wherein, After determining that the mapping relationship between different component requirement information and different components in the circuit design library does not have a target component corresponding to the target component requirement information, the method further comprises: determining a target component; updating the circuit design library based on the mapping relationship between the target component requirement information and the target component.
5. The circuit design method of claim 1, wherein, The target circuit design requirement includes at least target component requirement information and target circuit building requirement information. The circuit design script command is generated based on the target circuit design requirement, and the circuit design script command is executed to perform target circuit design, specifically including: The first circuit design script command is generated based on the target component requirement information, wherein the first circuit design script command is used to represent the circuit design script command of the target component requirement. The second circuit design script command is generated based on the target circuit building requirement information, wherein the second circuit design script command is used to represent the circuit design script command of the target circuit building principle. The first circuit design script command and the second circuit design script command are executed in sequence to perform target circuit design.
6. The circuit design method of claim 5, wherein, After the first circuit design script command and the second circuit design script command are executed in sequence to perform target circuit design, the method further includes: Based on the target component requirement information and the target circuit building requirement information, it is verified whether the designed target circuit meets the target circuit design requirement. In the case that the designed target circuit does not meet the target circuit design requirement, the first circuit design script command and / or the second circuit design script command is modified until the target circuit based on the modified first circuit design script command and / or the second circuit design script command meets the target circuit design requirement.
7. A circuit design virtual apparatus, comprising: The virtual device includes: An acquisition module is configured to acquire target circuit design requirement of a user; A calling module is configured to call a pre-maintained circuit design library, wherein the circuit design library includes mapping relationship between different circuit design requirements and different circuit design schemes; A first processing module is configured to perform target circuit design based on the target circuit design scheme when the mapping relationship in the circuit design library has the target circuit design scheme corresponding to the target circuit design requirement; A second processing module is configured to generate circuit design script command based on the target circuit design requirement and execute the circuit design script command to perform target circuit design when the mapping relationship in the circuit design library does not have the target circuit design scheme corresponding to the target circuit design requirement.
8. A circuit design device, wherein, The circuit design device includes: A touch screen is configured to acquire target circuit design requirement of a user based on touch operation of the user and send the target circuit design requirement to a processor; The processor is configured to execute the circuit design method of any one of claims 1 to 6.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the circuit design method of any one of claims 1 to 6. 10.A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the circuit design method of any one of claims 1 to 6.