Automatic drawing method, device and equipment for equal-length compensation of PCB (Printed Circuit Board) and medium
By automatically importing compensation length routing using package library files with equal length, the inefficiency problem in pin multiplexing scenarios in PCB design is solved, and fast and accurate compensation length drawing is achieved, which improves design efficiency and reliability.
Patent Information
- Application Number
- CN202510328088.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-07-04
AI Technical Summary
In PCB design, the compensation length trace drawing efficiency in pin multiplexing scenarios is inefficient and errors are prone to occur, especially in scenarios such as clock signals and high-speed data buses, and it is difficult for the prior art to achieve accurate trace length adjustment.
By using the package library file obtained by packaging the second component module according to the equal length, the compensation length trace of the first component module is automatically extracted and imported, and the compensation length trace information recorded in the package library file is used to achieve fast isometric operation.
Improve the efficiency of PCB compensation length trace drawing in pin multiplexing scenarios, avoid manual drawing errors, ensure the correct correspondence between the compensation trace and the signal path, and improve the reliability and efficiency of the design.
Smart Images

Figure CN120257933A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of PCB design, and particularly to a method, device, equipment and medium for automatically drawing PCB equal-length compensation. Background Art
[0002] With the development of electronic systems towards high speed and high density, signal delay compensation (SDC) has become a key challenge in PCB (Printed Circuit Board) design. Especially in scenarios such as clock signals and high-speed data buses, length matching directly affects signal integrity (SI) and timing, and needs to be achieved through precise trace length adjustment.
[0003] In the current PCB design field, when engineers equalize the length of components such as core modules or chips, they need to, according to the existing equal-length file (i.e., equal-length table), further combine with the pin positions on the PCB board, find the equal-length corresponding to the pins from the equal-length table, and finally use the design software to draw the trace lengths that need to be compensated for the network. For engineers with insufficient experience, they need to open and operate multiple files simultaneously and repeatedly check the equal-length table for trace drawing. If there is pin reuse, if the above-mentioned method of repeatedly searching the equal-length table for drawing is still used, not only is the efficiency low, but also errors are prone to occur.
[0004] Therefore, how to improve the drawing efficiency of PCB compensation length traces in the case of pin reuse is a technical problem that needs to be solved currently. Summary of the Invention
[0005] This application provides a method, device, equipment and medium for automatically drawing PCB equal-length compensation to solve the technical problem of how to improve the drawing efficiency of PCB compensation length traces in the case of pin reuse.
[0006] To solve the above technical problem, in the first aspect, an embodiment of this application provides a method for automatically drawing PCB equal-length compensation, including:
[0007] Select a corresponding package library file according to the first component module to be equalized in length; wherein, the package library file is obtained by packaging the second component module with equalized length; the first component module has the same structure as the second component module;
[0008] Obtain a number of first compensation length traces from the package library file according to the first component module;
[0009] Import all the obtained first compensation length traces into the first component module to complete the equal-length compensation drawing of the first component module.
[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects: Since the package library file is packaged according to the second component module that has completed the equal-length operation, the packaged package library file records the compensation length traces that need to be drawn for each type of pin in the second component module. Since the second component module has the same structure as the first component module, and the component module structure determines the signal transmission delay corresponding to each pin, when facing the situation of multiplexed pins, the trace lengths that need to be compensated for the corresponding pins of the two modules are also the same. After finding the corresponding packaged package library file and finding the compensation length trace drawn for the second pin corresponding to the first pin from the package library, and importing the compensation length trace into the first component module, the equal-length operation can be quickly completed, effectively improving the equal-length efficiency.
[0011] In some embodiments of the first aspect of the present application, the package library file is obtained by packaging according to the second component module with equal length completed, including:
[0012] Obtain the second compensation length traces connected to each first pin in the second component module; the first pin is the pin that needs to be equal-length in the second component module;
[0013] According to the first pin, import all the currently obtained second compensation length traces into the preset mechanical layer of the package library file to obtain the packaged package library file.
[0014] Compared with the prior art, the above embodiments have the following beneficial effects: By importing the compensation length traces into the mechanical layer, interference to the main signal layer is avoided, and the reliability of subsequent designs is improved; at the same time, by packaging the second compensation length traces, when the second component module is optimized, only the package library needs to be updated, and there is no need to re-design other first component modules.
[0015] In some embodiments of the first aspect of the present application, the equal-length steps of the second component module include:
[0016] Obtain equal-length information according to the second component module; the equal-length information includes: the length of each second compensation length trace and the network to which each second compensation length trace belongs;
[0017] Generate the corresponding second compensation length traces according to the length;
[0018] Locate the first pin to which the corresponding second compensation length trace needs to be connected according to the network;
[0019] Connect the second compensation length trace to the first pin.
[0020] Compared with the prior art, the above embodiments have the following beneficial effects: By automatically extracting equal-length information and uniformly generating second compensation length traces, the error risk caused by manually drawing equal-length lines is avoided; at the same time, the first pin is located according to the network, thereby improving the connection efficiency between the second compensation length trace and the first pin and ensuring the correct correspondence between the compensation trace and the signal path.
[0021] In some embodiments of the first aspect of the present application, the obtaining of the equal-length information according to the second component module includes:
[0022] Determine whether there is an equal-length table in the second component module;
[0023] If it exists, obtain the equal-length information from the equal-length table; if it does not exist, obtain the equal-length information according to the PCB file corresponding to the second component module.
[0024] Compared with the prior art, the above embodiments have the following beneficial effects: By extracting equal-length information from the equal-length table and directly extracting equal-length information from the PCB file, the acquisition of the package library under standardized data and non-standardized design is compatible, and a compensation scheme can still be quickly generated for projects without predefined equal lengths.
[0025] In some embodiments of the first aspect of the present application, the importing all the currently obtained second compensation length traces into a preset mechanical layer of the package library file according to the first pin to obtain the package library file after packaging includes:
[0026] Determine a third component module corresponding to the second component module in the preset mechanical layer of the package library; the third component module includes second pins corresponding to each of the first pins;
[0027] Take the imported second compensation length trace as the first compensation length trace, and connect the first compensation length trace to the corresponding second pin according to the connection relationship between the first pin and the second compensation length trace to obtain the package library file.
[0028] Compared with the prior art, the above embodiments have the following beneficial effects: Since there is a corresponding relationship between the first pin and the second pin, and each first pin has a second compensation length trace connected thereto, the first compensation length traces of each second pin in the third component module can be quickly and batch drawn through the connection relationship between the first pin and the second compensation length trace, improving the production efficiency of the package library file.
[0029] In some embodiments of the first aspect of the present application, the obtaining of several first compensation length traces from the package library file according to the first component module includes:
[0030] Determine the corresponding third component module from the preset mechanical layer of the package library file according to the second component module corresponding to the first component module;
[0031] Obtain the first compensation length traces connected to each of the second pins in the third component module.
[0032] Compared with the prior art, the above embodiments have the following beneficial effects: Since the first component module and the second component module have the same structure, and the third component module corresponds to the second component module, after finding the corresponding third component module in the corresponding package library file, batch equal-length compensation for any first component module can be realized, avoiding electrical rule violations caused by manually copying traces one by one, and improving work efficiency.
[0033] In some embodiments of the first aspect of the present application, the importing all the obtained first compensation length traces into the first component module to complete the equal-length compensation drawing of the first component module includes:
[0034] Regard the imported first compensation length traces as the third compensation length traces;
[0035] Determine the corresponding third pin in the first component module according to the second pin connected to the first compensation length trace;
[0036] Connect the third compensation length trace to the third pin to complete the equal-length compensation drawing of the first component module.
[0037] Compared with the prior art, the above embodiments have the following beneficial effects: After batch obtaining the first compensation length traces from the package library file, the third pin corresponding to the second pin can be quickly located through each second pin of the first compensation length trace. After connecting the third compensation length trace to the third pin, rapid batch drawing of the third pin compensation length traces is realized.
[0038] In a second aspect, an embodiment of the present application further provides a PCB equal-length compensation automatic drawing device, including: a package library file selection module, a first compensation length trace obtaining module, and an equal-length compensation drawing module;
[0039] Among them, the package library file selection module is used to select a corresponding package library file according to the first component module to be equal-length; wherein, the package library file is packaged according to the second component module with equal-length completed; the first component module and the second component module have the same structure;
[0040] The first compensation length trace obtaining module is configured to obtain a plurality of first compensation length traces from the package library file according to the first component module;
[0041] The equal length compensation drawing module is configured to import all the obtained first compensation length traces into the first component module to complete the equal length compensation drawing of the first component module.
[0042] In a third aspect, the present application further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the above-mentioned PCB equal length compensation automatic drawing method is implemented.
[0043] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium includes a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the above-mentioned PCB equal length compensation automatic drawing method. Description of the Drawings
[0044] Figure 1 It is a schematic flow chart of a PCB equal length compensation automatic drawing method provided in some embodiments of the present application;
[0045] Figure 2 It is another schematic flow chart of a PCB equal length compensation automatic drawing method provided in some embodiments of the present application;
[0046] Figure 3 It is a schematic structural diagram of a PCB equal length compensation automatic drawing device provided in some embodiments of the present application. Detailed Embodiments
[0047] In the current PCB design field, when engineers equalize the lengths of components such as core modules or chips, they need to further combine the pin positions of the PCB board with the existing equal length file (i.e., the equal length table) to find the equal length corresponding to the pins from the equal length table, and finally use the design software to draw the trace lengths that need to be compensated for the network. For engineers with insufficient experience, they need to open and operate multiple files simultaneously and repeatedly check the equal length table for trace drawing. When pin reuse occurs, if the above-mentioned method of repeatedly searching the equal length table for drawing is still used, not only is the efficiency low, but also errors are likely to occur.
[0048] To solve the above technical problems, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.
[0049] Embodiment 1
[0050] Please refer to Figure 1 , a method for automatically drawing PCB equal-length compensation provided by an embodiment of the present application, including S10 to S30, specifically:
[0051] S10: Select a corresponding package library file according to the first component module to be equal-length; wherein, the package library file is obtained by packaging the second component module after equal-length completion; the first component module has the same structure as the second component module.
[0052] Preferably, in some embodiments of the present application, both the first component module and the second component module refer to the core module components or chip components in the PCB source file. Each first component module and second component module includes several pins with the same function and has the same structure, such as having the same number of layers, via holes, etc. Each first component module and second component module can be opened by common PCB design software, such as AD (Altium Designer) software, etc.
[0053] Further, in some embodiments of the present application, the equal-length steps of the second component module include:
[0054] Obtain equal-length information according to the second component module; the equal-length information includes: the length of each second compensation length trace and the network to which each second compensation length trace belongs;
[0055] Generate the corresponding second compensation length trace according to the length;
[0056] Locate the first pin required to connect the corresponding second compensation length trace according to the network;
[0057] Connect the second compensation length trace to the first pin.
[0058] By automatically extracting equal-length information and uniformly generating the second compensation length trace, the risk of errors caused by manually drawing equal-length lines is avoided; at the same time, the first pin is located according to the network, thereby improving the connection efficiency between the second compensation length trace and the first pin and ensuring the correct correspondence between the compensation trace and the signal path.
[0059] Preferably, in some embodiments of the present application, the step of equalizing the second component module may further be: after generating the second compensation length traces of the second component module according to the equal-length information through PCB design software, in the PCB design software, move each generated second compensation length trace to the corresponding PIN (such as the pin of a chip component or the pin of a core module, which is also the first pin).
[0060] Further, in some embodiments of the present application, obtaining the equal-length information according to the second component module includes:
[0061] Determine whether there is an equal-length table for the second component module;
[0062] If it exists, obtain the equal-length information from the equal-length table; if it does not exist, obtain the equal-length information according to the PCB file corresponding to the second component module.
[0063] Preferably, in some embodiments of the present application, the equal-length table is stored in the second component module, where at least the following data is stored in the equal-length table: signal line name, impedance corresponding to each signal line, pins corresponding to high-speed signals, connectors corresponding to each pin, networks corresponding to each pin, lengths of traces corresponding to each pin, and an identifier indicating whether the backplane needs to compensate for equal length.
[0064] Preferably, in some embodiments of the present application, when there is no equal-length table, the step of obtaining the equal-length information according to the PCB file corresponding to the second component module is specifically: through PCB design software, open the PCB source file corresponding to the second component module, and obtain the trace lengths corresponding to each pin of the second component module and the network information corresponding to each pin from the PCB source file, so as to obtain the equal-length information.
[0065] It can be seen from the above preferred embodiments that by extracting equal-length information from the equal-length table and directly extracting equal-length information from the PCB file, the acquisition of the package library under standardized data and non-standardized design is compatible, and a compensation scheme can still be quickly generated for projects without predefined equal length.
[0066] Further, in some embodiments of the present application, the package library file is obtained by packaging the second component module after equal length, including:
[0067] Obtain the second compensation length traces connected to each first pin in the second component module; the first pin is the pin that needs to be equal in length in the second component module;
[0068] According to the first pin, all currently obtained second compensation length traces are imported into a preset mechanical layer of the package library file, and the package library file after packaging is obtained.
[0069] Preferably, in some embodiments of the present application, the package library file specifically refers to a PCB package library, where the preset mechanical layer is a mechanically layer specified in advance, and the present application does not limit the specific mechanical layer used.
[0070] By importing the compensation length traces into the mechanical layer, interference to the main signal layer is avoided, and the reliability of subsequent designs is improved; at the same time, by packaging the second compensation length traces, when the second component module is optimized, only the package library needs to be updated, without the need to redesign other first component modules.
[0071] Further, in some embodiments of the present application, the step of according to the first pin, importing all currently obtained second compensation length traces into a preset mechanical layer of the package library file, and obtaining the package library file after packaging includes:
[0072] Determine a third component module corresponding to the second component module in the preset mechanical layer of the package library; the third component module includes second pins corresponding to each of the first pins;
[0073] Take the imported second compensation length traces as the first compensation length traces, and according to the connection relationship between the first pins and the second compensation length traces, connect the first compensation length traces to the corresponding second pins to obtain the package library file.
[0074] Preferably, in some embodiments of the present application, the second compensation length traces already connected to the pins can be selected and copied in their entirety through PCB design software, and further, the copied second compensation length traces can be pasted into a preset mechanical layer (such as mechanical layer 29) in the package library, thereby obtaining the package library file. Since the second component module opened by the PCB design software is the core module source file, it has network information, and according to the network information, the connection of each second compensation length trace to the corresponding first pin can be quickly completed. Further, after selecting all the second compensation length traces for assistance and pasting them into the preset mechanical layer to generate the package library file, the efficiency is higher than directly moving the compensation length traces in the third component module of the package library without network to directly generate the package library file.
[0075] Since there is a corresponding relationship between the first pins and the second pins, and each first pin has a second compensation length trace connected thereto, through the connection relationship between the first pins and the second compensation length traces, the drawing of the first compensation length traces for each second pin in the third component module can be quickly and batch realized, improving the production efficiency of the package library file.
[0076] S20: Obtain a plurality of first compensation length traces from the package library file according to the first component module.
[0077] Further, in some embodiments of the present application, the obtaining a plurality of first compensation length traces from the package library file according to the first component module includes:
[0078] Determine the corresponding third component module in the preset mechanical layer of the package library file according to the second component module corresponding to the first component module;
[0079] Obtain the first compensation length traces connected to each of the second pins in the third component module.
[0080] Preferably, in some embodiments of the present application, the method for obtaining the first compensation length traces may be: Open the corresponding package library file encapsulating the second component module through PCB design software, find the corresponding third component device module for the second component module in the package library file and then select the preset mechanical layer, and then copy all the compensation length traces in the preset mechanical layer to obtain the first compensation length traces.
[0081] It can be seen from the above preferred embodiments that since the first component module and the second component module have the same structure and the third component module corresponds to the second component module, after finding the corresponding third component module in the corresponding package library file, batch equal-length compensation for any first component module can be realized, avoiding electrical rule violations caused by manual single-copying of traces and improving work efficiency.
[0082] S30: Import all the obtained first compensation length traces into the first component module to complete the equal-length compensation drawing of the first component module.
[0083] Further, in some embodiments of the present application, the importing all the obtained first compensation length traces into the first component module to complete the equal-length compensation drawing of the first component module includes:
[0084] Take the imported first compensation length traces as the third compensation length traces;
[0085] Determine the corresponding third pin in the first component module according to the second pin to which the first compensation length trace is connected;
[0086] Connect the third compensation length traces to the third pins to complete the equal-length compensation drawing of the first component module.
[0087] After obtaining the first compensated length traces in batches from the package library file, the third pin corresponding to the second pin can be quickly located through the second pin of each first compensated length trace. After connecting the third compensated length trace to the third pin, rapid batch drawing of the third pin compensated length traces is achieved.
[0088] Preferably, in some embodiments of the present application, the equal-length compensation drawing for the first component module can also be: opening the PCB source file corresponding to the first component module through PCB design software, dragging the first component module to a blank area of the software interface, and then pasting the copied first compensated length trace (the copied version of the first compensated length trace is the third compensated length trace) to the corresponding pins of the first component module. At this time, since the first component module is in the corresponding PCB source file, each third pin has a corresponding network. When the third compensated trace is connected to the corresponding third pin, the PCB source file will be equalized automatically according to the corresponding network.
[0089] Preferably, referring to Figure 2 , is another flow schematic diagram of a method for automatically drawing PCB equal-length compensation provided in some embodiments of the present application. Figure 2 The method implementation in
[0090] S40: Open the second core module through PCB design software;
[0091] S50: Draw the pin compensation length in the second core module through PCB design software;
[0092] S60: Copy and paste the pin compensation length in the second core module into a certain mechanical layer of the corresponding core package through PCB design software;
[0093] S70: When the second core module is involved in the PCB design process, directly copy the compensated traces of the pins in the corresponding mechanical layer of the corresponding package library and paste the compensated traces onto any first core module to be equalized. At this time, the compensation length is automatically calculated into the total equal-length.
[0094] In summary, a method for automatically drawing PCB equal-length compensation provided in some embodiments of the present application has the following beneficial effects: Since the package library file is packaged according to the second component module that has completed the equal-length operation, the packaged package library file records the compensation length traces that need to be drawn for each type of pin in the second component module. Since the second component module has the same structure as the first component module, and the component module structure determines the signal transmission delay corresponding to each pin, when facing the situation of multiplexed pins, the trace lengths that need to be compensated for the corresponding pins of the two modules are also the same. By finding the corresponding packaged package library file and finding the compensation length trace drawn for the second pin corresponding to the first pin from the package library, and then importing the compensation length trace into the first component module, the equal-length operation can be quickly completed, effectively improving the equal-length efficiency.
[0095] Embodiment 2
[0096] Reference Figure 3 , a device for automatically drawing PCB equal-length compensation provided in some embodiments of the present application, includes: a package library file selection module 11, a first compensation length trace acquisition module 12, and an equal-length compensation drawing module 13.
[0097] Further, in some embodiments of the present application, the package library file selection module 11 is configured to select a corresponding package library file according to the first component module to be equalized; wherein, the package library file is obtained by packaging according to the second component module that has completed equalization; the first component module has the same structure as the second component module; the first compensation length trace acquisition module 12 is configured to obtain a plurality of first compensation length traces from the package library file according to the first component module; the equal-length compensation drawing module 13 is configured to import all the obtained first compensation length traces into the first component module to complete the equal-length compensation drawing of the first component module.
[0098] Further, in some embodiments of the present application, the package library file is obtained by packaging according to the second component module that has completed equalization, including: obtaining the second compensation length traces connected to each first pin in the second component module; the first pin is the pin that needs to be equalized in the second component module; according to the first pin, importing all the currently obtained second compensation length traces into a preset mechanical layer of the package library file to obtain the packaged package library file.
[0099] Further, in some embodiments of the present application, the equal-length step of the second component module includes: obtaining equal-length information according to the second component module; the equal-length information includes: the lengths of the second compensation length traces and the networks to which each of the second compensation length traces belongs; generating the corresponding second compensation length traces according to the lengths; positioning the first pins to which the corresponding second compensation length traces need to be connected according to the networks; and connecting the second compensation length traces to the first pins.
[0100] Further, in some embodiments of the present application, the obtaining equal-length information according to the second component module includes: determining whether there is an equal-length table in the second component module; if so, obtaining the equal-length information from the equal-length table; if not, obtaining the equal-length information according to the PCB file corresponding to the second component module.
[0101] Further, in some embodiments of the present application, the importing all the currently obtained second compensation length traces into the preset mechanical layer of the package library file to obtain the packaged package library file includes: determining a third component module corresponding to the second component module in the preset mechanical layer of the package library; the third component module includes second pins corresponding to each of the first pins; taking the imported second compensation length traces as the first compensation length traces, and connecting the first compensation length traces to the corresponding second pins according to the connection relationship between the first pins and the second compensation length traces to obtain the package library file.
[0102] Further, in some embodiments of the present application, the obtaining several first compensation length traces from the package library file according to the first component module includes: determining the corresponding third component module in the preset mechanical layer of the package library file according to the second component module corresponding to the first component module; obtaining the first compensation length traces connected to each of the second pins in the third component module.
[0103] Further, in some embodiments of the present application, the importing all the obtained first compensation length traces into the first component module to complete the equal-length compensation drawing of the first component module includes: taking the imported first compensation length traces as the third compensation length traces; determining the corresponding third pins in the first component module according to the second pins connected by the first compensation length traces; and connecting the third compensation length traces to the third pins to complete the equal-length compensation drawing of the first component module.
[0104] It can be understood that the above device embodiments correspond to the method embodiments of the present invention. An automatic PCB equal-length compensation drawing device provided by the embodiments of the present invention can implement any method embodiment of the present invention, that is, the automatic PCB equal-length compensation drawing method provided in Embodiment 1.
[0105] In summary, an automatic PCB equal-length compensation drawing device provided in some embodiments of the present application has the following beneficial effects: Since the package library file is packaged according to the second component module that has completed the equal-length operation, the packaged package library file records the compensation length traces that need to be drawn for each type of pin in the second component module. Since the second component module has the same structure as the first component module, and the component module structure determines the signal transmission delay corresponding to each pin, when facing the situation of multiplexed pins, the trace lengths that need to be compensated for the corresponding pins of the two modules are also the same. By finding the corresponding packaged package library file and finding the compensation length trace drawn for the second pin corresponding to the first pin from the package library, and then importing the compensation length trace into the first component module, the equal-length operation can be quickly completed, effectively improving the equal-length efficiency.
[0106] Embodiment 3
[0107] Based on the above embodiments of the automatic PCB equal-length compensation drawing method, another embodiment of the present application provides an automatic PCB equal-length compensation drawing terminal device. The automatic PCB equal-length compensation drawing terminal device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the automatic PCB equal-length compensation drawing method of any embodiment of the present application.
[0108] Exemplarily, in this embodiment, the computer program can be divided into one or more modules. The one or more modules are stored in the memory and executed by the processor to complete the present application. The one or more modules can be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the automatic PCB equal-length compensation drawing device.
[0109] The automatic PCB equal-length compensation drawing device can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The automatic PCB equal-length compensation drawing terminal device may include, but is not limited to, a processor and a memory.
[0110] The processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The processor is the control center of the PCB equal-length compensation automatic drawing device, and connects various parts of the entire PCB equal-length compensation automatic drawing device through various interfaces and circuits. The memory can be used to store the computer program and / or modules. By running or executing the computer program and / or modules stored in the memory, and calling the data stored in the memory, the processor realizes various functions of the PCB equal-length compensation automatic drawing device. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, FlashCard, at least one magnetic disk storage device, flash device, or other volatile solid-state storage devices.
[0111] Embodiment 4
[0112] Based on the embodiments of the above PCB equal-length compensation automatic drawing method, another embodiment of the present application provides a storage medium, which includes a stored computer program. When the computer program runs, it controls the device where the storage medium is located to execute the PCB equal-length compensation automatic drawing method of any embodiment of the present application.
[0113] In this embodiment, the above storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice within the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0114] The above specific embodiments have further elaborated on the purpose, technical solution, and beneficial effects of the present application. It should be understood that the above are only specific embodiments of the present application and are not used to limit the protection scope of the present application. In particular, for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. An automatic drawing method for PCB length equalization compensation, characterized in that, Including: Select a corresponding package library file according to the first component module to be of equal length; wherein, the package library file is obtained by packaging the second component module after equal length completion; the first component module has the same structure as the second component module; Obtain a number of first compensation length traces from the package library file according to the first component module; Import all the obtained first compensation length traces into the first component module to complete the equal length compensation drawing of the first component module.
2. The automatic drawing method for PCB equal length compensation as described in claim 1, characterized in that, The package library file is obtained by packaging the second component module after equal length completion, including: Obtain the second compensation length traces connected to each first pin in the second component module; the first pin is the pin that needs to be of equal length in the second component module; According to the first pin, import all the currently obtained second compensation length traces into the preset mechanical layer of the package library file to obtain the packaged package library file.
3. The automatic drawing method for PCB equal length compensation according to claim 2, wherein, The equal length steps of the second component module include: Obtain equal length information according to the second component module; the equal length information includes: the length of each second compensation length trace and the network to which each second compensation length trace belongs; Generate the corresponding second compensation length traces according to the length; Locate the first pin to which the corresponding second compensation length trace needs to be connected according to the network; Connect the second compensation length trace to the first pin.
4. A method for automatically drawing PCB equal length compensation according to any one of claims 3, characterized in that, The obtaining of the equal length information according to the second component module includes: Judge whether there is an equal length table in the second component module; If it exists, obtain the equal length information from the equal length table; if it does not exist, obtain the equal length information according to the PCB file corresponding to the second component module.
5. The automatic drawing method for PCB equal length compensation according to claim 2, characterized in that, The importing of all the currently obtained second compensation length traces into the preset mechanical layer of the package library file to obtain the packaged package library file includes: Determine the third component module corresponding to the second component module in the preset mechanical layer of the package library; the third component module includes second pins corresponding to each first pin; Take the imported second compensation length traces as the first compensation length traces, and connect the first compensation length traces to the corresponding second pins according to the connection relationship between the first pin and the second compensation length traces to obtain the package library file.
6. The automatic drawing method for PCB equal length compensation according to claim 5, wherein, The obtaining of a number of first compensation length traces from the package library file according to the first component module includes: Determine the corresponding third component module from the preset mechanical layer of the package library file according to the second component module corresponding to the first component module; Obtain the first compensation length traces connected to each second pin in the third component module.
7. The automatic drawing method for PCB equal length compensation according to claim 6, characterized in that, The importing of all the obtained first compensation length traces into the first component module to complete the equal length compensation drawing of the first component module includes: Take the imported first compensation length traces as the third compensation length traces; Determine the third pin in the corresponding first component module according to the second pin connected to the first compensation length trace; Connect the third compensation length trace to the third pin to complete the equal-length compensation drawing of the first component module.
8. An automatic PCB equal-length compensation drawing device, characterized in that, It includes: A package library file selection module, a first compensation length trace acquisition module, and an equal-length compensation drawing module; Among them, the package library file selection module is used to select the corresponding package library file according to the first component module to be equalized; among them, the package library file is obtained by packaging according to the second component module after equalization is completed; the first component module has the same structure as the second component module; The first compensation length trace acquisition module is used to obtain a plurality of first compensation length traces from the package library file according to the first component module; The equal-length compensation drawing module is used to import all the obtained first compensation length traces into the first component module to complete the equal-length compensation drawing of the first component module.
9. A terminal device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a PCB equal-length compensation automatic drawing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program. Among them, when the computer program runs, it controls the device where the computer-readable storage medium is located to execute a PCB equal-length compensation automatic drawing method according to any one of claims 1 to 7.