Method and device for rapidly adjusting wiring of differential line
By batch adjusting the line width and line spacing of the differential pair in the EDA design software and performing length compensation, the problem of batch modification of the designed differential signal line parameters in the prior art is solved, and the design efficiency is improved.
Patent Information
- Application Number
- CN202510270977.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-06-06
AI Technical Summary
Existing EDA design software cannot batch change the line width and line spacing of the designed differential pairs, resulting in the need to readjust each pair of differential lines in PCB design, resulting in inefficient design.
By determining the original differential line group to be modified, select the difference pair in batches, set the line width to the preset target value, and move the difference line based on the preset target line spacing and line width, obtain the fine-tuning line segments, and perform length compensation to achieve the formation of the target differential line group.
The parameters of the differential signal lines that have been designed are modified in batches, simple, efficiently and accurately, improving the design efficiency and avoiding the work of re-adjusting each pair of differential lines.
Smart Images

Figure CN120106005A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of electrical digital data processing, and in particular to a method and a device for quickly adjusting differential line routing. Background Art
[0002] Differential signal technology is a signal transmission technology widely used in modern communication systems, computer hardware design and signal processing. Its core is to transmit data through a pair of signal lines (positive and negative phases) with the same voltage level but opposite phases. It has the advantages of anti-interference, common mode suppression, improved signal integrity and faster data transmission rate, which is crucial in high-speed digital signal transmission. Therefore, in EDA design software, it is necessary to quickly establish a differential pair mode for high-speed signals to perform PCB Layout design. However, in actual project design, due to changes in PCB laminate material parameters and consideration of signal integrity of impedance crosstalk, it is often necessary to adjust the line width and line spacing of the designed differential pairs. However, the current EDA design software cannot batch change the line width and line spacing of the designed differential pairs. For a circuit such as a backplane with hundreds of pairs of differential lines, it is necessary to re-layout each pair of differential lines to change the line width and line spacing. It is impossible to batch, simply, efficiently and accurately modify the parameters of the designed differential signal lines, which will bring a considerable workload and lead to low design efficiency. Summary of the invention
[0003] The present invention aims to provide a method and device for quickly adjusting the routing of differential lines to solve the above technical problems, realize batch, simple, efficient and accurate modification of the parameters of the designed differential signal lines, and improve the design efficiency.
[0004] In order to solve the above technical problems, the present invention provides a method for quickly adjusting the routing of differential lines, comprising the following steps:
[0005] Determine the original differential line group to be modified;
[0006] Batch select original differential pairs of the original differential line group, and uniformly set the line widths of the original differential pairs to a preset target line width;
[0007] Batch select horizontal lines or vertical lines in the original differential pairs, move the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width, and obtain fine-tuning horizontal lines or fine-tuning vertical lines;
[0008] Batch select non-horizontal lines or non-vertical lines in the original differential pair, move the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and obtain fine-tuned non-horizontal lines or fine-tuned non-vertical lines;
[0009] Based on the fine-tuning non-horizontal lines or the fine-tuning non-vertical lines, batch length compensation is performed on the fine-tuning horizontal lines or the fine-tuning vertical lines to obtain a target differential line group, thereby realizing rapid adjustment of the differential lines.
[0010] In the above scheme, the original differential pairs to be modified are selected in batches, and the line widths of the original differential pairs are set to the preset target differential line widths, so as to realize batch changes in the line widths of the original differential line groups; the horizontal lines or vertical lines in the original differential pairs and the non-horizontal lines or non-vertical lines in the original differential pairs are moved, the line spacing of the original differential pairs is changed, and the connection between the line segments is realized; although the line widths and line spacings of the original differential pairs are changed according to the preset target values, there is a difference between fine-tuning the horizontal lines or fine-tuning the vertical lines and fine-tuning the non-horizontal lines or fine-tuning the non-vertical lines. They are not connected, so the length of the fine-tuning horizontal line or the fine-tuning vertical line and the fine-tuning non-horizontal line or the fine-tuning non-vertical line can be compensated, so that the compensated fine-tuning horizontal line intersects with the fine-tuning non-horizontal line and the fine-tuning vertical line intersects with the fine-tuning non-vertical line to form a target differential line, thereby realizing rapid adjustment of the line width, spacing and target angle of the original differential line group to the line width, spacing and target angle of the target differential line, so as to achieve batch, simple, efficient and accurate modification of the parameters of the differential signal lines that have been designed, thereby improving design efficiency.
[0011] Furthermore, the determining of the original differential line group to be modified is specifically:
[0012] Get the initial line width, initial line spacing, differential line angle and target routing layer;
[0013] Based on the initial line width and the initial line spacing, a differential line group that meets the preset requirements is determined in the target routing layer as the original differential line group to be modified.
[0014] In the above scheme, the initial line width, initial line spacing, and differential line angle are the properties of the original differential line group to be modified; the target routing layer is the routing layer where the original differential line group to be modified is located; based on the initial line width and initial line spacing, the differential line group that meets the preset requirements is determined in the target routing layer as the original differential line group to be modified. The purpose is to batch select the original differential line groups with the same initial line width and initial line spacing in the routing layer to realize batch modification.
[0015] Further, the step of determining a differential line group that meets preset requirements in the target routing layer based on the initial line width and the initial line spacing as the original differential line group to be modified is specifically as follows:
[0016] All differential line groups in the target routing layer whose line width is the initial line width and whose line spacing is the initial line spacing are taken as original differential line groups to be modified.
[0017] Further, the batch selecting of horizontal lines or vertical lines in the original differential pairs, moving the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width, and obtaining fine-tuning horizontal lines or fine-tuning vertical lines is specifically as follows:
[0018] Constructing a plane rectangular coordinate system in the target routing layer, and determining the initial coordinates of a first single horizontal line or a vertical line in the original differential pair and the initial coordinates of a second single horizontal line or a vertical line in the original differential pair in the plane rectangular coordinate system;
[0019] The first single horizontal line or vertical line in the original differential pair is selected in batches, and the initial coordinates of the second single horizontal line or vertical line in the original differential pair are used as a reference, and the first single horizontal line or vertical line in the original differential pair is moved as a whole based on the preset target line spacing and the preset target line width to obtain a fine-tuning horizontal line or a fine-tuning vertical line.
[0020] In the above scheme, a plane rectangular coordinate system is constructed to determine the position of the line segments in the original differential pair, so as to facilitate subsequent batch movement; the initial coordinates of the first single line and the second single line of the horizontal or vertical line in the original differential pair are determined, and the second single line is used as a reference. Based on the preset target line spacing and the preset target line width, the first single line of the horizontal or vertical line in the original differential pair is moved as a whole, so that the initial line spacing is adjusted to the preset target line spacing.
[0021] Further, the batch selecting the first single horizontal line or vertical line in the original differential pair, taking the initial coordinates of the second single horizontal line or vertical line in the original differential pair as a reference, and moving the first single horizontal line or vertical line in the original differential pair as a whole based on the preset target line spacing and the preset target line width to obtain the fine-tuning horizontal line or the fine-tuning vertical line, specifically:
[0022] The first single horizontal line or vertical line in the original differential pair is moved as a whole by a distance Ha, according to the formula:
[0023] H a =H b +(W a -W c )-H c
[0024] In the formula, H a Indicates the distance that the first single line of the horizontal or vertical line in the original differential pair moves in the positive direction, H b represents the initial line spacing, H c represents the preset target line spacing value, W a represents the initial line width, W c Indicates the preset target line width; when H aWhen it is equal to a negative number, the first single line of the horizontal line or the vertical line in the original differential pair moves in the opposite direction.
[0025] In the above scheme, the first single line of the horizontal line or vertical line in the original differential pair is moved as a whole according to the formula, and the initial line spacing is adjusted to become the preset target line spacing;
[0026] Further, the batch selection of non-horizontal lines or non-vertical lines in the original differential pair, the movement of the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and the acquisition of fine-tuning non-horizontal lines or fine-tuning non-vertical lines are specifically as follows:
[0027] Based on the preset target line spacing and the differential line angle, the first single line of the non-horizontal line or the non-vertical line in the original differential pair is moved as a whole to obtain a fine-tuning non-horizontal line or a fine-tuning non-vertical line.
[0028] In the above scheme, the angle of the non-horizontal line or non-vertical line in the conventional differential pair is 45° or 135°; the first single line of the non-horizontal line or non-vertical line in the original differential pair is translated as a whole, and the line spacing of each pair of non-horizontal lines or non-vertical lines in the differential pair is kept at the preset target line spacing, and the angle remains unchanged.
[0029] Further, the fine-tuning horizontal lines or fine-tuning vertical lines are batch-length compensated based on the fine-tuning non-horizontal lines or fine-tuning non-vertical lines to obtain a target differential line group and realize rapid adjustment of differential lines, specifically:
[0030] Length compensation is performed for any of the fine-tuning horizontal lines, including:
[0031] Obtain a first extension line of the fine-tuning horizontal line, and obtain a second extension line and a third extension line of two fine-tuning non-horizontal lines adjacent to the fine-tuning horizontal line; the first extension line and the second extension line intersect at a first horizontal junction, and the first extension line and the third extension line intersect at a second horizontal junction;
[0032] Performing length compensation on the fine-tuning horizontal line based on the first horizontal joint and the second horizontal joint;
[0033] Length compensation for any of the fine-tuned vertical lines, including:
[0034] Obtain a fourth extension line of the fine-tuning vertical line, and obtain a fifth extension line and a sixth extension line of two fine-tuning non-vertical lines adjacent to the fine-tuning vertical line; the fourth extension line and the fifth extension line intersect at a first vertical connection point, and the fourth extension line and the sixth extension line intersect at a second vertical connection point;
[0035] The length of the fine-tuning vertical line is compensated based on the first vertical joint and the second vertical joint.
[0036] In the above scheme, although the line spacing of each pair of line segments in the differential pair has been achieved to be the preset target line spacing, there will be a situation where the fine-tuning horizontal line and the two adjacent fine-tuning non-horizontal lines of the fine-tuning horizontal line do not intersect at the line segment endpoints, and the fine-tuning vertical line and the two adjacent fine-tuning non-vertical lines of the fine-tuning vertical line do not intersect at the line segment endpoints. Therefore, it is necessary to compensate the line segments for length. In the compensation process, it is necessary to ensure that the line width, line spacing and differential line angle of each line segment remain unchanged after fine-tuning. The specific compensation steps are as follows: for the fine-tuning horizontal line, according to the first horizontal connection point and the second horizontal connection point, The length of the fine-tuning vertical line is compensated according to the first vertical connection point and the second vertical connection point; when the first vertical connection point or the second vertical connection point does not coincide with the two endpoints of the fine-tuning vertical line, the two endpoints of the fine-tuning vertical line are moved to the first horizontal connection point and the second horizontal connection point to complete the length compensation; for the fine-tuning vertical line, the length compensation is performed according to the first vertical connection point and the second vertical connection point; when the first vertical connection point or the second vertical connection point does not coincide with the two endpoints of the fine-tuning vertical line, the two endpoints of the fine-tuning vertical line are moved to the first vertical connection point and the second vertical connection point to complete the length compensation.
[0037] The present invention provides a device for adjusting the routing of differential lines, comprising a line group determination module, a line width setting module, a first adjustment module, a second adjustment module and a length compensation module, wherein:
[0038] The line group determination module is used to determine the original differential line group to be modified;
[0039] The line width setting module is used to batch select original differential pairs of the original differential line group, and uniformly set the line widths of the original differential pairs to a preset target line width;
[0040] The first adjustment module is used to batch select horizontal lines or vertical lines in the original differential pairs, move the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width, and obtain fine-tuning horizontal lines or fine-tuning vertical lines;
[0041] The second adjustment module is used to batch select non-horizontal lines or non-vertical lines in the original differential pair, move the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and obtain fine-tuning non-horizontal lines or fine-tuning non-vertical lines;
[0042] The length compensation module is used to perform batch length compensation on the fine-tuning horizontal lines or fine-tuning vertical lines based on the fine-tuning non-horizontal lines or fine-tuning non-vertical lines, obtain a target differential line group, and realize rapid adjustment of differential lines.
[0043] The device for adjusting the routing of differential lines provided by the above scheme has a simple structure. In practical applications, it is only necessary to determine the original differential line group to be modified through the line group determination module; the line width setting module batches selects the original differential pairs of the original differential line group, and uniformly sets the line widths of the original differential pairs to the preset target line widths; the first adjustment module batches selects the horizontal lines or vertical lines in the original differential pairs, moves the horizontal lines or vertical lines based on the preset target line spacing and the preset target line width, and obtains fine-tuning horizontal lines or fine-tuning vertical lines; the second adjustment module batches selects the non-horizontal lines or non-vertical lines in the original differential pairs, moves the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and obtains fine-tuning non-horizontal lines or fine-tuning non-vertical lines; the length compensation module batches length compensates the fine-tuning horizontal lines or fine-tuning vertical lines based on the fine-tuning non-horizontal lines or fine-tuning non-vertical lines, thereby obtaining the target differential line group, realizing batch, simple, efficient and accurate modification of the parameters of the differential signal lines that have been designed, thereby improving design efficiency.
[0044] Furthermore, the line group determination module is used to determine the original differential line group to be modified; specifically:
[0045] Get the initial line width, initial line spacing, differential line angle and target routing layer;
[0046] Based on the initial line width and the initial line spacing, a differential line group that meets the preset requirements is determined in the target routing layer as the original differential line group to be modified.
[0047] Furthermore, the line width setting module is used to batch select original differential pairs of the original differential line group, and uniformly set the line widths of the original differential pairs to the preset target line widths; specifically:
[0048] All differential line groups in the target routing layer whose line width is the initial line width and whose line spacing is the initial line spacing are used as original differential line groups to be modified. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic flow chart of a method for quickly adjusting differential line routing provided by an embodiment of the present invention;
[0050] Figure 2 A schematic diagram of a device architecture for adjusting the routing of differential lines provided by an embodiment of the present invention;
[0051] Figure 3 A schematic diagram of a process for adjusting the routing of differential lines provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] See also Figure 1 This embodiment provides a method for quickly adjusting the routing of differential lines, comprising the following steps:
[0054] Step S1: determining the original differential line group to be modified;
[0055] Step S2: batch-selecting original differential pairs of the original differential line group, and uniformly setting the line widths of the original differential pairs to preset target line widths;
[0056] Step S3: batch-selecting horizontal lines or vertical lines in the original differential pairs, and moving the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width to obtain fine-tuning horizontal lines or fine-tuning vertical lines;
[0057] Step S4: batch-selecting non-horizontal lines or non-vertical lines in the original differential pair, moving the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and obtaining fine-tuning non-horizontal lines or fine-tuning non-vertical lines;
[0058] Step S5: performing batch length compensation on the fine-tuning horizontal lines or fine-tuning vertical lines based on the fine-tuning non-horizontal lines or the fine-tuning non-vertical lines to obtain a target differential line group, thereby realizing rapid adjustment of differential lines.
[0059] In this embodiment, the original differential pairs to be modified are selected in batches, and the line widths of the original differential pairs are set to the preset target differential line widths, so as to realize batch changes in the line widths of the original differential line groups; the horizontal lines or vertical lines in the original differential pairs and the non-horizontal lines or non-vertical lines in the original differential pairs are moved, the line spacing of the original differential pairs is changed, and the connection between the line segments is realized; although the line widths and line spacings of the original differential pairs are changed according to the preset target values, there is a disconnection between the fine-tuning horizontal lines or fine-tuning vertical lines and the fine-tuning non-horizontal lines or fine-tuning non-vertical lines, so all the differential pairs can be modified. The length of the fine-tuning horizontal line or the fine-tuning vertical line and the fine-tuning non-horizontal line or the fine-tuning non-vertical line is compensated, so that the compensated fine-tuning horizontal line intersects with the fine-tuning non-horizontal line and the fine-tuning vertical line intersects with the fine-tuning non-vertical line to form a target differential line, thereby realizing rapid adjustment of the line width, spacing and target angle of the original differential line group to the line width, spacing and target angle of the target differential line, solving the problem of being unable to batch change the line width and line spacing of the differential pairs at the same time, achieving batch, simple, efficient and accurate modification of the parameters of the differential signal lines that have been designed, and improving design efficiency.
[0060] Furthermore, the determining of the original differential line group to be modified is specifically:
[0061] Get the initial line width, initial line spacing, differential line angle and target routing layer;
[0062] Based on the initial line width and the initial line spacing, a differential line group that meets the preset requirements is determined in the target routing layer as the original differential line group to be modified.
[0063] In this embodiment, the initial line width, initial line spacing, and differential line angle are the properties of the original differential line group to be modified; the target routing layer is the routing layer where the original differential line group to be modified is located; based on the initial line width and initial line spacing, a differential line group that meets the preset requirements is determined in the target routing layer as the original differential line group to be modified. The purpose is to batch select the original differential line groups with the same initial line width and initial line spacing in the routing layer to achieve batch modification.
[0064] Further, the step of determining a differential line group that meets preset requirements in the target routing layer based on the initial line width and the initial line spacing as the original differential line group to be modified is specifically as follows:
[0065] All differential line groups in the target routing layer whose line width is the initial line width and whose line spacing is the initial line spacing are taken as original differential line groups to be modified.
[0066] Further, the batch selecting of horizontal lines or vertical lines in the original differential pairs, moving the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width, and obtaining fine-tuning horizontal lines or fine-tuning vertical lines is specifically as follows:
[0067] Constructing a plane rectangular coordinate system in the target routing layer, and determining the initial coordinates of a first single horizontal line or a vertical line in the original differential pair and the initial coordinates of a second single horizontal line or a vertical line in the original differential pair in the plane rectangular coordinate system;
[0068] The first single horizontal line or vertical line in the original differential pair is selected in batches, and the initial coordinates of the second single horizontal line or vertical line in the original differential pair are used as a reference, and the first single horizontal line or vertical line in the original differential pair is moved as a whole based on the preset target line spacing and the preset target line width to obtain a fine-tuning horizontal line or a fine-tuning vertical line.
[0069] In this embodiment, a plane rectangular coordinate system is constructed to determine the position of the line segments in the original differential pair to facilitate subsequent batch movement; the initial coordinates of the first single line and the second single line of the horizontal or vertical line in the original differential pair are determined, and the second single line is used as a reference. Based on the preset target line spacing and the preset target line width, the first single line of the horizontal or vertical line in the original differential pair is moved as a whole, so that the initial line spacing is adjusted to the preset target line spacing.
[0070] Further, the batch selecting the first single horizontal line or vertical line in the original differential pair, taking the initial coordinates of the second single horizontal line or vertical line in the original differential pair as a reference, and moving the first single horizontal line or vertical line in the original differential pair as a whole based on the preset target line spacing and the preset target line width to obtain the fine-tuning horizontal line or the fine-tuning vertical line, specifically:
[0071] The first single horizontal line or vertical line in the original differential pair is moved as a whole by a distance Ha, according to the formula:
[0072] H a =H b +(W a -W c )-H c
[0073] In the formula, H a Indicates the distance that the first single line of the horizontal or vertical line in the original differential pair moves in the positive direction, H b represents the initial line spacing, H c represents the preset target line spacing value, W a represents the initial line width, W c Indicates the preset target line width; when H a When it is equal to a negative number, the first single line of the horizontal line or the vertical line in the original differential pair moves in the opposite direction.
[0074] In this embodiment, the first single line of the horizontal line or vertical line in the original differential pair is moved as a whole according to the formula, and the initial line spacing is adjusted to become the preset target line spacing.
[0075] Further, the batch selection of non-horizontal lines or non-vertical lines in the original differential pair, the movement of the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and the acquisition of fine-tuning non-horizontal lines or fine-tuning non-vertical lines are specifically as follows:
[0076] Based on the preset target line spacing and the differential line angle, the first single line of the non-horizontal line or the non-vertical line in the original differential pair is moved as a whole to obtain a fine-tuning non-horizontal line or a fine-tuning non-vertical line.
[0077] In this embodiment, the angle of the non-horizontal or non-vertical lines in the conventional differential pair is 45° or 135°; the first single line of the non-horizontal or non-vertical line in the original differential pair is translated as a whole, and the line spacing of each pair of non-horizontal or non-vertical lines in the differential pair is kept at the preset target line spacing, and the angle remains unchanged; the line width of the original differential pair is batch adjusted by calling the line segment attribute through the PCB inspector (a function provided by the AltiumDesigner software): and, from the perspective of signal integrity, the smaller the spacing between the differential pairs, the more serious the signal crosstalk between them, which will in turn reduce the signal quality; and during the initial wiring, the spacing between the original differential pairs has been set to the minimum value in accordance with the principle of minimizing crosstalk as much as possible. Therefore, when adjusting the line width spacing subsequently, it is necessary to ensure that the total width of the original differential pair after the line width and line spacing adjustment is less than or equal to the total width of the original differential pair, so as to maintain the signal quality and avoid introducing too much crosstalk due to the adjustment operation.
[0078] Further, the fine-tuning horizontal lines or fine-tuning vertical lines are batch-length compensated based on the fine-tuning non-horizontal lines or fine-tuning non-vertical lines to obtain a target differential line group and realize rapid adjustment of differential lines, specifically:
[0079] Length compensation is performed for any of the fine-tuning horizontal lines, including:
[0080] Obtain a first extension line of the fine-tuning horizontal line, and obtain a second extension line and a third extension line of two fine-tuning non-horizontal lines adjacent to the fine-tuning horizontal line; the first extension line and the second extension line intersect at a first horizontal junction, and the first extension line and the third extension line intersect at a second horizontal junction;
[0081] Performing length compensation on the fine-tuning horizontal line based on the first horizontal joint and the second horizontal joint;
[0082] Length compensation for any of the fine-tuned vertical lines, including:
[0083] Obtain a fourth extension line of the fine-tuning vertical line, and obtain a fifth extension line and a sixth extension line of two fine-tuning non-vertical lines adjacent to the fine-tuning vertical line; the fourth extension line and the fifth extension line intersect at a first vertical connection point, and the fourth extension line and the sixth extension line intersect at a second vertical connection point;
[0084] The length of the fine-tuning vertical line is compensated based on the first vertical joint and the second vertical joint.
[0085] In this embodiment, although the line spacing of each pair of line segments in the differential pair has been achieved to be the preset target line spacing, there may be a situation where the fine-tuning horizontal line and the two adjacent fine-tuning non-horizontal lines of the fine-tuning horizontal line do not intersect at the line segment endpoints, and the fine-tuning vertical line and the two adjacent fine-tuning non-vertical lines of the fine-tuning vertical line do not intersect at the line segment endpoints. Therefore, it is necessary to compensate the line segments for length. During the compensation process, it is necessary to ensure that the line width, line spacing and differential line angle of each line segment remain unchanged after fine-tuning. The specific compensation steps are as follows: for the fine-tuning horizontal line, according to the first horizontal contact and the second horizontal contact, The length of the fine-tuning vertical line is compensated according to the first vertical connection point and the second vertical connection point; when the first vertical connection point or the second vertical connection point does not coincide with the two endpoints of the fine-tuning vertical line, the two endpoints of the fine-tuning vertical line are moved to the first horizontal connection point and the second horizontal connection point to complete the length compensation; for the fine-tuning vertical line, the length compensation is performed according to the first vertical connection point and the second vertical connection point; when the first vertical connection point or the second vertical connection point does not coincide with the two endpoints of the fine-tuning vertical line, the two endpoints of the fine-tuning vertical line are moved to the first vertical connection point and the second vertical connection point to complete the length compensation.
[0086] See also Figure 2 This embodiment provides a device for adjusting the routing of differential lines, including a line group determination module, a line width setting module, a first adjustment module, a second adjustment module and a length compensation module, wherein:
[0087] The line group determination module is used to determine the original differential line group to be modified;
[0088] The line width setting module is used to batch select original differential pairs of the original differential line group, and uniformly set the line widths of the original differential pairs to a preset target line width;
[0089] The first adjustment module is used to batch select horizontal lines or vertical lines in the original differential pairs, move the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width, and obtain fine-tuning horizontal lines or fine-tuning vertical lines;
[0090] The second adjustment module is used to batch select non-horizontal lines or non-vertical lines in the original differential pair, move the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and obtain fine-tuning non-horizontal lines or fine-tuning non-vertical lines;
[0091] The length compensation module is used to perform batch length compensation on the fine-tuning horizontal lines or fine-tuning vertical lines based on the fine-tuning non-horizontal lines or fine-tuning non-vertical lines, obtain a target differential line group, and realize rapid adjustment of differential lines.
[0092] The device for adjusting the routing of differential lines provided in this embodiment has a simple structure. In practical applications, it is only necessary to determine the original differential line group to be modified through the line group determination module; the line width setting module batches selects the original differential pairs of the original differential line group, and uniformly sets the line widths of the original differential pairs to the preset target line widths; the first adjustment module batches selects the horizontal lines or vertical lines in the original differential pairs, moves the horizontal lines or vertical lines based on the preset target line spacing and the preset target line width, and obtains fine-tuning horizontal lines or fine-tuning vertical lines; the second adjustment module batches selects the non-horizontal lines or non-vertical lines in the original differential pairs , based on the preset target line spacing, the preset target line width and the differential line angle, the non-horizontal line or the non-vertical line is moved to obtain the fine-tuned non-horizontal line or the fine-tuned non-vertical line; the length compensation module performs batch length compensation on the fine-tuned horizontal line or the fine-tuned vertical line based on the fine-tuned non-horizontal line or the fine-tuned non-vertical line, so as to obtain the target differential line group, and realize batch, simple, efficient and accurate modification of the parameters of the differential signal line that has been designed, avoiding the layout work of changing each pair of differential lines according to the preset target line width and the preset target spacing, and greatly improving the design efficiency.
[0093] Furthermore, the line group determination module is used to determine the original differential line group to be modified; specifically:
[0094] Get the initial line width, initial line spacing, differential line angle and target routing layer;
[0095] Based on the initial line width and the initial line spacing, a differential line group that meets the preset requirements is determined in the target routing layer as the original differential line group to be modified.
[0096] Furthermore, the line width setting module is used to batch select original differential pairs of the original differential line group, and uniformly set the line widths of the original differential pairs to the preset target line widths; specifically:
[0097] All differential line groups in the target routing layer whose line width is the initial line width and whose line spacing is the initial line spacing are taken as original differential line groups to be modified.
[0098] See also Figure 3 In this embodiment, the steps of adjusting the differential line routing can be programmed into a script according to the above steps, and imported into the relevant EDA design software to form a visual interface for designers to use, specifically: establish the differential pair class name in the EDA software, enter the differential pair class name; enter the preset target line width and the preset target line spacing; based on the input preset target line width and the preset target line spacing, first determine whether it is less than or equal to the original differential pair total width; run steps S2, S3, S4 and S5; complete the change.
[0099] In this embodiment, the differential pair class name is established in the EDA software to facilitate quick screening; the purpose of inputting the differential pair class name is to select the pre-adjusted differential pair; determine whether it is less than or equal to the original differential pair total width, if it is satisfied, enter the next step to adjust the line width spacing, if not, return to the previous step to re-enter the preset target line width and preset target line spacing; the steps of adjusting the differential line routing are made into a plug-in script to provide designers with an intuitive and concise program port for design.
[0100] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for quickly adjusting the routing of differential lines, characterized in that: The following steps are involved: Determine the original differential line group to be modified; Batch select original differential pairs of the original differential line group, and uniformly set the line widths of the original differential pairs to a preset target line width; Batch select horizontal lines or vertical lines in the original differential pairs, move the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width, and obtain fine-tuning horizontal lines or fine-tuning vertical lines; Batch select non-horizontal lines or non-vertical lines in the original differential pair, move the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and obtain fine-tuned non-horizontal lines or fine-tuned non-vertical lines; Based on the fine-tuning non-horizontal lines or the fine-tuning non-vertical lines, batch length compensation is performed on the fine-tuning horizontal lines or the fine-tuning vertical lines to obtain a target differential line group, thereby realizing rapid adjustment of the differential lines.
2. The method for quickly adjusting the routing of differential lines according to claim 1, characterized in that: The determining of the original differential line group to be modified is specifically: Get the initial line width, initial line spacing, differential line angle and target routing layer; Based on the initial line width and the initial line spacing, a differential line group that meets the preset requirements is determined in the target routing layer as the original differential line group to be modified.
3. The method for quickly adjusting the routing of differential lines according to claim 2, characterized in that: The step of determining a differential line group that meets preset requirements in the target routing layer based on the initial line width and the initial line spacing as the original differential line group to be modified is specifically as follows: All differential line groups in the target routing layer whose line width is the initial line width and whose line spacing is the initial line spacing are taken as original differential line groups to be modified.
4. The method for quickly adjusting the routing of differential lines according to claim 2, characterized in that: The batch selecting of horizontal lines or vertical lines in the original differential pairs, moving the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width, and obtaining fine-tuning horizontal lines or fine-tuning vertical lines is specifically as follows: Constructing a plane rectangular coordinate system in the target routing layer, and determining the initial coordinates of a first single horizontal line or a vertical line in the original differential pair and the initial coordinates of a second single horizontal line or a vertical line in the original differential pair in the plane rectangular coordinate system; The first single horizontal line or vertical line in the original differential pair is selected in batches, and the initial coordinates of the second single horizontal line or vertical line in the original differential pair are used as a reference, and the first single horizontal line or vertical line in the original differential pair is moved as a whole based on the preset target line spacing and the preset target line width to obtain a fine-tuning horizontal line or a fine-tuning vertical line.
5. The method for quickly adjusting the routing of differential lines according to claim 4, characterized in that: The first single horizontal line or vertical line in the original differential pair is selected in batches, and the first single horizontal line or vertical line in the original differential pair is moved as a whole based on the preset target line spacing and the preset target line width to obtain a fine-tuning horizontal line or a fine-tuning vertical line, specifically: The first single horizontal line or vertical line in the original differential pair is moved as a whole by a distance Ha, according to the formula: H a =H b +(W a -W c )-H c In the formula, H a Indicates the distance that the first single line of the horizontal or vertical line in the original differential pair moves in the positive direction, H b represents the initial line spacing, H c represents the preset target line spacing value, W a represents the initial line width, W c Indicates the preset target line width; when H a When it is equal to a negative number, the first single line of the horizontal line or the vertical line in the original differential pair moves in the opposite direction.
6. The method for quickly adjusting the routing of differential lines according to claim 5, characterized in that: The batch selection of non-horizontal lines or non-vertical lines in the original differential pair, the movement of the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and the acquisition of fine-tuning non-horizontal lines or fine-tuning non-vertical lines are specifically as follows: Based on the preset target line spacing, the preset target line width and the differential line angle, the first single line of the non-horizontal line or the non-vertical line in the original differential pair is moved as a whole to obtain a fine-tuning non-horizontal line or a fine-tuning non-vertical line.
7. The method for quickly adjusting the routing of differential lines according to claim 6, characterized in that: The batch length compensation of the fine-tuning horizontal lines or fine-tuning vertical lines based on the fine-tuning non-horizontal lines or fine-tuning non-vertical lines is performed to obtain a target differential line group and realize rapid adjustment of differential lines, specifically: Length compensation is performed for any of the fine-tuning horizontal lines, including: Obtain a first extension line of the fine-tuning horizontal line, and obtain a second extension line and a third extension line of two fine-tuning non-horizontal lines adjacent to the fine-tuning horizontal line; the first extension line and the second extension line intersect at a first horizontal junction, and the first extension line and the third extension line intersect at a second horizontal junction; Performing length compensation on the fine-tuning horizontal line based on the first horizontal joint and the second horizontal joint; Length compensation for any of the fine-tuned vertical lines, including: Obtain a fourth extension line of the fine-tuning vertical line, and obtain a fifth extension line and a sixth extension line of two fine-tuning non-vertical lines adjacent to the fine-tuning vertical line; the fourth extension line and the fifth extension line intersect at a first vertical connection point, and the fourth extension line and the sixth extension line intersect at a second vertical connection point; The length of the fine-tuning vertical line is compensated based on the first vertical joint and the second vertical joint.
8. A device for adjusting the routing of a differential line, characterized in that: It includes a line group determination module, a line width setting module, a first adjustment module, a second adjustment module and a length compensation module, wherein: The line group determination module is used to determine the original differential line group to be modified; The line width setting module is used to batch select original differential pairs of the original differential line group, and uniformly set the line widths of the original differential pairs to a preset target line width; The first adjustment module is used to batch select horizontal lines or vertical lines in the original differential pairs, move the horizontal lines or vertical lines based on a preset target line spacing and a preset target line width, and obtain fine-tuning horizontal lines or fine-tuning vertical lines; The second adjustment module is used to batch select non-horizontal lines or non-vertical lines in the original differential pair, move the non-horizontal lines or non-vertical lines based on the preset target line spacing, the preset target line width and the differential line angle, and obtain fine-tuning non-horizontal lines or fine-tuning non-vertical lines; The length compensation module is used to perform batch length compensation on the fine-tuning horizontal lines or fine-tuning vertical lines based on the fine-tuning non-horizontal lines or fine-tuning non-vertical lines, obtain a target differential line group, and realize rapid adjustment of differential lines.
9. The device for adjusting the routing of a differential line according to claim 8, characterized in that: The line group determination module is used to determine the original differential line group to be modified; specifically: Get the initial line width, initial line spacing, differential line angle and target routing layer; Based on the initial line width and the initial line spacing, a differential line group that meets the preset requirements is determined in the target routing layer as the original differential line group to be modified.
10. The device for adjusting the routing of a differential line according to claim 9, characterized in that: The line width setting module is used to batch select the original differential pairs of the original differential line group, and uniformly set the line widths of the original differential pairs to the preset target line widths; specifically: All differential line groups in the target routing layer whose line width is the initial line width and whose line spacing is the initial line spacing are taken as original differential line groups to be modified.
Citation Information
Patent Citations
Differential signal line spacing modification method and device, electronic equipment and storage medium
CN116070576A
Differential signal line parameter modification method and device, integrated circuit, equipment and medium
CN117688897A