CN117350225A - Layout method, device, equipment and storage medium for elements on printed circuit board - Google Patents

Layout method, device, equipment and storage medium for elements on printed circuit board Download PDF

Info

Publication number
CN117350225A
CN117350225A CN202311169675.4A CN202311169675A CN117350225A CN 117350225 A CN117350225 A CN 117350225A CN 202311169675 A CN202311169675 A CN 202311169675A CN 117350225 A CN117350225 A CN 117350225A
Authority
CN
China
Prior art keywords
circuit board
printed circuit
functional module
elements
layout
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311169675.4A
Other languages
Chinese (zh)
Inventor
李蕾
董李扬
鲁效平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Karos Iot Technology Co ltd
Cosmoplat Industrial Intelligent Research Institute Qingdao Co Ltd
Original Assignee
Karos Iot Technology Co ltd
Cosmoplat Industrial Intelligent Research Institute Qingdao Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Karos Iot Technology Co ltd, Cosmoplat Industrial Intelligent Research Institute Qingdao Co Ltd filed Critical Karos Iot Technology Co ltd
Priority to CN202311169675.4A priority Critical patent/CN117350225A/en
Publication of CN117350225A publication Critical patent/CN117350225A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/39Circuit design at the physical level
    • G06F30/392Floor-planning or layout, e.g. partitioning or placement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2115/00Details relating to the type of the circuit
    • G06F2115/12Printed circuit boards [PCB] or multi-chip modules [MCM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Architecture (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Design And Manufacture Of Integrated Circuits (AREA)

Abstract

The application belongs to the technical field of PCB layout design, and particularly relates to a layout method, device, equipment and storage medium of elements on a printed circuit board. According to the method, element data corresponding to a plurality of elements on a printed circuit board are obtained, a network table corresponding to the printed circuit board is generated according to the element data and an initial schematic diagram, the network table is used for indicating the electrical connection relation among the elements, the elements are classified according to the network table and the functional attribute of each element, an element set corresponding to at least one functional module is obtained, layout processing is conducted on the elements on the printed circuit board according to the element set corresponding to the functional module and each functional module, and modular layout adjustment is conducted on the elements on the printed circuit board, so that the layout effect of the elements on the printed circuit board is improved.

Description

Layout method, device, equipment and storage medium for elements on printed circuit board
Technical Field
The application belongs to the technical field of PCB layout design, and particularly relates to a layout method, device, equipment and storage medium of elements on a printed circuit board.
Background
A printed circuit board (Printed Circuit Board, abbreviated as PCB) is one of the important components of the electronics industry. The PCB is used as a support body of the electronic components, can replace complex wiring, and realizes the electrical connection among the electronic components in the circuit. The PCB consists of an insulating bottom plate, connecting wires and bonding pads for assembling and welding electronic elements, and has the dual functions of a conductive circuit and the insulating bottom plate. In the process of designing a PCB, improper layout causes circuit compatibility problems and signal integrity problems of the PCB, thereby causing failure of PCB design and affecting the manufacturing efficiency of the PCB.
In order to solve the problem that improper PCB layout can cause circuit compatibility problem and signal integrity problem of the PCB, the prior art proposes an automatic PCB layout method, layout patterns are randomly generated through PCB layout software, and the positions and directions of all electronic components in the randomly generated PCB layout are also random.
However, the existing automatic layout method of the PCB is only suitable for the situation that the number of components is small, and when the number of the components is large, the automatic layout effect is poor, and manual adjustment is usually required; in addition, the existing automatic layout method of the PCB takes each component in the PCB layout as an independent unit for layout design, and the modularized layout adjustment of a plurality of components cannot be realized.
Disclosure of Invention
The application provides a layout method, device, equipment and storage medium of elements on a printed circuit board, which are used for solving the problems that the existing automatic layout method of a PCB can not realize modularized layout adjustment of a plurality of components, the layout effect is poor and satisfactory, and manual adjustment is usually required.
In a first aspect, the present application provides a method for layout of components on a printed circuit board, the method comprising:
acquiring element data corresponding to a plurality of elements on a printed circuit board, and generating a network table corresponding to the printed circuit board according to the element data and an initial schematic diagram, wherein the network table is used for indicating the electrical connection relation among the elements;
classifying the plurality of elements according to the network table and the functional attribute of each element to obtain an element set corresponding to at least one functional module;
and carrying out layout processing on the elements on the printed circuit board according to the at least one functional module and the element set corresponding to each functional module.
Optionally, the generating the netlist corresponding to the printed circuit board according to the plurality of element data and the initial schematic diagram includes:
determining a target schematic diagram corresponding to the printed circuit board according to the plurality of element data and the initial schematic diagram;
and generating a network table corresponding to the printed circuit board according to the target schematic diagram.
Optionally, the classifying the plurality of elements according to the network table and the functional attribute of each element to obtain an element set corresponding to at least one functional module includes:
acquiring a special number corresponding to each element from an element library according to the functional attribute of each element, wherein the special number is a unique identifier of the corresponding element;
acquiring the range of the special number of at least one functional module;
classifying the plurality of elements according to the special number corresponding to each element in the network table and the range of the special number of the at least one functional module to obtain a special number list corresponding to the at least one functional module;
and determining the element set corresponding to each functional module according to the special number list corresponding to each functional module.
Optionally, the performing layout processing on the components on the printed circuit board according to the at least one functional module and the component set corresponding to each functional module includes:
determining the area occupied by the at least one functional module when the at least one functional module is arranged on the printed circuit board according to the size of each element in the element set corresponding to the at least one functional module;
and carrying out layout processing on the plurality of elements according to the area of each functional module and a layout wiring rule, wherein the layout wiring rule is determined according to the wiring condition among the plurality of elements.
Optionally, before performing the layout processing on the plurality of elements according to the area of each functional module and the layout wiring rule, the method further includes:
performing macro-block processing on each functional module according to the area of each functional module to obtain a macro-block matrix corresponding to each functional module;
and according to the size of the printed circuit board, carrying out correction processing on the macro block matrixes of the plurality of functional modules, and taking the area occupied by the corrected macro block matrixes as the area of the corresponding functional modules.
Optionally, after the layout processing is performed on the components on the printed circuit board according to the at least one functional module and the component set corresponding to each functional module, the method further includes:
acquiring the total length of wiring among a plurality of elements on the printed circuit board after layout processing;
judging whether the total length of the wiring is larger than a preset length;
when the total length of the wiring is larger than the preset length, determining that the layout processing fails;
and when the total length of the wiring is not greater than the preset length, determining that the layout processing is completed.
In a second aspect, the present application provides a layout apparatus for components on a printed circuit board, the apparatus comprising:
the acquisition module is used for acquiring element data corresponding to a plurality of elements on the printed circuit board;
the generating module is used for generating a network table corresponding to the printed circuit board according to the plurality of element data and the initial schematic diagram, and the network table is used for indicating the electrical connection relation among the plurality of elements;
the processing module is used for classifying the plurality of elements according to the network table and the functional attribute of each element to obtain an element set corresponding to at least one functional module;
the processing module is further configured to perform layout processing on the components on the printed circuit board according to the at least one functional module and the component set corresponding to each functional module.
Optionally, the processing module is further configured to determine a target schematic diagram corresponding to the printed circuit board according to the plurality of element data and the initial schematic diagram;
the generating module is further configured to generate a netlist corresponding to the printed circuit board according to the target schematic diagram.
Optionally, the acquiring module is further configured to acquire, from the element library, a special number corresponding to each element according to the functional attribute of each element, where the special number is a unique identifier of the corresponding element;
the acquisition module is also used for acquiring the range of the special number of at least one functional module;
the processing module is further configured to perform classification processing on the multiple elements according to the special number corresponding to each element in the netlist and the range where the special number of the at least one functional module is located, so as to obtain a special number list corresponding to the at least one functional module;
the processing module is further configured to determine an element set corresponding to each functional module according to the special number list corresponding to each functional module.
Optionally, the processing module is further configured to determine an area occupied by the at least one functional module when the at least one functional module is disposed on the printed circuit board according to a size of each element in the element set corresponding to the at least one functional module;
the processing module is further configured to perform layout processing on the plurality of elements according to an area of each functional module and a layout and wiring rule, where the layout and wiring rule is determined according to a wiring condition between the plurality of elements.
Optionally, the processing module is further configured to perform macro-blocking processing on each functional module according to an area of each functional module, so as to obtain a macro-block matrix corresponding to each functional module;
the processing module is further used for carrying out correction processing on the macro block matrixes of the plurality of functional modules according to the size of the printed circuit board, and taking the area occupied by the corrected macro block matrixes as the area of the corresponding functional modules.
Optionally, the apparatus further includes: a judging module;
the acquisition module is also used for acquiring the total length of wiring among a plurality of elements on the printed circuit board after the layout processing;
the judging module is used for judging whether the total length of the wiring is larger than a preset length;
the processing module is further configured to determine that the layout processing fails when the total length of the wires is greater than the preset length;
and the processing module is further used for determining that the layout processing is completed when the total length of the wiring is not greater than the preset length.
In a third aspect, the present application provides a layout apparatus for components on a printed circuit board, comprising:
a memory;
a processor;
wherein the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory to implement the layout method of the components on the printed circuit board as described in the first aspect and the various possible implementation manners of the first aspect.
In a fourth aspect, the present application provides a storage medium having stored thereon computer-executable instructions that are executed by a processor to implement a layout method for components on a printed circuit board as described in the first aspect and various possible implementations of the first aspect.
According to the layout method of the components on the printed circuit board, the component data corresponding to the components on the printed circuit board are obtained, the network table corresponding to the printed circuit board is generated according to the component data and the initial schematic diagram, the network table is used for indicating the electrical connection relation among the components, the components are classified according to the network table and the functional attribute of each component, the component set corresponding to at least one functional module is obtained, the components on the printed circuit board are subjected to layout according to the component set corresponding to the functional module and each functional module, and the modular layout adjustment of the components on the printed circuit board is realized, so that the layout effect of the components on the printed circuit board is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart of a method for layout of components on a printed circuit board provided by the present application;
FIG. 2 is a second flowchart of a layout method of components on a printed circuit board provided by the present application;
FIG. 3 is a schematic diagram of a layout apparatus for components on a printed circuit board provided in the present application;
fig. 4 is a schematic structural view of a layout apparatus for components on a printed circuit board provided in the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
A printed circuit board (Printed Circuit Board, abbreviated as PCB) is one of the important components of the electronics industry. The PCB is used as a support body of the electronic components, can replace complex wiring, and realizes the electrical connection among the electronic components in the circuit. The PCB consists of an insulating bottom plate, connecting wires and bonding pads for assembling and welding electronic elements, and has the dual functions of a conductive circuit and the insulating bottom plate. In the process of designing a PCB, improper layout causes circuit compatibility problems and signal integrity problems of the PCB, thereby causing failure of PCB design and affecting the manufacturing efficiency of the PCB.
In order to solve the problem that improper PCB layout can cause circuit compatibility problem and signal integrity problem of the PCB, the prior art proposes an automatic PCB layout method, layout patterns are randomly generated through PCB layout software, and the positions and directions of all electronic components in the randomly generated PCB layout are also random.
However, the existing automatic layout method of the PCB is only suitable for the situation that the number of components is small, when the number of components is large, the automatic layout effect is poor, the problems that the arrangement of the components is irregular, the direction is inconsistent, the subsequent wiring is not attractive and the like exist, and manual adjustment is usually required; in addition, the existing automatic layout method of the PCB takes each component in the PCB layout as an independent unit for layout design, and the modularized layout adjustment of a plurality of components cannot be realized.
In view of the above problems, the present application provides a layout method of elements on a printed circuit board, by forming a plurality of elements into a plurality of initial schematic diagrams with corresponding circuit functions, designing according to the plurality of initial schematic diagrams to obtain a target schematic diagram, generating a network table corresponding to the printed circuit board according to the target schematic diagram, classifying and summarizing the plurality of elements in the network table according to a special number list of a plurality of functional modules to obtain an element set corresponding to the plurality of functional modules in the network table, wherein the plurality of functional modules have a corresponding relation with the plurality of initial schematic diagrams, and performing layout processing on the plurality of elements on the printed circuit board based on the area occupied by the plurality of functional modules on the printed circuit board.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be implemented independently or combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 1 is a flowchart of a layout method of elements on a printed circuit board according to an embodiment of the present application, as shown in fig. 1, the layout method of elements on a printed circuit board according to the embodiment includes:
s101, acquiring element data corresponding to a plurality of elements on a printed circuit board, and generating a network table corresponding to the printed circuit board according to the element data and an initial schematic diagram, wherein the network table is used for indicating the electrical connection relation among the elements.
The element data refers to information corresponding to the element stored in the element library, and the element data may include, for example: system code, special number, type, specification model, manufacturer, etc.
The initial schematic diagram refers to a functional circuit diagram which is composed of a plurality of elements and can realize corresponding circuit functions, the number of the initial schematic diagrams can be one or a plurality of the initial schematic diagrams, the number of the initial schematic diagrams is determined according to the functions to be realized by the printed circuit board, for example, the functions can be decomposed into corresponding functional circuits according to the functions required to be realized by the printed circuit board, so that the functions of the printed circuit board can be realized through the connection of the functional circuits, and the functional circuit diagrams corresponding to the functional circuits can be used as the initial schematic diagram.
It will be appreciated that, from the component data stored in the component library by the plurality of components on the printed circuit board, identification information of the plurality of components may be obtained, which may be used to indicate the corresponding components in the network table. Because the initial schematic diagram corresponds to the functional circuit diagram, a plurality of elements in the functional circuit diagram are electrically connected, and therefore, according to the data of the plurality of elements and the initial schematic diagram, a text file reflecting the electrical connection relation among the plurality of elements, namely, a network table corresponding to the printed circuit board, can be obtained.
S102, classifying the elements according to the network table and the functional attribute of each element to obtain an element set corresponding to at least one functional module.
The function module is a module corresponding to a function circuit on the printed circuit board in the network table, and the function module comprises a plurality of elements forming the corresponding function circuit.
It may be understood that the netlist includes a plurality of elements and electrical connection relationships between the plurality of elements, and the functional attribute of each element may be obtained, for example, by using element data stored in an element library, and according to the netlist and the functional attribute of each element, a functional circuit to which each element belongs may be obtained, so that, according to the functional circuit to which each element belongs, each element may be classified to obtain one or more functional modules, where the functional modules are corresponding modules in the netlist of the functional circuits in the printed circuit board.
In this step, the plurality of elements are classified to obtain at least one functional module, and the functional module includes a plurality of elements capable of realizing functions of the functional circuit, that is, the functional module is an element set of all elements in the corresponding functional circuit.
S103, carrying out layout processing on the elements on the printed circuit board according to the at least one functional module and the element set corresponding to each functional module.
Each element in the element set in the at least one functional module can be obtained according to the at least one functional module in the netlist and the element set corresponding to each functional module, and layout processing is performed on the at least one functional module on the printed circuit board to realize layout processing on each element on the printed circuit board.
Optionally, after performing layout processing on the components on the printed circuit board according to the at least one functional module and the component set corresponding to each functional module, the total length of the wiring among the components on the printed circuit board after the layout processing can be obtained; judging whether the total length of the wiring is larger than a preset length; when the total length of the wiring is larger than the preset length, determining that the layout processing fails; and when the total length of the wiring is not greater than the preset length, determining that the layout processing is completed.
According to the layout method of the components on the printed circuit board, the component data corresponding to the components on the printed circuit board are obtained, the network table corresponding to the printed circuit board is generated according to the component data and the initial schematic diagram, the network table is used for indicating the electrical connection relation among the components, the components are classified according to the network table and the functional attribute of each component, the component set corresponding to at least one functional module is obtained, the component on the printed circuit board is subjected to layout according to the component set corresponding to the functional module and each functional module, and the modular layout adjustment of the components on the printed circuit board is realized, so that the layout effect of the components on the printed circuit board is improved.
Fig. 2 is a flowchart second of a layout method of components on a printed circuit board according to an embodiment of the present application. The present embodiment is a detailed description of a layout method of elements on a printed circuit board based on the embodiment of fig. 1. As shown in fig. 2, the layout method of elements on a printed circuit board provided in this embodiment includes:
s201, acquiring element data corresponding to a plurality of elements on a printed circuit board, and determining a target schematic diagram corresponding to the printed circuit board according to the element data and the initial schematic diagram.
The target schematic is a diagram showing the connection principle between the components on the printed circuit board, and is used for indicating the working principle of the circuit on the printed circuit board. The initial schematic is, for example, a functional circuit diagram capable of realizing the corresponding function.
In this step, element data corresponding to a plurality of elements on the printed circuit board can be obtained from the element library, the circuit function to be realized by the printed circuit board is decomposed, a plurality of functional circuits capable of realizing the corresponding functions are obtained, a required functional circuit diagram is obtained from a plurality of functional circuit diagrams stored in the standard circuit library, the functional circuit diagram is used as an initial schematic diagram, and when a plurality of initial schematic diagrams are required, the plurality of initial schematic diagrams are electrically connected to generate a target schematic diagram corresponding to the printed circuit board.
S202, generating a network table corresponding to the printed circuit board according to the target schematic diagram.
The target schematic diagram is determined according to the initial schematic diagram and the plurality of element data, and according to the initial schematic diagram, connection relations among a plurality of elements in the functional circuit can be obtained, so that circuit structures of corresponding functional circuits in the printed circuit board, namely connection relations among corresponding functional circuits on the printed circuit board and connection relations among a plurality of elements in the functional circuits can be obtained according to the target schematic diagram.
Since the connection relation among the plurality of elements and the element data corresponding to the plurality of elements can be obtained according to the target schematic diagram, a corresponding netlist can be generated according to the target schematic diagram, and the electrical connection relation among the plurality of elements is indicated through the netlist.
The purpose of this step is to obtain the netlist corresponding to the printed circuit board through the target schematic diagram, so as to convert the electrical connection relationship between the components on the printed circuit board from the graphic format to the text file format of the netlist.
S203, acquiring a special number corresponding to each element from the element library according to the functional attribute of each element, wherein the special number is the unique identification of the corresponding element.
The elements are used as basic components constituting various functional circuits, and a plurality of elements are combined and electrically connected to realize corresponding functions in the functional circuits. Each element has a corresponding electrical property, i.e. a functional property of the element. The functional properties of the elements may be, for example: providing electric parameters such as resistance, capacitance, inductance and the like, transmitting signals, a control circuit and the like.
It can be understood that the special number of the element has an association relationship with the functional attribute corresponding to the element, so that the special number corresponding to the element can be found from the element library according to the functional attribute of each element, wherein the special numbers of different elements are different, and each element has only one unique special number.
It will be appreciated that in this embodiment, the elements may be identified using a special number, or other symbols may be used to identify the elements. So long as the unique identification of the different elements can be guaranteed to be different.
S204, acquiring the range of the special number of at least one functional module.
The network table comprises element data of all elements of the functional circuit of the printed circuit board, wherein the element data of the elements comprise special numbers corresponding to each element, so that the special numbers corresponding to each element and the range of the special numbers of all elements in at least one functional module can be obtained through the network table. For example, the function module A, which is assigned a number in the range of 1-4.
S205, classifying the plurality of elements according to the special numbers corresponding to each element in the network table and the range of the special numbers of the at least one functional module to obtain a special number list corresponding to the at least one functional module.
All elements on the target schematic diagram of the printed circuit board are included in the network table, so that according to the special number corresponding to each element in the network table and the range of the special number of at least one functional module, the elements can be summarized to the functional module corresponding to the range of the special number according to the range of the special number, and after the classification processing is finished, a corresponding special number list consisting of the special numbers of all elements in the functional module is obtained.
It can be understood that the functional modules and the special number list have a corresponding association relationship, that is, the number of functional circuits in the target schematic diagram is consistent with the number of functional modules in the netlist, and the number of special number lists is the same as the number of functional modules.
It can be understood that when the functional properties of the plurality of elements are the same, the number of functional modules in the present embodiment is one; when the functional attributes of the plurality of elements are different, the number of functional modules in the present embodiment is plural, and the number of the plurality of functional modules is the same as the number of categories of the functional attributes of the plurality of elements. The number of functional modules is exemplified below.
Table 1 is a schematic representation of the list of special numbers provided in this embodiment.
TABLE 1
List of special numbers Element 1 Element 2 Element 3 Element 4 Element 5 Element 6
A(0-5) 5 3
B(6-10) 8
C(11-15) 12 15
D(15-20) 16
As shown in table 1, the number of types of the functional attributes of the plurality of elements is 4, and there are 4 functional modules a-D corresponding to each functional module, where each functional module corresponds to a different list range of private numbers, the list range of private numbers corresponding to functional module a is 0-5, the list range of private numbers corresponding to functional module B is 6-10, the list range of private numbers corresponding to functional module C is 11-15, the list range of private numbers corresponding to functional module D is 15-20, the private number corresponding to element 1 is 5, the private number corresponding to element 2 is 12, the private number corresponding to element 3 is 8, the private number corresponding to element 4 is 16, the private number corresponding to element 5 is 3, and the private number corresponding to element 6 is 15.
When the sorting process is performed, the element 1 is summarized into a special number list corresponding to the function module a, the element 2 is summarized into a special number list corresponding to the function module C, the element 3 is summarized into a special number list corresponding to the function module B, the element 4 is summarized into a special number list corresponding to the function module D, the element 5 is summarized into a special number list corresponding to the function module a, and the element 6 is summarized into a special number list corresponding to the function module C.
S206, determining an element set corresponding to each functional module according to the special number list corresponding to each functional module.
All elements in the functional module are included in the special number list corresponding to each functional module, so that an element set formed by all elements in each functional module can be determined according to the special number list corresponding to each functional module.
It will be understood that the list of special numbers corresponding to each functional module includes a plurality of elements with different functional attributes, and the set of elements may be obtained through the list of special numbers corresponding to the functional modules to which the elements belong, for example, the list of special numbers of the functional module B includes the element 5 with the special number D5 and also includes the element 6 with the special number R6.
S207, determining the occupied area of the at least one functional module when the at least one functional module is arranged on the printed circuit board according to the size of each element in the element set corresponding to the at least one functional module.
The size of each element in the element set corresponding to the functional module is different according to the electronic characteristics such as the functional attribute of the element, and the occupied area of the corresponding functional module on the printed circuit board can be determined according to the size of each element in the functional module. For example, each functional module can be integrally used as a matrix sub-module unit, and the matrix sub-module is correspondingly used as a macro block, and at this time, the layout of the printed circuit board is divided according to a plurality of macro blocks with different area sizes.
Optionally, after determining the area occupied by the at least one functional module when the at least one functional module is arranged on the printed circuit board, macro-block processing may be performed on each functional module according to the area of each functional module, so as to obtain a macro-block matrix corresponding to each functional module; and according to the size of the printed circuit board, carrying out correction processing on the macro block matrixes of the plurality of functional modules, and taking the area occupied by the corrected macro block matrixes as the area of the corresponding functional modules.
S208, carrying out layout processing on the elements according to the area of each functional module and a preset layout wiring rule.
The preset layout and wiring rules are determined according to circuit structures required by the printed circuit board for realizing corresponding functions, and are used for ensuring that the printed circuit board can achieve a preset design effect and ensuring that the printed circuit board has reliability.
For example, according to the area of each functional module, each functional module is arranged according to a preset layout rule of 'big before small, difficult before easy', and the functional module with larger area is arranged first, then the functional module with smaller area is arranged, the complex functional module is arranged first, and then the simple functional module is arranged. In the layout, the functional modules with smaller areas can be placed respectively by referring to the target schematic diagram, and then the placement of each small functional module is arranged according to the main signal flow direction rule of the printed circuit board, and the proper adjustment is performed. The layout is performed around the core element of each functional module, centering on the core element, and the elements should be uniformly, neatly, and compactly arranged. When wiring, the total wiring length should be as short as possible, and the key signal line is shortest; the analog signal is separated from the digital signal; the high frequency signal is separated from the low frequency signal.
According to the layout method of the components on the printed circuit board, the component data corresponding to the components on the printed circuit board are obtained, and the target schematic diagram corresponding to the printed circuit board is determined according to the component data and the initial schematic diagram; generating a network table corresponding to the printed circuit board according to the target schematic diagram; acquiring a special number corresponding to each element from an element library according to the functional attribute of each element, wherein the special number is a unique identifier of the corresponding element; acquiring the range of the special number of at least one functional module; classifying the plurality of elements according to the special number corresponding to each element in the network table and the range of the special number of the at least one functional module to obtain a special number list corresponding to the at least one functional module; determining an element set corresponding to each functional module according to the special number list corresponding to each functional module; determining the area occupied by the at least one functional module when the at least one functional module is arranged on the printed circuit board according to the size of each element in the element set corresponding to the at least one functional module; carrying out layout processing on the elements according to the area of each functional module and a preset layout wiring rule; the method realizes modularized layout adjustment of a plurality of elements on the printed circuit board, and improves the layout effect of the elements on the printed circuit board.
Fig. 3 is a schematic structural diagram of a layout device of elements on a printed circuit board provided by the present application, which is applied to a server. As shown in fig. 3, the layout apparatus 300 of components on a printed circuit board according to the present embodiment includes:
an acquiring module 301, configured to acquire component data corresponding to a plurality of components on a printed circuit board;
a generating module 302, configured to generate a netlist corresponding to the printed circuit board according to a plurality of element data and an initial schematic diagram, where the netlist is used to indicate an electrical connection relationship between the plurality of elements;
the processing module 303 is configured to perform classification processing on the plurality of elements according to the netlist and the functional attribute of each element, to obtain an element set corresponding to at least one functional module;
the processing module 303 is further configured to perform layout processing on the components on the printed circuit board according to the at least one functional module and the component set corresponding to each functional module.
Optionally, the processing module 303 is further configured to determine a target schematic diagram corresponding to the printed circuit board according to the plurality of component data and the initial schematic diagram;
the generating module 302 is further configured to generate a netlist corresponding to the printed circuit board according to the target schematic diagram.
Optionally, the obtaining module 301 is further configured to obtain, from the element library, a special number corresponding to each element according to a functional attribute of each element, where the special number is a unique identifier of the corresponding element;
the acquiring module 301 is further configured to acquire a range in which a specific number of at least one functional module is located;
the processing module 302 is further configured to perform classification processing on the plurality of elements according to the special number corresponding to each element in the netlist and the range where the special number of the at least one functional module is located, so as to obtain a special number list corresponding to the at least one functional module;
the processing module 303 is further configured to determine an element set corresponding to each functional module according to the list of special numbers corresponding to each functional module.
Optionally, the processing module 303 is further configured to determine an area occupied by the at least one functional module when the at least one functional module is disposed on the printed circuit board according to a size of each element in the element set corresponding to the at least one functional module;
the processing module 303 is further configured to perform layout processing on the plurality of elements according to an area of each functional module and a layout and routing rule, where the layout and routing rule is determined according to a routing situation between the plurality of elements.
Optionally, the processing module 303 is further configured to perform macro-blocking processing on each functional module according to an area of each functional module, to obtain a macro-block matrix corresponding to each functional module;
the processing module 303 is further configured to perform correction processing on the macro block matrices of the plurality of functional modules according to the size of the printed circuit board, and take the area occupied by the corrected macro block matrix as the area of the corresponding functional module.
Optionally, the apparatus further includes: a judgment module 304;
the acquiring module 301 is further configured to acquire a total length of wiring between a plurality of elements on the printed circuit board after the layout processing;
the judging module 304 is configured to judge whether the total length of the wiring is greater than a preset length;
the processing module 303 is further configured to determine that the layout processing fails when the total length of the wires is greater than the preset length;
the processing module 303 is further configured to determine that the layout processing is completed when the total length of the wires is not greater than the preset length.
Fig. 4 is a schematic structural diagram of a layout apparatus for components on a printed circuit board provided in the present application. As shown in fig. 4, the present application provides a layout apparatus of components on a printed circuit board, the layout apparatus 400 of components on a printed circuit board including: a receiver 401, a transmitter 402, a processor 403 and a memory 404.
A receiver 401 for receiving instructions and data;
a transmitter 402 for transmitting instructions and data;
memory 404 for storing computer-executable instructions;
a processor 403, configured to execute computer-executable instructions stored in the memory 404, to implement the steps executed by the layout method of the components on the printed circuit board in the above embodiment. Reference is made in particular to the description of the embodiments of the layout method of the components on the printed circuit board described above.
Alternatively, the memory 404 may be separate or integrated with the processor 403.
When the memory 404 is provided separately, the electronic device further comprises a bus for connecting the memory 404 and the processor 403.
The application also provides a computer readable storage medium, in which computer executable instructions are stored, which when executed by a processor, implement a layout method of components on a printed circuit board as executed by the layout device of components on a printed circuit board.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include storage media (or non-transitory media) and communication media (or transitory media). The term storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
While the present application has been described in connection with the preferred embodiments illustrated in the accompanying drawings, it will be readily understood by those skilled in the art that the scope of the application is not limited to such specific embodiments, and the above examples are intended to illustrate the technical aspects of the application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method of layout of components on a printed circuit board, the method comprising:
acquiring element data corresponding to a plurality of elements on a printed circuit board, and generating a network table corresponding to the printed circuit board according to the element data and an initial schematic diagram, wherein the network table is used for indicating the electrical connection relation among the elements;
classifying the plurality of elements according to the network table and the functional attribute of each element to obtain an element set corresponding to at least one functional module;
and carrying out layout processing on the elements on the printed circuit board according to the at least one functional module and the element set corresponding to each functional module.
2. The method of claim 1, wherein generating the netlist corresponding to the printed circuit board based on the plurality of component data and the initial schematic comprises:
determining a target schematic diagram corresponding to the printed circuit board according to the plurality of element data and the initial schematic diagram;
and generating a network table corresponding to the printed circuit board according to the target schematic diagram.
3. The method according to claim 1, wherein the classifying the plurality of elements according to the network table and the functional attribute of each element to obtain the element set corresponding to at least one functional module includes:
acquiring a special number corresponding to each element from an element library according to the functional attribute of each element, wherein the special number is a unique identifier of the corresponding element;
acquiring the range of the special number of at least one functional module;
classifying the plurality of elements according to the special number corresponding to each element in the network table and the range of the special number of the at least one functional module to obtain a special number list corresponding to the at least one functional module;
and determining the element set corresponding to each functional module according to the special number list corresponding to each functional module.
4. The method according to claim 1, wherein the performing layout processing on the components on the printed circuit board according to the at least one functional module and the component set corresponding to each functional module includes:
determining the area occupied by the at least one functional module when the at least one functional module is arranged on the printed circuit board according to the size of each element in the element set corresponding to the at least one functional module;
and carrying out layout processing on the elements according to the area of each functional module and a preset layout wiring rule.
5. The method of claim 4, wherein prior to performing the layout processing on the plurality of elements according to the area of each functional module and the layout routing rules, the method further comprises:
performing macro-block processing on each functional module according to the area of each functional module to obtain a macro-block matrix corresponding to each functional module;
and according to the size of the printed circuit board, carrying out correction processing on the macro block matrixes of the plurality of functional modules, and taking the area occupied by the corrected macro block matrixes as the area of the corresponding functional modules.
6. The method of claim 1, wherein after performing layout processing on the components on the printed circuit board according to the at least one functional module and the component set corresponding to each functional module, the method further comprises:
acquiring the total length of wiring among a plurality of elements on the printed circuit board after layout processing;
judging whether the total length of the wiring is larger than a preset length;
when the total length of the wiring is larger than the preset length, determining that the layout processing fails;
and when the total length of the wiring is not greater than the preset length, determining that the layout processing is completed.
7. A layout apparatus for components on a printed circuit board, comprising:
the acquisition module is used for acquiring element data corresponding to a plurality of elements on the printed circuit board;
the generating module is used for generating a network table corresponding to the printed circuit board according to the plurality of element data and the initial schematic diagram, and the network table is used for indicating the electrical connection relation among the plurality of elements;
the processing module is used for classifying the plurality of elements according to the network table and the functional attribute of each element to obtain an element set corresponding to at least one functional module;
the processing module is further configured to perform layout processing on the components on the printed circuit board according to the at least one functional module and the component set corresponding to each functional module.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the acquisition module is further used for acquiring a special number corresponding to each element from the element library according to the functional attribute of each element, wherein the special number is a unique identifier of the corresponding element;
the acquisition module is also used for acquiring the range of the special number of at least one functional module;
the processing module is further configured to perform classification processing on the multiple elements according to the special number corresponding to each element in the netlist and the range where the special number of the at least one functional module is located, so as to obtain a special number list corresponding to the at least one functional module;
the processing module is further configured to determine an element set corresponding to each functional module according to the special number list corresponding to each functional module.
9. A layout apparatus for components on a printed circuit board, comprising:
a memory;
a processor;
wherein the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of layout of components on a printed circuit board as claimed in any one of claims 1-6.
10. A storage medium having stored therein computer-executable instructions which, when executed by a processor, are adapted to carry out the method of layout of components on a printed circuit board as claimed in any one of claims 1 to 6.
CN202311169675.4A 2023-09-12 2023-09-12 Layout method, device, equipment and storage medium for elements on printed circuit board Pending CN117350225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311169675.4A CN117350225A (en) 2023-09-12 2023-09-12 Layout method, device, equipment and storage medium for elements on printed circuit board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311169675.4A CN117350225A (en) 2023-09-12 2023-09-12 Layout method, device, equipment and storage medium for elements on printed circuit board

Publications (1)

Publication Number Publication Date
CN117350225A true CN117350225A (en) 2024-01-05

Family

ID=89368112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311169675.4A Pending CN117350225A (en) 2023-09-12 2023-09-12 Layout method, device, equipment and storage medium for elements on printed circuit board

Country Status (1)

Country Link
CN (1) CN117350225A (en)

Similar Documents

Publication Publication Date Title
US7870527B2 (en) Method for stacked pattern design of printed circuit board and system thereof
US20140173549A1 (en) Computing device and method of checking wiring diagrams of pcb
US20130055190A1 (en) Computing device and method for checking design of printed circuit board layout file
CN107092757B (en) Method for checking through hole pressure dividing line in PCB design
CN112787713B (en) Terminal state identification method and device, terminal, medium and optical distribution network equipment
CN112380229A (en) Service data synchronization method and device, nonvolatile storage medium and processor
CN114357932B (en) Signal line wiring method, device, equipment and readable storage medium
CN115329556A (en) Transformer substation CAD drawing auditing method and device
CN111050493B (en) Method for determining shape of via hole reverse pad and printed circuit board
CN109581195B (en) PCBA detection method and device
CN117350225A (en) Layout method, device, equipment and storage medium for elements on printed circuit board
CN112199450A (en) Relation graph building method and device and electronic equipment
CN109858155B (en) Simulation method and related device
CN109121296B (en) Circuit board, mobile terminal and circuit board wiring method
CN108846009B (en) Copy data storage method and device in ceph
US7263682B2 (en) System and method for calculating trace lengths of a PCB layout
CN110008020A (en) EMS memory management process, device, electronic equipment and computer readable storage medium
CN109729008A (en) Route selection method, device and computer equipment
CN105868220B (en) Data processing method and device
CN109815547B (en) Resistance replacement method and device for material BOM (bill of material) table and terminal equipment
CN112825503B (en) Link scheduling method and device
CN102955868A (en) Wiring check system and method
CN113325335A (en) Circuit failure detection circuit and method and intelligent electronic equipment
CN113407546A (en) Rule configuration method suitable for various scenes
CN117473940B (en) Electronic design drawing management method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination