Printed circuit board model determination method and device and medium

The automated PCB layout method classifies components into modules and applies preset rules to generate layouts and routing, addressing labor-intensive manual processes and reducing design cycles for complex PCBs.

CN119067054APending Publication Date: 2024-12-03JINAN INSPUR DATA TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411364297.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Current PCB layout determination methods are labor-intensive and time-consuming, especially for large or complex designs, requiring manual collaboration among multiple engineers and leading to prolonged design cycles.

Method used

A method and device for automated PCB layout determination that classifies electronic components into modules based on chip module layouts and connection relationships, using preset binding rules and routing schemes to generate a layout wiring diagram, followed by selecting or generating a PCB template based on predefined criteria.

Benefits of technology

This approach reduces the workload and shortens the design cycle by providing an automated, efficient, and reliable PCB layout process, suitable for complex designs, and facilitates early product launch.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119067054A_ABST
    Figure CN119067054A_ABST
Patent Text Reader

Abstract

The invention discloses a printed circuit board model determination method and device and a medium, relates to the technical field of printed circuit board design, and provides a printed circuit board model determination method for solving the problem that a traditional manual design PCB scheme is low in efficiency. And furthermore, a mature module design scheme is applied to the layout module during design, so that the layout and wiring design of most chips and peripheral circuits thereof in the complex PCB design is solved, and the reliability of the PCB model designed by the method is ensured. Moreover, according to the method, layout design is carried out firstly, then wiring design is carried out, layout module design is carried out firstly, and then design of other electric appliance components is carried out, so that the method is an automatic design scheme with more, less, easy and difficult, the workload of PCB design can be greatly reduced, the design efficiency can be improved, and the design period of the whole electronic product can be shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of printed circuit board design, and in particular to a method, device and medium for determining a printed circuit board template. Background Art

[0002] In electronic products, printed circuit boards (PCBs) are essential components. The PCB layout directly affects the internal layout of the product, and the internal layout of the product determines the product's external dimensions. Therefore, whether the PCB layout is determined is a prerequisite for the internal layout of the product. The speed of PCB layout determination greatly affects the product design cycle.

[0003] At present, although an automatic wiring path planning solution has been proposed, the current layout effect of this solution is not satisfactory. It may still serve as a reference for small or simple PCB layout designs, but it cannot assume the design responsibility for large or complex PCB layout designs. Therefore, most PCB layouts are still determined manually by layout engineers in collaboration with hardware engineers and structural engineers. In the process of PCB layout design, multiple engineers need to communicate repeatedly, which is time-consuming and labor-intensive. Once a design change occurs, rework may be required, and the design cycle cannot be guaranteed.

[0004] Therefore, technicians in this field are in urgent need of a printed circuit board layout determination method to realize automated PCB layout determination, thereby reducing the workload of PCB layout design, improving design efficiency, and shortening the product design cycle. Summary of the invention

[0005] The purpose of the present invention is to provide a printed circuit board template determination method, device and medium to realize automatic PCB template determination, thereby reducing the workload of PCB template design, improving design efficiency and shortening the product design cycle.

[0006] In order to solve the above technical problems, the present invention provides a method for determining a printed circuit board pattern, comprising:

[0007] Obtaining a circuit schematic and identifying all electronic components in the circuit schematic;

[0008] According to a chip module layout scheme preset in a chip module layout library, the chip in the electrical components and the peripheral configuration components of the chip are classified into a layout module, and the layout position of each of the electronic components in the layout module is determined;

[0009] According to a preset binding rule, the associated layout modules are placed adjacent to each other to determine the layout position of each layout module;

[0010] For other electronic components that are not included in the layout module, the layout positions are determined based on the connection relationship between the other electronic components in the circuit schematic diagram and the principle that the electronic components connected to each other are placed adjacent to each other;

[0011] Determine the routing of each layout module according to the chip module routing scheme preset in the signal line fan-out library;

[0012] For other electronic components that are not included in the layout module, generating routing by automatic routing path planning to obtain a layout wiring diagram;

[0013] The corresponding printed circuit board version is determined according to the layout wiring diagram.

[0014] In a possible embodiment, determining the corresponding printed circuit board type according to the layout wiring diagram includes:

[0015] Determine whether each standard template preset in the standard template library meets the layout conditions of the layout wiring diagram;

[0016] If there is a standard version template that satisfies the layout conditions, the printed circuit board version corresponding to the layout wiring diagram is determined according to the standard version template that satisfies the layout conditions.

[0017] In a possible embodiment, determining the printed circuit board layout corresponding to the layout wiring diagram according to the standard layout template that meets the layout condition includes:

[0018] If there is only one standard template that meets the layout conditions, the standard template is used as the printed circuit board template corresponding to the layout wiring diagram;

[0019] If there are multiple standard templates that meet the layout conditions, determine the space utilization rate of the layout wiring diagram on each standard template;

[0020] The standard layout template whose space utilization is greater than a preset utilization threshold is determined as the printed circuit board layout corresponding to the layout wiring diagram.

[0021] In a possible embodiment, after determining whether each standard template preset in the standard template library meets the layout conditions of the layout wiring diagram, the method further includes:

[0022] If there is no standard template that meets the layout conditions, generating the printed circuit board template according to the layout wiring diagram based on a preset template generation rule;

[0023] The pattern generation rules include: a maximum number of stacked layers, a minimum edge spacing, and a pattern shape restriction.

[0024] In a possible embodiment, if a plurality of printed circuit board templates are generated according to the layout wiring diagram based on a preset template generation rule, when outputting each printed circuit board template, the method further includes:

[0025] Outputting specification performance parameters corresponding to each printed circuit board version;

[0026] The specification performance parameters include: version size, number of stacked layers, line length and number of layer changes of the high-speed bus, maximum height of the front and maximum height of the back, line width, line spacing and impedance of the signal line.

[0027] In a possible embodiment, the method further includes:

[0028] According to each of the specification performance parameters corresponding to the printed circuit board layout, a parameter score corresponding to each of the printed circuit board layouts is generated by a weighted algorithm;

[0029] Among them, the version size is negatively correlated with the parameter score, the number of stacked layers is negatively correlated with the parameter score, the line length of the high-speed bus is negatively correlated with the parameter score, and the number of layer changes of the high-speed bus is negatively correlated with the parameter score.

[0030] In a possible embodiment, the chip module layout scheme and the chip module output scheme are determined according to a layout reference scheme and a signal output scheme provided in a chip data manual corresponding to the chip;

[0031] or:

[0032] The chip module layout scheme and the chip module wiring scheme are generated by a pre-trained machine learning model;

[0033] Among them, the machine learning model is trained by learning the layout reference solution, signal routing solution and other mature layout design solutions and signal routing design solutions provided in the chip data manual corresponding to the chip.

[0034] In order to solve the above technical problems, the present invention also provides a printed circuit board template determination device, comprising:

[0035] A device identification module, used to obtain a circuit schematic and identify all electronic components in the circuit schematic;

[0036] A module layout module, used to classify the chips in the electrical components and the peripheral configuration components of the chips into a layout module according to the chip module layout scheme preset in the chip module layout library, and determine the layout position of each of the electronic components in the layout module;

[0037] An inter-module layout module, used to place the associated layout modules adjacent to each other according to a preset binding rule, so as to determine the layout position of each layout module;

[0038] An off-mold layout module, for determining the layout positions of other electronic components that are not included in the layout module, based on the connection relationship between the other electronic components in the circuit schematic diagram and the principle of placing the electronic components connected to each other adjacently;

[0039] A module routing module, used to determine the routing of each layout module according to the chip module routing scheme preset in the signal line fan-out library;

[0040] An off-module routing module is used to generate routing for other electronic components that are not included in the layout module by automatic routing path planning to obtain a layout wiring diagram;

[0041] The template generation module is used to determine the corresponding printed circuit board template according to the layout wiring diagram.

[0042] In order to solve the above technical problems, the present invention also provides a printed circuit board template determination device, comprising:

[0043] Memory for storing computer programs;

[0044] A processor is used to implement the steps of the printed circuit board layout determination method as described above when executing the computer program.

[0045] In order to solve the above technical problem, the present invention also provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the printed circuit board layout determination method as described above are implemented.

[0046] The present invention provides a method for determining the printed circuit board version. A chip module layout library and a signal line fan-out library are established in advance through the chip data manual of the chip. Among them, the chip module layout library contains a mature module circuit design with the corresponding chip as the core and the remaining related electronic components as the peripheral circuit. Similarly, the signal line fan-out library contains a signal fan-out scheme with the corresponding chip as the core. Based on the above two libraries, in the formal PCB board design process, the method first identifies all electronic components in the circuit schematic diagram, and then performs layout design for all electronic components. Specifically, the chips in all electronic components and the electronic components as the peripheral circuits of the chip are first found, and the existing chip module layout scheme is applied through the chip module layout library to determine the layout between the electronic components inside each layout module. Afterwards, according to the preset binding rules, each layout module with the chip as the core has a certain binding relationship with each other based on the different chip functions. For example, the CPU, memory, bridge chip, and the power supply chip for the above chip need to be placed centrally. Therefore, based on the binding rules, it can be determined how to layout each layout module. After that, the layout design is performed for the remaining electronic components that are not assigned to the layout module. These electronic components are usually resistors and capacitors, and they can be arranged adjacent to other connected electronic components according to the connection relationship in the circuit schematic. At this point, the layout design of all electronic components is completed, and then the routing design of each layout-completed electronic component is started. Similarly, the routing design starts with the determined layout modules, and the routing design of each layout module is realized by applying the preset chip module outlet scheme in the signal line fan-out library. Finally, for the remaining electronic components that are not assigned to the layout module or the control devices whose signals are difficult to unify, since their layout positions have been determined at this time, the routing of the electronic components related to the layout module has also been determined, these electronic components can automatically generate routing according to the conventional automatic routing path planning method, thereby obtaining the final layout wiring diagram. The design of the entire PCB board can be completed by determining the corresponding PCB version according to the layout wiring diagram.

[0047] In summary, this method divides electronic components into modules according to chips, and then applies mature module design solutions to layout modules during design, thereby solving the layout and routing design of chips and their peripheral circuits, which account for the vast majority of complex PCB board designs, and is conducive to ensuring the reliability of the PCB version designed by this method. In addition, this method first performs layout design, then routing design, first designs the layout module, and then designs the remaining electrical components. It is an automated design solution that starts with more and then less, and starts with easy and then difficult. It can greatly reduce the workload of PCB design and improve design efficiency, thereby helping to shorten the design cycle of the entire electronic product.

[0048] The printed circuit board version determination device and non-volatile storage medium provided by the present invention correspond to the above method and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] FIG1 is a flow chart of a method for determining a printed circuit board type according to an embodiment of the present invention;

[0051] FIG2 is a flow chart of a printed circuit board design provided by an embodiment of the present invention;

[0052] FIG3 is a structural diagram of a printed circuit board type determination device provided by an embodiment of the present invention;

[0053] FIG. 4 is a structural diagram of another printed circuit board layout determination device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] The core of the present invention is to provide a method, device and medium for determining the layout of a printed circuit board.

[0056] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0057] In the related technology, the mainstream circuit schematic or printed circuit board (PCB) design software on the market currently has an automatic wiring path planning function. That is, based on the circuit schematic drawn by the user, the layout and wiring scheme of the circuit schematic on the PCB board is automatically generated. However, this automatic wiring path planning function is not satisfactory in terms of layout and wiring effects. In practical applications, it can usually only provide a certain reference for simple small circuits. For the PCB design of large and complex circuits required by commercial electronic products, it cannot meet the needs at all, and even the meaning of reference has been lost.

[0058] Therefore, the design process of PCB boards in electronic products currently still mainly relies on layout engineers. When designing PCB boards, layout engineers need to maintain good communication with hardware engineers and structural engineers to design a reliable and satisfactory layout and wiring solution and PCB version. This solution relies on manual implementation and requires the collaboration of different personnel from multiple departments, which brings a huge workload and labor cost, resulting in a significant reduction in the efficiency of PCB design and a prolonged overall design cycle of electronic products, which is not conducive to the early production and market launch of electronic products.

[0059] In order to solve the above problems, the present invention provides a method for determining a printed circuit board layout, as shown in FIG1 , comprising:

[0060] S11: Obtain a circuit schematic and identify all electronic components in the circuit schematic.

[0061] S12: According to the chip module layout scheme preset in the chip module layout library, the chip in the electrical components and the peripheral configuration components of the chip are classified into a layout module, and the layout position of each electronic component in the layout module is determined.

[0062] S13: According to a preset binding rule, the associated layout modules are placed adjacent to each other to determine the layout position of each layout module.

[0063] S14: For other electronic components that are not included in the layout module, the layout positions are determined according to the connection relationship between other electronic components in the circuit schematic diagram and the principle of placing the electronic components connected to each other adjacently.

[0064] S15: Determine the routing of each layout module according to the chip module routing scheme preset in the signal line fan-out library.

[0065] S16: For other electronic components that are not assigned to the layout module, routing is generated by automatic routing path planning to obtain a layout routing diagram.

[0066] S17: Determine the corresponding printed circuit board version according to the layout wiring diagram.

[0067] First, for step S11, the process of obtaining the circuit schematic is also the process of importing the circuit schematic into the execution subject of the present method. In addition, identifying electronic components in the circuit schematic is a common function of the current mainstream circuit schematic design software, which has a variety of mature and reliable implementation schemes, so this embodiment will not be repeated here.

[0068] For step S12, only the layout positions of the electronic components in the layout module are determined, and the layouts of other electrical components between the layout modules and outside the layout modules have not yet been determined and will be further determined in subsequent steps.

[0069] It is easy to know that in actual production life, from the beginning of design to the official launch of most chips on the market, chip developers will provide guidance on how to use the chip, and write how to use the chip and how to design the supporting peripheral circuits into the chip data manual of the chip. Therefore, for most mature chips that have been on the market for many years, the circuit design corresponding to the various functions they implement has been guided in the chip layout manual, or there are mature design solutions publicly available on the Internet, which can be included in the chip module layout library in advance, so that the existing mature templates can be directly applied in PCB design.

[0070] For example, for large-scale system-on-chips (SOCs) such as central processing units (CPUs), bridge chips, network controllers, high-speed serial computer expansion bus standard (Peripheral Component Interconnect express, PCIe) switch chips, display chips, audio chips, etc., which are common in server circuit design, they usually provide modular circuit design solutions including chips and their peripheral circuits in chip data sheets.

[0071] It should also be noted that for some newly designed chips, or specialized applications and circuit design solutions for some mature chips, they are generally proposed by PCB designers or licensors and other partners. They can be entered into the chip module layout library in advance by relevant personnel so that they can be directly called in all subsequent PCB design processes that use this special circuit design solution.

[0072] For step S13, after the layout positions between the electrical components in each layout module are determined in step S12, the layout positions between the layout modules are determined. Step S13 determines the layout positions between the layout modules through preset binding rules. Specifically, in the design of the server motherboard, the CPU, bridge chip, memory and related power supply chips need to be placed centrally, and the layout modules containing the above chips should be arranged close to each other. That is, by entering the binding rules containing multiple associated chips in advance, when the PCB design process implemented based on this method proceeds to step S13, the associated layout modules can be arranged close to each other through the binding rules to determine the layout positions between the layout modules.

[0073] After that, for step S14. The above-mentioned steps S12 and S13 respectively complete the layout determination of the electronic components in the layout module and the layout determination between the layout modules. At this point, the layout design of all the electronic components in the circuit schematic that are attributed to the layout module has been completed. Since not all electronic components can be attributed to a certain layout module in actual applications, there are also electronic components such as resistors and capacitors that are more flexible and changeable in application. Step S14 is the step of performing layout design on these electronic components that are not attributed to the layout module.

[0074] Since the layout positions of the electronic components related to the layout module that occupies most of the circuit schematic have been determined at this time, it can provide guidance or reference for the layout of the remaining electronic components to a certain extent. For example, the remaining electronic components can be laid out based on the connection relationship with other electronic components, with the connected electronic components placed adjacent to each other as the principle. Exemplarily, electronic component A belongs to the layout module, and the layout position has been determined through the above steps S12 and S13. However, electronic component B does not belong to the layout module, and its layout position has not yet been determined. However, due to the connection relationship between electronic component A and electronic component B, the electronic component can be arranged close to electronic component A, thereby determining the layout position of electronic component B.

[0075] Furthermore, if there are electronic components that are not connected to any electronic components belonging to the layout module, the position can be determined by other connected electronic components with determined positions. Exemplarily, on the basis of the electronic components A and electronic components B proposed in the above example, there is also an electronic component C, which is also deployed in any layout module, and electronic component C is only connected to electronic component B. Then, when determining the layout positions of the remaining electronic components (i.e., B and C) that do not belong to the layout module in step S14, the position of electronic component B can be determined by electronic component A with determined layout position, and then the position of electronic component C can be determined by electronic component B with determined layout position. Based on the above principle, based on the electronic components with determined layout position, the positions of other electronic components with undetermined layout positions connected to them can be determined, and this step can be repeated to complete the layout position determination of all remaining electronic components in the circuit schematic.

[0076] At this point, the completion of step S14 indicates that the layout positions of all electronic components in the circuit schematic diagram have been determined, that is, the layout design is completed. After that, the routing design is completed by steps S15 and S16. However, this embodiment also provides a further implementation scheme. After step S14, the method further includes:

[0077] S18: Fine-tune the layout of each electronic component according to a preset signal spacing constraint.

[0078] That is, after determining the layout of each electronic component based on the above steps, this embodiment also uses the signal quality of such layout as a reference, and fine-tunes the layout of the electronic components based on the preset signal spacing constraints (if the signal spacing constraints are met, no adjustment is required), so that the layout design of this method can ensure signal quality.

[0079] For step S15, similarly to the above, the routing design of the layout module is determined first. Specifically, the layout module is centered on the chip. According to the chip data manual of the chip, in addition to obtaining the layout design of the layout module, the signal line fan-out design of the chip can also be obtained, that is, the chip module output scheme mentioned in the above step S15. These chip module output schemes are also pre-stored in the signal line fan-out library, so that step S15 can be directly called to determine the routing design of each layout module.

[0080] It is particularly important to note that some layout modules may include a variety of different chip module outlet solutions. For example, for the same chip, its signal line can be a single-sided fan-out or a double-sided fan-out. At this time, it is necessary to determine the corresponding chip module outlet solution in combination with the layout position between each layout module. For example, for the above-mentioned CPU, if its other associated layout modules are respectively deployed on both sides of the CPU, the CPU is preferentially matched with a chip module outlet solution with double-sided fan-out. On the contrary, if the other layout modules associated with the CPU are all deployed on one side of the CPU, the CPU is preferentially matched with a chip module outlet solution with single-sided fan-out. In some scenarios where it is not easy to judge whether it is a single-sided fan-out or a double-sided fan-out according to the layout position between the layout modules, a possible PCB design can be generated based on possible chip module outlet solutions. That is, in this method, the layout wiring diagram generated and output for the same circuit schematic is not necessarily unique, and multiple possible layout wiring diagrams may be output simultaneously.

[0081] For step S16, the routing design is performed for the remaining electronic components that have not been assigned to the layout module. Since the layout positions of all electronic components have been determined at this time, and the routing of the electronic components assigned to the layout module has also been determined, the routing design of the remaining electronic components is equivalent to the routing design of a simple small circuit, and the routing can be automatically generated by the automatic wiring path planning method. By the completion of step S16, the layout positions and routing of all electronic components in the circuit schematic diagram have been designed, that is, the layout wiring diagram of the circuit schematic diagram actually printed on the PCB board is obtained.

[0082] For step S17, a specific PCB layout scheme is obtained based on the above-determined layout diagram, thereby completing the entire PCB design process, that is, the PCB design process is shown in FIG2 .

[0083] Based on the above, it can be known that a method for determining the printed circuit board version provided by the present invention is to classify all the electronic components in the circuit schematic diagram into a layout module with a relatively fixed chip in application and circuit design as the core and in combination with the chip peripheral circuit. Furthermore, based on the mature layout design scheme and routing design scheme provided in the chip data manual of the chip, they are entered into the chip module layout library and the signal line fan-out library in advance. In order to match and call the existing mature design scheme in the library in the formal PCB design, the layout design and routing design of each layout module are directly completed. In addition, this method is designed based on the layout first and routing later. During the layout, it is also based on first performing the layout design of the electronic components in the layout module through the mature layout design scheme in the library, then performing the layout design between the layout modules according to the binding rules, and finally completing the layout design of all the remaining electronic components according to the principle of adjacent placement based on the connection relationship between the electronic components. It is a layout design idea that is easy first and difficult later. Similarly, when routing, the mature signal line fan-out solution in the library is first applied to complete the routing design of each layout module. For the remaining electronic components, since the layout positions of all electronic components have been determined, and the routing of the electronic components involved in the layout module has also been determined. Therefore, the routing design of the remaining electronic components is greatly simplified, and can be automatically generated using the existing automatic routing path planning method, thereby completing the layout and routing of all electronic components. Finally, the PCB version is determined according to the layout and routing diagram to complete the entire PCB design process.

[0084] This method is simple and reliable for PCB design, and can automatically generate PCB design schemes without manual participation. Compared with the PCB design schemes generated by the existing automatic wiring path planning method, it has higher reliability and better performance for PCB design of large and complex circuits. It can provide Layout engineers with more reliable and constructive PCB design reference opinions, thereby greatly improving PCB design efficiency, shortening product design cycle, and facilitating products to enter the market earlier.

[0085] On the other hand, since it is easy to generate the corresponding PCB layout according to the layout and wiring diagram when the layout and wiring are known, and there are many different implementation schemes, the present invention does not limit this. However, in order to further illustrate a printed circuit board layout determination method provided by the present invention, this embodiment provides a possible implementation scheme for how to determine the PCB layout corresponding to the layout and wiring diagram in the above step S17, and the above step S17 specifically includes:

[0086] S171: Determine whether each standard layout template preset in the standard layout library meets the layout conditions of the layout wiring diagram.

[0087] S172: If there is a standard layout template that meets the layout conditions, determine the printed circuit board layout corresponding to the layout wiring diagram according to the standard layout template that meets the layout conditions.

[0088] Because in actual scenarios, most products already have requirements for the approximate size and specifications of the product at the beginning of the design concept. Similarly, the requirements for the size and specifications of the product will also be reflected in the design of the PCB to a certain extent, so that the PCB has approximate size, shape and other requirements at the beginning of the design. Further, limited by the characteristics of PCB printing and production processes, there are also a variety of common versions of PCB. Compared with other special-shaped PCB versions, the use of common versions to complete PCB printing has lower printing costs and faster printing speeds because there is no need to adjust the printing machine additionally. Therefore, based on the approximate size, shape and other requirements proposed by the above-mentioned PCB at the beginning of the design, a suitable version can be selected from the various versions commonly used in the PCB printing process as the standard version template in this embodiment. After the layout and wiring of the PCB is completed, these standard version templates are preferentially matched from the standard version library so that the design of the PCB version approaches a unified standard, which is conducive to PCB printing.

[0089] In addition, as to whether each standard template meets the layout conditions of the layout and wiring diagram, the most basic requirement is that the standard template can be printed to completely cover all electronic components and routings of the layout and wiring diagram. Based on the above, other layout conditions can also be added according to different actual application scenarios, and this embodiment does not limit this, such as limiting the utilization rate of PCB space.

[0090] Furthermore, this embodiment provides another possible implementation scheme based on the above embodiment. The above step S172 specifically includes:

[0091] If there is only one standard template that meets the layout conditions, the standard template is used as the printed circuit board template corresponding to the layout and wiring diagram.

[0092] If there are multiple standard templates that meet the layout conditions, the space utilization rate of the layout and wiring diagram on each standard template is determined; the standard template with a space utilization rate greater than a preset utilization rate threshold is determined as the printed circuit board template corresponding to the layout and wiring diagram.

[0093] That is, in this embodiment, if there is only one standard template that meets the layout conditions in the standard template library, based on the consideration of completing the PCB template design first, no other requirements are put forward for the PCB template, and it is directly output. Subsequent layout engineers and other designers can make adjustments if necessary. The method in this embodiment prioritizes outputting at least one PCB design for reference.

[0094] When there are multiple standard templates that meet the layout conditions in the standard template library, each standard template can be further optimized and screened. In this embodiment, the space utilization rate of each template is used as the basis for optimization and screening. In practical applications, the higher the space utilization rate of the PCB, the better the PCB template design can be to a certain extent. Similarly, if the space utilization rate of the PCB is too low, it means that the space area occupied by the PCB board still has a lot of room for improvement, which will bring unnecessary costs. Therefore, in this embodiment, by determining the space utilization rate of each standard template that meets the layout conditions and comparing it with the preset utilization rate threshold, the PCB template design that is obviously defective is filtered out.

[0095] Furthermore, in practical applications, not every layout and wiring diagram can find a standard template that meets the layout conditions in the standard template library. As for how to determine the PCB template at this time, this embodiment provides a corresponding implementation scheme, and the above step S17 also includes:

[0096] S173: If there is no standard layout template that meets the layout conditions, a printed circuit board layout is generated according to the layout wiring diagram based on a preset layout generation rule.

[0097] Among them, the layout generation rules include: the maximum number of stacking layers, the minimum edge spacing, and the layout shape restriction. The maximum number of stacking layers is the maximum number of stacking layers allowed when generating the PCB layout. The minimum edge spacing is the minimum spacing between the edge of the PCB layout and the edges of the electronic components and traces in the layout diagram. The layout shape restriction is the shape requirement for the PCB layout based on the design requirements of the actual product. For example, in most PCB designs, most scenarios require that the PCB cannot be a special-shaped board (such as a concave polygon such as a cross), or a completely irregular shape.

[0098] Based on the implementation scheme provided in this embodiment, PCB layout design can be implemented even when there is no standard template that meets the layout conditions in the standard layout library, which makes up for the shortcomings of the above embodiment. However, it is not difficult to know that if there is a standard template that meets the layout conditions, there is no need to generate a PCB layout through the solution provided in this embodiment to improve PCB design efficiency.

[0099] It should also be noted that the above-mentioned pattern generation rules are common necessary conditions that need to be met in the PCB pattern design process, but they are not all necessary conditions, nor do they include other target conditions. Among them, the target conditions are conditions that are better if met, but are also acceptable if not met. For example, the smaller the size of the PCB, the better, the more regular the shape, the better, the fewer the number of layers, the better, and so on. This target condition does not have a fixed criterion for judging whether it is met or not, but is guided by a certain goal, and the closer to this goal, the higher the pattern generation condition.

[0100] Based on these target conditions and the above embodiments, this embodiment further provides a possible implementation scheme. When multiple possible PCB layouts are generated and output through step S173, the method further includes:

[0101] S174: Outputting specification performance parameters corresponding to each printed circuit board version.

[0102] The specification performance parameters include but are not limited to: version size, number of layers, line length and number of layer changes of the high-speed bus, maximum height of the front and maximum height of the back, line width, line spacing and impedance of the signal line.

[0103] It is not difficult to see that the specification and performance parameters mentioned in this embodiment are also the parameters in the target conditions mentioned above. It should be noted that the specification and performance parameters provided in this embodiment are only a possible implementation scheme. In actual applications, the specification and performance parameters provided in this embodiment can be freely added or deleted based on different needs.

[0104] In addition, for the high-speed bus line length and number of layer switching, the maximum height of the front and the maximum height of the back, the line width, line spacing and impedance and other specification performance parameters not mentioned in the above target conditions. It is generally believed that the shorter the line length of the high-speed bus, the better, and the fewer the number of layer switching of the high-speed bus, the better. The high-speed bus here may include but is not limited to: Double Data Rate (Double Data Rate) signal line, PCIe signal line, deserializer (serdes) signal line, High Definition Multimedia Interface (HDMI) signal line, RapidIO (an interconnection system based on data packet exchange) signal line, etc. As for other specification performance parameters such as the maximum height of the front and the maximum height of the back, there is no unified standard for judging the quality, and it is necessary to evaluate it by yourself in combination with the actual situation and specific product needs, so this embodiment will not be repeated here.

[0105] In this embodiment, when generating multiple PCB layout designs, corresponding specification performance parameters are provided to provide designers with a reference for the advantages and disadvantages of each PCB layout in a certain aspect, and to assist designers in selecting a PCB layout design that better meets their needs from multiple PCB layouts.

[0106] Furthermore, based on the specification and performance parameters provided in the above embodiment, this embodiment also provides a possible implementation scheme, wherein the above method further includes:

[0107] S175: Generate parameter scores corresponding to each printed circuit board version through a weighted algorithm according to each specification performance parameter corresponding to the printed circuit board version.

[0108] Among them, the pattern size is negatively correlated with the parameter score, the number of stacking layers is negatively correlated with the parameter score, the line length of the high-speed bus is negatively correlated with the parameter score, and the number of layer changes of the high-speed bus is negatively correlated with the parameter score.

[0109] That is, in this embodiment, the above-mentioned specification performance parameters with the same quality judgment standard are quantified, and multiple specification performance parameters are quantified into a parameter score, so that designers can more intuitively know the quality of each PCB layout design. However, it should be noted that the specification performance parameters for scoring and quantification in this embodiment do not involve the above-mentioned specification performance parameters that require specific analysis of specific circumstances, such as the maximum height of the front side, the maximum height of the back side, etc. These specifications and performance parameters also need to be provided to designers for their own analysis based on actual conditions.

[0110] On the other hand, the above embodiment illustrates that the chip module layout scheme in the chip module layout library and the chip module outgoing line scheme in the signal line fan-out library can be obtained through the chip data manual of the corresponding chip and the public module mature design. Based on this, this embodiment provides a possible implementation plan for the specific acquisition of the above chip module layout scheme and chip module outgoing line scheme:

[0111] The chip module layout plan and the chip module wiring plan are determined according to the layout reference plan and signal wiring plan provided in the chip data manual of the corresponding chip.

[0112] or:

[0113] The chip module layout plan and chip module wiring plan are generated through a pre-trained machine learning model.

[0114] Among them, the machine learning model is trained by learning the layout reference scheme, signal routing scheme and other mature layout design schemes and signal routing design schemes provided in the chip data manual of the corresponding chip.

[0115] It should be noted that although this embodiment provides two acquisition schemes for chip module layout schemes and chip module output schemes, namely, acquisition through chip data manuals or generation through machine learning models. However, for multiple schemes preset in the entire chip module layout library and signal line fan-out library, the above two different acquisition methods may actually exist at the same time. Even for multiple chip module layout schemes or chip module output schemes of the same layout module, there may be preset schemes obtained by the above two methods respectively.

[0116] In this embodiment, if the chip data manual corresponding to the chip in a certain layout module has the circuit design scheme of the layout module, the corresponding layout reference scheme and signal routing scheme can be directly obtained. However, if there is no completely consistent layout module in the chip data manual, the machine learning model can be used to learn from the reliable design scheme provided in the chip data manual, and then generate the corresponding layout scheme or routing scheme. After adjustment and confirmation by the designer, it can be added to the library as a preset scheme. It is not difficult to understand from the above that the design scheme directly obtained from the chip data manual is the most reliable, and the design scheme generated by the machine learning model is more of a supplementary scheme to the above design scheme, as a reference for providing other possibilities or to fill in the gaps.

[0117] In the above embodiment, a method for determining a printed circuit board version is described in detail, and the present invention also provides an embodiment corresponding to a printed circuit board version determination device. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.

[0118] From the perspective of functional modules, as shown in FIG3 , this embodiment provides a printed circuit board type determination device, including:

[0119] The device identification module 11 is used to obtain the circuit schematic diagram and identify all electronic components in the circuit schematic diagram;

[0120] The module layout module 12 is used to classify the chips in the electrical components and the peripheral configuration components of the chips into a layout module according to the chip module layout scheme preset in the chip module layout library, and determine the layout position of each electronic component in the layout module;

[0121] The inter-module layout module 13 is used to place the associated layout modules adjacent to each other according to a preset binding rule to determine the layout position of each layout module;

[0122] The off-mold layout module 14 is used to determine the layout position of other electronic components that are not included in the layout module according to the connection relationship between other electronic components in the circuit schematic diagram and the principle of placing the electronic components connected to each other adjacently;

[0123] The module routing module 15 is used to determine the routing of each layout module according to the chip module routing scheme preset in the signal line fan-out library;

[0124] The off-module routing module 16 is used to generate routing for other electronic components that are not included in the layout module by automatic routing path planning to obtain a layout wiring diagram;

[0125] The template generation module 17 is used to determine the corresponding printed circuit board template according to the layout wiring diagram.

[0126] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0127] FIG4 is a structural diagram of a printed circuit board type determination device provided by another embodiment of the present invention. As shown in FIG4 , a printed circuit board type determination device includes: a memory 20 for storing a computer program;

[0128] The processor 21 is used to implement the steps of a printed circuit board layout determination method in the above embodiment when executing a computer program.

[0129] The printed circuit board template determination device provided in this embodiment may include but is not limited to a mobile terminal, a personal computer, a workstation, etc.

[0130] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0131] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of a printed circuit board version determination method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, a printed circuit board version determination method, etc.

[0132] In some embodiments, a printed circuit board layout determination device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0133] Those skilled in the art will appreciate that the structure shown in FIG. 4 does not constitute a limitation on a printed circuit board layout determination device, and may include more or fewer components than those shown in the figure.

[0134] An embodiment of the present invention provides a printed circuit board template determination device, including a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a printed circuit board template determination method.

[0135] In addition to the embodiments of the method and device for determining the layout of a printed circuit board provided in the above embodiments, the present invention also provides an embodiment corresponding to a computer program product. A computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the method for determining the layout of a printed circuit board described in any of the above embodiments can be implemented.

[0136] Since the embodiments of the computer program product part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the computer program product part, which will not be repeated here.

[0137] Finally, the present invention also provides an embodiment corresponding to a non-volatile storage medium. The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0138] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store program codes.

[0139] The above is a detailed introduction to a printed circuit board layout determination method, device and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

[0140] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A method for determining a printed circuit board layout, characterized in that: include: Obtaining a circuit schematic and identifying all electronic components in the circuit schematic; According to a chip module layout scheme preset in a chip module layout library, the chip in the electrical components and the peripheral configuration components of the chip are classified into a layout module, and the layout position of each of the electronic components in the layout module is determined; According to a preset binding rule, the associated layout modules are placed adjacent to each other to determine the layout position of each layout module; For other electronic components that are not included in the layout module, the layout positions are determined based on the connection relationship between the other electronic components in the circuit schematic diagram and the principle that the electronic components connected to each other are placed adjacent to each other; Determine the routing of each layout module according to the chip module routing scheme preset in the signal line fan-out library; For other electronic components that are not included in the layout module, generating routing by automatic routing path planning to obtain a layout wiring diagram; The corresponding printed circuit board version is determined according to the layout wiring diagram.

2. The method for determining the printed circuit board template according to claim 1, characterized in that: Determining the corresponding printed circuit board type according to the layout wiring diagram includes: Determine whether each standard template preset in the standard template library meets the layout conditions of the layout wiring diagram; If there is a standard version template that satisfies the layout conditions, the printed circuit board version corresponding to the layout wiring diagram is determined according to the standard version template that satisfies the layout conditions.

3. The method for determining the printed circuit board template according to claim 2, characterized in that: The step of determining the printed circuit board layout corresponding to the layout wiring diagram according to the standard layout template that meets the layout conditions includes: If there is only one standard template that meets the layout conditions, the standard template is used as the printed circuit board template corresponding to the layout wiring diagram; If there are multiple standard templates that meet the layout conditions, determine the space utilization rate of the layout wiring diagram on each standard template; The standard layout template whose space utilization is greater than a preset utilization threshold is determined as the printed circuit board layout corresponding to the layout wiring diagram.

4. The method for determining the printed circuit board template according to claim 2, characterized in that: After determining whether each standard template preset in the standard template library meets the layout conditions of the layout wiring diagram, the method further includes: If there is no standard template that meets the layout conditions, generating the printed circuit board template according to the layout wiring diagram based on a preset template generation rule; The pattern generation rules include: a maximum number of stacked layers, a minimum edge spacing, and a pattern shape restriction.

5. The method for determining the printed circuit board template according to claim 4, characterized in that: If a plurality of printed circuit board templates are generated according to the layout wiring diagram based on a preset template generation rule, when outputting each printed circuit board template, the method further includes: Outputting specification performance parameters corresponding to each printed circuit board version; The specification performance parameters include: version size, number of stacked layers, line length and number of layer changes of the high-speed bus, maximum height of the front side and maximum height of the back side, line width, line spacing and impedance of the signal line.

6. The method for determining the printed circuit board template according to claim 5, characterized in that: The method further comprises: According to each of the specification performance parameters corresponding to the printed circuit board layout, a parameter score corresponding to each of the printed circuit board layouts is generated by a weighted algorithm; Among them, the version size is negatively correlated with the parameter score, the number of stacked layers is negatively correlated with the parameter score, the line length of the high-speed bus is negatively correlated with the parameter score, and the number of layer changes of the high-speed bus is negatively correlated with the parameter score.

7. The method for determining the printed circuit board template according to any one of claims 1 to 6, characterized in that: The chip module layout scheme and the chip module output scheme are determined according to the layout reference scheme and signal output scheme provided in the chip data manual corresponding to the chip; or: The chip module layout scheme and the chip module wiring scheme are generated by a pre-trained machine learning model; Among them, the machine learning model is trained by learning the layout reference solution, signal routing solution and other mature layout design solutions and signal routing design solutions provided in the chip data manual corresponding to the chip.

8. A printed circuit board template determination device, characterized in that: include: A device identification module, used to obtain a circuit schematic and identify all electronic components in the circuit schematic; A module layout module, for classifying the chips in the electrical components and the peripheral configuration components of the chips into a layout module according to a chip module layout scheme preset in a chip module layout library, and determining the layout position of each of the electronic components in the layout module; An inter-module layout module, used to place the associated layout modules adjacent to each other according to a preset binding rule, so as to determine the layout position of each layout module; An off-mold layout module, for determining the layout positions of other electronic components that are not included in the layout module, based on the connection relationship between the other electronic components in the circuit schematic diagram and the principle of placing the electronic components connected to each other adjacently; A module routing module, used to determine the routing of each layout module according to the chip module routing scheme preset in the signal line fan-out library; An off-module routing module is used to generate routing for other electronic components that are not included in the layout module by automatic routing path planning to obtain a layout wiring diagram; The template generation module is used to determine the corresponding printed circuit board template according to the layout wiring diagram.

9. A printed circuit board template determination device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the printed circuit board layout determination method as described in any one of claims 1 to 7 when executing the computer program.

10. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the printed circuit board layout determination method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Layout method, device and system of cabin driving and berthing controller and medium

    CN120756385A