Circuit schematic diagram drawing method and device, electronic equipment and storage medium
By generating and analyzing the circuit module diagram and XML files, automatic construction of the circuit schematic diagram, the tedious and time -consuming problem of manual drawing circuit in the existing technologies, and realizing the drawing of high -efficiency and automatic circuit principles.
Patent Information
- Application Number
- CN202411182581.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2025-01-28
AI Technical Summary
The existing circuit schematic design method requires designers to manually draw components and connect to the network, which is cumbersome and time-consuming.
By acquiring circuit design requirements, generate the first circuit module diagram and the second circuit module diagram, further generate XML files and mesh tables, and automatically generate the circuit schematic diagram according to the mesh table to reduce manual operation.
The automatic generation of the circuit principle diagram is achieved, the operation process is simplified, the drawing time is significantly shortened, and the work efficiency is improved.
Smart Images

Figure CN119378459A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of circuit schematic drawing, and in particular to a circuit schematic drawing method, device, electronic device and storage medium. Background Art
[0002] The hardware product design process includes: component selection, circuit schematic design, circuit PCB design, microcontroller program editing and circuit board function testing.
[0003] Among them, the circuit schematic design process is particularly important. In the existing circuit schematic design method, ORCAD or Altium Designer drawing software is generally used to design the circuit schematic. In the drawing process, it involves drawing a large number of components in the schematic drawing page and connecting a large number of networks between components. These tasks require manual operation by designers, which is very time-consuming and laborious.
[0004] Therefore, in the process of manually drawing circuit schematics, cumbersome operations and time-consuming are existing problems.
[0005] Application Contents
[0006] In view of this, the purpose of the present application is to provide a circuit schematic drawing method, device, electronic device and storage medium to solve the above-mentioned problems, realize the purpose of automatically generating schematics, simplifying operations and shortening drawing time.
[0007] In a first aspect, an embodiment of the present application provides a method for drawing a circuit schematic diagram, the method comprising:
[0008] Obtaining circuit design requirements, and obtaining a first circuit module diagram and a second circuit module diagram according to the circuit design requirements; wherein the first circuit module diagram is used to characterize the properties of each sub-circuit, the function of each sub-circuit and the properties of each component in the target circuit targeted by the circuit design requirements in the first format, and the second circuit module diagram is used to characterize the connection relationship of each of the components in the target circuit targeted by the circuit design requirements in the first format;
[0009] Generate an XML file of the target circuit according to the first circuit module diagram and the second circuit module diagram;
[0010] Obtaining a netlist of the target circuit according to the XML file; wherein the netlist is used to characterize the design of the target circuit;
[0011] If the design situation meets the circuit design requirement, a circuit schematic diagram of the target circuit is generated according to the netlist.
[0012] Preferably, the first circuit module diagram is determined in the following manner:
[0013] Generate subcircuit description information according to the circuit design requirements; wherein the subcircuit description information includes: the attributes of each subcircuit in the target circuit targeted by the circuit design requirements in the second format, the functions of each subcircuit and the attributes of each component;
[0014] The first circuit module diagram is generated according to the sub-circuit description information.
[0015] Preferably, the second circuit module diagram is determined in the following manner:
[0016] Generate sub-circuit internal description information according to the circuit design requirement; wherein the sub-circuit internal description information includes: the connection relationship of each of the components in the target circuit targeted by the circuit design requirement in the second format;
[0017] The second circuit module diagram is generated according to the internal description information of the sub-circuit.
[0018] Preferably, the step of obtaining a netlist of the target circuit according to the XML file comprises:
[0019] Parsing the XML file to obtain circuit information; wherein the circuit information includes: the attributes of each sub-circuit in the target circuit targeted by the circuit design requirement in the third format, the function of each sub-circuit, the connection relationship of each component and the attributes of each component;
[0020] The netlist is obtained according to the circuit information.
[0021] Preferably, the step of generating a circuit schematic diagram of the target circuit according to the netlist comprises:
[0022] Obtaining symbols of the components corresponding to the netlist;
[0023] Create a blank schematic page;
[0024] The symbols of the components are placed on the blank schematic diagram page according to the netlist, and the symbols of the components are connected to obtain the circuit schematic diagram of the target circuit.
[0025] Preferably, the method further comprises:
[0026] If the design situation does not meet the circuit design requirements, the netlist is modified according to the circuit design requirements.
[0027] Preferably, the method further comprises:
[0028] The circuit schematic diagram is verified to obtain a verification result. If the verification result shows that the circuit schematic diagram has an error, an error warning message is generated and the error position of the circuit schematic diagram is marked.
[0029] The circuit schematic drawing method provided by the present application brings the following beneficial effects:
[0030] The present application provides a circuit schematic drawing method, which generates a circuit schematic of a target circuit according to a netlist, and the circuit schematic obtained by the method meets the circuit design requirements of the target circuit. The method does not require designers to perform tedious manual operations, and can accurately draw the circuit schematic of the target circuit, saving human resources, significantly reducing drawing time, and improving work efficiency.
[0031] In a second aspect, the present application further provides a circuit schematic drawing device, the device comprising:
[0032] An acquisition module, used to obtain circuit design requirements;
[0033] A modeling module, used to obtain a first circuit module diagram and a second circuit module diagram according to the circuit design requirements; wherein the first circuit module diagram is used to characterize the properties of each sub-circuit, the function of each sub-circuit and the properties of each component in the target circuit targeted by the circuit design requirements in the first format, and the second circuit module diagram is used to characterize the connection relationship of each of the components in the target circuit targeted by the circuit design requirements in the first format;
[0034] An XML processing module, used for generating an XML file of the target circuit according to the first circuit module diagram and the second circuit module diagram;
[0035] A netlist generation module, used to obtain a netlist of the target circuit according to the XML file; wherein the netlist is used to characterize the design of the target circuit;
[0036] A circuit schematic generating module is used to generate a circuit schematic of the target circuit according to the netlist if the design situation meets the circuit design requirements.
[0037] The circuit schematic diagram drawing device provided in the embodiment of the present application has the same technical features as the circuit schematic diagram drawing method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0038] In a third aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the beneficial effects of any of the methods described above are achieved, which will not be repeated here.
[0039] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the beneficial effects of any of the methods described above are achieved, which will not be repeated here.
[0040] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 A schematic diagram of a circuit schematic drawing method provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of the SysML model structure provided for an embodiment of the present application;
[0045] Figure 3 A first circuit module diagram of a circuit schematic drawing method provided in an embodiment of the present application;
[0046] Figure 4 A second circuit module diagram of a circuit schematic drawing method provided in an embodiment of the present application;
[0047] Figure 5 An XML file schematic diagram of a circuit schematic drawing method provided in an embodiment of the present application;
[0048] Figure 6 A schematic diagram of a circuit schematic drawing method provided in an embodiment of the present application;
[0049] Figure 7 A schematic diagram of a flow chart of another circuit schematic drawing method provided in an embodiment of the present application;
[0050] Figure 8A schematic diagram of the structure of a circuit schematic drawing device provided in an embodiment of the present application;
[0051] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0053] To facilitate understanding of this embodiment, the embodiments of the present application are described in detail below.
[0054] The present application embodiment provides a method for drawing a circuit schematic diagram, such as Figure 1 As shown, Figure 1 A schematic diagram of a circuit schematic drawing method provided in an embodiment of the present application, the method comprising the following steps:
[0055] S101, obtaining circuit design requirements, and obtaining a first circuit module diagram and a second circuit module diagram according to the circuit design requirements.
[0056] Among them, the first circuit module diagram is used to characterize the properties of each sub-circuit, the function of each sub-circuit and the properties of each component in the target circuit targeted by the circuit design requirements under the first format, and the second circuit module diagram is used to characterize the connection relationship of each component in the target circuit targeted by the circuit design requirements under the first format.
[0057] Specifically, the target circuit targeted by the above circuit design requirements includes multiple sub-circuits, and the circuit designer obtains the first circuit module diagram according to the circuit design requirements. The properties of the sub-circuit represented by the first circuit module diagram include: the input and output characteristics of the sub-circuit, the power consumption of the sub-circuit, the response time of the sub-circuit, the noise performance of the sub-circuit, the durability of the sub-circuit and the stability of the sub-circuit. The functions of the sub-circuit represented by the first circuit module diagram include: the logical operation function of the sub-circuit, the signal processing function of the sub-circuit, the data storage function of the sub-circuit and the interface conversion function of the sub-circuit. The above sub-circuit includes multiple components, and the properties of each component represented by the second circuit module diagram include: the type of component and the value of the component, such as the resistance, capacitance and inductance of the component.
[0058] The circuit designer obtains the second circuit module diagram according to the circuit design requirements. The connection relationship of each component represented by the second circuit module diagram includes: series connection, parallel connection, mixed connection and star connection.
[0059] The first circuit module diagram and the second circuit module diagram can fully characterize the circuit design requirements of the target circuit. Figure 2 As shown, Figure 2 A schematic diagram of the SysML (Systems Modeling Language) model structure provided for an embodiment of the present application. The SysML model is a graphical modeling language that can provide a semantic basis for requirements, behaviors, structures, and parameters (mathematical models) in system modeling, and can integrate other engineering analysis models. The SysML model has been widely used in MBSE (Model-Based Systems Engineering) practices to support the representation, analysis, design, and verification of complex systems. The SysML model includes BDD (Block Definition Diagram), IBD (Internal Block Diagram), UC (Use Case Diagram), ACT (Activity Diagram), SQ (Sequence Diagram), STM (State Machine Diagram), PA (Parametric Diagrams), PKG (Package Diagram) and REQ (Requirement Diagram).
[0060] Among them, the module definition diagram is used to represent structural elements such as modules and the relationship between elements. The internal module diagram is a static (structured) view of the system or a component of the system. The use case diagram is a black box diagram of the system performing specific functions under the operation of the operator. It is used to express the specific functions performed by the system, as well as the incentives and participants when performing specific functions. The activity diagram is used to focus on the control flow, understand and express the behavior that the system should have, and the process of converting input into output. The sequence diagram is used to focus on and accurately describe the interaction between different modules within the system. It is an excellent mechanism for specifying test cases. The state machine diagram is used to focus on a series of states of the modules within the system and the transitions between different states under event triggering. State machine diagram and sequence Figure 1In this way, the behavior of a module can be accurately described and can also be used as input to the development phase of the life cycle. Parameter diagrams are used to define and track system parameters. Package diagrams are used to show the organizational structure and hierarchical relationships of the model, and are used to organize and group elements in the system for easy management and understanding. Requirement diagrams are used to represent text-based requirements, relationships between requirements, and other model elements that verify and refine requirements.
[0061] The first circuit module diagram and the second circuit module diagram are obtained based on the SysML model, so the first format is to adapt the circuit design requirements to the language format specified by the SysML model.
[0062] S102, generating an XML file of a target circuit according to the first circuit module diagram and the second circuit module diagram.
[0063] Specifically, XML (Extensible Markup Language) is a markup language that can be flexibly used to store and transmit data in the Internet and intranet. Therefore, the XML file of the target circuit generated above can be adapted to the storage and transmission format of the SysML model.
[0064] S103, obtaining a netlist of the target circuit according to the XML file.
[0065] The netlist is used to characterize the design of the target circuit. The netlist is obtained according to the above XML file and is also adapted to the storage and transmission format of the SysML model.
[0066] S104: If the design situation meets the circuit design requirements, a circuit schematic diagram of the target circuit is generated according to the netlist.
[0067] Specifically, a circuit schematic is a diagram that uses symbols to represent electronic components and their connection methods. In a circuit schematic, various electronic components, such as resistors, capacitors, transistors, connectors, and integrated circuits, are simplified into specific symbols, and the connecting lines or network labels between these symbols represent the actual electrical connections between the components. During the circuit design stage, circuit designers use circuit schematics to plan and verify the functions of circuits when designing circuits. The circuit schematic generated above can meet the circuit design requirements of the target circuit obtained by the designer. The process of generating a circuit schematic based on the netlist is completely performed by the SysML model, which saves manpower and shortens the drawing time of the circuit schematic.
[0068] The circuit schematic drawing method provided in the embodiment of the present application generates a circuit schematic of a target circuit according to a netlist, and the circuit schematic obtained by the method meets the circuit design requirements of the target circuit. Compared with the method of drawing a large number of components and connecting a large number of networks between components in the schematic drawing page in the prior art, this method does not require designers to perform tedious manual operations, and can accurately draw the circuit schematic of the target circuit, saving human resources, significantly reducing drawing time, and improving work efficiency.
[0069] The following describes the method for determining the first circuit module diagram. Figure 3 As shown, Figure 3 A first circuit module diagram of a circuit schematic drawing method provided in an embodiment of the present application. The method includes: generating subcircuit description information according to circuit design requirements, and generating a first circuit module diagram according to the subcircuit description information. The subcircuit description information includes: the properties of each subcircuit in the target circuit targeted by the circuit design requirements in the second format, the functions of each subcircuit, and the properties of each component.
[0070] Specifically, the first circuit module diagram generated in this method is generated in the BDD of the SysML model. BDD represents the attributes of each sub-circuit based on the sub-circuit description information. For example: the input and output characteristics of the HCE4644 power supply (the input voltage range is 4V-14V and the output voltage range is 0.6V-1.5V). BDD represents the functions of each sub-circuit based on the sub-circuit description information. For example: the differential operation function of the (Low-Voltage Differential Signaling) circuit. BDD represents the attributes of each component based on the sub-circuit description information. For example: the input voltage of the HCE4644 power supply is 12V. In order to adapt the above sub-circuit description information to the language format specified by the BDD, the above sub-circuit description information is displayed in the first circuit module diagram in the second format.
[0071] This method can summarize the circuit design requirements and present them in the form of a first circuit module diagram, thereby making the circuit design requirements specific.
[0072] The following is an introduction to the method of determining the second circuit module diagram. Figure 4 As shown, Figure 4 A second circuit module diagram of a circuit schematic drawing method provided in an embodiment of the present application. The method includes: generating sub-circuit internal description information according to circuit design requirements, and generating a second circuit module diagram according to the sub-circuit internal description information. The sub-circuit internal description information includes: the connection relationship of each component in the target circuit targeted by the circuit design requirements in the second format.
[0073] Specifically, the second module circuit diagram generated in this method is generated in the IBD of the SysML model. IBD displays the relationship and interface between the internal components of the module based on the internal description information of the sub-circuit, that is, the connection relationship between the various components in the target circuit targeted by the circuit design requirements under the second format. For example: in the second module circuit diagram, the interface of X1 includes P1 and P2, the interface of X2 includes P5 and P6, the interface of the K7 minimum system includes GND1, the interface of the LVDS circuit includes the LVDS circuit output terminal P, the LVDS circuit output terminal N and GND2, and the interface of the HCE4644 power supply includes the input voltage and GND3; wherein, P1 is connected to the input voltage, P2 is respectively connected to GND1, GND2 and GND3, P6 is connected to the LVDS circuit output terminal P, and P5 is connected to the LVDS circuit output terminal N.
[0074] The above components are all CBB (Common Building Blocks). CBB is a combination of a series of standardized electronic components that can realize specific circuit functions. The combination and connection method of each electronic component in CBB is usually verified by a large number of experiments and tests, and the function is reliable. CBB can be called repeatedly to build various circuit boards and electronic devices, providing a basis for electronic design and manufacturing, allowing circuit designers to quickly develop complex circuits. In addition, in order to adapt the internal description information of the above sub-circuit to the language format specified by IBD, the internal description information of the above sub-circuit is displayed in the second circuit module diagram in a second format.
[0075] This method can summarize the circuit design requirements and present them in the form of a second circuit module diagram, thereby making the circuit design requirements specific.
[0076] The following is an introduction to the method of obtaining the netlist of the target circuit based on the XML file. Figure 5 As shown, Figure 5 An XML file schematic diagram of a circuit schematic drawing method provided in an embodiment of the present application, the method includes: parsing an XML file to obtain circuit information, and obtaining a netlist based on the circuit information. The circuit information includes: the properties of each sub-circuit in the target circuit targeted by the circuit design requirements under the third format, the functions of each sub-circuit, the connection relationship of each component, and the properties of each component.
[0077] Specifically, in the above manner, in order to adapt the above circuit information to the language format specified by the netlist, the above circuit information is displayed in the netlist in the third format.
[0078] The following is an introduction to the method of generating a circuit schematic diagram of a target circuit based on a netlist. Figure 6 As shown, Figure 6A netlist diagram of a circuit schematic drawing method provided in an embodiment of the present application. The method includes: obtaining symbols of components corresponding to the netlist, creating a blank schematic page, placing the symbols of components on the blank schematic page according to the netlist, and connecting the symbols of components to obtain a circuit schematic of the target circuit.
[0079] Specifically, the format of the above netlist is shown in Table 1.
[0080]
[0081]
[0082] Table 1
[0083] The above SysML model searches for the corresponding symbol in the circuit design resource library according to the CBB Name / Part Name, material code and Symbol name in Table 1, places the symbol of the component in the created blank schematic page, assigns the component according to the number of the symbol in Table 1, completes the interconnection between the components according to the Symbol name, Pin Number and Pin Name information, and names the connection network between the components according to the Net Name information. If the Net Name does not exist, the SysML model automatically assigns the default network name of the connection network to each component.
[0084] This method does not require circuit designers to manually draw component symbols on a blank schematic page, saving manpower and improving work efficiency.
[0085] In one implementation, the method includes: if the design situation does not meet the circuit design requirements, modifying the netlist according to the circuit design requirements.
[0086] Specifically, the circuit design requirements obtained by the circuit designer are compared with the netlist content. If the content in the netlist is inconsistent with the circuit design requirements, it means that an error occurred during the generation of the netlist. Since the circuit schematic needs to be generated based on the netlist, the netlist needs to be modified at this time.
[0087] This method improves the accuracy of the circuit schematic by strictly verifying the correctness of the netlist.
[0088] In one embodiment, the method includes: verifying the circuit schematic diagram to obtain a verification result, and if the verification result shows that there is an error in the circuit schematic diagram, generating an error warning message and marking the error position of the circuit schematic diagram.
[0089] Specifically, in this method, if it is verified that there is an error in the circuit schematic, the error position in the circuit schematic will be marked in red to prompt the circuit designer to modify the red-marked position.
[0090] This method notifies circuit designers to modify the circuit schematic by generating error warning information and marking the error position of the circuit schematic, thereby improving the accuracy of the circuit schematic and the work efficiency of circuit designers.
[0091] Based on the above method embodiment, the present application embodiment provides another circuit schematic drawing method, such as Figure 7 As shown, Figure 7 A schematic flow chart of another circuit schematic drawing method provided in an embodiment of the present application, the method comprising the following steps:
[0092] S701, obtaining circuit design requirements.
[0093] Specifically, the circuit designer analyzes the functional requirements of the target electronic product to obtain the circuit design requirements of the target circuit corresponding to the target electronic product.
[0094] S702, obtaining a first circuit module diagram and a second circuit module diagram according to circuit design requirements.
[0095] Among them, the first circuit module diagram is used to characterize the properties of each sub-circuit, the function of each sub-circuit and the properties of each component in the target circuit targeted by the circuit design requirements under the first format, and the second circuit module diagram is used to characterize the connection relationship of each component in the target circuit targeted by the circuit design requirements under the first format.
[0096] For details, please refer to the aforementioned embodiments, and the embodiments of the present application will not be described in detail here.
[0097] S703: Generate an XML file of the target circuit according to the first circuit module diagram and the second circuit module diagram.
[0098] For details, please refer to the aforementioned embodiments, and the embodiments of the present application will not be described in detail here.
[0099] S704, obtaining a netlist of the target circuit according to the XML file.
[0100] For details, please refer to the aforementioned embodiments, and the embodiments of the present application will not be described in detail here.
[0101] S705, obtaining symbols of components corresponding to the netlist, and creating a blank schematic page.
[0102] For details, please refer to the aforementioned embodiments, and the embodiments of the present application will not be described in detail here.
[0103] S706, placing the symbols of the components on a blank schematic diagram page according to the netlist, and connecting the symbols of the components to obtain a circuit schematic diagram of the target circuit.
[0104] For details, please refer to the aforementioned embodiments, and the embodiments of the present application will not be described in detail here.
[0105] The circuit schematic drawing method provided in the embodiment of the present application places the symbols of components on a blank schematic diagram page according to the netlist, and connects the symbols of the components to obtain a circuit schematic of the target circuit. The circuit schematic drawn by this method meets the circuit design requirements of the target circuit, and can accurately draw the circuit schematic of the target circuit without the need for designers to perform tedious manual operations, thereby saving human resources, reducing the time for drawing circuit schematics, and improving the work efficiency of circuit designers.
[0106] Based on the above method embodiment, the present application embodiment provides a circuit schematic drawing device, such as Figure 8 As shown, Figure 8 A schematic diagram of the structure of a circuit schematic drawing device provided in an embodiment of the present application. The device includes an acquisition module 81, a modeling module 82, an XML processing module 83, a netlist generation module 84 and a circuit schematic generation module 85; wherein the functions of each module are as follows:
[0107] An acquisition module 81 is used to acquire circuit design requirements;
[0108] A modeling module 82 is used to obtain a first circuit module diagram and a second circuit module diagram according to the circuit design requirement; wherein the first circuit module diagram is used to characterize the properties of each sub-circuit, the function of each sub-circuit and the properties of each component in the target circuit targeted by the circuit design requirement in the first format, and the second circuit module diagram is used to characterize the connection relationship of each component in the target circuit targeted by the circuit design requirement in the first format;
[0109] An XML processing module 83, used to generate an XML file of a target circuit according to the first circuit module diagram and the second circuit module diagram;
[0110] A netlist generation module 84 is used to obtain a netlist of a target circuit according to the XML file; wherein the netlist is used to characterize the design of the target circuit;
[0111] The circuit schematic diagram generating module 85 is used to generate a circuit schematic diagram of the target circuit according to the netlist if the design situation meets the circuit design requirements.
[0112] The circuit schematic drawing device provided in the embodiment of the present application generates a circuit schematic of a target circuit according to a netlist, and the circuit schematic obtained by the device meets the circuit design requirements of the target circuit. Compared with the prior art, in which a large number of components are drawn in a schematic drawing page and a large number of networks between components are connected, the device does not require designers to perform tedious manual operations, and can accurately draw the circuit schematic of the target circuit, saving human resources, significantly reducing drawing time, and improving work efficiency.
[0113] Preferably, the modeling module 82 is specifically used to generate sub-circuit description information according to the circuit design requirements; wherein the sub-circuit description information includes: the properties of each sub-circuit in the target circuit targeted by the circuit design requirements in the second format, the functions of each sub-circuit and the properties of each component;
[0114] The first circuit module diagram is generated according to the sub-circuit description information.
[0115] Preferably, the modeling module 82 is specifically used to generate sub-circuit internal description information according to the circuit design requirements; wherein the sub-circuit internal description information includes: the connection relationship of each of the components in the target circuit targeted by the circuit design requirements in the second format;
[0116] The second circuit module diagram is generated according to the internal description information of the sub-circuit.
[0117] Preferably, the apparatus for obtaining a netlist of a target circuit according to an XML file comprises:
[0118] Parsing the XML file to obtain circuit information; wherein the circuit information includes: attributes of each sub-circuit in the target circuit targeted by the circuit design requirements in the third format, functions of each sub-circuit, connection relationships of each component, and attributes of each component;
[0119] A netlist is obtained based on the circuit information.
[0120] Preferably, the device for generating a circuit schematic diagram of a target circuit according to a netlist comprises:
[0121] Get the symbols of the components corresponding to the netlist;
[0122] Create a blank schematic page;
[0123] Place the symbols of components on a blank schematic diagram page according to the netlist, and connect the symbols of components to obtain a circuit schematic diagram of the target circuit.
[0124] Preferably, the device further comprises:
[0125] If the design situation does not meet the circuit design requirements, the netlist is modified according to the circuit design requirements.
[0126] Preferably, the device further comprises:
[0127] The circuit schematic is verified to obtain a verification result. If the verification result shows that there is an error in the circuit schematic, an error warning message is generated and the error position of the circuit schematic is marked.
[0128] The circuit schematic diagram drawing device provided in the embodiment of the present application has the same technical features as the circuit schematic diagram drawing method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0129] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned circuit schematic drawing method.
[0130] See also Fig. 9 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above-mentioned circuit schematic drawing method.
[0131] Further, Fig. 9 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0132] Among them, the memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA (Industrial Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Enhanced Industry Standard Architecture) bus, etc. The above-mentioned bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0133] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0134] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned circuit schematic drawing method.
[0135] The circuit schematic drawing method, device and computer program product of the electronic device provided in the embodiments of the present application include a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can refer to the method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the previous method embodiment, which will not be repeated here.
[0136] In addition, in the description of the embodiments of the present application, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0137] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0138] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes 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, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A circuit schematic drawing method, characterized in that: The method comprises: Obtaining circuit design requirements, and obtaining a first circuit module diagram and a second circuit module diagram according to the circuit design requirements; wherein the first circuit module diagram is used to characterize the properties of each sub-circuit, the function of each sub-circuit and the properties of each component in the target circuit targeted by the circuit design requirements in the first format, and the second circuit module diagram is used to characterize the connection relationship of each of the components in the target circuit targeted by the circuit design requirements in the first format; Generate an XML file of the target circuit according to the first circuit module diagram and the second circuit module diagram; Obtaining a netlist of the target circuit according to the XML file; wherein the netlist is used to characterize the design of the target circuit; If the design situation meets the circuit design requirement, a circuit schematic diagram of the target circuit is generated according to the netlist.
2. The circuit schematic drawing method according to claim 1, characterized in that: The first circuit module diagram is determined in the following manner: Generate subcircuit description information according to the circuit design requirements; wherein the subcircuit description information includes: the attributes of each subcircuit in the target circuit targeted by the circuit design requirements in the second format, the functions of each subcircuit and the attributes of each component; The first circuit module diagram is generated according to the sub-circuit description information.
3. The circuit schematic drawing method according to claim 2, characterized in that: The second circuit module diagram is determined by: Generate sub-circuit internal description information according to the circuit design requirement; wherein the sub-circuit internal description information includes: the connection relationship of each of the components in the target circuit targeted by the circuit design requirement in the second format; The second circuit module diagram is generated according to the internal description information of the sub-circuit.
4. The circuit schematic drawing method according to claim 1, characterized in that: The step of obtaining a netlist of the target circuit according to the XML file comprises: Parsing the XML file to obtain circuit information; wherein the circuit information includes: the attributes of each sub-circuit in the target circuit targeted by the circuit design requirement in the third format, the function of each sub-circuit, the connection relationship of each component and the attributes of each component; The netlist is obtained according to the circuit information.
5. The circuit schematic drawing method according to claim 1, characterized in that: The step of generating a circuit schematic diagram of the target circuit according to the netlist comprises: Obtaining symbols of the components corresponding to the netlist; Create a blank schematic page; The symbols of the components are placed on the blank schematic diagram page according to the netlist, and the symbols of the components are connected to obtain the circuit schematic diagram of the target circuit.
6. The circuit schematic drawing method according to claim 1, characterized in that: The method further comprises: If the design situation does not meet the circuit design requirements, the netlist is modified according to the circuit design requirements.
7. The circuit schematic drawing method according to claim 1, characterized in that: The method further comprises: The circuit schematic is verified to obtain a verification result. If the verification result shows that there is an error in the circuit schematic, an error warning message is generated and the error position of the circuit schematic is marked.
8. A circuit schematic drawing device, characterized in that: The device comprises: An acquisition module, used to obtain circuit design requirements; A modeling module, used to obtain a first circuit module diagram and a second circuit module diagram according to the circuit design requirements; wherein the first circuit module diagram is used to characterize the properties of each sub-circuit, the function of each sub-circuit and the properties of each component in the target circuit targeted by the circuit design requirements in the first format, and the second circuit module diagram is used to characterize the connection relationship of each of the components in the target circuit targeted by the circuit design requirements in the first format; An XML processing module, used for generating an XML file of the target circuit according to the first circuit module diagram and the second circuit module diagram; A netlist generation module, used to obtain a netlist of the target circuit according to the XML file; wherein the netlist is used to characterize the design of the target circuit; A circuit schematic generating module is used to generate a circuit schematic of the target circuit according to the netlist if the design situation meets the circuit design requirements.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are executed.
Citation Information
Cited By
Circuit schematic diagram design method, device, equipment and medium
CN119808695A
Method and device for generating electrical schematic diagram of carrier rocket
CN120671220A