Circuit board design violation position elimination method and device
By automatically drawing auxiliary lines and selecting vertices in the circuit board design software, and creating special spacing rules, the problem of detecting and eliminating design violation positions in the existing technology is solved, accurate coverage and automatic application of rules are achieved, and the accuracy of the design is improved. and efficiency.
Patent Information
- Application Number
- CN202410841176.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-03
AI Technical Summary
When existing circuit board design software handles design violation locations, it is difficult to automatically detect and eliminate locations where the trace spacing does not meet the rule requirements, and the accuracy of manual drawing of regions and the ability to automatically create special spacing rules are insufficient, resulting in design violation locations being missed. Can completely eliminate or appear redundant areas.
By selecting the traces for violation reminders in the circuit board design software, drawing auxiliary lines of preset length, recording the intersection information, and automatically selecting the vertices of the special rule area based on the intersection coordinates and trace endpoint coordinates, creating and adding special spacing rules to Eliminate design violations.
It realizes automatic detection and elimination of design violation positions, accurately covers line segments whose trace spacing does not meet the preset spacing, simplifies operations, and improves design accuracy and efficiency.
Smart Images

Figure CN118586357A
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit board design, and in particular to a method and device for eliminating illegal positions in circuit board design, an electronic device and a storage medium. Background Art
[0002] With the development of cloud computing applications, in order to improve server performance, the devices and wiring on PCB boards (Printed Circuit Board, PCB for short) are becoming more and more dense, but the spacing between every two devices or traces must still meet the value required by the rules. In the actual design process, there will be a large number of DRC (Design Rule Check) positions, that is, positions where the spacing does not meet the requirements of the rules, and engineers need to confirm each DRC. For low-risk DRCs, the region area (the area of the circuit board that follows special spacing requirements) can be used to frame the area that does not meet the requirements of the rules, indicating that the special spacing requirement value of the area is lower than the preset value. When the actual trace spacing in the region area is greater than the special spacing requirement value of the area, the DRC will disappear.
[0003] The following problems exist in the prior art: First, since it is more convenient to draw rectangles in software, the drawn region is generally a rectangle rather than a polygon formed along the edges of two circuit elements, that is, the drawn region cannot cover the two traces that generate DRC and the corresponding lengths on the traces without redundancy; second, the drawn region requires engineers to manually set special spacing requirement values. However, in order to more conveniently ensure that DRC is eliminated, a spacing that only meets the processing requirements is generally set in advance as the special spacing requirement value between the two traces in the region. This will cause the spacing requirement control to be too broad. If the two traces in the region continue to approach, DRC will not appear. Summary of the invention
[0004] The embodiment of the present application provides a method for eliminating illegal positions in circuit board design to solve or at least partially solve the above technical problems.
[0005] Correspondingly, the embodiments of the present application also provide a device for eliminating illegal positions in circuit board design, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0006] In order to solve the above problems, an embodiment of the present application discloses a method for eliminating illegal positions in circuit board design, which is applied to circuit board design software. A circuit board is drawn on the circuit board design software, and the circuit board includes at least a first routing line and a second routing line. The spacing between the first routing line and the second routing line is less than a preset spacing, so that a violation reminder appears at the corresponding position on the circuit board. The method includes:
[0007] Selecting the design violation positions of the first routing line and the second routing line where the violation reminder appears;
[0008] Draw an auxiliary line of a preset length, and record the intersection information of the auxiliary line with the first routing line and the second routing line, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing line;
[0009] Traversing the intersection information according to a preset rule, selecting vertex coordinates of a special regular area from the intersection coordinates and the endpoint coordinates of the routing line, and connecting the vertex coordinates to obtain the special regular area;
[0010] Creating a special spacing rule according to the spacing between the first routing line and the second routing line;
[0011] Adding the special spacing rule to the special rule area eliminates the design violation location.
[0012] In an optional embodiment of the present application, drawing an auxiliary line of a preset length and recording intersection information of the auxiliary line with the first routing line and the second routing line respectively includes:
[0013] Obtaining the endpoint coordinates of the first routing line and the endpoint coordinates of the second routing line;
[0014] Taking the endpoint coordinates of the first routing line as the midpoint, draw a first auxiliary line of a preset length perpendicular to the first routing line;
[0015] Calculate first intersection information of the first auxiliary line and the second line using a preset function according to the coordinate information of the first auxiliary line and the endpoint coordinates of the second line;
[0016] Recording the first intersection information, wherein the first intersection information includes existence information of the first intersection, coordinates of the first intersection, and endpoint coordinates of the first route corresponding to a first auxiliary line corresponding to the first intersection, wherein the existence information of the intersection indicates whether the first intersection exists;
[0017] Taking the endpoint coordinates of the second routing line as the midpoint, draw a second auxiliary line of a preset length perpendicular to the second routing line;
[0018] Calculate the second intersection information of the second auxiliary line and the first line respectively using the preset function according to the coordinate information of the second auxiliary line and the endpoint coordinates of the first line;
[0019] The second intersection information is recorded, wherein the second intersection information includes existence information of the second intersection, coordinates of the second intersection, and endpoint coordinates of the second route corresponding to a second auxiliary line corresponding to the second intersection, and the existence information of the intersection indicates whether the second intersection exists.
[0020] In an optional embodiment of the present application, traversing the intersection information according to a preset rule and selecting vertex coordinates of a special regular area from the intersection coordinates and the endpoint coordinates of the line includes:
[0021] Traversing the intersection information to determine whether the intersection exists;
[0022] When the intersection point exists, obtaining the coordinates of the intersection point and the endpoint coordinates of the route corresponding to the auxiliary line corresponding to the intersection point from the intersection point information;
[0023] The intersection coordinates and the endpoint coordinates of the line corresponding to the auxiliary line corresponding to the intersection are used as the vertex coordinates of the special regular area.
[0024] In an optional embodiment of the present application, the method further includes:
[0025] In the case that the intersection does not exist, the intersection coordinates in the intersection information and the endpoint coordinates of the route corresponding to the auxiliary line corresponding to the intersection are discarded.
[0026] In an optional embodiment of the present application, after selecting the design violation positions of the first routing line and the second routing line where the violation reminder appears, the method further includes:
[0027] The preset distance of the design violation location and the distance between the first routing line and the second routing line are read according to the database identifier of the design violation location.
[0028] In an optional embodiment of the present application, the creating a special spacing rule according to the spacing between the first routing line and the second routing line includes:
[0029] Create a new spacing rule using a rule creation function, wherein the spacing rule includes at least a spacing parameter;
[0030] Setting the spacing parameter to the spacing between the first routing line and the second routing line to obtain the special spacing rule;
[0031] Returns the special spacing rule.
[0032] In an optional embodiment of the present application, adding the special spacing rule to the special rule area to eliminate the design violation position includes:
[0033] Adding the special spacing rule to the special rule area so that the preset spacing of the special rule area is updated to the spacing parameter in the special spacing rule;
[0034] It is determined that the distance between the first routing line and the second routing line is equal to the preset distance between the special rule areas, and the design violation position is eliminated.
[0035] The embodiment of the present application also discloses a device for eliminating illegal positions in circuit board design, which is applied to circuit board design software. A circuit board is drawn on the circuit board design software. The circuit board includes at least a first routing line and a second routing line. The spacing between the first routing line and the second routing line is less than a preset spacing, so that an illegal reminder appears at a corresponding position on the circuit board. The device includes:
[0036] A position selection module, used for selecting the design violation positions of the first routing line and the second routing line where the violation reminder appears;
[0037] An auxiliary line drawing module, used to draw auxiliary lines of preset lengths, and record the intersection information of the auxiliary lines with the first routing line and the second routing line, respectively, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing line;
[0038] A vertex selection module, used to traverse the intersection information according to a preset rule, select vertex coordinates of a special regular area from the intersection coordinates and the endpoint coordinates of the routing line, and connect the vertex coordinates to obtain the special regular area;
[0039] A rule creation module, used for creating a special spacing rule according to the spacing between the first routing line and the second routing line;
[0040] The rule adding module is used to add the special spacing rule into the special rule area to eliminate the design violation position.
[0041] An embodiment of the present application also discloses an electronic device, including: a processor; and a memory, on which executable code is stored. When the executable code is executed, the processor executes the method for eliminating illegal positions in circuit board design as described in one or more of the embodiments of the present application.
[0042] The embodiments of the present application also disclose one or more machine-readable media on which executable codes are stored. When the executable codes are executed, the processor executes the method for eliminating illegal locations in circuit board design as described in one or more of the embodiments of the present application.
[0043] Compared with the prior art, the embodiments of the present application have the following advantages:
[0044] In an embodiment of the present application, the design violation positions of the first and second routing lines where violation alerts appear are selected; auxiliary lines of preset lengths are drawn, and the intersection information of the auxiliary lines with the first and second routing lines is recorded, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing lines; the intersection information is traversed according to preset rules, and the vertex coordinates of the special rule area are selected from the intersection coordinates and the endpoint coordinates of the routing lines, and the vertex coordinates are connected to obtain the special rule area; a new special spacing rule is created according to the spacing between the first and second routing lines; the special spacing rule is added to the special rule area to eliminate the design violation position. The embodiment of the present application automatically calculates the vertex coordinates of the special rule area to be drawn, thereby drawing the boundary of the special rule area, and automatically creates the special spacing rule for the routing of the special rule area, and applies the special spacing rule to the special rule area, which has the advantages of simple operation, the drawn special rule area can accurately cover the line segments whose routing spacing does not meet the preset spacing, and the automatic application of the special spacing rule parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic diagram of the spacing of the design violation positions of the circuit board design violation positions elimination method embodiment of the present application;
[0046] Figure 2A It is a schematic diagram of a method for drawing a special rule area in an existing embodiment of a circuit board design illegal position elimination method of the present application;
[0047] Figure 2B It is a schematic diagram of a method for drawing a special rule area in another embodiment of a circuit board design illegal position elimination method of the present application;
[0048] Figure 3 It is a flowchart of the steps of an embodiment of a method for eliminating illegal positions in circuit board design of the present application;
[0049] Figure 4 It is a schematic diagram of a design violation position of an embodiment of a circuit board design violation position elimination method of the present application;
[0050] Figure 5 It is a schematic diagram of auxiliary line drawing of an embodiment of a method for eliminating illegal positions in circuit board design of the present application;
[0051] Fig. 6AIt is a schematic diagram of auxiliary line drawing of another circuit board design illegal position elimination method embodiment of the present application;
[0052] Figure 6B It is a schematic diagram of auxiliary line drawing of another embodiment of a method for eliminating illegal positions in circuit board design of the present application;
[0053] Figure 7 It is a schematic diagram of a special rule area of an embodiment of a circuit board design illegal position elimination method of the present application;
[0054] Figure 8 It is a structural block diagram of an embodiment of a circuit board design illegal position elimination device of the present application;
[0055] Fig. 9 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0057] With the development of cloud computing applications, informatization has gradually covered all areas of society. People's daily work and life are increasingly communicated through the Internet, and the amount of network data is also increasing. These network data are processed by servers, so the performance requirements of servers are also higher. The server is a complex system composed of a large number of computing, storage, and management chips, which requires PCB boards (i.e. circuit boards) as support to connect many functional modules. In order to improve server performance, the signal rate is increasing exponentially, the chip calculation speed is increasing year-on-year, and the devices and wiring on the PCB board are becoming more and more dense, but the spacing between every two devices or traces must still meet the value required by the rules. In the actual design process, there will be a large number of DRC positions (i.e. design violation positions), that is, positions where the spacing does not meet the rule requirements, and engineers need to confirm each DRC. For low-risk DRCs, the region area (i.e. special rule area) can be used to frame the area that does not meet the rule requirements, indicating that the special spacing requirement value of the area is lower than the preset value. When the actual trace spacing in the region area is greater than the special spacing requirement value of the area, the DRC will disappear.
[0058] Reference Figure 1 , is a schematic diagram of the routing spacing of the design violation position of an embodiment of a method for eliminating the design violation position of a circuit board of the present application.
[0059] like Figure 1As shown, the spacing between the traces on the circuit board needs to meet the preset spacing value required by the rules. When the spacing between two traces is less than the preset spacing value required by the rules, a violation reminder of the design violation position will appear at the corresponding position.
[0060] The following problems exist in the prior art: First, since it is more convenient to draw rectangles in software, the drawn region is generally a rectangle rather than a polygon formed along the edges of two circuit elements, that is, the drawn region cannot cover the two traces that generate DRC and the corresponding lengths on the traces without redundancy; second, the drawn region requires engineers to manually set special spacing requirements. However, in order to more conveniently ensure that DRC is eliminated, a spacing that only meets the processing requirements is generally set in advance as the special spacing requirement between the two traces in the region. This will cause the spacing requirement control to be too broad. If the two traces in the region continue to approach each other, DRC will not appear. The following will be based on Figure 2A and Figure 2B , which more intuitively demonstrates the defects of the method for drawing special regular areas in the prior art.
[0061] Reference Figure 2A , is a schematic diagram of an existing method for drawing special rule areas in an embodiment of a method for eliminating illegal positions in circuit board design of the present application.
[0062] like Figure 2A As shown in the figure, when the drawn region is a rectangle, if the rectangle cannot completely cover the position where the spacing between two traces does not meet the rule requirements, the design violation position will still exist, but will be moved to a position outside the region that is not covered by the rectangle.
[0063] Reference Figure 2B , is a schematic diagram of an existing method for drawing special rule areas in another circuit board design illegal position elimination method embodiment of the present application.
[0064] like Figure 2B As shown in the figure, when the drawn region is a rectangle, if the rectangle completely covers the position where the spacing between two traces does not meet the rule requirements, although the design violation position is eliminated, a redundant region appears.
[0065] In the prior art, Allegro software (a professional electronic design automation software) provides the function of manually drawing rectangular and polygonal regions. However, it requires engineers to manually use this function to draw the boundary lines of the region, and then use the boundary lines to form the region. This manual method cannot detect the length of the traces where the trace spacing does not meet the requirements of the rules, and the accuracy of manual drawing cannot be guaranteed. At the same time, although Allegro software provides the function of manually setting the spacing between devices and traces covered by the region, it still requires engineers to manually create it and then apply the spacing parameters to the manually drawn region.
[0066] In summary, the existing method of drawing a region to eliminate design violation locations has the following disadvantages:
[0067] 1. The manual operation of drawing rectangular and polygonal regions cannot detect the routing length of locations where the routing spacing does not meet the requirements of the rules.
[0068] 2. When manually drawing rectangular and polygonal regions, the drawing accuracy cannot be guaranteed.
[0069] 3. Allegro software cannot automatically create special spacing rules for region routing, nor can it automatically apply special spacing parameters to the drawn region.
[0070] 4. The manually set region area routing spacing generally only takes the minimum value that meets the processing requirements, which is quite different from the normal routing spacing requirements. Although DRC can be eliminated, DRC will not be reported even if the routing is brought closer, and the risk of manual error operation increases.
[0071] To this end, an embodiment of the present application proposes a method for automatically drawing region areas to eliminate design violation locations, which can automatically detect the length of spacing that does not meet the rule requirements, realize drawing polygonal region areas, and reduce the introduction of redundant areas; at the same time, it can automatically set and select region area rules.
[0072] Reference Figure 3 , is a flowchart of an embodiment of a method for eliminating illegal positions in circuit board design of the present application, comprising the following steps:
[0073] Step 301: Select the design violation positions of the first routing line and the second routing line where the violation reminder appears.
[0074] A method for eliminating a circuit board design violation position in an embodiment of the present application is applied to circuit board design software, which can be used to design a PCB (Printed Circuit Board, abbreviated as circuit board). A circuit board is drawn on the circuit board design software, and the circuit board at least includes a first routing line and a second routing line parallel to each other, and the spacing between the first routing line and the second routing line is less than a preset spacing, that is, the first routing line and the second routing line have a DRC position (i.e., a design violation position), so a violation reminder will appear at the corresponding position on the circuit board.
[0075] Reference Figure 4 , is a schematic diagram of a design violation position of an embodiment of a circuit board design violation position elimination method of the present application.
[0076] like Figure 4 As shown, trace A (i.e., the first trace) and trace B (i.e., the second trace) on the circuit board are parallel to each other, and the spacing between trace A and trace B is less than the preset spacing, so a violation reminder of the design violation position appears.
[0077] In step 301, the design violation positions of the first routing and the second routing where the violation reminder appears are selected. In an optional embodiment, when the program starts running, the engineer is prompted to select the design violation position. After the engineer selects the design violation position by clicking, the program will obtain the DBID (Database Identifier) of the design violation position and record it as DBID_DR. DBID_DR is actually an array that stores several characteristic parameters of the design violation position. Use DBID_DRC->expected (that is, use the "array name + pointer + parameter name" method to read the expected parameter) to take out the preset spacing value and record it as Expected_value, use DBID_DRC->actual (that is, use the "array name + pointer + parameter name" method to read the actual parameter) to take out the actual spacing value of the first routing and the second routing and record it as Actual_value. Actual_value will be used when automatically setting the routing spacing requirements of the special rule area in the subsequent process.
[0078] Step 302: Draw an auxiliary line of a preset length, and record the intersection information of the auxiliary line with the first routing line and the second routing line, respectively. The intersection information includes the intersection coordinates and the endpoint coordinates of the routing line.
[0079] In step 302, auxiliary lines of preset lengths are drawn according to the endpoints of the first routing line and the second routing line. For example, the preset length may be 100 mil (unit of length, 1 inch = 1000 mil, and 1 mil = 0.0254 mm), and the embodiments of the present application do not impose any restrictions on this. According to the intersection of the auxiliary line and the routing line, the intersection information of the auxiliary line with the first routing line and the second routing line is recorded, and the intersection information includes at least the intersection coordinates and the endpoint coordinates of the routing line. In an optional embodiment, the intersection information includes whether the intersection of the auxiliary line and another routing line exists, the intersection coordinates, the endpoint coordinates of the routing line corresponding to the auxiliary line corresponding to the intersection, etc.
[0080] Step 303: traverse the intersection information according to a preset rule, select vertex coordinates of a special regular area from the intersection coordinates and the endpoint coordinates of the routing line, and connect the vertex coordinates to obtain the special regular area.
[0081] In step 303, the intersection information is traversed according to the preset rule, the vertex coordinates of the special regular area are selected from the intersection coordinates and the endpoint coordinates of the route, and the vertex coordinates are connected to obtain the special regular area. In an optional embodiment, it is first determined whether the auxiliary line has an intersection with another route. If there is an intersection, the intersection coordinates and the endpoint coordinates of the route corresponding to the auxiliary line are stored in the array list_inflection_point. After the traversal is completed, four coordinates have been stored in the list_inflection_point array, and these four coordinates are the vertex coordinates of the special regular area. These four coordinates can be connected to obtain the special regular area.
[0082] In an optional embodiment, the Create_auto_region(list_inflection_point) function is required to connect the vertex coordinates to form a special regular region. The list_inflection_point array is the input variable of the function, and the function can connect the coordinates in the list_inflection_point in sequence from beginning to end.
[0083] Step 304: Create a special spacing rule according to the spacing between the first routing line and the second routing line.
[0084] In step 304, a special spacing rule is newly created based on the spacing between the first and second routing lines in the special rule area. In an optional embodiment, a custom function Create_Region_spacing (region_name line_to_line Actual_value-1) can be used to create a special spacing rule (i.e., region rule) in the circuit board design software based on the Actual_value value, in which the line to line parameter (i.e., spacing parameter) is set to Actual_value-1 (i.e., set to the spacing value between the first and second routing lines), and the DBID of the newly created region rule is returned, recorded as New_region. The spacing parameter of the region rule is Actual_value-1, which can ensure that the spacing between routing lines is greater than the spacing requirement of the special rule area, that is, the regional space requirement is met.
[0085] Step 305: Add the special spacing rule to the special rule area to eliminate the design violation position.
[0086] In step 305, the set special spacing rule is added to the special rule region, thereby eliminating the design violation position. In an optional embodiment, the custom function Add_Region_to_shape (New_region DBID_Region_1) can add the region rule New_region newly created in step 304 to the special rule region created in step 303. In this way, the spacing requirement between the first routing line and the second routing line in the special rule region becomes Actual_value-1 (i.e., the spacing value between the first routing line and the second routing line), Actual_value>Actual_value-1 (i.e., the actual spacing value is greater than the spacing value between the first routing line and the second routing line). At this time, the routing spacing meets the requirements and the design violation position is automatically eliminated.
[0087] In an embodiment of the present application, the design violation positions of the first and second routing lines where violation alerts appear are selected; auxiliary lines of preset lengths are drawn, and the intersection information of the auxiliary lines with the first and second routing lines is recorded, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing lines; the intersection information is traversed according to preset rules, and the vertex coordinates of the special rule area are selected from the intersection coordinates and the endpoint coordinates of the routing lines, and the vertex coordinates are connected to obtain the special rule area; a new special spacing rule is created according to the spacing between the first and second routing lines; the special spacing rule is added to the special rule area to eliminate the design violation position. The embodiment of the present application automatically calculates the vertex coordinates of the special rule area to be drawn, thereby drawing the boundary of the special rule area, and automatically creates the special spacing rule for the routing of the special rule area, and applies the special spacing rule to the special rule area, which has the advantages of simple operation, the drawn special rule area can accurately cover the line segments whose routing spacing does not meet the preset spacing, and the automatic application of the special spacing rule parameters.
[0088] In an optional embodiment of the present application, drawing an auxiliary line of a preset length and recording intersection information of the auxiliary line with the first routing line and the second routing line respectively includes:
[0089] Obtaining the endpoint coordinates of the first routing line and the endpoint coordinates of the second routing line;
[0090] Taking the endpoint coordinates of the first routing line as the midpoint, draw a first auxiliary line of a preset length perpendicular to the first routing line;
[0091] Calculate first intersection information of the first auxiliary line and the second line using a preset function according to the coordinate information of the first auxiliary line and the endpoint coordinates of the second line;
[0092] Recording the first intersection information, wherein the first intersection information includes existence information of the first intersection, coordinates of the first intersection, and endpoint coordinates of the first route corresponding to a first auxiliary line corresponding to the first intersection, wherein the existence information of the intersection indicates whether the first intersection exists;
[0093] Taking the endpoint coordinates of the second routing line as the midpoint, draw a second auxiliary line of a preset length perpendicular to the second routing line;
[0094] Calculate the second intersection information of the second auxiliary line and the first line respectively using the preset function according to the coordinate information of the second auxiliary line and the endpoint coordinates of the first line;
[0095] The second intersection information is recorded, wherein the second intersection information includes existence information of the second intersection, coordinates of the second intersection, and endpoint coordinates of the second route corresponding to a second auxiliary line corresponding to the second intersection, and the existence information of the intersection indicates whether the second intersection exists.
[0096] In this embodiment, when drawing auxiliary lines, it is necessary to first obtain the endpoint coordinates of the first route and the endpoint coordinates of the second route. In one embodiment, the endpoint coordinates of the first route include its end point coordinates and start point coordinates, and the endpoint coordinates of the second route also include its end point coordinates and start point coordinates.
[0097] With the endpoint of the first route as the midpoint, draw a first auxiliary line of a preset length perpendicular to the first route. In an optional embodiment, two first auxiliary lines are drawn with the end point and the starting point of the first route as the midpoints respectively. According to the coordinate information of the first auxiliary line and the endpoint coordinates of the second route, a preset function is used to calculate the first intersection information of the first auxiliary line and the second route respectively, that is, the first intersection information of the first auxiliary line and the second route is calculated and recorded according to the coordinates of the end point and the starting point of the first auxiliary line and the end point coordinates and the starting point coordinates of the second route. The first intersection information includes the existence information of the first intersection, the first intersection coordinates, and the endpoint coordinates of the first route corresponding to the first auxiliary line corresponding to the first intersection. The existence information of the intersection is used to characterize whether the first intersection exists.
[0098] Similarly, with the endpoint of the second route as the midpoint, a second auxiliary line of a preset length is drawn perpendicular to the second route. In an optional embodiment, two second auxiliary lines are drawn with the end point and the starting point of the second route as the midpoints, respectively. According to the coordinate information of the second auxiliary line and the endpoint coordinates of the first route, a preset function is used to calculate the second intersection information of the second auxiliary line and the first route, that is, the second intersection information of the second auxiliary line and the first route is calculated and recorded according to the coordinates of the end point and the starting point of the second auxiliary line and the end point coordinates and the starting point coordinates of the first route. The second intersection information includes the existence information of the second intersection, the second intersection coordinates, and the endpoint coordinates of the second route corresponding to the second auxiliary line corresponding to the second intersection. The existence information of the intersection is used to characterize whether the second intersection exists.
[0099] In an optional embodiment, DBID_DRC->violations (i.e., using the "array name + pointer + parameter name" method to read the violations parameter) can be used to obtain the DBIDs of the first line A and the second line B, which are recorded as DBID_cline_seg_A and DBID_cline_seg_B respectively. DBID_cline_seg_A->startEnd (i.e., using the "array name + pointer + parameter name" method to read the endpoint coordinates of line A) is used to obtain the starting point coordinates of line A, recorded as (X_A_start, Y_A_start); and the end point coordinates of line A, recorded as (X_A_end, Y_A_end). Similarly, the starting point coordinates of line B are obtained, recorded as (X_B_start, Y_B_start); and the end point coordinates of line B are recorded as (X_B_end, Y_B_end).
[0100] With the starting coordinates of route A (X_A_start, Y_A_start) as the midpoint, draw auxiliary line 1 (i.e., the first auxiliary line) of a preset length perpendicular to route A, and obtain the starting coordinates (X_aux_1_start, Y_aux_1_start) and end coordinates (X_aux_1_end, Y_aux_1_end) of auxiliary line 1. Through the custom function intersection_point_detect(list((X_aux_1_start, Y_aux_1_start)(X_aux_1_end, Y_aux_1_end))list((X_B_start, Y_B_start)(X_B_end, Y_B_end))), after inputting the starting and end coordinates of auxiliary line 1 and the starting and end coordinates of route B into the function, two return values are obtained, namely, the first intersection information is obtained. One is whether auxiliary line 1 and trace B have an intersection, 1 means there is an intersection, 0 means there is no intersection, and the parameter A_start_node_state is used to record it; the second is the coordinates of the intersection, and the parameter A_start_node_xy is used to record the coordinates of the intersection. If there is an intersection, A_start_node_state = 1, and A_start_node_xy is used to record the coordinates of the intersection, otherwise A_start_node_state = 0 and A_start_node_xy = (0,0).
[0101] As above, draw auxiliary line 3 (i.e., the first auxiliary line) with the end point of route A as the midpoint, and obtain the first intersection information of auxiliary line 3 and route B, which is recorded by A_end_node_state; then draw auxiliary lines 2 and 4 (i.e., the second auxiliary line) with the starting point and end point of route B as the midpoints, respectively, and obtain the second intersection information of auxiliary lines 2 and 4 with route A, respectively, which is recorded by B_start_node_state and B_end_node_state. To make the auxiliary line drawing steps of this embodiment clearer, the following is Figure 5 The example explains the drawing of auxiliary lines.
[0102] Reference Figure 5 , is a schematic diagram of auxiliary line drawing of an embodiment of a method for eliminating illegal positions in circuit board design of the present application.
[0103] like Figure 5As shown, the trace A (i.e., the first trace) and trace B (i.e., the second trace) on the circuit board are parallel to each other, and the spacing between trace A and trace B is less than the preset spacing, so a violation reminder of the design violation position appears. With the starting point and the end point of trace A as the midpoint, auxiliary lines 1 and 3 (i.e., the first auxiliary lines) are drawn perpendicular to trace A, and the first intersection information of auxiliary lines 1 and 3 with trace B is obtained respectively; and auxiliary lines 2 and 4 (i.e., the second auxiliary lines) are drawn with the starting point and the end point of trace B as the midpoint, and the second intersection information of auxiliary lines 2 and 4 with trace A is obtained respectively. It can be understood that since there is no intersection between auxiliary line 1 and trace B, the parameters corresponding to auxiliary line 1 are A_start_node_state=0 and A_start_node_xy=(0,0); since there is an intersection between auxiliary line 3 and trace B, the parameters corresponding to auxiliary line 3 are A_end_node_state=1 and A_end_node_xy=(A_end_x,A_end_y). Similarly, the parameters corresponding to auxiliary line 2 are B_start_node_state=1 and B_start_node_xy=(B_start_x, B_start_y), and the parameters corresponding to auxiliary line 4 are B_end_node_state=0 and B_end_node_xy=(0,0).
[0104] The following are examples of auxiliary line drawing for design violation locations with two different routing styles.
[0105] Reference Fig. 6A , is a schematic diagram of auxiliary line drawing of another embodiment of a method for eliminating illegal positions in circuit board design of the present application.
[0106] like Fig. 6A As shown, the traces A and B on the circuit board are parallel to each other, and the spacing between traces A and B is less than the preset spacing, so a violation reminder of the design violation position appears. With the starting point and end point of trace A as the midpoint, auxiliary lines 2 and 3 are drawn perpendicular to trace A, and the first intersection information of auxiliary lines 2 and 3 with trace B is obtained respectively; then with the starting point and end point of trace B as the midpoint, auxiliary lines 1 and 4 are drawn perpendicular to trace B, and the second intersection information of auxiliary lines 1 and 4 with trace A is obtained respectively. Obviously, auxiliary lines 2 and 3 have intersections with trace B, and auxiliary lines 1 and 4 do not have intersections with trace A.
[0107] Reference Figure 6B , is a schematic diagram of auxiliary line drawing of another embodiment of a method for eliminating illegal positions in circuit board design of the present application.
[0108] like Figure 6BAs shown, the traces A and B on the circuit board are parallel to each other, and the spacing between traces A and B is less than the preset spacing, so a violation reminder of the design violation position appears. With the starting point and end point of trace A as the midpoint, auxiliary lines 2 and 3 are drawn perpendicular to trace A, and the first intersection information of auxiliary lines 2 and 3 with trace B is obtained respectively; then with the starting point and end point of trace B as the midpoint, auxiliary lines 1 and 4 are drawn perpendicular to trace B, and the second intersection information of auxiliary lines 1 and 4 with trace A is obtained respectively. Obviously, auxiliary line 2 has an intersection with trace B, while auxiliary line 3 does not have an intersection with trace B; auxiliary line 4 has an intersection with trace A, while auxiliary line 1 does not have an intersection with trace A.
[0109] The embodiment of the present application provides parameters and related coordinates for the subsequent selection of special regular areas by drawing auxiliary lines and recording the intersection information of the auxiliary lines and the routing lines, thereby achieving automatic drawing of accurate special regular areas.
[0110] In an optional embodiment of the present application, traversing the intersection information according to a preset rule and selecting vertex coordinates of a special regular area from the intersection coordinates and the endpoint coordinates of the line includes:
[0111] Traversing the intersection information to determine whether the intersection exists;
[0112] When the intersection point exists, obtaining the coordinates of the intersection point and the endpoint coordinates of the route corresponding to the auxiliary line corresponding to the intersection point from the intersection point information;
[0113] The intersection coordinates and the endpoint coordinates of the line corresponding to the auxiliary line corresponding to the intersection are used as the vertex coordinates of the special regular area.
[0114] In this embodiment, when drawing a special regular area, the intersection information of the auxiliary line is first traversed, and it is determined whether there is an intersection between the auxiliary line and another line according to the intersection information. If the auxiliary line and another line have an intersection, the coordinates of the intersection and the endpoint coordinates of the line corresponding to the auxiliary line are obtained from the intersection information as the vertex coordinates of the special regular area.
[0115] Reference Figure 7 , is a schematic diagram of a special rule area of an embodiment of a circuit board design violation elimination method of the present application.
[0116] like Figure 7As shown, trace A and trace B on the circuit board are parallel to each other, and the spacing between trace A and trace B is less than the preset spacing, so a violation reminder for the design violation position appears. With the starting point and end point of trace A as the midpoints, draw auxiliary lines 1 and 3 perpendicular to trace A; then draw auxiliary lines 2 and 4 with the starting point and end point of trace B as the midpoints. It can be understood that since auxiliary line 3 and trace B have an intersection point C, the coordinates of the intersection point C and the coordinates of the end point D of trace A corresponding to auxiliary line 3 are obtained; similarly, since auxiliary line 2 and trace A have an intersection point A, the coordinates of the intersection point A and the coordinates of the starting point B of trace B corresponding to auxiliary line 2 are obtained. The coordinates of points A, B, C, and D are used as the vertex coordinates of the special regular area. Connect points A, B, C, and D to get Figure 7 The solid black area is a special regular area.
[0117] The embodiment of the present application realizes automatic drawing of special regular areas by automatically calculating the vertex coordinates of the special regular areas to be drawn.
[0118] In an optional embodiment of the present application, the method further includes:
[0119] In the case that the intersection does not exist, the intersection coordinates in the intersection information and the endpoint coordinates of the route corresponding to the auxiliary line corresponding to the intersection are discarded.
[0120] In this embodiment, if there is no intersection between an auxiliary line and another routing line, when traversing the intersection information, the intersection coordinates in the intersection information of the corresponding auxiliary line and the endpoint coordinates of the routing line corresponding to the auxiliary line corresponding to the intersection are discarded. Figure 7 If there is no intersection between auxiliary line 1 and route B, the coordinates of the intersection between auxiliary line 1 and route B and the starting point coordinates of route A are discarded during traversal.
[0121] The embodiment of the present application can reduce the amount of data to be processed by discarding the intersection information of auxiliary lines that do not have intersections, thereby improving the processing efficiency of drawing special regular areas.
[0122] In an optional embodiment of the present application, after selecting the design violation positions of the first routing line and the second routing line where the violation reminder appears, the method further includes:
[0123] The preset distance of the design violation location and the distance between the first routing line and the second routing line are read according to the database identifier of the design violation location.
[0124] In this embodiment, after selecting the design violation position of the first routing and the second routing where the violation reminder appears, the preset spacing of the design violation position and the spacing between the first routing and the second routing can be read according to the database identifier of the design violation position. In an optional embodiment, after the engineer selects the design violation position by point selection, the program will obtain the DBID (Database Identifier) of the design violation position and record it as DBID_DR. DBID_DR is actually an array that stores several characteristic parameters of the design violation position. Use DBID_DRC->expected (that is, use the "array name + pointer + parameter name" method to read the expected parameter) to take out the preset spacing value and record it as Expected_value, use DBID_DRC->actual (that is, use the "array name + pointer + parameter name" method to read the actual parameter) to take out the actual spacing value between the first routing and the second routing and record it as Actual_value, and Actual_value will be used when automatically setting the routing spacing requirements of the special rule area in the subsequent process.
[0125] The embodiment of the present application can be used to subsequently automatically create special spacing rules for routing in special rule areas by obtaining the preset spacing of the design violation position and the spacing between the first routing and the second routing, thereby applying the special spacing rules to the special rule areas.
[0126] In an optional embodiment of the present application, the creating a special spacing rule according to the spacing between the first routing line and the second routing line includes:
[0127] Create a new spacing rule using a rule creation function, wherein the spacing rule includes at least a spacing parameter;
[0128] Setting the spacing parameter to the spacing between the first routing line and the second routing line to obtain the special spacing rule;
[0129] Returns the special spacing rule.
[0130] In this embodiment, when creating a special spacing rule for routing in a special rule area, first use the rule creation function to create a new spacing rule using the spacing parameter, and set the spacing parameter to the spacing between the first routing and the second routing, and you can get the special spacing rule returned by the rule creation function.
[0131] In an optional embodiment, a custom function Create_Region_spacing (region_name line_to_line Actual_value-1) can be used to create a special spacing rule (i.e., region rule) in the circuit board design software according to the Actual_value value (i.e., the spacing value between the first and second routing lines), in which the line toline parameter (i.e., spacing parameter) is set to Actual_value-1 (i.e., set to the spacing value between the first and second routing lines), and the DBID of the newly created region rule (i.e., the newly created special spacing rule) is returned, recorded as New_region. The spacing parameter of the region rule is Actual_value-1, which can ensure that the spacing between routing lines is greater than the spacing requirement of the special rule area, that is, the regional space requirement is met.
[0132] In the embodiment of the present application, by using the actual spacing of the routing lines to create a new special spacing rule, the difference between the applied special rule area parameters and the actual spacing of the routing lines can be minimized.
[0133] In an optional embodiment of the present application, adding the special spacing rule to the special rule area to eliminate the design violation position includes:
[0134] Adding the special spacing rule to the special rule area so that the preset spacing of the special rule area is updated to the spacing parameter in the special spacing rule;
[0135] It is determined that the distance between the first routing line and the second routing line is equal to the preset distance between the special rule areas, and the design violation position is eliminated.
[0136] In this embodiment, after obtaining the special spacing rule, the special spacing rule is added to the special rule area so that the preset spacing of the special rule area is updated to the spacing parameter in the special spacing rule, and then it can be determined that the spacing between the first routing line and the second routing line is equal to the preset spacing of the special rule area, and the design violation position is eliminated.
[0137] In an optional embodiment, the custom function Add_Region_to_shape (New_region DBID_Region_1) can add the newly created special spacing rule New_region to the special rule region. In this way, the spacing requirement between the first routing line and the second routing line in the special rule region becomes Actual_value-1 (i.e., the spacing value between the first routing line and the second routing line), Actual_value>Actual_value-1 (i.e., the actual spacing value is greater than the spacing value between the first routing line and the second routing line). At this time, the routing spacing meets the requirements, and the design violation position is automatically eliminated.
[0138] In the embodiment of the present application, the newly created special spacing rule is automatically applied to the special rule area, and there is no need to manually set the parameters of the special rule area.
[0139] In an optional embodiment of the present application, the circuit board design software can also provide a real-time preview function. That is, in the circuit board design software, when drawing a circuit board, the special rule area of each design violation position and the special spacing rule parameters corresponding to the special rule area can be displayed in real time and automatically. When the engineer adjusts the parameters such as the routing, position and length of the components on the circuit board, the special rule area and the corresponding special spacing rule parameters will also change in real time.
[0140] The embodiment of the present application provides a more intuitive design interface through a real-time preview function, which can speed up the completion of circuit board design.
[0141] In an embodiment of the present application, the design violation positions of the first and second routing lines where violation alerts appear are selected; auxiliary lines of preset lengths are drawn, and the intersection information of the auxiliary lines with the first and second routing lines is recorded, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing lines; the intersection information is traversed according to preset rules, and the vertex coordinates of the special rule area are selected from the intersection coordinates and the endpoint coordinates of the routing lines, and the vertex coordinates are connected to obtain the special rule area; a new special spacing rule is created according to the spacing between the first and second routing lines; the special spacing rule is added to the special rule area to eliminate the design violation position. The embodiment of the present application automatically calculates the vertex coordinates of the special rule area to be drawn, thereby drawing the boundary of the special rule area, and automatically creates the special spacing rule for the routing of the special rule area, and applies the special spacing rule to the special rule area, which has the advantages of simple operation, the drawn special rule area can accurately cover the line segments whose routing spacing does not meet the preset spacing, and the automatic application of the special spacing rule parameters.
[0142] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.
[0143] On the basis of the above-mentioned embodiment, this embodiment further provides a device for eliminating illegal positions in circuit board design, which is applied to electronic devices such as terminal devices and servers.
[0144] Reference Figure 8 , shows a structural block diagram of an embodiment of a circuit board design illegal position elimination device of the present application, which may specifically include the following modules:
[0145] A position selection module 801 is used to select the design violation positions of the first routing and the second routing where the violation reminder appears;
[0146] An auxiliary line drawing module 802 is used to draw auxiliary lines of a preset length, and record the intersection information of the auxiliary lines with the first routing line and the second routing line, respectively, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing line;
[0147] The vertex selection module 803 is used to traverse the intersection information according to a preset rule, select the vertex coordinates of the special regular area from the intersection coordinates and the endpoint coordinates of the line, and connect the vertex coordinates to obtain the special regular area;
[0148] A rule creation module 804, configured to create a special spacing rule according to the spacing between the first routing line and the second routing line;
[0149] The rule adding module 805 is used to add the special spacing rule to the special rule area to eliminate the design violation position.
[0150] In an optional embodiment of the present application, the auxiliary line drawing module 802 further includes:
[0151] An endpoint acquisition submodule, used to acquire the endpoint coordinates of the first routing line and the endpoint coordinates of the second routing line;
[0152] A first auxiliary line drawing submodule, used for drawing a first auxiliary line of a preset length perpendicular to the first line with the coordinates of the endpoints of the first line as the midpoint;
[0153] A first intersection information calculation submodule, configured to calculate first intersection information of the first auxiliary line and the second routing line respectively using a preset function according to the coordinate information of the first auxiliary line and the endpoint coordinates of the second routing line;
[0154] A first intersection information recording submodule is used to record the first intersection information, wherein the first intersection information includes existence information of the first intersection, coordinates of the first intersection, and endpoint coordinates of the first routing line corresponding to a first auxiliary line corresponding to the first intersection, wherein the existence information of the intersection indicates whether the first intersection exists;
[0155] A second auxiliary line drawing submodule, used for drawing a second auxiliary line of a preset length perpendicular to the second line with the coordinates of the endpoints of the second line as the midpoint;
[0156] A second intersection information calculation submodule, used to calculate second intersection information of the second auxiliary line and the first routing line respectively using the preset function according to the coordinate information of the second auxiliary line and the endpoint coordinates of the first routing line;
[0157] The second intersection information recording submodule is used to record the second intersection information, wherein the second intersection information includes the existence information of the second intersection, the second intersection coordinates, and the endpoint coordinates of the second route corresponding to the second auxiliary line corresponding to the second intersection, and the existence information of the intersection indicates whether the second intersection exists.
[0158] In an optional embodiment of the present application, the vertex selection module 803 is further used to:
[0159] Traversing the intersection information to determine whether the intersection exists;
[0160] When the intersection point exists, obtaining the coordinates of the intersection point and the endpoint coordinates of the route corresponding to the auxiliary line corresponding to the intersection point from the intersection point information;
[0161] The intersection coordinates and the endpoint coordinates of the line corresponding to the auxiliary line corresponding to the intersection are used as the vertex coordinates of the special regular area.
[0162] In an optional embodiment of the present application, the device further includes:
[0163] The intersection information discarding module is used to discard the intersection coordinates in the intersection information and the endpoint coordinates of the route corresponding to the auxiliary line corresponding to the intersection when the intersection does not exist.
[0164] In an optional embodiment of the present application, the device further includes:
[0165] The spacing reading module is used to read the preset spacing of the design violation position and the spacing between the first routing line and the second routing line according to the database identifier of the design violation position.
[0166] In an optional embodiment of the present application, the rule creation module 804 includes:
[0167] A rule function submodule, used to create a new spacing rule using a rule creation function, wherein the spacing rule includes at least a spacing parameter;
[0168] A parameter setting submodule, used for setting the spacing parameter to the spacing between the first routing line and the second routing line to obtain the special spacing rule;
[0169] The rule returning submodule is used to return the special spacing rule.
[0170] In an optional embodiment of the present application, the rule adding module 805 is further used to:
[0171] Adding the special spacing rule to the special rule area so that the preset spacing of the special rule area is updated to the spacing parameter in the special spacing rule;
[0172] It is determined that the distance between the first routing line and the second routing line is equal to the preset distance between the special rule areas, and the design violation position is eliminated.
[0173] In an embodiment of the present application, the design violation positions of the first and second routing lines where violation alerts appear are selected; auxiliary lines of preset lengths are drawn, and the intersection information of the auxiliary lines with the first and second routing lines is recorded, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing lines; the intersection information is traversed according to preset rules, and the vertex coordinates of the special rule area are selected from the intersection coordinates and the endpoint coordinates of the routing lines, and the vertex coordinates are connected to obtain the special rule area; a new special spacing rule is created according to the spacing between the first and second routing lines; the special spacing rule is added to the special rule area to eliminate the design violation position. The embodiment of the present application automatically calculates the vertex coordinates of the special rule area to be drawn, thereby drawing the boundary of the special rule area, and automatically creates the special spacing rule for the routing of the special rule area, and applies the special spacing rule to the special rule area, which has the advantages of simple operation, the drawn special rule area can accurately cover the line segments whose routing spacing does not meet the preset spacing, and the automatic application of the special spacing rule parameters.
[0174] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of each method step in the embodiment of the present application.
[0175] The present application embodiment provides one or more machine-readable media on which instructions are stored, and when executed by one or more processors, an electronic device executes one or more of the methods described in the above embodiments. In the present application embodiment, the electronic device includes various types of devices such as terminal devices and servers (clusters).
[0176] The embodiments of the present disclosure may be implemented as a device configured as desired using any appropriate hardware, firmware, software, or any combination thereof, and the device may include electronic devices such as terminal devices and servers (clusters). Fig. 9 An exemplary apparatus 900 that can be used to implement various embodiments described in this application is schematically illustrated.
[0177] For one embodiment, Fig. 9 An exemplary apparatus 900 is shown having one or more processors 902, a control module (chip set) 904 coupled to at least one of the processor(s) 902, a memory 906 coupled to the control module 904, a non-volatile memory (NVM) / storage device 908 coupled to the control module 904, one or more input / output devices 910 coupled to the control module 904, and a network interface 912 coupled to the control module 904.
[0178] The processor 902 may include one or more single-core or multi-core processors, and the processor 902 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the device 900 can be used as a terminal device, server (cluster), etc. described in the embodiments of the present application.
[0179] In some embodiments, the apparatus 900 may include one or more computer-readable media (e.g., memory 906 or NVM / storage device 908) having instructions 914 and one or more processors 902 combined with the one or more computer-readable media and configured to execute the instructions 914 to implement a module to perform the actions described in the present disclosure.
[0180] For one embodiment, the control module 904 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 902 and / or any suitable device or component in communication with the control module 904 .
[0181] The control module 904 may include a memory controller module to provide an interface to the memory 906. The memory controller module may be a hardware module, a software module, and / or a firmware module.
[0182] The memory 906 may be used, for example, to load and store data and / or instructions 914 for the device 900. For one embodiment, the memory 906 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the memory 906 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
[0183] For one embodiment, control module 904 may include one or more input / output controllers to provide an interface to NVM / storage device 908 and input / output device(s) 910 .
[0184] For example, NVM / storage 908 may be used to store data and / or instructions 914. NVM / storage 908 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).
[0185] NVM / storage device 908 may include storage resources that are physically part of the device on which apparatus 900 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 908 may be accessed via (one or more) input / output devices 910 over a network.
[0186] (One or more) input / output devices 910 may provide an interface for the apparatus 900 to communicate with any other appropriate device, and the input / output device 910 may include a communication component, an audio component, a sensor component, etc. The network interface 912 may provide an interface for the apparatus 900 to communicate through one or more networks, and the apparatus 900 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof for wireless communication.
[0187] For one embodiment, at least one of the processor(s) 902 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the control module 904. For one embodiment, at least one of the processor(s) 902 may be packaged together with the logic of one or more controllers of the control module 904 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 902 may be integrated on the same die with the logic of one or more controllers of the control module 904. For one embodiment, at least one of the processor(s) 902 may be integrated on the same die with the logic of one or more controllers of the control module 904 to form a system-on-chip (SoC).
[0188] In various embodiments, the device 900 may be, but is not limited to, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the device 900 may have more or fewer components and / or a different architecture. For example, in some embodiments, the device 900 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC), and a speaker.
[0189] Among them, the main control chip can be used as a processor or control module in the detection device, sensor data, location information, etc. are stored in a memory or NVM / storage device, the sensor group can be used as an input / output device, and the communication interface may include a network interface.
[0190] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0191] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0192] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable circuit board design violation location elimination terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable circuit board design violation location elimination terminal device generate instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0193] These computer program instructions can also be stored in a computer readable memory that can guide a computer or other programmable circuit board design violation location elimination terminal device to work in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0194] These computer program instructions can also be loaded into a computer or other programmable circuit board design violation location elimination terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable terminal device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0195] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0196] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0197] The above is a detailed introduction to a method and device for eliminating illegal positions in circuit board design, an electronic device and a storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for eliminating illegal positions in circuit board design, characterized in that: Applied to circuit board design software, the circuit board design software has a circuit board drawn on it, the circuit board includes at least a first routing line and a second routing line, the spacing between the first routing line and the second routing line is less than a preset spacing, so that a violation reminder appears at a corresponding position on the circuit board, the method includes: Selecting the design violation positions of the first routing line and the second routing line where the violation reminder appears; Draw an auxiliary line of a preset length, and record the intersection information of the auxiliary line with the first routing line and the second routing line, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing line; Traversing the intersection information according to a preset rule, selecting vertex coordinates of a special regular area from the intersection coordinates and the endpoint coordinates of the routing line, and connecting the vertex coordinates to obtain the special regular area; Creating a special spacing rule according to the spacing between the first routing line and the second routing line; Adding the special spacing rule to the special rule area eliminates the design violation location.
2. The method according to claim 1, characterized in that The step of drawing an auxiliary line of a preset length and recording intersection information of the auxiliary line with the first routing line and the second routing line respectively includes: Obtaining the endpoint coordinates of the first routing line and the endpoint coordinates of the second routing line; Taking the endpoint coordinates of the first routing line as the midpoint, draw a first auxiliary line of a preset length perpendicular to the first routing line; Calculate first intersection information of the first auxiliary line and the second line using a preset function according to the coordinate information of the first auxiliary line and the endpoint coordinates of the second line; Recording the first intersection information, wherein the first intersection information includes existence information of the first intersection, coordinates of the first intersection, and endpoint coordinates of the first route corresponding to a first auxiliary line corresponding to the first intersection, wherein the existence information of the intersection indicates whether the first intersection exists; Taking the endpoint coordinates of the second routing line as the midpoint, draw a second auxiliary line of a preset length perpendicular to the second routing line; Calculate the second intersection information of the second auxiliary line and the first line respectively using the preset function according to the coordinate information of the second auxiliary line and the endpoint coordinates of the first line; The second intersection information is recorded, wherein the second intersection information includes existence information of the second intersection, coordinates of the second intersection, and endpoint coordinates of the second route corresponding to a second auxiliary line corresponding to the second intersection, and the existence information of the intersection indicates whether the second intersection exists.
3. The method according to claim 1, characterized in that The traversing the intersection information according to a preset rule and selecting vertex coordinates of a special regular area from the intersection coordinates and the endpoint coordinates of the line includes: Traversing the intersection information to determine whether the intersection exists; When the intersection point exists, obtaining the coordinates of the intersection point and the endpoint coordinates of the route corresponding to the auxiliary line corresponding to the intersection point from the intersection point information; The intersection coordinates and the endpoint coordinates of the line corresponding to the auxiliary line corresponding to the intersection are used as the vertex coordinates of the special regular area.
4. The method according to claim 3, characterized in that The method further comprises: In the case that the intersection does not exist, the intersection coordinates in the intersection information and the endpoint coordinates of the route corresponding to the auxiliary line corresponding to the intersection are discarded.
5. The method according to claim 1, characterized in that After selecting the design violation positions of the first routing line and the second routing line where the violation reminder appears, the method further includes: The preset distance of the design violation location and the distance between the first routing line and the second routing line are read according to the database identifier of the design violation location.
6. The method according to claim 1, characterized in that The creating a special spacing rule according to the spacing between the first routing line and the second routing line includes: Create a new spacing rule using a rule creation function, wherein the spacing rule includes at least a spacing parameter; Setting the spacing parameter to the spacing between the first routing line and the second routing line to obtain the special spacing rule; Returns the special spacing rule.
7. The method according to claim 6, characterized in that The step of adding the special spacing rule to the special rule area to eliminate the design violation position comprises: Adding the special spacing rule to the special rule area so that the preset spacing of the special rule area is updated to the spacing parameter in the special spacing rule; It is determined that the distance between the first routing line and the second routing line is equal to the preset distance between the special regular areas, and the design violation position is eliminated.
8. A device for eliminating illegal positions in circuit board design, characterized in that: Applied to circuit board design software, the circuit board design software has a circuit board drawn on it, the circuit board includes at least a first routing line and a second routing line, the spacing between the first routing line and the second routing line is less than a preset spacing, so that a violation reminder appears at a corresponding position on the circuit board, the device includes: A position selection module, used for selecting the design violation positions of the first routing and the second routing where the violation reminder appears; An auxiliary line drawing module, used to draw auxiliary lines of preset lengths, and record the intersection information of the auxiliary lines with the first routing line and the second routing line, respectively, wherein the intersection information includes the intersection coordinates and the endpoint coordinates of the routing line; A vertex selection module, used to traverse the intersection information according to a preset rule, select vertex coordinates of a special regular area from the intersection coordinates and the endpoint coordinates of the routing line, and connect the vertex coordinates to obtain the special regular area; A rule creation module, used for creating a special spacing rule according to the spacing between the first routing line and the second routing line; The rule adding module is used to add the special spacing rule into the special rule area to eliminate the design violation position.
9. An electronic device, characterized in that: include: processor; and A memory having executable codes stored therein, which, when executed, causes the processor to execute the method for eliminating illegal positions in circuit board design as claimed in one or more of claims 1-7.
10. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to execute the circuit board design violation location elimination method as claimed in one or more of claims 1-7.
Citation Information
Cited By
Chip design rule violation optimization method based on prediction probability
CN120764480A
A chip design rule violation optimization method based on prediction probability
CN120764480B
