Circuit merging method, device, equipment and medium based on circuit board design
By judging and processing line types in EDA design, redundant lines on the circuit board are eliminated, design efficiency and performance are improved, and the problem of low efficiency of line merging in the existing technology is solved.
Patent Information
- Application Number
- CN202410557776.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-08
AI Technical Summary
In EDA design, different lines under the same network have shared line segments, resulting in repeated line generation, reducing the performance and reliability of the circuit board, and the existing technology is inefficient in processing large-scale line collections.
By obtaining the original data of the line group, the nodes on the repeated paths are judged and marked, the line type is determined to be a straight line segment or an arc segment, the segmentation points are sorted by distance or polar angle, the segmentation order data is generated, and then merged to generate a non-repeating path.
It effectively eliminates redundant line structures, improves the overall performance and long-term stability of the circuit, and improves the efficiency and accuracy of line merging. It is especially suitable for design scenarios of large-scale complex line sets.
Smart Images

Figure CN118133738B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic design automation (EDA), and in particular to a circuit merging method, device, equipment and medium based on circuit board design. Background Art
[0002] Currently, in EDA design data, different lines under the same network may have shared line segments. When constructing such a network, if each line is directly generated, multiple duplicate lines will be generated at the location of the shared line. Duplicate lines will reduce the performance and reliability of the circuit board and occupy more circuit board area.
[0003] The prior art reads in the order of the original data, for example, first reads in point E, and divides AB into AE and EB; then reads in point C, traverses the current non-repeating lines, and divides AE into AC and CE. The above process is particularly cumbersome in a large-scale line collection, resulting in low EDA design efficiency. Therefore, a new line merging method, device, equipment and medium based on circuit board design is urgently needed to improve the above problems. Summary of the invention
[0004] The object of the present invention is to provide a circuit merging method, device, equipment and medium based on circuit board design, which is used to improve the efficiency of circuit merging work.
[0005] In a first aspect, the present invention provides a circuit merging method based on circuit board design, comprising: S1, obtaining the original data of a circuit group, and determining whether there is a repeated path in the current circuit group; S2, when the repeated path exists, marking each node on the repeated path as a segmentation point; S3, determining whether the circuit type of the repeated path is a straight line segment or an arc segment based on the original data; S4, sorting all the segmentation points on the straight line segment according to the length from the starting point of the straight line segment, and generating straight line segment segmentation sequence data; or sorting all the segmentation points on the arc segment according to the polar angle size from the starting point of the arc segment, and generating arc segment segmentation sequence data; S5, merging the circuit group based on the straight line segment segmentation sequence data or the arc segment segmentation sequence data to generate a non-repeating path.
[0006] Optionally, S3 further includes obtaining center coordinate parameters in original data of the current line group, and confirming that the line type of the repeated path is an arc segment according to the center coordinate parameters.
[0007] Optionally, all the segmentation points on the straight line segment are sorted according to the length from the starting point of the straight line segment to generate straight line segment segmentation sequence data, including: reading the original data of the line group, taking the first node read as the starting point of the straight line segment, and taking the subsequent nodes read as the subsequent points of the straight line segment; calculating the length value of each subsequent point from the starting point; sorting the subsequent points according to the size of the length value to generate straight line segment segmentation sequence data.
[0008] Optionally, all the segmentation points on the arc segment are sorted according to the polar angle size of the arc segment starting point to generate arc segment segmentation sequence data, including: reading the original data of the line group, taking the first read node as the pole of the arc segment, and taking the subsequent read nodes as the subsequent points of the arc segment; generating a polar axis according to the pole; calculating the polar angle of each subsequent point according to the polar axis; sorting the subsequent points according to the size of the polar angle to generate arc segment segmentation sequence data.
[0009] Optionally, the method further includes S6, obtaining circuit board parameters, updating the line group, and repeatedly executing S1-S5.
[0010] Optionally, the original data of the current line group includes coordinate parameters of each node on the repeated path.
[0011] Optionally, the line group is set as a wire network or a marking line combination.
[0012] In a second aspect, the present invention provides a circuit merging device based on circuit board design, which is used for any method in the first aspect, including: a processing unit, which is used to obtain the original data of the circuit group and determine whether there is a repeated path in the current circuit group; when the repeated path exists, each node on the repeated path is marked as a segmentation point; according to the original data, the line type of the repeated path is determined to be a straight line segment or an arc segment; all the segmentation points on the straight line segment are sorted according to the length from the starting point of the straight line segment to generate straight line segment segmentation sequence data; or all the segmentation points on the arc segment are sorted according to the polar angle size from the starting point of the arc segment to generate arc segment segmentation sequence data; based on the straight line segment segmentation sequence data or the arc segment segmentation sequence data, the circuit group is merged to generate a non-repeating path; a storage unit, which is used to store the original data of the circuit group.
[0013] In a third aspect, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a program for running on the processor, and when the program is executed by the processor, the electronic device implements any one of the methods described in the first aspect.
[0014] In a fourth aspect, the present invention provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed, the method described in any one of the first aspects is implemented.
[0015] The beneficial effects of the present invention are as follows: by accurately judging the line type of repeated paths and adopting targeted segmentation strategies, the present invention can efficiently and accurately decompose straight line segments or arc segments into non-repeated paths, effectively eliminating redundant line structures, and improving the overall performance and long-term stability of the circuit. It is particularly suitable for the design of large-scale complex line sets, and improves the efficiency and accuracy of line merging. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic flow chart of a circuit merging method based on circuit board design provided by the present invention;
[0017] Figure 2 A schematic diagram of a line type of a repeated path provided by the present invention, in which the line type is a straight line segment;
[0018] Figure 3 A schematic diagram of a repeated path provided by the present invention, wherein the line type is an arc segment;
[0019] Figure 4 A schematic diagram of the structure of a circuit merging device based on circuit board design provided by the present invention;
[0020] Figure 5 The present invention provides a schematic structural diagram of an electronic device. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
[0022] In view of the problems existing in the existing technology, such as Figure 1As shown, the first embodiment of the present invention provides a circuit merging method based on circuit board design, including: S1, obtaining the original data of the circuit group, and judging whether there is a repeated path in the current circuit group; S2, when the repeated path exists, marking each node on the repeated path as a segmentation point; S3, determining the line type of the repeated path as a straight line segment or an arc segment according to the original data; S4, sorting all the segmentation points on the straight line segment according to the length from the starting point of the straight line segment, and generating straight line segment segmentation sequence data; or sorting all the segmentation points on the arc segment according to the polar angle size from the starting point of the arc segment, and generating arc segment segmentation sequence data; S5, merging the circuit group based on the straight line segment segmentation sequence data or the arc segment segmentation sequence data to generate a non-repeating path.
[0023] This embodiment accurately determines the line type of repeated paths and adopts a targeted segmentation strategy, so that both straight line segments and arc segments can be efficiently and accurately decomposed into non-repeated paths, effectively eliminating redundant line structures and improving the overall performance and long-term stability of the circuit. It is particularly suitable for design scenarios of large-scale complex line sets, and improves the efficiency and accuracy of line merging.
[0024] like Figure 2 As shown, specifically, in S1, the original data of the line group is set to a plurality of paths. Exemplarily, the original data includes: a first path (AB), a second path (AE, EF), and a third path (AC, CD). The AC segment is repeated 3 times, and the CE segment is repeated 2 times. It is determined that the AC segment and the CE segment are both repeated paths. In S2, based on the repeated path segments AC and CE, nodes C and E are marked as split points. In another example, the starting node A can also be marked as a split point.
[0025] In some embodiments, S3 further includes obtaining the center coordinate parameters in the original data of the current line group, and confirming that the line type of the repeated path is an arc segment according to the center coordinate parameters. In other embodiments, the original data of the current line group includes the coordinate parameters of each node on the repeated path.
[0026] Specifically, the original data includes the arc segment endpoint coordinate parameters and the circle center coordinate parameters. Exemplarily, the original data includes: the first path [(X A , Y A )-(X B , Y B )-(X AB , Y AB )], the second path [(X A , Y A )-(X E , Y E )-(XAE , Y AE ), (X E , Y E )-(X F , Y F )-(X EF , Y EF )], the third path [(X A , Y A )-(X C , Y C )-(X AC , Y AC ), (X C , Y C )-(X D , Y D )-(X CD , Y CD )]. Taking arc segment AB as an example, X A Indicates the horizontal coordinate of point A, Y A represents the ordinate of point A, X AB Indicates the horizontal coordinate of the center of arc AB, Y AB Indicates the ordinate of the center of arc AB. B , Y B ) = (X AB , Y AB ) or (X A , Y A ) = (X AB , Y AB ), confirm that the line type of the repeated path is a straight line segment. B , Y B )≠(X AB , Y AB ) and (X A , Y A )≠(X AB , Y AB ), confirm that the line type of the repeated path is an arc segment.
[0027] In some embodiments, after confirming that the line type of the repeated path is a straight line segment, all the segmentation points on the straight line segment are sorted according to the length from the starting point of the straight line segment to generate straight line segment segmentation sequence data, including: reading the original data of the line group, taking the first node read as the starting point of the straight line segment, and taking the subsequent nodes read as the subsequent points of the straight line segment; calculating the length value of each subsequent point from the starting point; sorting the subsequent points according to the size of the length value to generate straight line segment segmentation sequence data.
[0028] Exemplarily, the original data is read, wherein the first node read is the starting point of the straight line segment. Exemplarily, the order in which the nodes are read is A node, B node, E node, F node, C node and D node, and the A node is confirmed to be the starting point. The subsequent points are B node, E node, F node, C node and D node. The length values of the AC segment, the AE segment and the AB segment are calculated; the repeated paths are sorted from small to large according to the length values, and the split node order can be obtained as: C node, E node, and the corresponding straight line segmentation order data is: AC segment, CE segment and EB segment.
[0029] In another example, the repeated paths are sorted in descending order according to the length values, and the split nodes are sorted as: E node, C node, and the corresponding straight line segment splitting sequence data is: BE segment, EC segment and CA segment.
[0030] like Figure 3 As shown, in some embodiments, after confirming that the line type of the repeated path is an arc segment, all the segmentation points on the arc segment are sorted according to the polar angle size of the arc segment starting point to generate arc segment segmentation sequence data, including: reading the original data of the line group, taking the first node read as the pole of the arc segment, and taking the subsequent nodes read as the subsequent points of the arc segment; generating a polar axis based on the pole; calculating the polar angle of each subsequent point based on the polar axis; sorting the subsequent points according to the size of the polar angle to generate arc segment segmentation sequence data.
[0031] Exemplarily, the order in which the nodes are read is node A, node B, node E, node F, node C, and node D. Node A is confirmed to be a pole, and the polar axis is set to the x-axis passing through node A. Subsequent points are node B, node E, node F, node C, and node D. The polar angles of node C, node E, and node B are calculated; the repeated paths are sorted from small to large according to the polar angles, and the split node order is obtained as: node C, node E, and the corresponding arc segment split order data is: segment BE, segment EC, and segment CA.
[0032] In another example, the repeated paths are sorted from small to large according to the polar angle, and the split nodes are sorted as: E node, C node, and the corresponding arc segment splitting sequence data is: EB segment, AC segment and CE segment.
[0033] In some embodiments, it also includes S6, obtaining circuit board parameters, updating the line group, and repeating S1-S5. Specifically, the line group includes a plurality of straight line segments and arc segments. The straight line segments and the arc segments can be connected to a common node. Exemplarily, a plurality of arc segments connected end to end are set to form an S-shaped, spiral line or curved polygon. In another example, a plurality of straight line segments are connected end to end to form a polygon. In another example, a plurality of straight line segments and a plurality of arc segments are connected end to end to form a rounded polygon.
[0034] In some embodiments, the line group is configured as a wire network or a marking line combination. Specifically, the wire network is configured as a metal wire on a printed circuit board. This embodiment helps reduce short circuits and improve the safety of the circuit board by merging metal wires on the circuit board. In another specific embodiment, the marking line combination can be configured as a silk screen layer marking line. This embodiment helps reduce the thickness of the silk screen layer by merging the silk screen layer marking lines, helps reduce the thickness of the circuit board, and helps improve the heat dissipation performance of a high-density circuit board.
[0035] like Figure 4 As shown, the second embodiment provides a circuit board design-based line merging device 10, which is used for the method described in any one of the above embodiments, including: a processing unit 11, which is used to obtain the original data of the line group and determine whether there is a repeated path in the current line group; when the repeated path exists, each node on the repeated path is marked as a segmentation point; according to the original data, the line type of the repeated path is determined to be a straight line segment or an arc segment; all the segmentation points on the straight line segment are sorted according to the length from the starting point of the straight line segment to generate straight line segment segmentation sequence data; or all the segmentation points on the arc segment are sorted according to the polar angle size from the starting point of the arc segment to generate arc segment segmentation sequence data; based on the straight line segment segmentation sequence data or the arc segment segmentation sequence data, the line group is merged to generate a non-repeated path; a storage unit 12, which is used to store the original data of the line group.
[0036] Specifically, the processing unit 11 is configured as a processor or a processing chip. The storage unit 12 is configured as a memory or a storage chip.
[0037] like Figure 5 As shown, the third embodiment provides an electronic device 20, including a memory 22 and a processor 21, wherein the memory 22 stores a program for running on the processor 21, and when the program is executed by the processor 21, the electronic device 20 implements any one of the methods in the above embodiments.
[0038] In a possible embodiment, the electronic device 20 further includes: an output interface 23 for outputting results; a communication interface 24 for communicating and transmitting signals; and an antenna 25 for transmitting or receiving signals.
[0039] It should be noted that the processor 21 in this embodiment can be an image processing chip or an integrated circuit chip, which has the ability to process image signals. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit in the processor or the instruction in the form of software. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices. The methods, steps and logic block diagrams disclosed in this embodiment can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in this embodiment can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be combined to execute. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0040] It can be understood that the memory 22 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0041] A fourth embodiment provides a readable storage medium, wherein the readable storage medium stores a program, and when the program is executed, the method described in any one of the above embodiments is implemented.
[0042] It is worth noting that if the method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
[0043] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.
Claims
1. A circuit merging method based on circuit board design, characterized in that: include: S1, obtaining the original data of the line group and determining whether there is a repeated path in the current line group; S2, when the repeated path exists, marking each node on the repeated path as a split point; S3, determining, according to the original data, that the line type of the repeated path is an arc segment; S4, reading the original data of the line group, taking the first node read as the pole of the arc segment, and taking the nodes read later as the subsequent points of the arc segment; generating a polar axis according to the pole; calculating the polar angle of each subsequent point according to the polar axis; sorting the subsequent points according to the polar angle, and generating arc segment segmentation sequence data; S5, merging the line groups based on the arc segment segmentation sequence data to generate a non-repetitive path.
2. The method according to claim 1, characterized in that S3 also includes obtaining circle center coordinate parameters in the original data of the current line group, and confirming that the line type of the repeated path is an arc segment according to the circle center coordinate parameters.
3. The method according to claim 1, characterized in that The method further includes S6, obtaining circuit board parameters, updating the line group, and repeatedly executing S1-S5.
4. The method according to claim 1, characterized in that: The original data of the current line group includes coordinate parameters of each node on the repeated path.
5. The method according to claim 1, characterized in that: The line group is arranged as a wire network or a marking line combination.
6. A circuit merging device based on circuit board design, used in the method according to any one of claims 1 to 5, characterized in that: include: A processing unit, used to obtain the original data of the line group, determine whether there is a repeated path in the current line group; when the repeated path exists, mark each node on the repeated path as a split point; Determine the line type of the repeated path as an arc segment according to the original data; read the original data of the line group, take the first node read as the pole of the arc segment, and take the subsequent node read as the subsequent point of the arc segment; generate a polar axis according to the pole; calculate the polar angle of each subsequent point according to the polar axis; sort the subsequent points according to the polar angle to generate arc segment segmentation sequence data; merge the line group based on the arc segment segmentation sequence data to generate a non-repeating path; The storage unit is used to store the original data of the line group.
7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores a program for running on the processor, and when the program is executed by the processor, the electronic device implements the method according to any one of claims 1 to 5.
8. A readable storage medium, wherein a program is stored in the readable storage medium, characterized in that: When the program is executed, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Device routing connection relationship rendering path deduplication method and electronic device
CN110929323A
Graph common-edge detection method, device and equipment and computer readable medium
CN112184742A
System and method for validating wire-laying interval on PCB
CN1696939A
System and method for routing in an electronic design
US11893335B1
Optimizing the layout of circuits based on multiple design constraints
US20170371983A1
