Circuit board winding method and apparatus, nonvolatile readable storage medium and electronic device
By using the target strategy model to adjust the wiring results in circuit board wiring, the problem of difficulty in improving the speed and quality of circuit board wiring development in the existing technology is solved, and a more efficient wiring process is achieved.
Patent Information
- Application Number
- PCT/CN2023/134813
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2023-11-28
- Publication Date
- 2024-09-26
AI Technical Summary
In the existing technology, it is difficult to improve the speed and quality of circuit board wiring development. Especially when rules change or component design changes, frequent rewiring is required, resulting in high labor costs and time consumption.
By obtaining the initial winding results of the printed circuit board, it is judged whether the winding allowance requirements are met. If not, the winding parameters are input to the target strategy model, the winding adjustment action is output, and the winding sequence of the pins and the location of obstacles are adjusted. , to achieve winding results that meet design requirements.
It improves the speed and quality of circuit board wiring, reduces the frequency and time of manual adjustments, and reduces labor costs.
Smart Images

Figure CN2023134813_26092024_PF_FP
Abstract
Description
Circuit board winding method, device, non-volatile readable storage medium and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on March 22, 2023, with application number 202310285922.0, and entitled “Circuit board winding method, device, storage medium and electronic device”, all contents of which are incorporated by reference into this application. Technical Field
[0003] Embodiments of the present application relate to the field of computers, and in particular, to a circuit board winding method, device, non-volatile readable storage medium, and electronic device. Background Art
[0004] In the process of printed circuit board layout, the wiring of the circuit board has always been a key link in the layout process. Among them, the jumper routing of the integrated circuit (IC) in the ball grid array package (BGA) is a major challenge. Since the integrated circuit in the ball grid array package has multiple pins, and each pin is arranged in a two-dimensional manner, if the pins in the integrated circuit need to be pulled outward to other parts or circuits, the routing must bypass other pins to reach the required location. In addition, it is also necessary to comply with various printed circuit board routing design rule checks. When certain design rules are changed or the component design is changed, the routing of the entire printed circuit board must be re-layouted and re-routed.
[0005] To solve the problem of re-winding when the rules change, traditional technology can use manual operation to route the circuit board. However, this method is highly dependent on the knowledge and experience of the routing engineer. However, the output speed of this method is limited by the quality and cost of labor. In a development scenario with frequent modifications, it will consume a lot of labor costs and development time.
[0006] Based on the above problems, in order to improve the development time of circuit board wiring, software tools are used to automatically wire printed circuit boards. However, this method also has many problems: when operating the automated wiring tool, in order to ensure that the output meets the requirements of the circuit board, the wiring engineer needs to operate the automated software and input and modify the relevant parameters and prompt conditions. Therefore, operating the automated wiring software will also consume a lot of time and labor costs to make corresponding parameter settings.
[0007] Summary of the Invention
[0008] The embodiments of the present application provide a circuit board winding method, device, non-volatile readable storage medium and electronic device to at least solve the technical problem in the related art that automated wiring software still needs to use manual labor to improve the speed and quality of wiring development.
[0009] According to one embodiment of the present application, a circuit board winding method is provided, comprising: obtaining an initial winding result of an integrated circuit module in a printed circuit board, wherein the initial winding result refers to a result of connecting each pin of the integrated circuit module to other components through leads; judging whether the initial winding result meets a winding allowance requirement, and if the initial winding result does not meet the winding allowance requirement, inputting the winding parameters of the integrated circuit module into a target strategy model, and outputting winding adjustment actions for each pin of the integrated circuit module, wherein the winding parameters of the integrated circuit module are used to describe the initial winding result, and the winding allowance requirement refers to a winding requirement that meets a preset circuit design; and adjusting the winding of each pin of the integrated circuit module according to the winding adjustment action to obtain a target winding result.
[0010] Optionally, in an exemplary embodiment, before obtaining the initial winding result of the integrated circuit module in the printed circuit board, the method further includes: winding each pin of the integrated circuit module according to the winding sequence rule to obtain the initial winding result, wherein the winding sequence rule includes at least one of the following: a first winding rule, wherein the first winding rule refers to winding in the order of the data transmission speed of the signal line; a second winding rule, wherein the second winding rule refers to winding in the order of the size of the distance between the pin and the target object, and the target object is the object to be wound of the pin; a third winding rule, wherein the third winding rule refers to winding in the order of the number of layout design rules that the signal line needs to follow; a fourth winding rule, wherein the fourth winding rule refers to winding in the order from having paired winding requirements to having no paired winding requirements for the signal line.
[0011] Optionally, in an exemplary embodiment, when each pin of the integrated circuit module is routed using multiple winding rules, the priorities of the first winding rule, the second winding rule, the third winding rule and the fourth winding rule are in descending order.
[0012] Optionally, in an exemplary embodiment, the initial winding result includes multiple sub-winding results, each sub-winding result refers to the result of connecting the current pin to other components other than the current pin through leads, and each sub-winding result is obtained in the following manner: determining the target object to which the current pin needs to be connected; determining the line distance that needs to be maintained between the lead and the obstacle during winding, and determining the shortest path between the current pin and the target object under the line distance in the grid of the printed circuit board; arranging the leads between the current pin and the target object according to the shortest path to obtain the sub-winding result of the current pin.
[0013] Optionally, in an exemplary embodiment, determining the line spacing and determining the shortest path between the current pin and the target object under the line spacing in the grid of the printed circuit board includes: setting a virtual obstacle based on the spacing distance requirement between lines and the width of the trace, and determining the width of the virtual obstacle as the line spacing; determining the shortest path between the current pin and the target object under the line spacing in the grid of the printed circuit board to bypass obstacles, wherein the obstacles include physical obstacles and virtual obstacles.
[0014] Optionally, in an exemplary embodiment, the shortest path between the current pin and the target object that bypasses obstacles is determined using a jump point search algorithm.
[0015] Optionally, in an exemplary embodiment, the initial winding result includes multiple sub-winding results, each sub-winding result refers to the result of a pin being connected to other components through a lead, and judging whether the initial winding result meets the winding allowance requirement includes: for each sub-winding result, determining the sub-winding score according to the compliance with the layout design rules; calculating the sum of each sub-winding score to obtain the winding score of the initial winding result; judging whether the winding score of the initial winding result meets the winding allowance score condition; if the winding score of the initial winding result meets the winding allowance score condition, determining that the initial winding result meets the winding allowance requirement.
[0016] Optionally, in an exemplary embodiment, for each sub-routing result, determining the sub-routing score based on compliance with the layout design rules includes: judging whether the sub-routing result complies with the layout design rules; if the sub-routing result complies with the layout design rules, determining the routing allowance score as the sub-routing score of the sub-routing result; if the sub-routing result does not comply with the layout design rules, determining the type and degree of non-compliance of the sub-routing result with the layout design rules; determining each initial score based on the degree to which the sub-routing result does not comply with different types of layout design rules, determining each weight based on the type of non-compliance of the sub-routing result with different types of layout design rules, and weighted summing the initial scores based on the weights to obtain the sub-routing score of the sub-routing result.
[0017] Optionally, in an exemplary embodiment, determining whether the winding score of the initial winding result meets the winding allowable score condition includes: determining whether the winding score of the initial winding result is greater than or equal to the winding allowable score, and if the winding score of the initial winding result is greater than or equal to the winding allowable score, determining that the initial winding result does not meet the winding allowable requirement; or determining the winding grade based on the winding score of the initial winding result, determining whether the winding grade of the initial winding result is greater than or equal to the winding allowable grade, and if the winding grade is greater than the winding allowable grade, determining that the initial winding result does not meet the winding allowable requirement.
[0018] Optionally, in an exemplary embodiment, the target strategy model determines the winding adjustment action of the integrated circuit module in the following manner: when the degree to which the initial winding result does not meet the winding allowance requirement is greater than the winding allowance, the target strategy model determines the winding adjustment action of the integrated circuit module according to the first adjustment strategy; when the degree to which the initial winding result does not meet the winding allowance requirement is less than or equal to the winding allowance, the target strategy model determines the winding adjustment action of the integrated circuit module according to the second adjustment strategy, wherein the adjustment amplitude of the first adjustment strategy is greater than the adjustment amplitude of the second adjustment strategy.
[0019] Optionally, in an exemplary embodiment, the extent to which the initial winding result does not meet the winding allowance requirement is determined by the difference between the winding score of the initial winding result and the winding allowance score, or by the relationship between the winding grade of the initial winding result and the winding allowance grade.
[0020] Optionally, in an exemplary embodiment, the winding adjustment action includes at least one of the following types: adjusting the winding order of each pin; adjusting the size of a virtual obstacle set on the printed circuit board and the position of the virtual obstacle, wherein the virtual obstacle is used to determine the line spacing of the winding action; adjusting the position of the middle point through which the lead of the winding action passes.
[0021] Optionally, in an exemplary embodiment, the order of the winding adjustment actions in the first adjustment strategy is as follows: adjusting the winding order of each pin, adjusting the size of the virtual obstacle set on the printed circuit board and the position of the virtual obstacle, and adjusting the position of the middle point through which the lead of the winding action passes.
[0022] Optionally, in an exemplary embodiment, the order of the winding adjustment actions in the second adjustment strategy is as follows: adjusting the position of the midpoint through which the lead of the winding action passes, adjusting the winding order of each pin, adjusting the size of the virtual obstacle set on the printed circuit board, and the position of the virtual obstacle.
[0023] Optionally, in an exemplary embodiment, the target strategy model is trained in the following manner: the initial strategy model is iteratively trained using multiple sets of winding data until the value of the loss function of the trained strategy model reaches a preset value allowed for winding, wherein each set of winding data includes the winding parameters of the current winding event of the integrated circuit module, the score of the winding result, and the winding adjustment action.
[0024] Optionally, in an exemplary embodiment, the value of the loss function is the weighted sum of the sub-routing scores and attenuation factors of the sub-routing results of each pin of the current routing event, wherein each attenuation factor represents the degree of influence of a routing on the overall routing situation of the integrated circuit module, and each sub-routing score is used to describe the degree to which a sub-routing result complies with the layout design rules.
[0025] Optionally, in an exemplary embodiment, multiple sets of winding data are used to iteratively train the initial strategy model until the value of the loss function of the trained strategy model reaches a preset value allowed for winding, including: determining whether the value of the loss function of the strategy model reaches the preset value allowed for winding through a gradient descent algorithm.
[0026] According to another embodiment of the present application, a winding device for a circuit board is provided, comprising: an acquisition unit, configured to acquire an initial winding result of an integrated circuit module in a printed circuit board, wherein the initial winding result refers to a result of connecting each pin of the integrated circuit module to other components through leads; a judgment unit, configured to judge whether the initial winding result meets the winding allowance requirement, and if the initial winding result does not meet the winding allowance requirement, input the winding parameters of the integrated circuit module into a target strategy model, and process the winding adjustment actions of each pin of the integrated circuit module to obtain the winding adjustment actions, wherein the winding parameters of the integrated circuit module are used to describe the initial winding result; and an adjustment unit, configured to adjust the winding of each pin of the integrated circuit module according to the winding adjustment action to obtain a target winding result.
[0027] According to another embodiment of the present application, a non-volatile readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when running.
[0028] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0029] Through this application, the initial winding result of the integrated circuit module in the printed circuit board is obtained, wherein the initial winding result refers to the result of connecting the various pins of the integrated circuit module with other components through leads; it is judged whether the initial winding result meets the winding allowance requirement, and if the initial winding result does not meet the winding allowance requirement, the winding parameters of the integrated circuit module are input into the target strategy model, and the winding adjustment action of each pin of the integrated circuit module is output, wherein the winding parameters of the integrated circuit module are used to describe the initial winding result, and the winding allowance requirement refers to the winding requirement that meets the preset circuit design; the winding of each pin of the integrated circuit module is adjusted according to the winding adjustment action to obtain the target winding result. This solves the technical problem in the related art that it is difficult to improve the wiring development speed and quality when manually wiring the circuit board. By inputting the initial winding result into the strategy model, a winding adjustment action for the winding result is obtained, and then the initial winding result is adjusted, thereby achieving the effect of improving the wiring speed of the circuit board. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] FIG1 is a hardware structure block diagram of a mobile terminal of a circuit board winding method according to an embodiment of the present application;
[0031] FIG2 is a flow chart of a circuit board winding method according to an embodiment of the present application;
[0032] FIG3 is a schematic diagram of a target strategy model in a circuit board winding method according to an embodiment of the present application;
[0033] FIG4 is a schematic diagram of a sub-winding plan provided according to an embodiment of the present application;
[0034] FIG5 is a schematic diagram of a winding device for a circuit board according to an embodiment of the present application;
[0035] FIG6 is a hardware structure block diagram of an electronic device (or mobile device) according to a circuit board winding method according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0037] It should be noted that the terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0038] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking operation on a mobile terminal as an example, FIG1 is a hardware structure block diagram of a mobile terminal of a circuit board winding method according to an embodiment of the present application. As shown in FIG1 , the mobile terminal may include one or more (only one is shown in FIG1 ) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 configured to store data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 configured to have a communication function. It will be understood by those skilled in the art that the structure shown in FIG1 is only for illustration and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG1 , or have a configuration different from that shown in FIG1 .
[0039] The memory 104 can be configured to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the circuit board winding method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 includes a memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0040] The transmission device 106 is configured to receive or transmit data via a network. Examples of such networks may include wireless networks provided by the mobile terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module configured to communicate with the Internet wirelessly.
[0041] In this embodiment, a method for operating a circuit board winding system is provided. FIG2 is a flow chart of the circuit board winding method according to an embodiment of the present application. As shown in FIG2 , the process includes the following steps:
[0042] Step S201 : obtaining an initial winding result of an integrated circuit module in a printed circuit board, wherein the initial winding result refers to a result of connecting each pin of the integrated circuit module with other components through wires.
[0043] Printed circuit boards (PCBs) provide electrical connections for electronic components. They can be categorized by the number of layers, including single-sided, double-sided, four-layer, six-layer, and other multi-layer boards. Pins are the connections between the internal circuitry of an integrated circuit and the peripheral circuitry; all pins constitute the chip's interface. Components can include resistors, inductors, transistors, and more. The initial winding result refers to the wire connections between each pin and other components. Other components refer to the components surrounding the pins of the integrated circuit module.
[0044] It should be noted that since different routing methods of the pins in the integrated circuit module of the printed circuit board will affect the delay and signal quality, in order to ensure that the integrated circuit module has the shortest routing path, minimize the time delay, and improve the signal quality of the routing, it is necessary to judge and analyze the initial winding results of the printed circuit board. If the results indicate that they do not meet the requirements, the pin routing needs to be modified. Therefore, it is necessary to first obtain the initial winding results.
[0045] Step S202 determines whether the initial winding result meets the winding allowable requirements. If the initial winding result does not meet the winding allowable requirements, the winding parameters of the integrated circuit module are input into the target strategy model, and the winding adjustment actions of each pin of the integrated circuit module are output. The winding parameters of the integrated circuit module are used to describe the initial winding result, and the winding allowable requirements refer to the winding requirements that meet the preset circuit design.
[0046] Optionally, in the circuit board winding method provided in an embodiment of the present application, the target strategy model is trained in the following manner: multiple sets of winding data are used to iteratively train the initial strategy model until the value of the loss function of the trained strategy model reaches a preset value, wherein each set of winding data includes the winding parameters of the current winding event of the integrated circuit module, the score of the winding result, and the winding adjustment action.
[0047] Optionally, the winding allowable requirement refers to the pin winding result that can meet the routing requirements. For example, the winding allowable requirement may be that the level of the winding result needs to reach a low level, or when the total score of the winding result is 10 points, the score of the winding result needs to be less than or equal to 4 points. The target strategy model is a strategy model trained by training set data composed of multiple groups of historical windings. The target strategy model can be a model that adjusts the strategy according to different inputs and outputs, and the strategy model can be adjusted according to the training set data, wherein the strategy model outputs a winding adjustment action that can meet the winding allowable requirement.
[0048] Step S203 , adjusting the windings of the respective pins of the integrated circuit module according to the winding adjustment action to obtain a target winding result.
[0049] Optionally, the routing adjustment actions output by the strategy model may include adjusting the pin sequence, adjusting the position of obstacles, etc. By using the routing adjustment actions output by the strategy model, the positions of the intermediate points passed by the leads during routing of the integrated circuit pins, the routing sequence, and adjusting the positions and sizes of virtual obstacles are adjusted to obtain a target routing result that meets the routing allowance requirements.
[0050] Figure 3 is a schematic diagram of the target strategy model in the winding method of the circuit board according to the embodiment of the present application. As shown in Figure 3, the initial winding result is input into the trained strategy model to obtain an adjustment strategy, and then the winding result is obtained after adjustment according to the adjustment strategy. The inspection result and related position information are fed back from the winding result, and then the target winding result is finally obtained according to the adjustment based on the position information. Among them, the adjustment strategy includes an adjustment action for adjusting the winding result, and the inspection result includes a winding score and a winding grade corresponding to the winding result.
[0051] Through the above steps: obtaining the initial winding result of the integrated circuit module in the printed circuit board, wherein the initial winding result refers to the result of connecting the various pins of the integrated circuit module with other components through leads, and other components refer to the components outside the various pins of the integrated circuit module; judging whether the initial winding result meets the winding allowance requirements, and when the initial winding result does not meet the winding allowance requirements, inputting the winding parameters of the integrated circuit module into the target strategy model, and outputting the winding adjustment actions of the various pins of the integrated circuit module, wherein the winding parameters of the integrated circuit module are used to describe the initial winding result; adjusting the winding of the various pins of the integrated circuit module according to the winding adjustment action to obtain the target winding result, thereby solving the technical problem in the related art that it is difficult to improve the wiring development speed and quality when manually wiring the circuit board. By inputting the initial winding result into the strategy model, a winding adjustment action for the winding result is obtained, and then the initial winding result is adjusted, thereby achieving the effect of improving the wiring speed of the circuit board.
[0052] The execution entity of the above steps may be a server, a terminal, etc., but is not limited thereto.
[0053] The execution order of step S202 and step S203 can be interchanged, that is, step S203 can be executed first, and then step S202.
[0054] The embodiments of the present application are described in detail below in combination with the above steps.
[0055] Multiple winding rules need to be followed when winding a circuit board. Optionally, in the circuit board winding method provided in an embodiment of the present application, before obtaining the initial winding result of the integrated circuit module in the printed circuit board, the method further includes: winding each pin of the integrated circuit module according to the winding sequence rule to obtain the initial winding result, wherein the winding sequence rule includes at least one of the following: a first winding rule, wherein the first winding rule refers to winding in the order of the data transmission speed of the signal line; a second winding rule, wherein the second winding rule refers to winding in the order of the distance between the pin and the target object, and the target object is the object to be wound of the pin; a third winding rule, wherein the third winding rule refers to winding in the order of the number of layout design rules that the signal line needs to follow; a fourth winding rule, wherein the fourth winding rule refers to winding in the order from having paired winding requirements to having no paired winding requirements for the signal line.
[0056] It should be noted that the winding rules refer to the connection sequence regulations that need to be followed when the pins are wound in the circuit, and guide how to route the wires. If all pins in the integrated circuit can comply with the winding rules, the signal quality requirements can be met.
[0057] Optionally, the first winding rule uses the data transmission speed of the signal lines as the standard for the winding order, arranging the lines from high-speed signals to low-speed signals. This means that the pins with the fastest data transmission speed are routed first, and the pins with the slowest data transmission speed are routed last. This can be determined based on the content in the design specification guide document, and some high-speed bus signal lines (for example, devices that comply with the high-speed serial computer expansion bus standard, serial advanced technology accessories, etc.) and clock signals can also be used as high-speed signal lines.
[0058] The second winding rule is to sort the signals from farthest to closest, that is, the pin farthest from the object to be wound is the first pin to be wound, and the pin closest to the object to be wound is the last pin to be wound.
[0059] The third winding rule means that the pins that need to follow more layout design rules will be wound first. The winding order decreases according to the number of layout design rules that need to be followed. Among them, the layout design rules are also called Design Rule Check.
[0060] The fourth winding rule means that if there are pins that require paired winding among the signal lines of the pins, they will be wound first, and the pins that do not require paired winding will be wound last.
[0061] Each winding rule has a different priority. Optionally, in the winding method of the circuit board provided in an embodiment of the present application, when each pin of the integrated circuit module is wound using multiple winding rules, the priorities of the first winding rule, the second winding rule, the third winding rule and the fourth winding rule decrease in sequence.
[0062] Optionally, the routing of each pin will generate a set of pin-to-pin routing. The routing generated by the previous pin will be regarded as an obstacle on the same plane. Therefore, the first set of routing can get the shortest routing distance, and the last set of routing needs to avoid all obstacles before finding the shortest distance. Since more winding space and optional paths can be obtained when the pins that are more difficult to meet the conditions are routed first, the priority of the four winding rules decreases in sequence, that is, when winding, the pins that meet the first winding rule are routed first, and after the pins that meet the first winding rule are routed, the pins that meet the second winding rule are routed, and after the pins that meet the first and second winding rules are routed, the pins that meet the third winding rule are routed, and finally the pins that meet the fourth winding rule are routed.
[0063] The initial winding result is obtained by summarizing the sub-winding results of multiple pins. Optionally, in the winding method of the circuit board provided in the embodiment of the present application, the initial winding result includes multiple sub-winding results, each sub-winding result refers to the result of connecting the current pin with other components other than the current pin through leads, and each sub-winding result is obtained in the following manner: determining the target object to which the current pin needs to be connected; determining the line distance that needs to be maintained between the lead and the obstacle during winding, and determining the shortest path between the current pin and the target object under the line distance in the grid of the printed circuit board; arranging the leads between the current pin and the target object according to the shortest path to obtain the sub-winding result of the current pin.
[0064] Optionally, the initial winding result is the winding result obtained by winding multiple pins separately, and the winding result of each pin is recorded as a sub-winding result. When winding the pins, it is first necessary to confirm the target object that the pin needs to be connected to, where the target object may include another pin, component, etc.; secondly, determine the line spacing between the virtual obstacles, which refers to the certain distance between the lines. The virtual obstacle can be a through hole in the printed circuit board. Since the line spacing will affect the routing, the routing of the remaining pins is also treated as a virtual obstacle. Then, it is necessary to determine the shortest path length under the current line width, that is, the shortest distance required to bypass the obstacle; finally, the winding result is obtained according to the determined arrangement.
[0065] For example, Figure 4 is a schematic diagram of the sub-routing planning provided according to an embodiment of the present application. As shown in Figure 4, the white rectangular part is a virtual obstacle, "start" refers to the starting pin, and "end" refers to the final target object. The width of the grid unit area refers to the distance that needs to be maintained from the virtual obstacle during winding. The length of each square is recorded as the line distance. According to the path planning algorithm, the minimum path between two points is quickly found in the square grid environment, that is, the solid line part.
[0066] There can be multiple path planning algorithms. Optionally, in the circuit board winding method provided in the embodiment of the present application, the shortest path between the current pin and the target object that bypasses obstacles is determined using a jump point search algorithm.
[0067] It should be noted that the Jump Point Search algorithm, also known as JPS, can be used to find paths on grid maps. It is suitable as a pathfinding method for 2D grid maps and a method for calculating the path connecting two pins.
[0068] Optionally, after appropriately adjusting the size of the grid, that is, setting the width of each pin trace, the algorithm can detect obstacles and find the shortest path between two points during trace path planning.
[0069] Optionally, in the circuit board winding method provided in an embodiment of the present application, determining the line spacing that needs to be maintained between the lead and the obstacle during winding, and determining the shortest path between the current pin and the target object under the line spacing in the grid of the printed circuit board includes: setting a virtual obstacle according to the spacing distance requirements between the lines and the width of the trace, and determining the width of the virtual obstacle as the line spacing; determining the shortest path around the obstacle between the current pin and the target object under the line spacing in the grid of the printed circuit board, wherein the obstacle includes physical obstacles and virtual obstacles.
[0070] Optionally, the line spacing in the design rule refers to a certain spacing distance between lines. Optionally, the line spacing is set to the width of a virtual obstacle. Obstacles can include physical obstacles, virtual obstacles, and reserved spaces that are spaced apart from the rest of the traces. Since pins cannot overlap with the paths of already routed traces during routing, the width of the line needs to be considered, that is, a certain spacing distance between lines. In a square grid environment, the length of the square is recorded as the line spacing unit, that is, the basic width of the trace. As long as the size of the grid through which the trace passes is appropriately adjusted, the width of each trace can be set. This technique can also be used to set the area occupied by the obstacle. The area where the obstacle is located is the area where the trace cannot pass. At this time, the layout traces cannot pass through certain specific areas to achieve the design rule that the traces must keep a certain distance from each other.
[0071] When judging whether the winding result meets the winding allowance requirements, it is necessary to calculate the winding score of the winding result. Optionally, in the winding method of the circuit board provided in the embodiment of the present application, the initial winding result includes multiple sub-winding results, and each sub-winding result refers to the result of connecting a pin to other components through a lead. Judging whether the initial winding result meets the winding allowance requirements includes: for each sub-winding result, determining the sub-winding score according to the situation of complying with the layout design rules; calculating the sum of each sub-winding score to obtain the winding score of the initial winding result; judging whether the winding score of the initial winding result meets the winding allowance score condition; and determining that the initial winding result meets the winding allowance requirement when the winding score of the initial winding result meets the winding allowance score condition.
[0072] Optionally, each sub-routing result is input into inspection software to obtain a corresponding sub-routing score and a result analysis report for each sub-routing result. For example, the inspection software may be DRC (Design Rule Check), wherein the result analysis report includes which routings do not comply with the layout design rules. A sub-routing score is then determined for each sub-routing result based on the severity of the non-compliance with the rules in the report, and the individual scores are then added together to obtain a total score, i.e., the routing score.
[0073] The calculated total score is compared with the winding acceptance score to determine whether the winding result meets the winding acceptance requirements. The winding acceptance score corresponds to the winding result under the winding acceptance requirements. If the total score meets the winding acceptance score, that is, if the winding result meets the winding acceptance requirements, the initial winding result is determined to meet the requirements.
[0074] Determining the type and degree of non-compliance with layout design rules based on the winding score of the winding result. Optionally, in the winding method for a circuit board provided in an embodiment of the present application, for each sub-winding result, determining the sub-winding score based on the compliance with the layout design rules includes: judging whether the sub-winding result complies with the layout design rules; when the sub-winding result complies with the layout design rules, determining the winding allowance score as the sub-winding score of the sub-winding result; when the sub-winding result does not comply with the layout design rules, determining the type and degree of non-compliance with the layout design rules of the sub-winding result; determining each initial score based on the degree to which the sub-winding result does not comply with different types of layout design rules, determining each weight based on the type of non-compliance with different types of layout design rules by the sub-winding result, and weighted summing the initial scores based on the weights to obtain the sub-winding score of the sub-winding result.
[0075] Optionally, when the sub-routing result complies with the layout design rules, the sub-routing score, that is, the sub-routing score, is determined as the routing allowance score; when the sub-routing result does not comply with the layout design rules, it is necessary to determine the degree of non-compliance with the rules, that is, it is necessary to determine the degree of error.
[0076] Optionally, by detecting the order of pin winding and the position of virtual obstacles, the level of non-compliance with layout design rules is obtained, where the level can include strict, high and lower levels. When the level is displayed as "strict level", it means that the error is the most serious. If the level is "strict level", rewiring is required.
[0077] Optionally, each initial score is determined according to the degree of non-compliance with different types of layout design rules, and then a weight is determined according to the type of non-compliance with the rules, and the weighted sum is performed to obtain the sub-routing score.
[0078] When the initial winding result does not meet the winding allowance requirements, it is necessary to use the winding score and winding grade to determine. Optionally, in the winding method for the circuit board provided in the embodiment of the present application, judging whether the winding score of the initial winding result meets the winding allowance score condition includes: judging whether the winding score of the initial winding result is greater than or equal to the winding allowance score, and when the winding score of the initial winding result is greater than or equal to the winding allowance score, determining that the initial winding result does not meet the winding allowance requirements; or determining the winding grade based on the winding score of the initial winding result, judging whether the winding grade of the initial winding result is greater than or equal to the winding allowance grade, and when the winding grade is greater than the winding allowance grade, determining that the initial winding result does not meet the winding allowance requirements.
[0079] Compliance with the winding allowable requirements can be determined based on a score or a grade. Optionally, the calculated winding score is compared with the winding score corresponding to the winding allowable requirements. If the calculated score is greater than or equal to the score corresponding to the winding allowable requirements, it indicates that the winding does not meet the winding allowable requirements and requires adjustment. For example, if the winding score corresponding to the winding allowable requirements is 5, and the calculated winding result for the circuit board is 7, then the winding of the circuit board does not meet the winding allowable requirements and requires adjustment.
[0080] On the other hand, by judging the level of the winding result, the winding level is obtained, and then the level is compared with the level corresponding to the winding allowance requirement. When the winding level is greater than the level of the winding allowance requirement, it is determined that the winding allowance requirement is not met. For example, if the winding level corresponding to the winding allowance requirement is low, and the winding level corresponding to the winding result is high, it means that the winding result does not meet the winding allowance requirement and needs to be adjusted from aspects such as the position of the intermediate point through which the wiring passes.
[0081] The adjustment strategies obtained according to the target strategy model are divided into two categories. Optionally, in the circuit board winding method provided in the embodiment of the present application, the target strategy model determines the winding adjustment action of the integrated circuit module in the following manner: when the initial winding result does not meet the winding allowable requirements to a greater extent than the winding allowable degree, the target strategy model determines the winding adjustment action of the integrated circuit module according to the first adjustment strategy; when the initial winding result does not meet the winding allowable requirements to a less than or equal to the winding allowable degree, the target strategy model determines the winding adjustment action of the integrated circuit module according to the second adjustment strategy, wherein the adjustment amplitude of the first adjustment strategy is greater than the adjustment amplitude of the second adjustment strategy.
[0082] Optionally, in the circuit board winding method provided in the embodiment of the present application, the extent to which the initial winding result does not meet the winding allowance requirements is determined by the difference between the winding score of the initial winding result and the winding allowance score, or by the relationship between the winding grade of the initial winding result and the winding allowance grade.
[0083] Optionally, the allowable winding score and allowable winding level are determined by the allowable winding requirements. For example, the allowable winding score of a circuit board routing result is 5 points and the allowable winding level is low. After preliminary winding of the circuit board, a winding result is obtained, and the winding score corresponding to the result is calculated to be 8 points and the winding level is strict. After inputting these into the strategy model, the first adjustment strategy and the second adjustment strategy are obtained, indicating that the degree of error is large and requires significant adjustment. After adjustment according to the first adjustment strategy, the winding score becomes 7 points. Optionally, adjustment according to the second adjustment strategy results in a winding score of 6 points, indicating that the adjustment is effective.
[0084] On the other hand, since the winding level corresponding to the circuit board winding result is strict, the winding level becomes advanced after adjustment according to the first adjustment strategy; and then the winding level becomes lower after adjustment using the second adjustment strategy, which means that the strategy can be effectively adjusted.
[0085] It should be noted that the degree of winding adjustment is determined according to the degree to which the winding allowable requirements are not met. The first adjustment strategy has a large adjustment range, and the second adjustment strategy has a small adjustment range.
[0086] The winding adjustment action may include multiple types. Optionally, in the circuit board winding method provided in the embodiment of the present application, the winding adjustment action includes at least one of the following types: adjusting the winding order of each pin; adjusting the size of the virtual obstacle set on the printed circuit board and the position of the virtual obstacle, wherein the virtual obstacle is used to determine the line spacing of the winding action; adjusting the position of the middle point through which the lead of the winding action passes.
[0087] Optionally, if a difference is found when comparing the initial winding results with the winding allowable requirements, the winding needs to be adjusted. The adjustment methods include adjusting the winding order of the pins, adjusting the size and position of the set obstacles, and adjusting the position of the lead passing point.
[0088] Optionally, in the circuit board winding method provided in an embodiment of the present application, the order of the winding adjustment actions in the first adjustment strategy is as follows: adjusting the winding order of each pin, adjusting the size of the virtual obstacle set on the printed circuit board and the position of the virtual obstacle, and adjusting the position of the middle point through which the lead of the winding action passes.
[0089] Optionally, when the winding result differs significantly from the winding allowable requirements, the pin winding in the initial winding result is adjusted according to the first adjustment strategy in the target strategy model. The adjusted part may be adjusting the winding order, adjusting the size and position of the virtual obstacle, and the spacing between the windings.
[0090] Optionally, in the circuit board winding method provided in an embodiment of the present application, the order of the winding adjustment actions in the second adjustment strategy is as follows: adjusting the position of the midpoint through which the lead of the winding action passes, adjusting the winding order of each pin, adjusting the size of the virtual obstacle set on the printed circuit board, and the position of the virtual obstacle.
[0091] Optionally, when the winding result is slightly different from the winding allowable requirements, the pin winding in the initial winding result is adjusted according to the second adjustment strategy in the target strategy model; or, when the positions of the pins and leads are adjusted according to the first adjustment strategy and the winding result is input into the model for continued detection and still does not meet the winding allowable requirements, the winding result needs to be adjusted a second time according to the second adjustment strategy.
[0092] Optionally, in the circuit board winding method provided in an embodiment of the present application, the value of the loss function is the weighted sum of the sub-winding scores and attenuation factors of the sub-winding results of each pin of the current winding event, wherein each attenuation factor characterizes the degree of influence of a winding on the overall winding situation of the integrated circuit module, and each sub-winding score is used to describe the degree to which a sub-winding result complies with the layout design rules.
[0093] Optionally, since each winding has a sequence and the result of each winding has the greatest correlation with the action performed by the winding, in order to improve the accuracy of the output results, an attenuation factor is introduced, and the attenuation factor can be set in advance. When the sub-winding score of each sub-winding result is multiplied by the attenuation factor, the correlation between other windings and the winding action of this time will become lower, thereby improving the accuracy of the output results.
[0094] Optionally, the loss function is set to L, L = ∑An, where An is the total evaluation function of multiple pins, which refers to the weighted sum of the sub-winding score of the sub-winding result of each pin and the attenuation factor, r represents the evaluation function of each pin, d represents the attenuation factor, and n represents the number of pins. The total evaluation function is: An = r1 + r2*(d 1 )+r3*(d 2 )+...+rn*(d n-1 )=∑ N n=x rn*d^(nx).
[0095] Optionally, in the circuit board winding method provided in an embodiment of the present application, multiple sets of winding data are used to iteratively train the initial strategy model until the value of the loss function of the trained strategy model reaches a preset value, including: determining whether the value of the loss function of the strategy model reaches a preset value through a gradient descent algorithm.
[0096] Alternatively, the Gradient Descent (GD) algorithm is used to find optimal parameters. The goal is to find a set of parameters that minimizes the loss function, i.e., to bring the loss function within the policy model to the desired parameters.
[0097] In this embodiment, a circuit board winding device is also provided, which is configured to implement the above-mentioned embodiments and optional implementation methods. The details already described will not be repeated here. As used below, the term "unit" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0098] FIG5 is a schematic diagram of a winding device for a circuit board according to an embodiment of the present application. As shown in FIG5 , the device includes: an acquisition unit 50 , a judgment unit 51 , and an adjustment unit 52 .
[0099] The obtaining unit 50 is configured to obtain an initial winding result of the integrated circuit module in the printed circuit board, wherein the initial winding result refers to a result of connecting each pin of the integrated circuit module with other components through leads;
[0100] The judgment unit 51 is configured to judge whether the initial winding result meets the winding allowable requirements. If the initial winding result does not meet the winding allowable requirements, the judgment unit 51 inputs the winding parameters of the integrated circuit module into the target strategy model to obtain a winding adjustment action for each pin of the integrated circuit module. The winding parameters of the integrated circuit module are used to describe the initial winding result, and the winding allowable requirements refer to winding requirements that meet a preset circuit design.
[0101] The adjustment unit 52 is configured to adjust the winding of each pin of the integrated circuit module according to the winding adjustment action to obtain a target winding result.
[0102] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the device also includes: a winding unit, which is configured to wind each pin of the integrated circuit module according to a winding sequence rule before obtaining the initial winding result of the integrated circuit module in the printed circuit board to obtain an initial winding result, wherein the winding sequence rule includes at least one of the following: a first winding rule, wherein the first winding rule refers to winding in the order of high and low data transmission speeds of the signal lines; a second winding rule, wherein the second winding rule refers to winding in the order of the size of the distance between the pins and the target object, and the target object is the object to be wound of the pins; a third winding rule, wherein the third winding rule refers to winding in the order of the number of layout design rules that the signal lines need to follow; a fourth winding rule, wherein the fourth winding rule refers to winding in the order from having paired winding requirements to having no paired winding requirements for the signal lines.
[0103] Optionally, in the winding device of the circuit board provided in an embodiment of the present application, when each pin of the integrated circuit module is wound using multiple winding rules, the priorities of the first winding rule, the second winding rule, the third winding rule and the fourth winding rule decrease in sequence.
[0104] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the initial winding result includes multiple sub-winding results, each sub-winding result refers to the result of connecting the current pin to other components other than the current pin through a lead. The device also includes a connection unit, which is configured to determine each sub-winding result. The connection unit includes: a first determination module, which is configured to determine the target object to which the current pin needs to be connected; a second determination module, which is configured to determine the line distance that needs to be maintained between the lead and the obstacle during winding, and determine the shortest path between the current pin and the target object under the line distance in the grid of the printed circuit board; and an obtaining module, which is configured to arrange the leads between the current pin and the target object according to the shortest path to obtain the sub-winding result of the current pin.
[0105] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the acquisition unit 50 includes: a setting module, which is configured to set a virtual obstacle according to the spacing distance requirements between lines and the width of the traces, and determine the width of the virtual obstacle as the line spacing; a third determination module, which is configured to determine the shortest path around the obstacle between the current pin and the target object under the line spacing in the grid of the printed circuit board, wherein the obstacles include physical obstacles and virtual obstacles.
[0106] Optionally, in the winding device for a circuit board provided in an embodiment of the present application, a shortest path between the current pin and the target object that bypasses obstacles is determined using a jump point search algorithm.
[0107] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the judgment unit 51 includes: a fourth determination module, which is configured to determine the sub-winding score for each sub-winding result according to the compliance with the layout design rules; a calculation module, which is configured to calculate the sum of each sub-winding score to obtain the winding score of the initial winding result; a first judgment module, which is configured to determine whether the winding score of the initial winding result meets the winding allowable score condition; and a fifth determination module, which is configured to determine that the initial winding result meets the winding allowable requirement when the winding score of the initial winding result meets the winding allowable score condition.
[0108] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the judgment unit 51 includes: a second judgment module, which is configured to judge whether the sub-winding result complies with the layout design rules; a sixth determination module, which is configured to determine the winding allowance score as the sub-winding score of the sub-winding result when the sub-winding result complies with the layout design rules; a seventh determination module, which is configured to determine the type and degree of non-compliance of the sub-winding result with the layout design rules when the sub-winding result does not comply with the layout design rules; an eighth determination module, which is configured to determine each initial score according to the degree to which the sub-winding result does not comply with different types of layout design rules, determine each weight according to the type of non-compliance of the sub-winding result with different types of layout design rules, and weighted sum the initial scores according to the weights to obtain the sub-winding score of the sub-winding result.
[0109] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the judgment unit 51 includes: a third judgment module, which is configured to judge whether the winding score of the initial winding result is greater than or equal to the winding allowable score, and when the winding score of the initial winding result is greater than or equal to the winding allowable score, determines that the initial winding result does not meet the winding allowable requirements; a fourth judgment module, which is configured to or determines the winding grade based on the winding score of the initial winding result, judges whether the winding grade of the initial winding result is greater than or equal to the winding allowable grade, and when the winding grade is greater than the winding allowable grade, determines that the initial winding result does not meet the winding allowable requirements.
[0110] Optionally, in the winding device of the circuit board provided in an embodiment of the present application, the target strategy model determines the winding adjustment action of the integrated circuit module in the following manner: when the degree to which the initial winding result does not meet the winding allowable requirements is greater than the winding allowable degree, the target strategy model determines the winding adjustment action of the integrated circuit module according to the first adjustment strategy; when the degree to which the initial winding result does not meet the winding allowable requirements is less than or equal to the winding allowable degree, the target strategy model determines the winding adjustment action of the integrated circuit module according to the second adjustment strategy, wherein the adjustment amplitude of the first adjustment strategy is greater than the adjustment amplitude of the second adjustment strategy.
[0111] Optionally, in the winding device for the circuit board provided in the embodiment of the present application, the extent to which the initial winding result does not meet the winding allowance requirements is determined by the difference between the winding score of the initial winding result and the winding allowance score, or by the relationship between the winding grade of the initial winding result and the winding allowance grade.
[0112] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the winding adjustment action includes at least one of the following types: adjusting the winding order of each pin; adjusting the size of the virtual obstacle set on the printed circuit board and the position of the virtual obstacle, wherein the virtual obstacle is used to determine the line spacing of the winding action; adjusting the position of the middle point through which the lead of the winding action passes.
[0113] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the order of the winding adjustment actions in the first adjustment strategy is as follows: adjusting the winding order of each pin, adjusting the size of the virtual obstacle set on the printed circuit board and the position of the virtual obstacle, and adjusting the position of the middle point through which the lead of the winding action passes.
[0114] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the order of the winding adjustment actions in the second adjustment strategy is as follows: adjusting the position of the midpoint through which the lead of the winding action passes, adjusting the winding order of each pin, adjusting the size of the virtual obstacle set on the printed circuit board, and the position of the virtual obstacle.
[0115] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the target strategy model is trained in the following manner: multiple sets of winding data are used to iteratively train the initial strategy model until the value of the loss function of the trained strategy model reaches a preset value allowed for winding, wherein each set of winding data includes the winding parameters of the current winding event of the integrated circuit module, the score of the winding result, and the winding adjustment action.
[0116] Optionally, in the winding device of the circuit board provided in the embodiment of the present application, the value of the loss function is the weighted sum of the sub-winding scores and the attenuation factors of the sub-winding results of each pin of the current winding event, wherein each attenuation factor characterizes the degree of influence of a winding on the overall winding situation of the integrated circuit module, and each sub-winding score is used to describe the degree to which a sub-winding result complies with the layout design rules.
[0117] Optionally, in the winding device for a circuit board provided in an embodiment of the present application, the adjustment unit 52 includes: an eleventh determination module, which is configured to determine whether the value of the loss function of the strategy model reaches a preset value allowed for winding through a gradient descent algorithm.
[0118] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0119] An embodiment of the present application further provides a non-volatile readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when running.
[0120] In an exemplary embodiment, the non-volatile readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0121] An embodiment of the present application also provides an electronic device. Figure 6 is a hardware structure block diagram of an electronic device (or mobile device) according to the circuit board winding method of an embodiment of the present application. As shown in Figure 6, the electronic device 60 includes a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.
[0122] In an exemplary embodiment, the electronic device may further 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.
[0123] For optional examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementations, and this embodiment will not be described in detail here.
[0124] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0125] The above are merely optional embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may be subject to various modifications and variations. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A circuit board winding method, characterized in that: include: Obtaining an initial winding result of an integrated circuit module in a printed circuit board, wherein the initial winding result refers to a result of connecting each pin of the integrated circuit module with other components through leads; Determine whether the initial winding result meets the winding allowable requirement, and if the initial winding result does not meet the winding allowable requirement, input the winding parameters of the integrated circuit module into the target strategy model, and output the winding adjustment action of each pin of the integrated circuit module, wherein the winding parameters of the integrated circuit module are used to describe the initial winding result, and the winding allowable requirement refers to the winding requirement that meets the preset circuit design; The windings of the respective pins of the integrated circuit module are adjusted according to the winding adjustment action to obtain a target winding result.
2. The method according to claim 1, characterized in that Before obtaining the initial wiring result of the integrated circuit module in the printed circuit board, the method further includes: Winding each pin of the integrated circuit module according to a winding sequence rule to obtain the initial winding result, wherein the winding sequence rule includes at least one of the following: A first winding rule, wherein the first winding rule refers to winding in the order of the data transmission speed of the signal line; A second winding rule, wherein the second winding rule refers to winding in the order of the distance between the pin and the target object, and the target object is the object to be wound of the pin; A third wiring rule, wherein the third wiring rule refers to wiring in the order of the number of layout design rules that the signal line needs to follow; A fourth winding rule, wherein the fourth winding rule refers to winding in the order from signal lines having paired winding requirements to signal lines having no paired winding requirements.
3. The method according to claim 2, characterized in that In the case where each pin of the integrated circuit module is wound using a plurality of winding rules, the priorities of the first winding rule, the second winding rule, the third winding rule and the fourth winding rule decrease in sequence.
4. The method according to claim 1, characterized in that The initial winding result includes multiple sub-winding results, each of which refers to the result of connecting the current pin with other components other than the current pin through leads, and each sub-winding result is obtained by: Determine the target object to which the current pin needs to be connected; Determine the wire spacing between the lead and obstacles during winding and determine it in the grid of the printed circuit board the shortest path between the current pin and the target object at the line distance; The leads between the current pin and the target object are arranged according to the shortest path to obtain a sub-routing result of the current pin.
5. The method according to claim 4, characterized in that Determining the line distance that needs to be maintained between the lead and the obstacle during winding, and determining the shortest path between the current pin and the target object under the line distance in the grid of the printed circuit board includes: Setting a virtual obstacle according to the spacing distance requirement between lines and the width of the line, and determining the width of the virtual obstacle as the line distance; A shortest path between the current pin and the target object bypassing obstacles at the line distance is determined in a grid of the printed circuit board, wherein the obstacles include physical obstacles and virtual obstacles.
6. The method according to claim 5, characterized in that The shortest path between the current pin and the target object that bypasses obstacles is determined using a jump point search algorithm.
7. The method according to claim 1, characterized in that The initial winding result includes multiple sub-winding results, each of which refers to the result of connecting a pin with other components through a lead. Judging whether the initial winding result meets the winding allowable requirement includes: For each sub-routing result, a sub-routing score is determined according to whether the sub-routing result complies with the layout design rule; Calculating the sum of the sub-winding scores to obtain the winding score of the initial winding result; Determining whether the winding score of the initial winding result meets the winding allowable score condition; In the case where the winding score of the initial winding result meets the winding allowable score condition, it is determined that the initial winding result meets the winding allowable requirement.
8. The method according to claim 7, characterized in that For each sub-routing result, the sub-routing score is determined according to the compliance with the layout design rules, including: Determining whether the sub-routing result complies with the layout design rule; In a case where the sub-routing result complies with the layout design rule, determining the routing allowance score as the sub-routing score of the sub-routing result; In the case where the sub-routing result does not conform to the layout design rule, determining the type and degree to which the sub-routing result does not conform to the layout design rule; Determine each initial score according to the degree to which the sub-routing result does not comply with the different types of layout design rules, determine each weight according to the type of non-compliance of the sub-routing result with the different types of layout design rules, and perform weighted summation of the initial scores according to the weights to obtain the sub-routing score of the sub-routing result.
9. The method according to claim 7, characterized in that: Determining whether the winding score of the initial winding result meets the winding allowable score condition includes: Determine whether the winding score of the initial winding result is greater than or equal to the winding allowable score, and if the winding score of the initial winding result is greater than or equal to the winding allowable score, determine that the initial winding result does not meet the winding allowable requirement; or A winding grade is determined according to the winding score of the initial winding result, and it is judged whether the winding grade of the initial winding result is greater than or equal to the winding allowable grade. If the winding grade is greater than the winding allowable grade, it is determined that the initial winding result does not meet the winding allowable requirement.
10. The method according to claim 1, characterized in that The target strategy model determines the winding adjustment action of the integrated circuit module in the following manner: In a case where the degree to which the initial winding result does not meet the winding allowable requirement is greater than the winding allowable degree, the target strategy model determines a winding adjustment action of the integrated circuit module according to a first adjustment strategy; When the degree to which the initial winding result does not meet the winding allowance requirement is less than or equal to the winding allowance degree, the target strategy model determines the winding adjustment action of the integrated circuit module according to the second adjustment strategy, wherein the adjustment amplitude of the first adjustment strategy is greater than the adjustment amplitude of the second adjustment strategy.
11. The method according to claim 10, characterized in that The degree to which the initial winding result does not meet the winding allowance requirement is determined by the difference between the winding score of the initial winding result and the winding allowance score, or by the relationship between the winding grade of the initial winding result and the winding allowance grade.
12. The method according to claim 10, characterized in that The winding adjustment action includes at least one of the following types: Adjust the winding order of each pin; Adjusting the size and position of a virtual obstacle set on the printed circuit board, wherein the virtual obstacle is used to determine the line pitch of the winding action; Adjust the position of the middle point where the lead wire passes during the winding action.
13. The method according to claim 12, characterized in that In the first adjustment strategy, the order of the winding adjustment actions is as follows: The winding sequence of each pin is adjusted, the size and position of the virtual obstacle set on the printed circuit board are adjusted, and the position of the middle point through which the lead wire of the winding action passes is adjusted.
14. The method according to claim 12, characterized in that In the second adjustment strategy, the order of each winding adjustment action is as follows: The position of the middle point through which the lead wire passes during the winding action is adjusted, the winding sequence of each pin is adjusted, and the size and position of the virtual obstacle set on the printed circuit board are adjusted.
15. The method according to claim 1, characterized in that The target policy model is trained in the following way: The initial strategy model is iteratively trained using multiple sets of winding data until the value of the loss function of the trained strategy model reaches a preset value allowed for winding, wherein each set of winding data includes winding parameters of the current winding event of the integrated circuit module, a score of the winding result, and a winding adjustment action.
16. The method according to claim 15, characterized in that The value of the loss function is the weighted sum of the sub-routing scores and attenuation factors of the sub-routing results of each pin of the current winding event, wherein each attenuation factor represents the degree of influence of a winding on the overall winding condition of the integrated circuit module, and each sub-routing score is used to describe the degree to which a sub-routing result complies with the layout design rules.
17. The method according to claim 15, characterized in that Iteratively training the initial strategy model using multiple sets of winding data until the value of the loss function of the trained strategy model reaches a preset value allowed for the winding includes: determining whether the value of the loss function of the strategy model reaches the preset value allowed for the winding by a gradient descent algorithm.
18. A winding device for a circuit board, characterized in that: include: An acquisition unit is configured to acquire an initial winding result of an integrated circuit module in a printed circuit board, wherein the initial winding result refers to a result of connecting each pin of the integrated circuit module with other components through leads; a judgment unit, configured to judge whether the initial winding result meets the winding allowable requirement, and if the initial winding result does not meet the winding allowable requirement, input the winding parameters of the integrated circuit module into the target strategy model to obtain the winding adjustment action of each pin of the integrated circuit module, wherein the winding parameters of the integrated circuit module are used to describe the initial winding result; The adjustment unit is configured to adjust the winding of each pin of the integrated circuit module according to the winding adjustment action to obtain a target winding result.
19. A non-volatile readable storage medium, characterized in that: The non-volatile readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the circuit board winding method described in any one of claims 1 to 17.
20. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the circuit board winding method described in any one of claims 1 to 17 are implemented.
Citation Information
Patent Citations
Wiring detection method and device of printed circuit board and computer readable storage medium
CN111859847A
Method and device for realizing automatic wiring of integrated circuit without depending on grid points
CN114186527A
Chip module pin wiring method and device, electronic equipment and storage medium
CN114781318A
Design rule violation prediction method and device, equipment and storage medium
CN115270705A
Wire winding method and device of circuit board, storage medium and electronic equipment
CN116011388A
Cited By
Winding method and device based on test structure design and readable storage medium
CN119203909A
