Line segment adjusting method and device for circuit layout wiring, medium and equipment

By obtaining the target trace and guide point in the circuit layout, confirming the direction and distance of normal movement, selecting reference points and connecting path points to form a new polyline, the problem of not being able to adjust the trace position in the prior art is solved. This achieves the goal of meeting the slope requirement while keeping the endpoints stationary, thus improving routing efficiency and accuracy.

CN121787356APending Publication Date: 2026-04-03ORIGIN QUANTUM INSTR CO
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing circuit layout design software cannot adjust the trace position while keeping the circuit connection points stationary, and it is difficult to meet requirements such as signal integrity, power consumption distribution, timing requirements and area constraints, especially when it is necessary to maintain the trace slope of 135 degrees.

Method used

By obtaining the target trace and its external guide point of a line segment in the circuit layout, the direction and distance of the normal movement are confirmed, reference points at the start and end points are selected, path points are set, and these points are connected in sequence with straight lines to replace the original trace, forming a new polyline, ensuring that the endpoints remain stationary and maintain a 135-degree slope.

Benefits of technology

Adjusting the routing position while keeping the endpoints stationary improves routing efficiency and accuracy, reduces signal interference, saves routing space, and enhances circuit reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121787356A_ABST
    Figure CN121787356A_ABST
Patent Text Reader

Abstract

The invention discloses a line segment adjusting method and device for circuit layout wiring, a medium and equipment. The method comprises the following steps: acquiring a target line with only one line segment in circuit layout lines and a guide point outside the target line, and determining a normal moving direction and a moving distance of the target line according to the position of the guide point; selecting a first reference point at a moving distance from the starting point and selecting a second reference point at a moving distance from the ending point on the target line; setting a first path point at a moving distance from the first reference point and setting a second path point at a moving distance from the second reference point in the normal moving direction; and sequentially and linearly connecting the starting point, the first waypoint, the second waypoint and the ending point to replace the target routing. According to the invention, the wiring position can be adjusted under the condition that the endpoint is kept immobile, and the wiring is kept at a specified slope.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of circuit layout design, and in particular to a method, apparatus, medium, and device for adjusting the line segments of circuit layout traces. Background Technology

[0002] In circuit layout design, after drawing the layout graphics of components, pads, and other circuit entities, traces need to be arranged between the connection points of each layout graphic to represent the circuit connection relationship. Existing routing methods include manual routing and automatic routing. Manual routing is done by designers manually, while automatic routing is performed automatically by software according to pre-set routing rules.

[0003] However, regardless of the routing method used, the resulting traces are rarely able to fully meet requirements for signal integrity, power distribution, timing, and area constraints, necessitating local adjustments by designers. In some scenarios, when adjusting a trace containing only a single segment, it's sometimes undesirable to change the positions of the trace's two endpoints, as these endpoints may be critical circuit connection points. Moving them would disrupt the overall circuit layout. Furthermore, the repositioned trace must maintain a connection with the original two endpoints, and the connection slope must meet a 135-degree requirement. However, current layout design software does not support this adjustment method; it only supports adjustments where the endpoints move along with the trace, failing to meet the aforementioned requirements. Summary of the Invention

[0004] The purpose of this invention is to provide a method, apparatus, medium, and device for adjusting trace segments in circuit layout, so as to solve the problem that the endpoints move with the traces in the prior art, and to adjust the trace position while keeping the endpoints stationary, and to keep the traces at a specified slope.

[0005] To solve the above technical problems, the present invention provides a method for adjusting the line segments of circuit layout traces, comprising:

[0006] Obtain the target trace with only one line segment in the circuit layout and the guide point outside the target trace, and determine the normal movement direction and movement distance of the target trace based on the position of the guide point;

[0007] A first reference point is selected at a distance from the starting point and a second reference point is selected at a distance from the ending point on the target path;

[0008] A first path point is set at a distance from the first reference point along the direction of normal movement, and a second path point is set at a distance from the second reference point along the direction of movement.

[0009] The starting point, the first path point, the second path point, and the ending point are connected sequentially by straight lines to replace the target path.

[0010] Preferably, the step of determining the normal movement direction of the target path based on the position of the guide point includes:

[0011] Construct a first vector pointing from the starting point of the target route to the ending point of the target route, a second vector pointing from the starting point of the target route to the guiding point, and a reference vector formed by rotating the first vector clockwise by a preset angle, wherein the preset angle is less than 180 degrees.

[0012] Calculate the first vector product of the reference vector and the first vector, and the second vector product of the second vector and the first vector, and compare the directions of the first vector product and the second vector product;

[0013] When the directions are the same, the direction perpendicular to the target line and pointing to the right of the first vector is taken as the normal movement direction. When the directions are different, the direction perpendicular to the target line and pointing to the left of the first vector is taken as the normal movement direction.

[0014] Preferably, the step of confirming the movement distance of the target path based on the position of the guide point includes:

[0015] Calculate the vertical distance between the guide point and the target path;

[0016] When the vertical distance exceeds half of the threshold distance, the threshold distance is taken as the movement distance of the target routing.

[0017] Preferably, the step of selecting a first reference point at the distance from the starting point on the target path includes:

[0018] Construct a first circle with the starting point of the target path as the center and the moving distance as the radius;

[0019] The intersection of the first circle and the target trace is selected as the first reference point.

[0020] Preferably, the step of selecting a second reference point at the distance from the endpoint on the target path includes:

[0021] Construct a second circle with the target path endpoint as the center and the movement distance as the radius;

[0022] The intersection of the second circle and the target trace is selected as the second reference point.

[0023] Preferably, the line segment adjustment method further includes:

[0024] When the line connecting the starting point and the first path point intersects with the line connecting the ending point and the second path point, only the line connecting the intersection point and the starting point and the ending point is retained.

[0025] Preferably, the line segment adjustment method further includes:

[0026] Delete the target trace.

[0027] To solve the above-mentioned technical problems, the present invention also provides a circuit layout trace segment adjustment device, comprising:

[0028] The acquisition module is used to acquire a target trace with only one line segment in the circuit layout and a guide point outside the target trace, and to determine the normal movement direction and movement distance of the target trace based on the position of the guide point.

[0029] The selection module is used to select a first reference point at a distance from the starting point and a second reference point at a distance from the ending point on the target path;

[0030] The setting module is used to set a first path point at a distance from the first reference point and a second path point at a distance from the second reference point in the direction of normal movement;

[0031] The connecting module is used to sequentially connect the starting point, the first path point, the second path point, and the ending point in a straight line to replace the target route.

[0032] To solve the above-mentioned technical problems, the present invention also provides a storage medium storing a computer program, the computer program being configured to execute the line segment adjustment method for circuit layout traces described in any of the preceding claims when running.

[0033] To address the aforementioned technical problems, the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the line segment adjustment method for circuit layout traces as described in any of the preceding claims.

[0034] Unlike existing technologies, the circuit layout routing segment adjustment method provided by this invention obtains a target trace with only one segment and a guide point. Based on the guide point, it confirms the normal movement direction and movement distance of the target trace. First, it selects a first reference point at a movement distance from the starting point and a second reference point at a movement distance from the ending point on the target trace. Then, it sets a first path point at a movement distance from the first reference point and a second path point at a movement distance from the second reference point in the normal movement direction. Finally, it connects the starting point, the first path point, the second path point, and the ending point in sequence to replace the target trace. The newly generated trace becomes a broken line, and the line segment connecting the starting point and the ending point forms a 135-degree angle with the target trace. This allows for adjusting the trace position while keeping the endpoints stationary and maintaining the trace at a specified slope, thereby improving routing efficiency, accuracy, and precision.

[0035] The circuit layout trace adjustment device, storage medium, and electronic device provided by this invention belong to the same inventive concept as the circuit layout trace adjustment method, and therefore have the same beneficial effects, which will not be described in detail here. Attached Figure Description

[0036] Figure 1 This is a flowchart illustrating the method for adjusting the trace segments of a circuit layout provided in an embodiment of the present invention.

[0037] Figure 2 A schematic diagram showing the positional relationship between the target path and the guide point.

[0038] Figure 3 This is a schematic diagram of the first and second reference points.

[0039] Figure 4 This is a schematic diagram showing the positional relationship between the first path point, the second path point, and the target path.

[0040] Figure 5 This is a schematic diagram showing the result of connecting the starting point, the first path point, the second path point, and the ending point with straight lines in sequence.

[0041] Figure 6 This is a flowchart illustrating the process of confirming the direction of normal movement.

[0042] Figure 7 This is a schematic diagram of the first vector, the second vector, and the reference vector.

[0043] Figure 8 This is a flowchart illustrating the process of confirming the movement distance.

[0044] Figure 9 A flowchart illustrating the process of selecting the first reference point.

[0045] Figure 10This is a schematic diagram showing the positional relationship between the first circle and the target routing line.

[0046] Figure 11 A flowchart illustrating the process of selecting the second reference point.

[0047] Figure 12 This is a schematic diagram showing the positional relationship between the first circle, the second circle, and the target routing line.

[0048] Figure 13 This is a schematic diagram showing the lines connecting the intersection point to the starting and ending points.

[0049] Figure 14 This is a schematic diagram of the line segment adjustment device for circuit layout routing. Detailed Implementation

[0050] The specific embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. The advantages and features of the present invention will become clearer from the following description and claims. It should be noted that the drawings are all in a very simplified form and use non-precise proportions, and are only used to facilitate and clarify the illustration of the embodiments of the present invention.

[0051] In the description of this invention, it should be understood that the terms "center", "upper", "lower", "left", "right", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.

[0052] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0053] Please refer to Figure 1 This invention provides a method for adjusting trace segments in a circuit layout. The method includes the following steps:

[0054] S1: Obtain the target trace with only one line segment in the circuit layout and the guide point outside the target trace, and determine the normal movement direction and movement distance of the target trace based on the position of the guide point.

[0055] In circuit wiring design, a trace can be a single line segment or a broken line formed by connecting multiple line segments, while the target trace is a trace with only one line segment.

[0056] A leader point is a coordinate point in a circuit layout. Leader points can be obtained in various ways, such as by clicking with a mouse, where the mouse cursor position is the leader point, or by the user selecting a leader point by inputting coordinates.

[0057] Based on the positional relationship between the guide point and the target path, the direction and distance of the target path's normal movement can be determined.

[0058] like Figure 2 The diagram shows the positional relationship between the target path and the guide point. The guide point P is located on one side of the target path L, and the normal direction of the target path L is direction a, with a movement distance of d.

[0059] S2: Select a first reference point at the distance from the starting point and a second reference point at the distance from the ending point on the target path.

[0060] Since the target trace consists of only one line segment, it has two endpoints: a start point and an end point. The order of the start and end points can be determined based on the layout data carried by the circuit layout, such as the order in which they were drawn, with the earlier drawn endpoint being the start point and the later drawn endpoint being the end point. Alternatively, it can be user-defined. The distances from the first reference point to the start point and from the second reference point to the end point are both considered travel distances.

[0061] like Figure 3 The diagram shows the first reference point and the second reference point. Both the first reference point A and the second reference point B are located on the target routing line L. The distance from the first reference point A to the starting point S of the target routing line L is d, and the distance from the second reference point B to the ending point E of the target routing line L is d.

[0062] S3: Set a first path point at a distance from the first reference point in the direction of normal movement, and set a second path point at a distance from the second reference point.

[0063] Wherein, the distance from the first path point to the first reference point and the distance from the second path point to the second reference point are both movement distances. Therefore, the angle between the line connecting the first path point to the starting point of the target line and the target line is 45 degrees. Similarly, the angle between the line connecting the second path point to the ending point of the target line and the target line is also 45 degrees.

[0064] like Figure 4 The diagram shows the positional relationship between the first path point, the second path point, and the target line. The distance from the first path point C to the first reference point A and the distance from the second path point D to the second reference point B are both d. According to geometric relationships, the angle between the line connecting the first path point C to the starting point S and the target line L, and the angle between the line connecting the second path point D to the starting point E and the target line L, are both 45 degrees.

[0065] S4: Connect the starting point, first path point, second path point and end point in sequence with straight lines to replace the target path.

[0066] Connecting the starting point, first path point, second path point, and ending point sequentially with straight lines generates three new line segments. These three new line segments are then connected to form a new polygonal line, which replaces the target trace. This means that even after the target trace is moved, the positions of the starting and ending points remain unchanged. Furthermore, the three new line segments maintain a specified slope, ensuring that the angle between any two line segments is 135 degrees, according to the connection order. This reduces signal interference during transmission, improves circuit reliability, and saves wiring space.

[0067] like Figure 5 The diagram shows the result of connecting the starting point, first path point, second path point, and ending point with straight lines in sequence. Connecting the starting point S, first path point C, second path point D, and ending point E of the target line L with straight lines in sequence forms a new broken line Z. The target line L then becomes broken line Z. The starting and ending points of broken line Z remain the same as those of the target line L, achieving the adjustment of the line position while keeping the endpoints fixed. Furthermore, the angle between the first and second segments of broken line Z is 135 degrees, and the angle between the second and third segments is also 135 degrees, indicating that broken line Z maintains the specified slope.

[0068] In the circuit layout routing segment adjustment method of this embodiment of the invention, after obtaining the target trace and guide point, the normal movement direction and movement distance of the target trace are first confirmed. Then, a first reference point is selected at the movement distance from the starting point and a second reference point is selected at the movement distance from the ending point on the target trace. Then, a first path point and a second path point are set at the movement distance from the first reference point and the second reference point in the normal movement direction. Finally, the starting point, the first path point, the second path point and the ending point are connected in sequence with straight lines to replace the target trace. The endpoint of the newly generated broken line is the endpoint of the target trace and maintains the specified slope, so that the included angle between each pair of line segments is 135 degrees. Thus, the trace position can be adjusted while keeping the endpoint stationary and the trace maintains the specified slope, which can improve routing efficiency, routing accuracy and precision.

[0069] In some embodiments of this application, please refer to Figure 6 This is a flowchart illustrating the process of confirming the direction of normal movement. The steps for confirming the direction of normal movement of the target path based on the location of the guide point include:

[0070] S11A: Constructs a first vector pointing from the starting point of the target trace to the ending point of the target trace, a second vector pointing from the starting point of the target trace to the guide point, and a reference vector formed by rotating the first vector clockwise by a preset angle, wherein the preset angle is less than 180 degrees.

[0071] Among them, the first vector, the second vector, and the reference vector share a common starting point, which is the starting point of the target routing path. The preset angle can be set according to actual needs, for example, 90 degrees. Figure 7 The diagram shows the first vector, the second vector, and the reference vector. The first vector is vector SE, which points from the starting point S of the target line L to the ending point E of the target line L. The second vector is vector SP, which points from the starting point S of the target line L to the guiding point P. The magnitude of the reference vector SO is equal to the magnitude of the first vector SE, but the angle between the reference vector SO and the first vector SE is a preset angle.

[0072] S12A: Calculate the first vector product of the reference vector and the first vector, and the second vector product of the second vector and the first vector, and compare the directions of the first vector product and the second vector product.

[0073] In this system, the first vector product is the cross product of the reference vector and the first vector, and the direction of the first vector product remains constant. The second vector product is the cross product of the second vector and the first vector. For example... Figure 7 As shown, assume the direction of the first vector product of the reference vector SO and the first vector SE is positive, the guiding point P is to the left of the first vector SE, and the direction of the second vector product of the second vector SP and the first vector SE is negative. If the guiding point P is to the right of the first vector SE, then the direction of the second vector product of the second vector SP and the first vector SE is also positive.

[0074] S13A: When the directions are the same, the direction perpendicular to the target line and pointing to the right of the first vector is taken as the normal movement direction. When the directions are different, the direction perpendicular to the target line and pointing to the left of the first vector is taken as the normal movement direction.

[0075] If the directions of the first and second vector products are the same, it means the guide point is located to the right of the first vector. Therefore, the direction perpendicular to the target path and pointing to the right of the first vector is taken as the normal movement direction. If the directions of the first and second vector products are different, it means the guide point is located to the left of the first vector. Therefore, the direction perpendicular to the target path and pointing to the left of the first vector is taken as the normal movement direction. Figure 7 As shown, if the guide point P is to the left of the first vector SE, then the normal movement direction a is perpendicular to the target line L and points to the left of the first vector SE.

[0076] In some embodiments of this application, please refer to Figure 8This is a flowchart illustrating the process of confirming the movement distance. The steps for confirming the movement distance of the target path based on the location of the guide point include:

[0077] S11B: Calculate the vertical distance between the guide point and the target path.

[0078] S12B: When the vertical distance exceeds half of the threshold distance, the threshold distance is used as the movement distance of the target trace.

[0079] The threshold distance can be set according to actual needs. Since wiring on a circuit layout is very dense, adjusting the position of a trace can easily interfere with other traces if the single movement distance is too large, such as when a trace crosses multiple traces. Setting a threshold distance can prevent the movement distance from being set too large. Of course, there may be cases where the vertical distance does not exceed half of the threshold distance. In this case, the movement distance can be set to 0, the guide point can be deleted while keeping the target trace unchanged, or a prompt can be made to reacquire the guide point.

[0080] When selecting the first reference point, the geometric relationship between a circle and a straight line can be used. For details, please refer to... Figure 9 This is a flowchart illustrating the process of selecting the first reference point. The steps for selecting the first reference point on the target path, at a distance from the starting point, include:

[0081] S21A: Construct a first circle with the starting point of the target route as the center and the moving distance as the radius.

[0082] S22A: Select the intersection of the first circle and the target trace as the first reference point.

[0083] Among them, a first circle centered on the starting point of the target path and with the movement distance as its radius intersects the target path at a point; this intersection point is the first reference point. For example... Figure 10 The diagram shows the positional relationship between the first circle and the target trace. The center of the first circle Y1 is the starting point S of the target trace L, and the radius is d. The intersection of the first circle Y1 and the target trace L is the first reference point A.

[0084] Furthermore, when selecting a second reference point, the geometric relationship between a circle and a straight line can also be utilized. For details, please refer to [link / reference]. Figure 11 This is a flowchart illustrating the process of selecting the second reference point. The steps for selecting the second reference point on the target path, at a distance from the endpoint, include:

[0085] S21B: Construct a second circle with the distance traveled as its radius, centered on the endpoint of the target path.

[0086] S22B: Select the intersection of the second circle and the target trace as the second reference point.

[0087] Among them, a second circle centered on the end point of the target path and with the movement distance as its radius intersects the target path at a point; this intersection point is the second reference point. For example... Figure 12 The diagram shows the positional relationship between the first circle, the second circle, and the target trace. The center of the second circle Y2 is the starting point E of the target trace L, and its radius is d. The intersection of the second circle Y2 and the target trace L is the second reference point B.

[0088] In some cases, when the travel distance is large, the first reference point may be located between the second reference point and the endpoint of the target trace. In this situation, the line connecting the starting point and the first path point will intersect with the second path point and the endpoint. Since trace intersections are not allowed in circuit layouts, please refer to [the relevant documentation / reference]. Figure 1 In this embodiment, the line segment adjustment method further includes:

[0089] S5: When the line connecting the starting point and the first path point intersects with the line connecting the ending point and the second path point, only the line connecting the intersection point to the starting point and the ending point is retained.

[0090] The retained connecting lines and the target path form a triangle, with the intersection point serving as the vertex of the triangle. In other words, the lines connecting the intersection point to the first path point and the lines connecting the intersection point to the second path point have been deleted. For example... Figure 13 The diagram shows the connection points when the lines connecting the intersection point to the starting point and the ending point intersect. The line connecting the starting point S to the first path point C intersects the line connecting the ending point E to the second path point D, with the intersection point being J. In this case, only the lines connecting the intersection point J to the starting point S and the line connecting the intersection point J to the ending point E are retained, while the other lines (the dashed lines in the diagram) are deleted.

[0091] Furthermore, after step S4 or S5 above, the line segment adjustment method also includes: deleting the target trace.

[0092] Please refer to Figure 14 This invention also provides a circuit layout trace adjustment device. The trace adjustment device of this embodiment includes:

[0093] The acquisition module 11 is used to acquire the target trace containing only one line segment in the circuit layout, as well as the guide point outside the target trace. Based on the position of the guide point, the normal direction and distance of the target trace's movement are determined. In circuit routing design, a trace can be a single line segment or a polygonal line composed of multiple line segments, while the target trace is a trace containing only one line segment. The guide point is a coordinate point in the circuit layout. Guide points can be acquired in various ways, such as by clicking with a mouse (the mouse cursor position at the time of the click becomes the guide point), or by the user selecting the guide point by inputting coordinates. Based on the positional relationship between the guide point and the target trace, the normal direction and distance of the target trace's movement can be determined.

[0094] The selection module 12 is used to select a first reference point at a distance from the starting point and a second reference point at a distance from the ending point on the target trace. Since the target trace consists of only one line segment, it has two endpoints: a starting point and an ending point. The order of the starting and ending points can be determined based on the layout data carried by the circuit layout, such as the order in which the endpoints were drawn first becoming the starting point and the endpoints drawn later becoming the ending points, or it can be user-defined. The distances from the first reference point to the starting point and the second reference point to the ending point are both considered movement distances.

[0095] The setting module 13 is used to set a first path point at a distance from the first reference point and a second path point at a distance from the second reference point in the direction of normal movement. The distances from the first path point to the first reference point and from the second path point to the second reference point are both movement distances. Therefore, the angle between the line connecting the first path point to the starting point of the target route and the target route is 45 degrees. Similarly, the angle between the line connecting the second path point to the ending point of the target route and the target route is also 45 degrees.

[0096] The wiring module 14 is used to sequentially connect the starting point, the first path point, the second path point, and the ending point with straight lines to replace the target routing. Connecting these points sequentially generates three new line segments. These three new line segments are then connected to form a new polygonal line, which replaces the target routing. In other words, the positions of the starting and ending points remain unchanged after the target routing is moved. Furthermore, the three new line segments maintain a specified slope, ensuring that the angle between any two line segments is 135 degrees according to the connection order. This reduces signal interference during transmission, improves circuit reliability, and saves wiring space.

[0097] The circuit layout routing line segment adjustment device of this embodiment may also include other technical features of the circuit layout routing line segment adjustment method of the foregoing embodiment, implement all the steps of the line segment adjustment method of the foregoing embodiment, and have the same technical effect as the line segment adjustment method of the foregoing embodiment, which will not be repeated here.

[0098] The present invention also provides a storage medium storing a computer program configured to execute the circuit layout routing line segment adjustment method of the foregoing embodiments when running.

[0099] Specifically, in this embodiment, the storage medium may include, but is not limited to, USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks, and other media capable of storing computer programs.

[0100] The present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the circuit layout routing line segment adjustment method of the foregoing embodiments.

[0101] Specifically, the memory and processor can be connected via a data bus. Furthermore, the aforementioned electronic device may also include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0102] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," or "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments. In addition, those skilled in the art can combine and integrate the different embodiments or examples described in this specification.

[0103] The above are merely preferred embodiments of the present invention and do not constitute any limitation on the present invention. Any equivalent substitutions or modifications made by those skilled in the art to the technical solutions and content disclosed in the present invention without departing from the scope of the present invention shall be deemed to have remained within the protection scope of the present invention.

Claims

1. A method for adjusting line segments in a circuit layout, characterized in that, include: Obtain the target trace with only one line segment in the circuit layout and the guide point outside the target trace, and determine the normal movement direction and movement distance of the target trace based on the position of the guide point; A first reference point is selected at a distance from the starting point and a second reference point is selected at a distance from the ending point on the target path; A first path point is set at a distance from the first reference point along the direction of normal movement, and a second path point is set at a distance from the second reference point along the direction of movement. The starting point, the first path point, the second path point, and the ending point are connected sequentially by straight lines to replace the target path.

2. The line segment adjustment method according to claim 1, characterized in that, The step of confirming the normal movement direction of the target path based on the position of the guide point includes: Construct a first vector pointing from the starting point of the target route to the ending point of the target route, a second vector pointing from the starting point of the target route to the guiding point, and a reference vector formed by rotating the first vector clockwise by a preset angle, wherein the preset angle is less than 180 degrees. Calculate the first vector product of the reference vector and the first vector, and the second vector product of the second vector and the first vector, and compare the directions of the first vector product and the second vector product; When the directions are the same, the direction perpendicular to the target line and pointing to the right of the first vector is taken as the normal movement direction. When the directions are different, the direction perpendicular to the target line and pointing to the left of the first vector is taken as the normal movement direction.

3. The line segment adjustment method according to claim 1, characterized in that, The step of confirming the movement distance of the target path based on the position of the guide point includes: Calculate the vertical distance between the guide point and the target path; When the vertical distance exceeds half of the threshold distance, the threshold distance is taken as the movement distance of the target routing.

4. The line segment adjustment method according to claim 1, characterized in that, The step of selecting a first reference point at the distance from the starting point on the target path includes: Construct a first circle with the starting point of the target path as the center and the moving distance as the radius; The intersection of the first circle and the target trace is selected as the first reference point.

5. The line segment adjustment method according to claim 1, characterized in that, The step of selecting a second reference point at the distance from the endpoint on the target path includes: Construct a second circle with the target path endpoint as the center and the movement distance as the radius; The intersection of the second circle and the target trace is selected as the second reference point.

6. The line segment adjustment method according to any one of claims 1 to 5, characterized in that, The line segment adjustment method also includes: When the line connecting the starting point and the first path point intersects with the line connecting the ending point and the second path point, only the line connecting the intersection point and the starting point and the ending point is retained.

7. The line segment adjustment method according to claim 1, characterized in that, The line segment adjustment method also includes: Delete the target trace.

8. A circuit layout trace segment adjustment device, characterized in that, include: The acquisition module is used to acquire a target trace with only one line segment in the circuit layout and a guide point outside the target trace, and to determine the normal movement direction and movement distance of the target trace based on the position of the guide point. The selection module is used to select a first reference point at a distance from the starting point and a second reference point at a distance from the ending point on the target path; The setting module is used to set a first path point at a distance from the first reference point and a second path point at a distance from the second reference point in the direction of normal movement; The connecting module is used to sequentially connect the starting point, the first path point, the second path point, and the ending point in a straight line to replace the target route.

9. A storage medium, characterized in that, The storage medium stores a computer program, which is configured to execute the line segment adjustment method for circuit layout traces according to any one of claims 1 to 7 when it is run.

10. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the method for adjusting the line segments of a circuit layout trace as described in any one of claims 1 to 7.