Method and device for automatically generating schematic circuit diagram sketch and storage medium

By using script functions and netlist information in the circuit design software, the circuit schematic sketches containing network tags, marked text and position information are extracted and generated, and the problem of poor readability of circuit schematic sketches in the prior art is solved, and fast and accurate circuit schematic generation is achieved.

CN120145949APending Publication Date: 2025-06-13LINGYUN GROUP WUHAN
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510270618.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

Existing circuit design software cannot automatically generate easy-to-read circuit schematic sketches, and the board copying software can only import standard netlists and cannot contain location information, resulting in poor readability of the generated sketches.

Method used

By using the scripting function of the circuit drawing software and the file type of the netlist information of the circuit board, the target parameters of the netlist information, including network tags, labeled text and position information, and a circuit schematic sketch containing this information is generated in the circuit drawing software.

Benefits of technology

It realizes the rapid generation of easy-to-read circuit schematic sketches, avoiding errors that may be introduced by manual operations, and saving time and labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120145949A_ABST
    Figure CN120145949A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for automatically generating a schematic circuit diagram sketch and a storage medium, and belongs to the technical field of circuit design, and the method comprises the following steps: extracting target parameters of netlist information by using a script function of circuit drawing software and a file type of the netlist information of a circuit board; and based on the target parameters, generating a schematic circuit diagram sketch containing the network labels and the annotation characters in circuit drawing software. According to the method for automatically generating the schematic circuit diagram sketch provided by the invention, the file type of the netlist information is determined according to the netlist information of the circuit board, and the target parameters are accurately extracted according to the file type by utilizing the script function of the circuit drawing software, so that errors possibly introduced by manual operation are avoided; according to the method, the schematic circuit sketch containing the network label and the annotation characters is generated in the circuit drawing software according to the target parameters, the schematic circuit sketch easy to read can be quickly generated, and compared with traditional manual drawing, time and labor cost are greatly saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit design, and in particular, to a method, apparatus, and storage medium for automatically generating a circuit schematic diagram sketch. Background Art

[0002] When reverse mapping the schematic diagram of a circuit board, it is necessary to first obtain the connection relationship between each node (solder joint), and then draw a sketch of the circuit schematic diagram. After multiple rounds of adjustment, a readable circuit schematic diagram can be obtained. In many scenarios, network labels are more concise than connection lines.

[0003] Existing drawing software mainly includes two categories: circuit design software and circuit board copying software. Circuit design software does not have the function of automatically generating a sketch based on external information, while circuit board copying software can only import a standard netlist. Since the standard netlist does not contain position information, the elements in the generated sketch can only be arranged according to their names at most, resulting in poor readability. Summary of the Invention

[0004] In view of this, it is necessary to provide a method, apparatus, and storage medium for automatically generating a circuit schematic diagram sketch to achieve the automatic generation of a circuit schematic diagram sketch.

[0005] To achieve the above object, in a first aspect, the present invention provides a method for automatically generating a circuit schematic diagram sketch, including: Extracting target parameters of the netlist information by using the script function of circuit drawing software and the file type of the netlist information of the circuit board; Generating a circuit schematic diagram sketch including network labels and annotation texts in the circuit drawing software based on the target parameters.

[0006] In a possible implementation manner, the file type of the netlist information includes: Netlist file or instruction file; The netlist file contains network labels and position information; The instruction file contains instruction information for placing annotation texts and instruction information for placing network labels.

[0007] In a possible implementation manner, the extracting the target parameters of the netlist information by using the script function of circuit drawing software and the file type of the netlist information of the circuit board includes: When the file type is a netlist file, preprocessing the netlist file; Extracting the target parameters based on the starting characters of the preprocessed netlist file.

[0008] In a possible implementation manner, before the extracting the target parameters of the netlist information by using the script function of circuit drawing software and the file type of the netlist information of the circuit board, it further includes: Obtain the netlist information of the circuit board through a tester.

[0009] In a possible implementation, after generating a circuit schematic draft containing network labels and annotation texts in the circuit drawing software based on the target parameters, it further includes: Determine the component pins based on the annotation texts in the circuit schematic draft, and replace the network labels in the circuit schematic draft with connecting lines; Draw a circuit schematic based on the component pins and the connecting lines.

[0010] In a possible implementation, the target parameters include: Network labels, annotation texts, and position information.

[0011] In a possible implementation, the circuit drawing software includes any one of the following: Protel, Altium Designer, or EasyEDA.

[0012] In a second aspect, the present invention further provides a device for automatically generating a circuit schematic draft, including: An extraction module, configured to extract the target parameters of the netlist information by using the script function of the circuit drawing software and the file type of the netlist information of the circuit board; A generation module, configured to generate a circuit schematic draft containing network labels and annotation texts in the circuit drawing software based on the target parameters.

[0013] In a third aspect, the present invention further provides an electronic device, including a memory and a processor, wherein The memory is used to store a program; The processor is coupled to the memory and is configured to execute the program stored in the memory to implement the method for automatically generating a circuit schematic draft in any of the above implementations.

[0014] In a fourth aspect, the present invention further provides a computer-readable storage medium for storing computer-readable programs or instructions, and when the programs or instructions are executed by a processor, the steps in the method for automatically generating a circuit schematic draft in any of the above implementations can be implemented.

[0015] The beneficial effects of the present invention are as follows: The method, device, and storage medium for automatically generating a circuit schematic diagram sketch provided by the present invention determine the file type of the netlist information based on the netlist information of the circuit board, and utilize the script function of the circuit drawing software to accurately extract target parameters according to the file type, avoiding errors that may be introduced by manual operations. According to the target parameters, a circuit schematic diagram sketch including network labels and annotation texts is generated in the circuit drawing software, which can quickly generate an easy-to-read schematic diagram sketch. Compared with the traditional manual drawing, it greatly saves time and labor costs. Description of the Drawings

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0017] Figure 1 Schematic flow chart of an embodiment of the method for automatically generating a circuit schematic diagram sketch provided by the present invention; Figure 2 For the present invention Figure 1 Schematic flow chart of an embodiment of S102 in the present invention; Figure 3 Schematic flow chart of an embodiment of the method for generating a circuit schematic diagram sketch based on a netlist file provided by the present invention; Figure 4 Schematic flow chart of an embodiment of the method for generating a circuit schematic diagram sketch based on an instruction file provided by the present invention; Figure 5 Schematic structural diagram of an embodiment of the device for automatically generating a circuit schematic diagram sketch provided by the present invention; Figure 6 Schematic structural diagram of an embodiment of the electronic device provided by the present invention. Detailed Embodiments

[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.

[0019] In the description of the embodiments of the present invention, unless otherwise specified, the meaning of "a plurality" is two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0020] In the embodiments of the present invention, the descriptions such as "first", "second", etc. involved are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Therefore, the technical features defined with "first" and "second" may explicitly or implicitly include at least one such feature.

[0021] Referring to "embodiments" herein means that the specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.

[0022] The present invention provides a method, device, and storage medium for automatically generating a schematic circuit diagram sketch, which will be described separately below.

[0023] Figure 1 It is a schematic flowchart of an embodiment of the method for automatically generating a schematic circuit diagram sketch provided by the present invention, as Figure 1 shown, the method for automatically generating a schematic circuit diagram sketch includes: S101. Extract target parameters of the netlist information by using the script function of the circuit drawing software and the file type of the netlist information of the circuit board.

[0024] It should be noted that the execution subject of the method for automatically generating a schematic circuit diagram sketch provided by the present invention may be an electronic device, and a circuit drawing software is installed on the electronic device.

[0025] First, it is necessary to obtain the netlist information of the circuit board. The netlist information is a data file describing the connection relationship between components on the circuit board. The netlist information can be obtained by scanning, testing the circuit board, or extracting from relevant design files, for example, it can be obtained through a tester.

[0026] The file types of netlist information are netlist files or instruction files, and the structures of netlist files and instruction files are different. Select a suitable circuit drawing software, such as Protel, Altium Designer, or EasyEDA, etc. These circuit drawing softwares usually provide a scripting function that allows users to achieve automated operations by writing scripts. By invoking the scripting function of the circuit drawing software, parse the corresponding file type and extract the target parameters of the netlist information.

[0027] In some embodiments of the present invention, the target parameters include: network labels, annotation texts, and position information.

[0028] The network label is a visual symbol for a set of nodes with the same electrical characteristics in a circuit (such as VCC, GND, SPI_CLK), which can replace physical connections in a schematic diagram to simplify the representation of complex circuits.

[0029] The annotation text is the text information associated with component pins, test points, or functional areas. According to the pin information in the netlist file, the annotation text can be generated at the corresponding coordinates.

[0030] The position information is the coordinate information of component pins.

[0031] S102. Based on the target parameters, generate a circuit schematic diagram sketch containing network labels and annotation texts in the circuit drawing software.

[0032] Input the extracted target parameters into the circuit drawing software. The circuit drawing software can automatically generate a circuit schematic diagram sketch containing network labels and annotation texts in the drawing area according to these parameters. The network labels are used to identify each network connection point in the circuit, and the annotation texts can provide explanations about component functions, parameters, etc.

[0033] In summary, the method for automatically generating a circuit schematic diagram sketch provided by the embodiments of the present invention utilizes the scripting function of the circuit drawing software to accurately extract the target parameters according to the file types of the netlist information of the circuit board, avoiding errors that may be introduced by manual operations. Generate a circuit schematic diagram sketch containing network labels and annotation texts in the circuit drawing software according to the target parameters, which can quickly generate an easy-to-read schematic diagram sketch, saving a great deal of time and labor costs compared with traditional manual drawing.

[0034] In some embodiments of the present invention, the file types of the netlist information include: Netlist files or instruction files; The netlist file contains network labels and position information; The instruction file contains instruction information for placing annotation texts and instruction information for placing network labels.

[0035] Exemplarily, there are two types of circuit board netlist files output by the tester, namely the netlist file and the instruction file.

[0036] The netlist file is a structured text file that contains network labels, annotation texts, and coordinates. The netlist file is a netlist file based on the standard Protel netlist, plus location information, and its structure is as follows: / / Network label 1, you can write any comment here { NetR1_1 R1-1,300,1500 R2-1,1000,1500 } / / Network label 2 { GND R1-2,300,1100 R2-2,1000,1100 } As described above, NetR1_1 represents the network label; R1-1 is the annotation text used to represent the pin; (300,1500) is the location information representing the coordinates of the pin.

[0037] The instruction file is a text file containing operation instructions. Among them, PutText represents placing annotation text, and PutNet represents placing network labels, and its structure is as follows: / / The first node PutText R1-1,300,1500 PutNet NetR1_1, 300,1600 / / The second node PutText R2-1, 1000,1500 PutNet NetR1_1, 1000,1600 / / The third node PutText R1-2,300,1100 PutNet GND, 300,1200 / / Comment information test, you can write any comment here PutText R2-2, 1000,1100 PutNet GND, 1000,1200 The instruction file and the netlist file are ordinary text files, and you can also customize special suffix names.

[0038] In some embodiments of the present invention, such as Figure 2As shown, step S102 includes: S202. When the file type is a netlist file, preprocess the netlist file; S202. Extract the target parameters based on the starting character of the preprocessed netlist file.

[0039] When the file type is a netlist file, preprocess the netlist file. For example, blank lines and comment content can be ignored to obtain a preprocessed netlist file.

[0040] Identify the starting character of the preprocessed netlist file (such as {), first extract the network name, parse the pin name and coordinates line by line, generate annotation text and network labels, and obtain the target parameters.

[0041] Optionally, when the file type is an instruction file, preprocess the instruction file. For example, blank lines and comment content can be ignored to obtain a preprocessed instruction file.

[0042] Obtain the network name, annotation text, and location information according to the preprocessed instruction file.

[0043] In some embodiments of the present invention, before step S101, it further includes: Obtain the netlist information of the circuit board through a tester.

[0044] The netlist information of the circuit board can be obtained by using a tester. There are two types of circuit board netlist files output by the tester, namely netlist files and instruction files.

[0045] In some embodiments of the present invention, after step S102, it further includes: Determine the component pins based on the annotation text in the circuit schematic diagram sketch, and replace the network labels in the circuit schematic diagram sketch with wires; Draw a circuit schematic diagram based on the component pins and the wires.

[0046] The generated circuit schematic diagram includes network labels and annotations. The network labels correspond to the netlist, and the annotations correspond to the component pin names. In the schematic diagram, the two correspond one by one and are close together, which is convenient for the drafter to drag them together when adjusting.

[0047] According to the circuit diagram reading requirements, the drafter places component symbols, drags the network labels and annotations of the nodes, deletes or changes the annotations of each node as appropriate, changes the network labels to wires or adjusts them to the bus form, and it is recommended to adjust them in the order of components to ensure no omission or error.

[0048] In some embodiments of the present invention, the circuit drawing software includes any one of the following: Protel, Altium Designer, or LiChuang EDA.

[0049] In the embodiments of the present invention, the circuit drawing software can be EDA software. The EDA software can be Protel, Altium Designer, or domestic software such as LiChuang EDA.

[0050] The method for automatically generating a circuit schematic sketch provided by the embodiments of the present invention can be based on common circuit schematic EDA software (such as Protel). Subsequently, the schematic can be directly adjusted and optimized in the EDA software, making full use of the powerful functions of the EDA software, with good compatibility and low cost.

[0051] In addition, sketch drawing is an important link in the reverse of circuit schematics. In the embodiments of the present invention, by using the script function in Protel (Altium Designer), the circuit board netlist information output by a certain tester is converted into a circuit schematic sketch containing network labels and annotation texts, which can effectively improve the efficiency of circuit schematic reverse.

[0052] The software usage method is as follows: S1. Install the script.

[0053] S1.1. Open the script project, select the "File" - "Open" menu in AD, a "Open" dialog box will pop up, select the file with the suffix PrjScr. For example, if the project is N2S, the project file name is N2S.PrjScr.

[0054] S1.2. Right-click on the toolbar, and select "Customize..." in the pop-up menu to customize the toolbar. It is recommended to close all other files before customization for easier subsequent file selection.

[0055] S1.3. A "Customizing DefaultEditor Editor" dialog box will pop up. In the "Categories" list in the "Commands" area, select "[Scripts]". At this time, select "N2S.PAS" in the "Commands" list and drag it to the toolbar. In the pop-up "Edit Command" dialog box, customize the name and icon. For example, customize the title as "N2S.PAS" and the description as "Netlist to Circuit Diagram Software". At this time, a "N2S" button will appear in the AD software menu bar.

[0056] S1.4. In the "Project" sidebar of the AD software, right-click on the "N2S.PRJSCR" project and select the "CloseProject" command to close the N2S project to avoid automatically loading this project every time AD is opened.

[0057] S2. Use a script.

[0058] S2.1. Click on the "N2S" icon in the AD software menu bar. A netlist to circuit diagram conversion program dialog box will pop up. Select the file type according to the file to be converted, such as "instruction file" or "netlist file", click the "Open" button, and then convert.

[0059] After the conversion is completed, the AD software will pop up a prompt. There is no essential difference between different versions.

[0060] The generated schematic diagram contains net labels and annotations. The net labels correspond to the netlist, and the annotations correspond to the component pin names. In the schematic diagram, the two are in one-to-one correspondence and close together, which is convenient for the drafter to drag them together when making adjustments.

[0061] According to the circuit diagram reading requirements, the drafter places component symbols, drags the net labels and annotations of the nodes, deletes or changes the annotations of each node as appropriate, changes the net labels to connections or adjusts them to the bus form. It is recommended to adjust them in the order of components to ensure no omissions or mistakes.

[0062] There are two types of circuit board netlist files output by a certain tester.

[0063] One is based on the standard Protel netlist, plus location information. The example is as follows: / / Net label 1, write any remarks { NetR1_1 R1-1,300,1500 R2-1,1000,1500 } / / Net label 2 { GND R1-2,300,1100 R2-2,1000,1100 } The other is instruction information. PutText represents placing annotation text, and PutNet represents placing network labels. The example is as follows: / / The 1st node PutText R1-1,300,1500 PutNet NetR1_1, 300,1600 / / The 2nd node PutText R2-1, 1000,1500 PutNet NetR1_1, 1000,1600 / / The 3rd node PutText R1-2, 300, 1100 PutNet GND, 300, 1200 / / Remarks information test, write casually PutText R2-2, 1000, 1100 PutNet GND, 1000, 1200 The instruction file and the netlist file are ordinary text files. Of course, special suffix names can also be customized.

[0064] S3. Script implementation process.

[0065] S3.1. Convert the netlist file to a schematic sketch.

[0066] Figure 3 It is a schematic diagram of the process of an embodiment of the method for generating a circuit schematic sketch based on a netlist file provided by the present invention. As Figure 3 shown, it includes: S301. Open the netlist file.

[0067] S302. Pretreatment: Ignore blank lines and remarks.

[0068] S303. Judge the starting character of the netlist: Judge whether it is the starting character of the netlist, and start counting. According to the count, judge the type. The next line is the network name, and then the annotation and position information.

[0069] S304. Extract parameters: Obtain the network name, annotation text, and position information.

[0070] S305. Draw a sketch: According to the above parameters, place the netlist label and annotation text at the specified position in the schematic diagram.

[0071] S3.2. Convert the instruction file to a schematic sketch.

[0072] Figure 4 It is a schematic diagram of the process of an embodiment of the method for generating a circuit schematic sketch based on an instruction file provided by the present invention. As Figure 4 shown, it includes: S401. Open the instruction file.

[0073] S402. Pretreatment: Ignore blank lines and remarks.

[0074] S403. Extract parameters: Obtain the network name, annotation text, and position information.

[0075] S404. Draw a sketch: According to the above parameters, place the netlist label and annotation text at the specified position in the schematic diagram.

[0076] The method for automatically generating a schematic circuit diagram sketch provided by the embodiment of the present invention has the following advantages: First, it can quickly generate an easy-to-read schematic circuit diagram sketch, improving efficiency compared with the existing methods.

[0077] Second, based on common circuit schematic EDA software (such as Protel), the schematic circuit diagram can be directly adjusted and optimized in the EDA software later, making full use of the powerful functions of the EDA software, with good compatibility and low cost.

[0078] To better implement the method for automatically generating a schematic circuit diagram sketch in the embodiment of the present invention, correspondingly, based on the method for automatically generating a schematic circuit diagram sketch, as Figure 5 shown, the embodiment of the present invention also provides a device for automatically generating a schematic circuit diagram sketch. The device 500 for automatically generating a schematic circuit diagram sketch includes: An extraction module 501, configured to extract target parameters of the netlist information by using the script function of the circuit drawing software and the file type of the netlist information of the circuit board; A generation module 502, configured to generate a schematic circuit diagram sketch including network labels and annotation texts in the circuit drawing software based on the target parameters.

[0079] The device 500 for automatically generating a schematic circuit diagram sketch provided in the above embodiment can implement the technical solutions described in the method embodiment for automatically generating a schematic circuit diagram sketch. The specific implementation principles of the above modules or units can refer to the corresponding content in the method embodiment for automatically generating a schematic circuit diagram sketch, which will not be elaborated here.

[0080] As Figure 6 shown, the present invention also correspondingly provides an electronic device 600. The electronic device 600 includes a processor 601, a memory 602, and a display 603. Figure 6 Only some components of the electronic device 600 are shown, but it should be understood that it is not required to implement all the shown components, and more or fewer components can be alternatively implemented.

[0081] The processor 601 may be a central processing unit (CPU), a microprocessor, or other data processing chips in some embodiments, and is configured to run program codes stored in the memory 602 or process data, such as the method for automatically generating a schematic circuit diagram sketch in the present invention.

[0082] In some embodiments, the processor 601 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 601 may be local or remote. In some embodiments, the processor 601 may be implemented on a cloud platform. In some embodiments, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.

[0083] The memory 602 may be an internal storage unit of the electronic device 600 in some embodiments, such as a hard disk or memory of the electronic device 600. The memory 602 may also be an external storage device of the electronic device 600 in other embodiments, such as a plug-in hard disk equipped on the electronic device 600, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc.

[0084] Furthermore, the memory 602 may include both the internal storage unit and the external storage device of the electronic device 600. The memory 602 is used to store the application software installed in the electronic device 600 and various types of data.

[0085] The display 603 may be an LED display, a liquid crystal display, a touch liquid crystal display, an Organic Light-Emitting Diode (OLED) toucher, etc. in some embodiments. The display 603 is used to display the information in the electronic device 600 and to display a visual user interface. The components 601 - 603 of the electronic device 600 communicate with each other through a system bus.

[0086] In one embodiment, when the processor 601 executes the program for automatically generating a circuit schematic diagram sketch in the memory 602, the following steps may be implemented: Extract the target parameters of the netlist information by using the script function of the circuit drawing software and the file type of the netlist information of the circuit board; Generate a circuit schematic diagram sketch including network labels and annotation texts in the circuit drawing software based on the target parameters.

[0087] It should be understood that when the processor 601 executes the program for automatically generating a circuit schematic diagram sketch in the memory 602, in addition to the above functions, other functions may also be implemented. For specific details, reference may be made to the description of the corresponding method embodiments above.

[0088] Furthermore, embodiments of the present invention do not specifically limit the type of the mentioned electronic device 600. The electronic device 600 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop, etc. Exemplary embodiments of the portable electronic device include, but are not limited to, portable electronic devices running IOS, android, microsoft, or other operating systems. The above portable electronic devices may also be other portable electronic devices, such as a laptop with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 600 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0089] Correspondingly, embodiments of the present invention further provide a computer-readable storage medium. The computer-readable storage medium is used to store computer-readable programs or instructions. When the programs or instructions are executed by a processor, the steps or functions in the method for automatically generating a schematic circuit diagram sketch provided by the above method embodiments can be implemented.

[0090] Those skilled in the art can understand that all or part of the processes of implementing the above method embodiments can be completed by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program. The computer program can be stored in a computer-readable storage medium. Among them, the computer-readable storage medium is a disk, an optical disc, a read-only memory, or a random access memory, etc.

[0091] The method, apparatus, and storage medium for automatically generating a schematic circuit diagram sketch provided by the present invention have been introduced in detail above. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A method for automatically generating a circuit schematic sketch, characterized in that: include: Utilizing the script function of the circuit drawing software and the file type of the netlist information of the circuit board, the target parameters of the netlist information are extracted; Based on the target parameters, a circuit schematic sketch including network labels and annotation text is generated in the circuit drawing software.

2. The method for automatically generating a circuit schematic sketch according to claim 1, characterized in that: The file types of the netlist information include: Netlist file or instruction file; The netlist file includes network labels and location information; The instruction file contains instruction information for placing annotation text and instruction information for placing network labels.

3. The method for automatically generating a circuit schematic sketch according to claim 2, characterized in that: The method of utilizing the script function of the circuit drawing software and the file type of the netlist information of the circuit board to extract the target parameters of the netlist information includes: When the file type is a netlist file, preprocessing the netlist file; The target parameters are extracted based on the starting characters of the preprocessed netlist file.

4. The method for automatically generating a circuit schematic sketch according to claim 1, characterized in that: The method further comprises: utilizing the script function of the circuit drawing software and the file type of the netlist information of the circuit board to extract the target parameters of the netlist information; The netlist information of the circuit board is obtained through a tester.

5. The method for automatically generating a circuit schematic sketch according to claim 1, characterized in that: After generating a circuit schematic sketch including network labels and annotation text in the circuit drawing software based on the target parameters, the method further includes: Determine component pins based on the annotated text in the circuit schematic sketch, and replace network labels in the circuit schematic sketch with connecting lines; Based on the component pins and the connections, a circuit schematic is drawn.

6. The method for automatically generating a circuit schematic sketch according to any one of claims 1 to 5, characterized in that: The target parameters include: Network labels, annotation text and location information.

7. The method for automatically generating a circuit schematic sketch according to any one of claims 1 to 5, characterized in that: The circuit drawing software includes any one of the following: Protel, Altium Designer or EasyEDA.

8. A device for automatically generating a circuit schematic sketch, characterized in that: include: An extraction module, for extracting target parameters of the netlist information by using a script function of the circuit drawing software and a file type of the netlist information of the circuit board; A generation module is used to generate a circuit schematic sketch containing network labels and annotation text in the circuit drawing software based on the target parameters.

9. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the method for automatically generating a circuit schematic sketch as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the method for automatically generating a circuit schematic sketch as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Circuit netlist conversion method, circuit netlist conversion control method and circuit netlist conversion control device

    CN121302996A