A method for automatically generating scripts through EDA layout

The EDA layout automatic generation script method solves the problems of EDA layout design complexity and iteration difficulties, realizes automated layout and rapid design, and improves design efficiency and layout quality.

CN116011368BActive Publication Date: 2024-09-24SHENZHEN HUADA EMPYREAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310053508.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-03
Publication Date
2024-09-24
Estimated Expiration
2043-02-03

AI Technical Summary

Technical Problem

In EDA layout design, the design complexity is high, the time is long, and the reuse rate of devices and sub-circuits is low, which makes it difficult to iterate the layout. Moreover, the modification of parameterized devices affects the entire layout, affecting the accuracy and quality of the layout.

Method used

Through the EDA layout automatic generation script method, configure the generation script type and file name, extract device and sub-circuit information, write it into a json file, and call the post-processing script to generate a new layout, simplify device layout and connection, and realize automated design.

Benefits of technology

It improves the efficiency of layout design, reduces manual layout operations, makes the generated layout more beautiful, saves space, quickly generates and modifies layouts, and significantly reduces the iteration workload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116011368B
    Figure CN116011368B
Patent Text Reader

Abstract

The present invention provides a method for automatically generating scripts through EDA layout, comprising the following steps: configuring the type of script generation, the script generation path and the script file name; extracting the information of the device unit and the subcircuit in the layout; writing the script configuration information and the layout information into a json file; calling the post-processing script file to process the information in the json file and generate a script file. The present invention also provides a method for modifying the script file to generate a layout. The present invention can improve the design and iteration efficiency of the layout.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of EDA design, and in particular to a method for automatically generating scripts through an EDA layout. Background Art

[0002] In the field of EDA layout design, the layout has high design complexity, long design time, and low reuse rate of devices and sub-circuits. If the layout is slightly adjusted, it will cost a lot of manpower and material resources to iterate the layout.

[0003] On the other hand, the number of devices in the layout is huge and the hierarchical structure is complex, making it very difficult to accurately place and connect devices; the parameter modification of the parameterized device (PCell) will also affect the layout of the entire layout. The accuracy and quality of the layout are key factors to ensure tape-out.

[0004] Therefore, there is an urgent need for a method that can help layout design engineers design layouts more efficiently and simply, and realize device connection automation and layout design process flow. Summary of the invention

[0005] In order to solve the deficiencies in the prior art, the purpose of the present invention is to provide a method for automatically generating scripts through EDA layout, generating scripts through layout, and then modifying the scripts to generate new layouts, thereby improving the design efficiency of the layout.

[0006] To achieve the above object, the present invention provides a method for automatically generating a script through an EDA layout, comprising the following steps:

[0007] Configure the generated script type, script generation path and script file name;

[0008] Extract information about device units and subcircuits in the layout;

[0009] Write script configuration information and layout information into a json file;

[0010] Call the post-processing script file to process the information in the json file and generate a script file.

[0011] Furthermore, the script file types include Python type and Tcl type, the script file name is a visible string and ends with a corresponding script file type suffix.

[0012] Furthermore, the information of the device units and sub-circuits in the layout includes extracting device names, device attributes, device placement positions, device welding relationships, and adaptive device automatic connection relationships.

[0013] Furthermore, the step of writing the script configuration information and layout information into a json file, and the step of generating the json file further includes writing the extracted device unit and sub-circuit information into the json file in a json format.

[0014] Furthermore, the post-processing script file is write_script_file.py.

[0015] To achieve the above object, the present invention also provides a method for generating a layout, comprising the following steps:

[0016] Generate a script file using the above method of automatically generating a script through an EDA layout;

[0017] Modify the script file;

[0018] Run the script to generate a new layout.

[0019] Furthermore, the modifying of the script file includes modifying the information of the device position, connection relationship and graphic relationship in the script file as needed.

[0020] To achieve the above-mentioned purpose, the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a program running on the processor, and when the processor runs the program, the steps of the above-mentioned method of automatically generating scripts through EDA layout are executed.

[0021] To achieve the above object, the present invention also provides a computer-readable storage medium on which computer instructions are stored, and when the computer instructions are executed, the steps of the method for automatically generating a script through an EDA layout are executed.

[0022] The method of automatically generating scripts through EDA layout of the present invention has the following beneficial effects compared with the prior art:

[0023] (1) The present invention eliminates a large number of manual layout operations for device positions, so that various devices and sub-circuit units can be automatically laid out, making the layout and routing results more beautiful, saving more space, and improving the layout iteration efficiency;

[0024] (2) The layout generation script can quickly generate a gds file, and the layout can also be quickly modified through the script to improve layout design efficiency;

[0025] (3) Through EDA layout generation script technology, the device position, connection relationship, graphic relationship and other information in the script file are adjusted to generate a new layout, which can save the workload of iterative layout.

[0026] Other features and advantages of the present invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0028] Figure 1 A flow chart of a method for automatically generating scripts through EDA layout according to the present invention;

[0029] Figure 2 This is a schematic diagram of the layout of the subcircuit demo1 designed using EDA layout drawing software;

[0030] Figure 3 This is a schematic diagram of the circuit test1 designed by EDA layout drawing software;

[0031] Figure 4 Schematic diagram of the interface for generating script file path and file name for configuration;

[0032] Figure 5 This is a schematic diagram of a json file generated according to Example 2 of the present invention;

[0033] Figure 6 This is a schematic diagram of a script file generated according to Embodiment 2 of the present invention;

[0034] Figure 7 A schematic diagram of a thumbnail of a version graph gds file generated by a script file according to Embodiment 2 of the present invention;

[0035] Figure 8 A detailed schematic diagram of generating a version graph gds file through a script file according to Embodiment 2 of the present invention;

[0036] Fig. 9 This is a schematic diagram of the layout generated after modifying the script file. DETAILED DESCRIPTION

[0037] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0038] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0039] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0040] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". "Plurality" should be understood as two or more.

[0041] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0042] Example 1

[0043] Figure 1 The following is a flow chart of a method for automatically generating scripts through EDA layout according to the present invention. Figure 1 , the method of automatically generating scripts through EDA layout of the present invention is described in detail.

[0044] In step S1, the script type, script generation path and script file name are configured.

[0045] In an embodiment of the present invention, a generated script type is configured, and script file types include Python, Tcl, etc. The script file name is a visible string and ends with a corresponding script file type suffix.

[0046] In step S2, information of device units and sub-circuits in the layout is extracted.

[0047] In an embodiment of the present invention, information of device units and sub-circuits in the layout is extracted, including device names, device attributes, device placement positions, device welding relationships, and adaptive device automatic connection relationships.

[0048] In step S3, the script configuration information and layout information are written into a json file.

[0049] In an embodiment of the present invention, the device unit and sub-circuit information extracted in step S2 is written into a file in json format.

[0050] In step S4, a post-processing script file is called to process the information in the json file to generate a script file.

[0051] In an embodiment of the present invention, a post-processing script file such as write_script_file.py is used to process the information in the json file to generate a script file; the script takes the json file generated in step S3 as input.

[0052] In step S5, the script file is modified to regenerate a new layout.

[0053] In an embodiment of the present invention, the device position, connection relationship, graphic relationship and other information in the script file are modified as needed, and after the modification, the script is directly run to regenerate a new layout.

[0054] Example 2

[0055] The method of the present invention is described below based on a specific embodiment.

[0056] First, design the subcircuit demo1 layout using EDA layout drawing software, such as Figure 2 As shown; then design the circuit test1 layout through EDA layout drawing software, as shown Figure 3 shown.

[0057] According to step S1, configure the generated script file path and file name, such as Figure 4 shown.

[0058] According to step S2, information of device units and sub-circuits in the layout is extracted, including the demo1 layout and the test1 layout.

[0059] According to step S3, a json file is generated, part of which is as follows Figure 5 shown.

[0060] According to step S4, the script file function is called to process the information in the json file to generate a script file, such as Figure 6 Then, run the script file to generate the corresponding layout, as shown in Figure 7 and Figure 8 shown.

[0061] According to step S5, modify the position of the device. Before the modification of the script test1.py, the placement positions of the devices I0 (subcircuit demo1), I_0 (the leftmost device), and I_1 (the rightmost device) are I0: (130.027, 0.0), I_0: (0.0, 0.0), and I_1: (568.808, 0.0), respectively; after the modification of the script test1.py, the placement positions of the devices I0, I_0, and I_1 are I0: (130.027, 0.0), I_0: (0.0, 50.0), and I_1: (568.808, -50.0), respectively. Then, the script test1.py is modified to generate a version diagram gds file, and the devices are automatically laid out according to the connection information, such as Fig. 9 shown.

[0062] Example 3

[0063] The embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a program running on the processor, and the processor executes the steps of the method for automatically generating a script through an EDA layout when running the program. The method for automatically generating a script through an EDA layout is described in the above part and will not be repeated here.

[0064] Example 4

[0065] An embodiment of the present invention also provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed, the steps of the method for automatically generating scripts through EDA layout are executed. The method for automatically generating scripts through EDA layout is described in the previous part and will not be repeated here.

[0066] Those skilled in the art can understand that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions recorded in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for automatically generating a script through an EDA layout, comprising the following steps: Configure the generated script type, script generation path and script file name; Extracting information about device units and subcircuits in the layout, wherein the information about device units and subcircuits in the layout includes extracting device names, device attributes, device placement positions, device welding relationships, and adaptive device automatic connection relationships; Write the script configuration information and layout information into a json file to generate a json file, including writing the extracted device unit and subcircuit information into the json file in json format; Call the post-processing script file to process the information in the json file and generate a script file.

2. The method for automatically generating scripts through EDA layout according to claim 1, characterized in that: The script types include Python type and Tcl type. The script file name is a visible string and ends with a suffix corresponding to the script file type.

3. The method for automatically generating scripts through EDA layout according to claim 1, characterized in that: The post-processing script file is write_script_file.py.

4. A method for generating a layout, comprising the following steps: Generate a script file using the method for automatically generating a script through an EDA layout as described in any one of claims 1 to 3; Modify the script file; Run the script to generate a new layout.

5. The method for generating a layout according to claim 4, characterized in that: The modifying of the script file includes modifying the information of the device position, connection relationship and graphic relationship in the script file as needed.

6. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a program running on the processor, and the processor executes the steps of the method for automatically generating a script through an EDA layout as described in any one of claims 1 to 3 when running the program.

7. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed, the steps of the method for automatically generating scripts through EDA layout described in any one of claims 1 to 3 are executed.