Method and device for aided design of printed circuit board and computer readable medium
By dividing the printed circuit board layout into units and constructing node and edge sets, and assigning edge wiring costs, it solves the problem that the existing automatic wiring method cannot guarantee circuit connectivity and cost optimization, and realizes the problem of circuit connectivity and cost optimization on the printed circuit board. Automated routing environment and optimized routing paths.
Patent Information
- Application Number
- CN202310219124.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-08
- Publication Date
- 2024-09-10
AI Technical Summary
Existing automatic wiring methods cannot guarantee the connectivity and performance of circuits, and are not cost-optimized, mainly because they fail to effectively consider the wiring relationships and wiring paths between electronic devices.
By dividing the printed circuit board layout into units, establishing a node set and an edge set, and assigning a wiring cost to each edge, an automatic wiring environment is constructed, and the automatic wiring algorithm is used to optimize the wiring path to achieve the optimal cost solution.
An optimized solution for automatic wiring on printed circuit boards is realized to ensure circuit connectivity and cost-effectiveness, adapt to changes in board layout, and reduce cross-layer wiring.
Smart Images

Figure CN118627459A
Abstract
Description
Technical Field
[0001] The present application relates to the field of printed circuit board (PCB) design, and in particular to a method, device and computer-readable medium for assisting the design of a PCB. Background Art
[0002] A printed circuit board is an electronic component used to support electronic devices and electrically interconnect the electronic devices to realize a circuit with a specific function. In order to enable the circuit to realize its function and obtain better performance, it is necessary to layout the printed circuit board. This process usually includes the layout stage of the electronic devices and the layout stage of the wires. In the layout stage of the electronic devices, the positions of all electronic devices and the relationship between the pins of the electronic devices can be confirmed. In the layout stage of the wires, the wires between the electronic devices can be laid out based on the confirmed positions of the electronic devices and the relationship between the pins of the electronic devices.
[0003] At present, the wires between electronic devices are usually laid out manually. This method is inefficient. In addition, there are some automatic wiring methods. These existing automatic wiring methods usually only consider the position of the electronic device and the relationship between the pins of the electronic device. This may not guarantee the connectivity of the circuit, nor achieve the optimal wiring solution in terms of performance or cost.
[0004] Therefore, it is hoped to provide an improved technical solution to solve the above problems in the prior art. Summary of the invention
[0005] In view of the above problems, the present application aims to propose a method, an apparatus and a computer-readable medium for assisting the design of a printed circuit board.
[0006] The present application provides a method for assisting the design of a printed circuit board. The method may include: obtaining a set of board drawings corresponding to the printed circuit board; for each board drawing in the board drawing set, dividing the board drawing into a plurality of units to obtain a unit set corresponding to the board drawing set; setting the unit set into a node set; connecting neighbor nodes in the node set to create edges to form an edge set, and setting the routing cost of each edge in the edge set; and constructing an environment for automatic routing on the printed circuit board based on the node set and the edge set. By adopting the above-mentioned technical means of the present application, an environment for subsequent automatic routing on the printed circuit board can be constructed. The environment can be composed of a node set and an edge set. Each edge in the edge set can be set with a routing cost. This helps the subsequent automatic routing algorithm to implement a routing scheme with an optimized routing cost.
[0007] In one embodiment, said dividing the board diagram into a plurality of units may include: dividing the board diagram into a plurality of units of equal size according to the size of the board diagram and / or the layout requirements of the electronic device. Said setting the unit set into a node set may include, for each unit in the unit set: mapping the unit to a node, the position of the node being consistent with the position of the center point of the unit. The position of the node may be stored in the node. The position of the node may include: the position of the center point of the unit corresponding to the node in the board diagram where it is located, and / or the identifier of the board diagram where the unit corresponding to the node is located.
[0008] In one embodiment, the neighbor nodes may include: two nodes corresponding to two units having a common boundary or vertex, and / or two nodes located in adjacent board layouts and having the same position in the board layout. The neighbor nodes may be located outside the forbidden wiring area. The edges between the neighbor nodes may not pass through the forbidden wiring area. By adopting the above-mentioned technical means of the present application, it is possible to create edges only between two nodes located outside the forbidden wiring area, thereby avoiding the existence of edges between the nodes located in the forbidden wiring area and other nodes. In addition, it is also possible to avoid the situation where both nodes are located outside the forbidden wiring area, but there is an edge between the two nodes that is located in the forbidden wiring area. In addition, if the board layout of the printed circuit board is changed, for example, the position of the forbidden wiring area changes due to the movement of the through hole or the electronic device, the above-mentioned technical means of the present application can also be used to conveniently adjust the edge sets between the node sets.
[0009] In one embodiment, the setting of the routing cost of each edge in the edge set may include: calculating the length of the edge based on the positions of the two nodes corresponding to the edge; assigning a routing cost weight to the edge; and calculating the routing cost of the edge based on the length and the routing cost weight. The printed circuit board may be a single-layer printed circuit board or a multi-layer printed circuit board. The board map set may include one or more board maps. Each board map may correspond to a layer of a printed circuit board in the printed circuit board. The assigning of the routing cost weight to the edge may include: determining whether the two nodes corresponding to the edge are located in the same board map; in response to determining that the two nodes are located in the same board map, assigning a first routing cost weight to the edge; and in response to determining that the two nodes are not located in the same board map, assigning a second routing cost weight to the edge, the second routing cost weight being greater than the first routing cost weight. The above-mentioned technical means of the present application can promote the subsequent automatic routing algorithm to implement a routing scheme with optimized routing cost. For example, when routing between two nodes, there may be multiple paths, each of which is composed of multiple edges. For each path, the automatic routing algorithm can calculate the total routing cost of the path based on the multiple routing costs of the multiple edges constituting the path. Furthermore, the automatic routing algorithm can select the path with the least routing cost to implement routing, thereby realizing a routing scheme with optimized routing cost. In particular, assigning a larger routing cost weight to nodes whose two nodes are not located in the same board map, that is, assigning a larger routing cost weight to edges that span multiple board maps, can enable the automatic routing algorithm to conveniently penalize the way of routing across multiple layers of boards, so as to reduce the situation of routing across multiple layers of boards.
[0010] The present application also provides a device for assisting the design of printed circuit boards. The device may include: a board drawing acquisition module, for obtaining a board drawing set corresponding to the printed circuit board; a board drawing segmentation module, for segmenting each board drawing in the board drawing set into multiple units to obtain a unit set corresponding to the board drawing set; a node set setting module, for setting the unit set into a node set; an edge set creation module, for connecting neighboring nodes in the node set to create edges to form an edge set, and setting the routing cost of each edge in the edge set; and an environment construction module, for constructing an environment for automatic routing on the printed circuit board based on the node set and the edge set.
[0011] The present application also provides another device for assisting the design of a printed circuit board, which may include: a processor; and a memory storing computer executable instructions, wherein when the computer executable instructions are executed, the processor implements the method for assisting the design of a printed circuit board as described above.
[0012] The present application also provides a computer-readable medium for assisting the design of a printed circuit board. The computer-readable medium may include instructions, which, when executed, enable a processor to implement the above-mentioned method for assisting the design of a printed circuit board. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The above and other aspects of the present application will be more fully understood from the detailed description below in conjunction with the following drawings. It should be noted that the scales of the drawings may be different for the purpose of clear description, but this will not affect the understanding of the present application. In the drawings:
[0014] Figure 1 An exemplary process for assisting the design of a printed circuit board according to an embodiment of the present disclosure is shown.
[0015] Figure 2 An exemplary process for creating an edge set between node sets according to an embodiment of the present disclosure is shown.
[0016] Figure 3 An exemplary process for setting the routing cost of an edge according to an embodiment of the present disclosure is shown.
[0017] Figure 4 A schematic diagram of assisting in the design of a printed circuit board according to an embodiment of the present disclosure is shown.
[0018] Figure 5 An exemplary device for assisting in designing a printed circuit board according to an embodiment of the present disclosure is shown.
[0019] Figure 6 Another exemplary device for assisting in designing a printed circuit board according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0020] The present disclosure will now be discussed with reference to various exemplary embodiments. It should be understood that the discussion of these embodiments is only for enabling those skilled in the art to better understand and thereby implement the embodiments of the present disclosure, and does not teach any limitation on the scope of the present disclosure.
[0021] Various embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0022] Figure 1An exemplary process 100 for assisting in the design of a printed circuit board according to an embodiment of the present disclosure is shown.
[0023] At 102, a set of layout drawings corresponding to a printed circuit board may be obtained. The set of layout drawings may be obtained from PCB design software. The printed circuit board may be a single-layer printed circuit board or a multi-layer printed circuit board. The set of layout drawings may include one or more layout drawings, each of which may correspond to a layer of printed circuit boards in the printed circuit board. When the printed circuit board is a single-layer printed circuit board, the set of layout drawings may include a single layout drawing. When the printed circuit board is a multi-layer printed circuit board, the set of layout drawings may include multiple layout drawings.
[0024] At 104, for each layout in the layout set, the layout may be divided into a plurality of units to obtain a unit set corresponding to the layout set. For example, for each layout, the layout may be divided into a plurality of units of equal size according to the size of the layout, the layout requirements of the electronic device, etc. The shape of each unit may be, for example, a rectangle. When the printed circuit board is a multi-layer printed circuit board, that is, when the layout set includes a plurality of layouts, the plurality of layouts may be divided in the same manner.
[0025] At 106, the unit set obtained at 104 can be set to a node set. For example, for each unit in the unit set, the unit can be mapped to a node. The position of the node can be consistent with the position of the center point of the unit. Preferably, for each node in the node set, the position of the node can be stored in the node. The position of the node can include the position of the center point of the unit corresponding to the node in the board layout diagram where it is located. The position in the board layout diagram can be represented by two-dimensional coordinates, for example. When the printed circuit board is a multi-layer printed circuit board, that is, when the board layout diagram set includes multiple board layout diagrams, the position of the node can also include the identification of the board layout diagram where the unit corresponding to the node is located.
[0026] At 108, neighbor nodes in the node set may be connected to create edges to form an edge set. Figure 2 The exemplary process for creating an edge set between node sets is described in detail below. Preferably, each edge in the edge set may be provided with a routing cost. Figure 3 hereinafter is used to illustrate an exemplary process for setting the routing cost of an edge.
[0027] After creating the edge set between the node sets, at 110, an environment for automatic routing on the printed circuit board can be constructed based on the node set and the edge set. For example, the node set and the edge set can be combined into a graph. The graph can provide an environment for subsequent automatic routing on the printed circuit board. When the printed circuit board is a single-layer printed circuit board, that is, when the board surface diagram set includes a single board surface diagram, the constructed environment can be a two-dimensional environment. The two-dimensional environment can be provided by a two-dimensional graph composed of a node set and an edge set. When the printed circuit board is a multi-layer printed circuit board, that is, when the board surface diagram set includes multiple board surface diagrams, the constructed environment can be a three-dimensional environment. The three-dimensional environment can be provided by a three-dimensional graph composed of a node set and an edge set.
[0028] Through process 100, an environment for subsequent automatic routing on a printed circuit board can be constructed. The environment can be composed of a node set and an edge set. Each edge in the edge set is provided with a routing cost. This helps the subsequent automatic routing algorithm to implement a routing scheme with an optimized routing cost.
[0029] It should be understood that the above Figure 1 The process described for assisting the design of a printed circuit board is merely exemplary. According to actual application requirements, the steps in the process for assisting the design of a printed circuit board may be replaced or modified in any manner, and the process may include more or fewer steps.
[0030] Figure 2 An exemplary process 200 for creating an edge set between node sets according to an embodiment of the present disclosure is shown. The process 200 may correspond to Figure 1 Step 108 in the process 200. The process 200 may be performed for each node in the node set. In the process 200, the neighbor nodes in the node set may be connected to create edges to form an edge set.
[0031] Process 200 may begin at 202 .
[0032] At 204, it may be determined whether the node is outside a wire taboo zone. The wire taboo zone may be an area pre-marked on a board layout. For example, when the area includes a via, copper foil of an electronic device, or there is an electrical signal restriction, the area may be marked as a wire taboo zone.
[0033] If it is determined at 204 that the node is not outside the keep-out region, ie, it is determined that the node is within the keep-out region, process 200 proceeds to 224 and ends.
[0034] If it is determined at 204 that the node is outside the forbidden wiring area, the process 200 proceeds to 206. At 206, nodes adjacent to the node can be identified. For example, the node adjacent to the node can include a node that is located in the same board map as the node and there is a common border or vertex between the unit corresponding to the node and the unit corresponding to the node. In other words, the neighbor node can include two nodes corresponding to two units with a common border or vertex. When the printed circuit board is a multi-layer printed circuit board, that is, when the board map set includes a plurality of board maps, the node adjacent to the node can also include a node that is located in a board map adjacent to the node and whose position in the board map is the same as that of the node. In other words, the neighbor node can include two nodes that are located in adjacent board maps and have the same position in the board map. When multiple board maps are stacked up and down, the node whose position in the board map is the same as that of the node can be a node directly above or directly below the node.
[0035] At 208, it may be determined whether the identified node is outside of a keepout region.
[0036] If it is determined at 208 that the identified node is outside of the keepout region, process 200 proceeds to 210. At 210, the identified node may be added to a set of neighbor nodes for the node.
[0037] If it is determined at 208 that the identified node is not outside the keepout region, ie, it is determined that the identified node is within the keepout region, process 200 proceeds to 212. At 212, it may be determined whether all nodes adjacent to the node have been identified.
[0038] If it is determined at 212 that all nodes adjacent to the node have not been identified, process 200 returns to 206. At 206, the next node adjacent to the node may continue to be identified. For example, the next node may continue to be identified that is located in the same board map as the node and has a common boundary or vertex between the unit corresponding to the node and the unit corresponding to the node, and / or the next node that is located in the board map adjacent to the node and has the same position in the board map as the node. Subsequent steps may continue to be performed for the identified next node.
[0039] If it is determined at 212 that all nodes adjacent to the node have been identified, process 200 proceeds to 214. At 214, a set of neighbor nodes of the node may be obtained. Subsequently, an edge may be created between the node and each neighbor node in the set of neighbor nodes. In one embodiment, it may be determined whether the edge between the node and the neighbor node passes through a keep-out region. If it is determined that the edge between the node and the neighbor node does not pass through a keep-out region, an edge may be created between the node and the neighbor node.
[0040] At 216 , a neighbor node in the set of neighbor nodes of the node may be extracted.
[0041] At 218 , it may be determined whether an edge between the node and the neighbor node passes through a keepout region.
[0042] If it is determined at 218 that the edge between the node and the neighbor node does not pass through a keepout region, process 200 proceeds to 220. At 220, an edge may be created between the node and the neighbor node.
[0043] If it is determined at 218 that the edge between the node and the neighbor node passes through the keepout region, process 200 proceeds to 222. At 222, it may be determined whether all neighbor nodes in the neighbor node set of the node have been traversed.
[0044] If it is determined at 222 that all neighbor nodes in the neighbor node set of the node have been traversed, process 200 proceeds to 224 and ends. If it is determined at 222 that all neighbor nodes in the neighbor node set of the node have not been traversed, process 200 returns to 216. At 216, the next neighbor node in the neighbor node set of the node can be extracted. Subsequently, subsequent steps can be performed for the extracted next neighbor node. Process 200 can be performed for each node in the node set, thereby creating an edge set between the node sets.
[0045] Through process 200, it can be ensured that the neighbor node is outside the forbidden wiring area, and the edge between the neighbor nodes does not pass through the forbidden wiring area. In process 200, it can be determined whether the node is outside the forbidden wiring area. If it is determined that the node is not outside the forbidden wiring area, that is, it is determined that the node is located in the forbidden wiring area, the neighbor node set of the node is not identified. If it is determined that the node is outside the forbidden wiring area, the neighbor node set of the node can be identified. After identifying the node adjacent to the node, it can be determined whether the identified node is outside the forbidden wiring area. If it is determined that the identified node is outside the forbidden wiring area, the identified node can be added to the neighbor node set of the node. In this way, it can be created only between two nodes located outside the forbidden wiring area, thereby avoiding the existence of an edge between the node located in the forbidden wiring area and other nodes. In addition, it can also avoid the situation where both nodes are located outside the forbidden wiring area, but there is an edge between the two nodes located in the forbidden wiring area. In addition, if the layout of the printed circuit board is changed, for example, the position of the keep-out area changes due to the movement of a through hole or an electronic device, the edge set between the node sets can also be conveniently adjusted through process 200. For example, the edge between the node currently located in the keep-out area and other nodes can be deleted, and the edge between the node previously located in the keep-out area but currently located outside the keep-out area and other nodes can be added, and so on.
[0046] It should be understood that the above Figure 2 The process described for creating an edge set between node sets is exemplary only. The steps in the process for creating an edge set may be replaced or modified in any manner according to actual application requirements, and the process may include more or fewer steps. In addition, the specific order or hierarchy of the steps in process 200 is exemplary only, and the process for creating an edge set between node sets may be performed in an order different from the order described.
[0047] According to an embodiment of the present disclosure, a routing cost of each edge in an edge set may be set. Setting a routing cost for an edge may help a subsequent automatic routing algorithm to implement a routing solution with an optimized routing cost. Figure 3 An exemplary process 300 for setting the routing cost of an edge according to an embodiment of the present disclosure is shown. The process 300 may be performed for each edge in the edge set.
[0048] At 302, the length of the edge may be calculated based on the positions of the two nodes corresponding to the edge. Optionally, the length of the edge may be stored in the edge.
[0049] At 304, a routing cost weight may be assigned to the edge. In one embodiment, it may be determined whether the two nodes corresponding to the edge are located in the same board map. If the two nodes corresponding to the edge are located in the same board map, a first routing cost weight may be assigned to the edge. The first routing cost weight may be, for example, "1". If the two nodes corresponding to the edge are not located in the same board map, i.e., the edge spans multiple board maps, a second routing cost weight may be assigned to the edge. The second routing cost weight may be greater than the first routing cost weight. The second routing cost weight may be, for example, a value greater than "1".
[0050] At 306, the routing cost of the edge may be calculated based on the length of the edge calculated at 302 and the routing cost weight of the edge assigned at 304. For example, the routing cost of the edge may be obtained by multiplying the length of the edge by the routing cost weight of the edge.
[0051] By the above-mentioned method, the subsequent automatic routing algorithm can be promoted to realize a routing scheme with optimized routing cost. For example, when routing between two nodes, there may be multiple paths, each of which is composed of multiple edges. For each path, the automatic routing algorithm can calculate the total routing cost of the path based on the multiple routing costs of the multiple edges constituting the path. Further, the automatic routing algorithm can select the path with the least routing cost to implement the routing, thereby realizing a routing scheme with optimized routing cost. In addition, the two nodes corresponding to the edge are not located in the same board surface diagram, that is, the edge spans multiple board surface diagrams, which means that if the wiring is carried out along the edge, it may be necessary to punch holes on the printed circuit board. This will increase the complexity and cost of the manufacturing process. Therefore, it is desirable to avoid routing across multi-layer boards as much as possible. Assigning a larger routing cost weight to a node whose two nodes are not located in the same board surface diagram, that is, assigning a larger routing cost weight to an edge spanning multiple board surface diagrams, can enable the subsequent automatic routing algorithm to conveniently punish the way of routing across multi-layer boards to reduce the situation of routing across multi-layer boards.
[0052] It should be understood that the above Figure 3 The described process for setting the routing cost of an edge is merely exemplary. According to actual application requirements, the steps in the process for setting the routing cost of an edge may be replaced or modified in any manner, and the process may include more or fewer steps.
[0053] Figure 4 A schematic diagram 400 for assisting the design of a printed circuit board according to an embodiment of the present disclosure is shown. The schematic diagram 400 is drawn for a case where the printed circuit board is a double-layer printed circuit board.
[0054] Layouts 410 and 450 are two layouts corresponding to a double-layer printed circuit board. For the sake of clarity, layouts 410 and 450 are divided into 12 equally sized units, respectively. It should be understood that in actual applications, the layouts can be divided into a greater number of units. In layout 410, a no-wiring area 412 is shown with a shadow. In layout 450, a no-wiring area 452 is shown with a shadow.
[0055] A cell set may be set to a node set. For example, 12 cells in board diagram 410 may be set to 12 nodes, and 12 cells in board diagram 450 may be set to 12 nodes. In schematic diagram 400, nodes are indicated by dots. In addition, in order to distinguish nodes located on different board diagrams, nodes located on board diagram 410 are drawn in white, while nodes located on board diagram 450 are drawn in black. In particular, node 414 is located in the prohibited wiring area 412, and node 454, node 456, node 458, and node 460 are located in the prohibited wiring area 452.
[0056] After setting up the node sets, you can create edge sets between the node sets. Figure 2The process 200 shown in the figure is used to create an edge set between node sets. According to an embodiment of the present disclosure, for each node in the node set, it can be determined whether the node is located outside the forbidden wiring area. If it is determined that the node is not located outside the forbidden wiring area, that is, it is determined that the node is located in the forbidden wiring area, the neighbor node set of the node is not identified. For example, node 414, node 454, node 456, node 458 and node 460 are all located in the forbidden wiring area, so the neighbor node set of these nodes is not identified. The neighbor node set of the node located outside the forbidden wiring area can be identified. The process of identifying the neighbor node set is described below using node 416 as an example. Nodes that are located in the same board map as node 416 and adjacent to node 416 can be identified. The identified nodes can include node 418, node 414 and node 420. In addition, a node that is located in a board map adjacent to node 416 and whose position in the board map is the same as that of node 416 can also be identified. The identified node can be node 460 in board map 450. Subsequently, it can be determined whether the identified node is located outside the forbidden wiring area. For example, node 418, node 420 and node 460 are located outside the forbidden wiring area, and node 414 is located in the forbidden wiring area. The identified node located outside the forbidden wiring area can be added to the neighbor node set of node 416. For example, node 418, node 420 and node 460 can be added to the neighbor node set of node 416, and node 414 is not added to the neighbor node set of node 416. Then, an edge can be created between node 416 and each neighbor node in the neighbor node set. For example, an edge can be created between node 416 and node 418, between node 416 and node 420, and between node 416 and node 460. Preferably, an edge located in the same board surface diagram can be created first, for example, edge 422 is created between node 416 and node 418, and edge 424 is created between node 416 and node 420. Next, edges across different board graphs may be created, such as edge 470 between node 416 and node 460. The routing cost weight assigned to edge 470 may be higher than the routing cost weights assigned to edges 422 and 424. This is because the two nodes corresponding to edge 470, node 416 and node 460, are located in different board graphs, while the two nodes corresponding to edge 422, node 416 and node 418, are located in the same board graph, and the two nodes corresponding to edge 424, node 416 and node 420, are located in the same board graph.
[0057] After setting the node set and creating the edge set between the node sets, the node set and the edge set can be combined into a graph corresponding to the printed circuit board, such as a three-dimensional graph 480. The three-dimensional graph 480 can provide a three-dimensional environment for subsequent automatic routing on the printed circuit board.
[0058] In schematic diagram 400, only two board surface diagrams corresponding to a double-layer printed circuit board are shown. It should be understood that the method for auxiliary design of a printed circuit board according to an embodiment of the present disclosure can be applied to printed circuit boards of any number of layers. When the printed circuit board is a single-layer printed circuit board, a two-dimensional environment can be constructed. When the printed circuit board is a multi-layer printed circuit board, a three-dimensional environment containing more planes can be constructed. In addition, in schematic diagram 400, each node can have a maximum of 8 neighbor nodes in the same board surface diagram, that is, neighbor nodes can exist in 8 directions. However, according to actual application requirements, the number of neighbor nodes of each node in the same board surface diagram can be more or less. For example, when wiring in a non-right-angle manner is not allowed on the printed circuit board, each node can have a maximum of 4 neighbor nodes in the same board surface diagram.
[0059] Figure 5 An exemplary device 500 for assisting the design of a printed circuit board according to an embodiment of the present disclosure is shown. The device 500 may include: a board drawing acquisition module 510, for obtaining a board drawing set corresponding to a printed circuit board; a board drawing segmentation module 520, for segmenting the board drawing into a plurality of units for each board drawing in the board drawing set to obtain a unit set corresponding to the board drawing set; a node set setting module 530, for setting the unit set to a node set; an edge set creation module 540, for connecting neighbor nodes in the node set to create edges to form an edge set, and setting the routing cost of each edge in the edge set; and creating an edge between the node and each neighbor node in the neighbor node set; and an environment construction module 550, for constructing an environment for automatic routing on the printed circuit board based on the node set and the edge set. In addition, the device 500 may also include any other modules configured for assisting the design of a printed circuit board according to the above-mentioned embodiments of the present disclosure.
[0060] Figure 6 Another exemplary apparatus 600 for assisting the design of a printed circuit board according to an embodiment of the present disclosure is shown. The apparatus 600 may include: a processor 610; and a memory 620 storing computer executable instructions. When the computer executable instructions are executed, the processor 610 may implement any operation of the method for assisting the design of a printed circuit board as described above.
[0061] An embodiment of the present disclosure provides a computer program product for assisting the design of a printed circuit board, including a computer program, wherein the computer program is executed by a processor to implement any operation of the method for assisting the design of a printed circuit board as described above.
[0062] The embodiments of the present disclosure may be embodied in a non-transitory computer-readable medium. The non-transitory computer-readable medium may include instructions, which, when executed, cause a processor to perform any operation of the method for assisting the design of a printed circuit board as described above.
[0063] It should be understood that all modules in the above described device can be implemented in various ways. These modules can be implemented as hardware, software, or a combination thereof. In addition, any module in these modules can be further divided into submodules or combined together in function.
[0064] Processors have been described in conjunction with various devices and methods. These processors can be implemented using electronic hardware, computer software or any combination thereof. Whether these processors are implemented as hardware or software will depend on specific application and the overall design constraints imposed on the system. As an example, the processor provided in the present disclosure, any part of the processor or any combination of processors can be implemented as a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a state machine, a gate logic, a discrete hardware circuit, and other suitable processing components configured to perform the various functions described in the present disclosure. The function of the processor provided in the present disclosure, any part of the processor or any combination of processors can be implemented as software executed by a microprocessor, a microcontroller, a DSP or other suitable platforms.
[0065] Those skilled in the art should understand that the various embodiments disclosed above may be subject to various modifications and variations without departing from the essence of the invention, and these modifications and variations should fall within the protection scope of the present invention, and the protection scope of the present invention should be defined by the claims.
Claims
1. A method for assisting the design of a printed circuit board, comprising: Obtaining a set of board drawings corresponding to a printed circuit board; For each board surface image in the board surface image set, dividing the board surface image into a plurality of units to obtain a unit set corresponding to the board surface image set; Setting the unit set to a node set; Connecting neighbor nodes in the node set to create edges to form an edge set, and setting a routing cost for each edge in the edge set; and Based on the node set and the edge set, an environment for automatic wiring on the printed circuit board is constructed.
2. The method according to claim 1, wherein: The dividing the board surface diagram into a plurality of units comprises: dividing the board surface diagram into a plurality of units of equal size according to the size of the board surface diagram and / or the layout requirements of the electronic device, and / or The step of setting the unit set to a node set includes, for each unit in the unit set: mapping the unit to a node, wherein the position of the node is consistent with the position of the center point of the unit.
3. The method according to claim 2, further comprising: The position of the node is stored in the node, and the position of the node includes: the position of the center point of the unit corresponding to the node in the board diagram where it is located, and / or the identifier of the board diagram where the unit corresponding to the node is located.
4. The method according to claim 1, wherein: The neighbor nodes include: two nodes corresponding to two cells that have a common boundary or vertex, and / or Two nodes that are located in adjacent board graphs and have the same position in the board graph.
5. The method according to claim 1, wherein: The neighbor node is located outside the keep-out zone, and / or The edges between the neighbor nodes do not pass through the keep-out region.
6. The method according to claim 1, wherein: The setting of the routing cost of each edge in the edge set includes: Calculating the length of the edge based on the positions of the two nodes corresponding to the edge; assigning routing cost weights to the edges; and Based on the length and the routing cost weight, a routing cost of the edge is calculated.
7. The method according to claim 6, wherein: The printed circuit board is a single-layer printed circuit board or a multi-layer printed circuit board, the board layout set includes one or more board layouts, each board layout corresponds to a layer of the printed circuit board in the printed circuit board, and the allocating routing cost weights to the edges includes: Determining whether two nodes corresponding to the edge are located in the same board graph; In response to determining that the two nodes are located in the same floor plan, assigning a first routing cost weight to the edge; and In response to determining that the two nodes are not located in the same floor plan, a second routing cost weight is assigned to the edge, the second routing cost weight being greater than the first routing cost weight.
8. A device for assisting the design of a printed circuit board, comprising: A board surface drawing acquisition module is used to obtain a board surface drawing set corresponding to a printed circuit board; A board surface diagram segmentation module, for segmenting each board surface diagram in the board surface diagram set into a plurality of units to obtain a unit set corresponding to the board surface diagram set; A node set setting module, used for setting the unit set into a node set; An edge set creation module, used to connect neighbor nodes in the node set to create edges to form an edge set, and set a routing cost for each edge in the edge set; as well as The environment construction module is used to construct an environment for automatic wiring on the printed circuit board based on the node set and the edge set.
9. A device for assisting the design of a printed circuit board, comprising: processor; as well as A memory storing computer executable instructions which, when executed, cause the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable medium for aiding the design of a printed circuit board, comprising instructions which, when executed, cause a processor to implement the method according to any one of claims 1 to 7.
