Design method and device of circuit board, electronic equipment and storage medium
By calculating the stress distance on the circuit board and setting through holes, the problem of components affected by stress in the circuit board design is solved, and the space efficiency and reliability are improved.
Patent Information
- Application Number
- CN202410848715.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-11-08
AI Technical Summary
When existing circuit board designs avoid components being affected by stress, it is difficult to set standard distances, resulting in inconsistent space and stress assessment. It is difficult to design solutions that do not increase circuit board space and avoid components being affected by stress.
By obtaining the position coordinates of components on the circuit board and the fixed hole or the edges of the plate, calculate the stress distance, and set the through holes according to preset rules when the stress distance is less than or equal to the threshold to disperse the stress and avoid the components being affected.
It realizes effective dispersing stress without increasing the circuit board space, improving the reliability of the circuit board, and avoiding the components being affected by stress.
Smart Images

Figure CN118921846A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of circuit board design, and in particular to a circuit board design method, device, electronic equipment and storage medium. Background Art
[0002] Currently, circuit boards (such as PCB boards) on the market require that the stress of components on the board be considered during design. In order to avoid the influence of stress on components, the method of moving the components away from the stress points is generally adopted.
[0003] However, this method of moving components away from stress points requires a high space requirement on the PCB board. The magnitude of the force on the stress point is difficult to evaluate due to the consistency of actual use. In addition, the magnitude of the force on stress points of different designs is different, and the distance requirements for components away from stress points are also different. Therefore, it is difficult to formulate a standard distance to require components to be away from stress points. Therefore, how to provide a circuit board design that does not increase the space of the circuit board and can avoid the influence of stress on components has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the problems of the prior art, the embodiments of the present application provide a circuit board design method, device, electronic device and storage medium. The technical solution is as follows:
[0005] In one aspect, a method for designing a circuit board is provided, the method comprising:
[0006] Acquire the position coordinates of a first object and a second object on a circuit board; the first object includes components; the second object includes fixing holes and a dividing board edge;
[0007] determining a stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object;
[0008] In a case where the stress distance is less than or equal to a first threshold, a through hole is provided between the first object and the second object based on a preset rule.
[0009] Optionally, the position coordinates include a horizontal coordinate value and a vertical coordinate value; when the second object is a split panel edge, determining the stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object includes:
[0010] A difference between the ordinate value of the first object and the ordinate value of the second object is determined as a stress distance between the first object and the second object.
[0011] Optionally, when the stress distance is less than or equal to a first threshold, setting a through hole between the first object and the second object based on a preset rule includes:
[0012] When the stress distance is greater than a second threshold value and less than or equal to the first threshold value, determining the abscissa value of the through hole based on the abscissa value of the first object and the first preset step size;
[0013] Determining the ordinate value of the through hole based on the ordinate value of the first object and a second preset step length; the second preset step length is greater than the first preset step length;
[0014] Obtaining a preset diameter of the through hole;
[0015] The through hole is drawn based on the abscissa value, the ordinate value, and a preset diameter of the through hole, so that the through hole is disposed between the first object and the second object.
[0016] Optionally, the method further comprises: determining the abscissa value of the through hole based on the abscissa value of the first object and a first preset step size when the stress distance is less than or equal to the second threshold;
[0017] Using the ordinate value of the second object as the ordinate value of the through hole;
[0018] The through hole is drawn based on the abscissa value, the ordinate value and the preset diameter of the through hole, so that the through hole is disposed on the second object.
[0019] Optionally, when the second object is a fixed hole, determining the stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object includes:
[0020] With the center of the second object as the starting point and the two opposite target sides of the first object as the end points, two stress lines are drawn; the two target sides are sides distributed along the abscissa axis;
[0021] Determine the length values of the two stress lines based on the position coordinates of the first object and the position coordinates of the second object respectively;
[0022] Determine the stress line corresponding to the larger length value of the two stress lines as the target stress line;
[0023] The difference between the length of the target stress line and the radius of the second object is determined as the stress distance between the first object and the second object.
[0024] Optionally, setting a through hole between the first object and the second object based on a preset rule includes:
[0025] A through hole is arranged between the two stress lines; two sides of the through hole are respectively circumscribed with a stress line.
[0026] Optionally, providing a through hole between the two stress lines includes:
[0027] Get the through hole diameter;
[0028] The via is drawn between the two stress lines based on the via diameter.
[0029] In another aspect, a circuit board design device is provided, the device comprising:
[0030] An acquisition module, used to acquire the position coordinates of a first object and a second object on a circuit board; the first object includes components; the second object includes a fixing hole and a dividing board edge;
[0031] a distance determination module, configured to determine a stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object;
[0032] The setting module is used to set a through hole between the first object and the second object based on a preset rule when the stress distance is less than or equal to a first threshold.
[0033] On the other hand, an electronic device is provided, including a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the circuit board design method of any of the above aspects.
[0034] On the other hand, a computer-readable storage medium is provided, in which at least one instruction or at least one program is stored. The at least one instruction or the at least one program is loaded and executed by a processor to implement a circuit board design method as described in any of the above aspects.
[0035] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the circuit board design method of any aspect above.
[0036] The embodiment of the present application obtains the position coordinates of the first object and the second object on the circuit board; the first object includes components; the second object includes fixing holes and a board edge; the stress distance between the first object and the second object is determined based on the position coordinates of the first object and the second object; when the stress distance is less than or equal to a first threshold, a through hole is set between the first object and the second object based on a preset rule. In this way, by reasonably setting a through hole between the first object and the second object, the stress of the stress object (i.e., the second object) can be dispersed to avoid its influence on the components, and the reliability of the circuit board is also improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 It is a flowchart of an exemplary circuit board design method of the present application;
[0039] Figure 2 is a partial schematic diagram of an exemplary first circuit board of the present application;
[0040] Figure 3 is a partial schematic diagram of an exemplary second circuit board of the present application;
[0041] Figure 4 is a partial schematic diagram of a third exemplary circuit board of the present application;
[0042] Figure 5 It is a structural block diagram of an exemplary circuit board design device of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0044] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0045] See also Figure 1 , which is a flow chart of an exemplary circuit board design method of the present application. The method can be applied to a terminal or a server. It should be noted that this specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the steps among many orders, and does not represent the only order of execution. When the system or product is executed in practice, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment). Specifically, Figure 1 As shown, the method may include:
[0046] S101: Acquire the position coordinates of a first object and a second object on a circuit board; the first object includes components; the second object includes fixing holes and board edges.
[0047] In the embodiment of the present disclosure, the executor of the design method may be a drawing device arranged in a terminal or a server, and the circuit board involved in the execution steps of the design method may specifically refer to a virtual circuit board, such as a circuit board layout. Usually, various components (such as chips, transistors, resistors, etc.) are designed on the circuit board layout. Subsequently, the designed circuit board layout can be used for the manufacture of a physical circuit board.
[0048] In the embodiments of the present disclosure, a fixing hole refers to a hole used to fix a circuit board to another object, and may also refer to a hole used to fix certain integrated devices on a circuit board. Depending on the different fixing parts, the fixing holes can be divided into different types of holes. For example, the fixing parts may include screws, bolts, etc., and the fixing holes may also be called screw holes or bolt holes. The split board edge may specifically refer to the cutting edge on the circuit board that is subsequently used for splitting the boards.
[0049] S103: Determine a stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object.
[0050] S105: When the stress distance is less than or equal to a first threshold, setting a through hole between the first object and the second object based on a preset rule.
[0051] In the embodiment of the present disclosure, the position coordinates include a horizontal coordinate value and a vertical coordinate value, which are optional. Figure 2 , the horizontal coordinate value may refer to the coordinate value of the object on the horizontal axis (such as the X axis), and the vertical coordinate value may refer to the coordinate value of the object on the vertical axis (such as the Y axis). Specifically, the position coordinates of the first object can be specifically recorded as (X A , Y A ), the position coordinates of the second object can be specifically recorded as (X B , Y B ).
[0052] In the embodiment of the present disclosure, the first object may be only one, or may refer to multiple sub-objects, such as Figure 3 As shown, the first object may specifically include n sub-objects (i.e., components) such as sub-object A1, sub-object A2, ..., sub-object An, where n is an integer greater than 3. Then, continuing with the above example, the position coordinates of object A1 may be (X A1 , Y A1 ), the position coordinates of object A2 can be (X A2 , Y A2 ), the position coordinates of the object An can be (X An , Y An ). The first threshold value can be set according to specific circumstances, such as according to the size and material of the circuit board, the first object and the second object. Optionally, the first threshold value can be set to 15 mm.
[0053] The specific implementation of the above steps S103-S105 is different according to the type of the second object or the type of inclusion, and will be described below with the second object being of different types.
[0054] In an exemplary embodiment, when the second object is a split panel edge, step S103 can be specifically described as: determining the difference between the ordinate value of the first object and the ordinate value of the second object as the stress distance between the first object and the second object. Figure 2 , the board edges can be Figure 2As shown in the side P, specifically, since the circuit board is usually a regular rectangle, one of the board sides of the circuit board can be used as a coordinate axis, and the side perpendicular to the board side can be used as another vertical coordinate axis. Of course, any point on the circuit board can also be used as the origin to establish a plane coordinate system, which is not limited here. Figure 2 The method of establishing the coordinate system shown is only for the convenience of data processing and related calculations. B =0, then, Y A -Y B =Y A ; For each sub-object, taking sub-object An as an example, stress distance d = Y An When the second object includes multiple sub-objects, step S103 can also be explained as: for each sub-object, the difference between the ordinate value of the sub-object and the ordinate value of the second object is determined as the stress distance between the sub-object and the second object.
[0055] In an exemplary embodiment, step S105 can be specifically explained as follows: when the stress distance is greater than a second threshold value and less than or equal to the first threshold value, determining the horizontal coordinate value of the through hole based on the horizontal coordinate value of the first object and the first preset step size; determining the vertical coordinate value of the through hole based on the vertical coordinate value of the first object and the second preset step size; the second preset step size is greater than the first preset step size; obtaining a preset diameter of the through hole; drawing the through hole based on the horizontal coordinate value, the vertical coordinate value and the preset diameter of the through hole, so that the through hole is arranged between the first object and the second object. Optionally, the number of through holes set corresponding to each sub-object may be 1 or two. When the number of through holes set corresponding to each sub-object is two, for each sub-object, the difference between the abscissa value of the sub-object and the first preset step length may be determined as the abscissa value of the first through hole; the sum of the abscissa value of the sub-object and the first preset step length may be determined as the abscissa value of the second through hole, and the difference between the ordinate value of the sub-object and the second preset step length may be used as the ordinate values of the first through hole and the second through hole; assuming that the first preset step length is m (m may take any value, which is determined according to the actual process, such as 1, 1.5, 2, etc.), the second preset step length is k (k may take any value, which is determined according to the actual process, such as 2, 3, 4, 5, etc.), the diameter of the through hole is D, and continuing to take the sub-object An as an example, the abscissa value Xan1 of the first through hole is =Xan2. An -m, the abscissa value of the second through hole Xan2 = Xn + m, the ordinate value of the first through hole Yan1 = Y An -k, the vertical coordinate value of the first through hole Yan2 = Y An-k. Thus, if the position coordinates of the first through hole and the second through hole are known, the first through hole an1 and the second through hole an2 corresponding to the sub-object An can be drawn between the sub-object and the edge of the sub-board. Optionally, the second threshold value can be 5 mm, or other values, such as 3 mm, 4 mm, 6 mm, etc., as long as it is less than the first threshold value and can achieve a good effect of reducing stress.
[0056] In an exemplary embodiment, the method further includes: when the stress distance is less than or equal to the second threshold, determining the abscissa value of the through hole based on the abscissa value of the first object and a first preset step size; using the ordinate value of the second object as the ordinate value of the through hole; and drawing the through hole based on the abscissa value, ordinate value and preset diameter of the through hole, so that the through hole is set on the second object. Optionally, please refer to Figure 3 , when the first object includes multiple sub-objects, and the stress distance is less than or equal to the second threshold value, for each sub-object, the horizontal coordinate value of the through hole can be determined based on the horizontal coordinate value of the sub-object and the first preset step length; specifically, when the number of through holes set corresponding to each sub-object is two, the difference between the horizontal coordinate value of the sub-object and the first preset step length can be determined as the horizontal coordinate value of the first through hole; the sum of the horizontal coordinate value of the sub-object and the first preset step length is determined as the horizontal coordinate value of the second through hole, and the vertical coordinate value of the sub-object is used as the vertical coordinate value of the first through hole and the second through hole. Continuing with the above example, the horizontal coordinate value Xan1 of the first through hole = Xan2 An -m, the abscissa value of the second through hole Xan2 = Xn + m, the ordinate value of the first through hole Yan1 = Y B =0, the ordinate value of the first through hole Yan2 =Y B = 0. Thus, if the position coordinates of the first through hole and the second through hole are known, the first through hole an1 and the second through hole an2 corresponding to the sub-object An can be drawn on the dividing board edge P.
[0057] In another exemplary embodiment, when the second object is a fixed hole, step S103 can be specifically described to include: taking the center of the second object as the starting point and the two opposite target sides of the first object as the end points, two stress lines are drawn; the two target sides are sides distributed along the horizontal axis; based on the position coordinates of the first object and the position coordinates of the second object, the length values of the two stress lines are determined respectively; the stress line corresponding to the larger length value of the two stress lines is determined as the target stress line; and the difference between the length value of the target stress line and the radius of the second object is determined as the stress distance between the first object and the second object.
[0058] For example, see Figure 4 When the second object includes multiple sub-objects, it is necessary to determine the stress distance between each sub-object and the second object. Taking the sub-object An as an example, the two target sides of the sub-object An are side An1 and side An2, so that the center of the second object is used as the starting point and the midpoint (or endpoint, or any point on it) of the side An1 of the sub-object An is used as the end point to form a stress line L1. Similarly, the center of the second object is used as the starting point and the midpoint (or endpoint, or any point on it) of the side An2 of the sub-object An is used as the end point to form a stress line L2. Although the end point can be any point on the side, the end points on the two sides need to be consistent, such as the ordinate value. Subsequently, by calculating the lengths of the stress lines L1 and L2, the stress line corresponding to the largest length value can be selected as the target stress line, such as L2. In fact, the length values of the two can also be averaged, and the average value can be used as the length value of the target stress line. Optionally, the length value of the target stress line can be directly used as the stress distance, or the difference between the length value of the target stress line and the radius of the second object can be used as the stress distance. Therefore, after the length values of the two stress lines are determined, the stress distance may be determined based on the length values of the two stress lines and the radius of the second object.
[0059] In an exemplary embodiment, the step S105 of setting a through hole between the first object and the second object based on a preset rule includes: setting a through hole between the two stress lines; and circumscribing a stress line on both sides of the through hole. Figure 4 , when the first object includes multiple sub-objects, for each sub-object, a through hole is set between the two stress lines corresponding to the sub-object. For sub-object An, its corresponding through hole is bn1, for sub-object A2, its corresponding through hole is b21 or b22, and for sub-object A1, its corresponding through hole is b11 or b12. In an exemplary embodiment, setting a through hole between the two stress lines includes: obtaining a through hole diameter; and drawing the through hole between the two stress lines based on the through hole diameter. When the through hole diameter is determined, for example, the through hole diameter is set to D1, then for each sub-object, a through hole with a diameter of D1 is drawn between the two stress lines corresponding to the sub-object. At this time, the vertical coordinates of the through holes corresponding to different sub-objects are different, thereby obtaining the following: Figure 4The through holes b11, b21, and bn1 are shown. The through hole diameter D1 can be determined by taking the diameter of the through hole closest to the sub-object with the longest stress distance as D1. For example, the stress distance corresponding to the sub-object An is the largest, and a through hole tangent to the two stress lines L1 and L2 can be drawn between the stress lines, and the through hole is also closest to the sub-object An, that is, the through hole bn1. Optionally, the diameter of any through hole corresponding to the sub-object An can be taken as D1. In another exemplary embodiment, the through hole is set between the two stress lines, including: determining the sub-object corresponding to the maximum stress distance among the stress distances of the multiple sub-objects as the target sub-object; drawing a through hole between the two stress lines corresponding to the target sub-object; determining the ordinate value of the through hole corresponding to the target sub-object; based on the ordinate value of the through hole corresponding to the target sub-object, drawing a through hole between the two stress lines corresponding to each sub-object in the remaining sub-objects; the remaining sub-objects are the sub-objects other than the target sub-object in the multiple sub-objects; the ordinate values of the through holes of each sub-object in the multiple sub-objects are equal. At this time, for the sub-object An, its corresponding through hole is bn1, for the sub-object A2, its corresponding through hole is b22, for the sub-object A1, its corresponding through hole is b12, and the ordinate values of through holes bn1, b22, and b12 are equal.
[0060] It should be noted that the position coordinates of each object in the embodiments of the present application may specifically refer to the position coordinates of the midpoint of the object. For example, for a circular hole-type object, its position coordinates may refer to the position coordinates of the center of the circle. For a rectangular object, its position coordinates may refer to the position coordinates of the center, or the position coordinates of a vertex, or the coordinates of a point on a side. It can be selected according to actual needs and is not limited here.
[0061] Corresponding to the circuit board design methods provided in the above-mentioned embodiments, an embodiment of the present application also provides a circuit board design device. Since the circuit board design device provided in the embodiment of the present application corresponds to the circuit board design methods provided in the above-mentioned embodiments, the implementation methods of the aforementioned circuit board design methods are also applicable to the circuit board design device provided in this embodiment and will not be described in detail in this embodiment.
[0062] See also Figure 5 , which is a schematic diagram of the structure of an exemplary circuit board design device of the present application, the device has the function of implementing the circuit board design method in the above method embodiment, and the function can be implemented by hardware or by hardware executing corresponding software. Figure 5 As shown, the device may include:
[0063] An acquisition module 501 is used to acquire the position coordinates of a first object and a second object on a circuit board; the first object includes components; the second object includes fixing holes and board edges;
[0064] A distance determination module 503, configured to determine a stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object;
[0065] The setting module 505 is configured to set a through hole between the first object and the second object based on a preset rule when the stress distance is less than or equal to a first threshold.
[0066] In an exemplary embodiment, the position coordinates include a horizontal coordinate value and a vertical coordinate value; when the second object is a split panel edge, the distance determination module is used to determine the difference between the vertical coordinate value of the first object and the vertical coordinate value of the second object as the stress distance between the first object and the second object.
[0067] In an exemplary embodiment, when the stress distance is less than or equal to a first threshold, a module is provided for determining the abscissa value of the through hole based on the abscissa value of the first object and the first preset step size when the stress distance is greater than a second threshold and less than or equal to the first threshold;
[0068] Determining the ordinate value of the through hole based on the ordinate value of the first object and a second preset step length; the second preset step length is greater than the first preset step length;
[0069] Obtaining a preset diameter of the through hole;
[0070] The through hole is drawn based on the abscissa value, the ordinate value, and a preset diameter of the through hole, so that the through hole is disposed between the first object and the second object.
[0071] In an exemplary embodiment, the apparatus further comprises:
[0072] a coordinate value determination module, configured to determine the abscissa value of the through hole based on the abscissa value of the first object and a first preset step length when the stress distance is less than or equal to the second threshold; and use the ordinate value of the second object as the ordinate value of the through hole;
[0073] A drawing module is used to draw the through hole based on the abscissa value, the ordinate value and the preset diameter of the through hole, so that the through hole is set on the second object.
[0074] In an exemplary embodiment, when the second object is a fixed hole, the distance determination module is used to draw two stress lines with the center of the second object as the starting point and two opposite target sides of the first object as the end points; the two target sides are sides distributed along the abscissa axis;
[0075] Determine the length values of the two stress lines based on the position coordinates of the first object and the position coordinates of the second object respectively;
[0076] Determine the stress line corresponding to the larger length value of the two stress lines as the target stress line;
[0077] The difference between the length of the target stress line and the radius of the second object is determined as the stress distance between the first object and the second object.
[0078] In an exemplary embodiment, a module is provided for providing a through hole between the two stress lines; two sides of the through hole are respectively circumscribed with a stress line.
[0079] In an exemplary embodiment, a module is provided for obtaining a through hole diameter;
[0080] The via is drawn between the two stress lines based on the via diameter.
[0081] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0082] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement any circuit board design method provided in the above method embodiments.
[0083] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0084] An embodiment of the present application also provides a computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a circuit board design method. The at least one instruction or the at least one program is loaded and executed by the processor to implement any circuit board design method provided by the above method embodiments.
[0085] The embodiments of the present application also provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes any one of the circuit board design methods provided in the above method embodiments.
[0086] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: 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, and other media that can store program codes.
[0087] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0088] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0089] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0090] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A circuit board design method, characterized in that: The method comprises: Acquire the position coordinates of a first object and a second object on a circuit board; the first object includes components; the second object includes fixing holes and a dividing board edge; determining a stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object; In a case where the stress distance is less than or equal to a first threshold, a through hole is provided between the first object and the second object based on a preset rule.
2. The method according to claim 1, characterized in that The position coordinates include a horizontal coordinate value and a vertical coordinate value; when the second object is a split panel edge, determining the stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object includes: A difference between the ordinate value of the first object and the ordinate value of the second object is determined as a stress distance between the first object and the second object.
3. The method according to claim 2, characterized in that When the stress distance is less than or equal to a first threshold, providing a through hole between the first object and the second object based on a preset rule includes: When the stress distance is greater than a second threshold value and less than or equal to the first threshold value, determining the abscissa value of the through hole based on the abscissa value of the first object and the first preset step size; Determining the ordinate value of the through hole based on the ordinate value of the first object and a second preset step length; the second preset step length is greater than the first preset step length; Obtaining a preset diameter of the through hole; The through hole is drawn based on the abscissa value, the ordinate value, and a preset diameter of the through hole, so that the through hole is disposed between the first object and the second object.
4. The method according to claim 3, characterized in that The method further includes: determining the abscissa value of the through hole based on the abscissa value of the first object and a first preset step size when the stress distance is less than or equal to the second threshold; Using the ordinate value of the second object as the ordinate value of the through hole; The through hole is drawn based on the abscissa value, the ordinate value and the preset diameter of the through hole, so that the through hole is disposed on the second object.
5. The method according to claim 1, characterized in that In the case where the second object is a fixed hole, the determining the stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object includes: With the center of the second object as the starting point and the two opposite target sides of the first object as the end points, two stress lines are drawn; the two target sides are sides distributed along the abscissa axis; Determine the length values of the two stress lines based on the position coordinates of the first object and the position coordinates of the second object respectively; Determine the stress line corresponding to the larger length value of the two stress lines as the target stress line; The difference between the length of the target stress line and the radius of the second object is determined as the stress distance between the first object and the second object.
6. The method according to claim 5, characterized in that The setting of a through hole between the first object and the second object based on a preset rule comprises: A through hole is arranged between the two stress lines; two sides of the through hole are respectively circumscribed with a stress line.
7. The method according to claim 6, characterized in that The step of providing a through hole between the two stress lines comprises: Get the through hole diameter; The via is drawn between the two stress lines based on the via diameter.
8. A circuit board design device, characterized in that: The device comprises: An acquisition module, used to acquire the position coordinates of a first object and a second object on a circuit board; the first object includes components; the second object includes a fixing hole and a dividing board edge; a distance determination module, configured to determine a stress distance between the first object and the second object based on the position coordinates of the first object and the position coordinates of the second object; The setting module is used to set a through hole between the first object and the second object based on a preset rule when the stress distance is less than or equal to a first threshold.
9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the circuit board design method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the circuit board design method according to any one of claims 1 to 7.
