Printed circuit board design method, device, computer equipment and storage medium

By dividing circuit network categories according to voltage intervals and setting safety distance templates, the complex separation of medium and high and low voltage circuit networks in traditional printed circuit board designs is solved, design efficiency and safety are improved, and efficient layout design is achieved.

CN117217159BActive Publication Date: 2024-12-31JIANGSU TRINATEC ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311243677.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-25
Publication Date
2024-12-31
Estimated Expiration
2043-09-25

AI Technical Summary

Technical Problem

In traditional printed circuit board design, the safety distance separation between high and low voltage circuit networks is complicated and inefficient, and needs to be divided by wires one by one, resulting in complex design and easy to miss.

Method used

By determining the target circuit network class to which the circuit network belongs, and layout design according to the preset safety distance, the circuit network class is divided using voltage intervals, and the safety distance template is automatically derived to improve design efficiency and avoid the steps of segmentation one by one.

Benefits of technology

It realizes efficient printed circuit board design, meets safety requirements, improves design efficiency, avoids possible omissions in traditional methods, and ensures safety between circuits and networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117217159B_ABST
    Figure CN117217159B_ABST
Patent Text Reader

Abstract

The present application relates to a printed circuit board design method, device, computer equipment and storage medium. The method comprises: determining the target circuit network class to which each circuit network in the printed circuit board schematic diagram belongs; the target circuit network class to which each circuit network belongs is determined according to the voltage of the circuit network; determining the target safety distance between each target circuit network class according to the pre-set safety distance between the circuit network classes; and performing layout design on the printed circuit board in the printed circuit board schematic diagram according to the target safety distance. The use of this method can improve the efficiency of printed circuit board design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of printed circuit boards, and in particular to a printed circuit board design method, device, computer equipment and storage medium. Background Art

[0002] A major feature of high-voltage products is the mixture of high and low voltages. For example, switching power supplies and inverters have the characteristics of mixed high and low voltages. During the design phase of the printed circuit board (PCB) for such products, rigorous safety design is required to ensure that a certain safety distance is met between the high-voltage and low-voltage circuit networks to improve safety.

[0003] In the traditional method, an auxiliary layer is generally added in the printed circuit board design software, and the circuit is simply separated by lines with a width that meets the safety distance in the auxiliary layer, so as to achieve the purpose of meeting the safety regulations. However, this method requires that each circuit network that needs to be separated in the printed circuit board schematic be separated one by one with lines, which is more complicated to handle and has low efficiency. Summary of the invention

[0004] Based on this, it is necessary to provide a printed circuit board design method, device, computer equipment, computer readable storage medium and computer program product that can improve efficiency in response to the above technical problems.

[0005] In a first aspect, the present application provides a printed circuit board design method. The method comprises:

[0006] Determine the target circuit network class to which each circuit network in the printed circuit board schematic diagram belongs; the target circuit network class to which each circuit network belongs is determined according to the voltage of the circuit network;

[0007] Determining the target safety distance between each target circuit network class according to the preset safety distance between circuit network classes;

[0008] According to the target safety distance, a layout design is performed on the printed circuit board in the printed circuit board schematic diagram.

[0009] In a second aspect, the present application also provides a printed circuit board design device. The device comprises:

[0010] A circuit network class determination module is used to determine the target circuit network class to which each circuit network in the printed circuit board schematic diagram belongs; the target circuit network class to which each circuit network belongs is determined based on the voltage of the circuit network;

[0011] A safety distance determination module, used to determine a target safety distance between each target circuit network class according to the preset safety distance between circuit network classes;

[0012] A layout design module is used to perform layout design on the printed circuit board in the printed circuit board schematic diagram according to the target safety distance.

[0013] In one of the embodiments, the circuit network class determination module is further used to determine the circuit network class to which each sample circuit network in the sample printed circuit board schematic diagram belongs; the circuit network class to which each sample circuit network belongs is determined based on the voltage of the sample circuit network;

[0014] The safety distance determination module is further used to obtain the safety distance set between the circuit network classes to which each of the sample circuit networks belongs;

[0015] The device also includes:

[0016] A template export module, used for exporting the safety distances between the set circuit network classes into safety distance templates;

[0017] The safety distance determination module is further used to determine the target safety distance between each target circuit network class according to the safety distance between circuit network classes preset in the safety distance template.

[0018] In one embodiment, each circuit network class has a corresponding characterization voltage, and the characterization voltage is used to represent the voltage condition of the circuit network class; the safety distance between any two circuit network classes is positively correlated with the voltage difference between the characterization voltages of the two circuit network classes.

[0019] In one of the embodiments, each of the circuit network classes has a corresponding voltage interval; the characterizing voltage of the circuit network class is determined according to any one of the voltage values ​​of the target endpoint or the midpoint of the voltage interval.

[0020] In one of the embodiments, the safety distance determination module is also used to determine, for any two circuit network classes in each of the circuit network classes, a voltage difference between the characteristic voltages corresponding to the two circuit network classes respectively; obtain a unit safety distance corresponding to the unit voltage difference; and determine the safety distance between the two circuit network classes based on the voltage difference and the unit safety distance.

[0021] In one embodiment, the device further comprises:

[0022] The verification module is used to verify whether the distance between each target circuit network class in the layout design result of the printed circuit board meets the target safety distance according to the preset safety distance between the circuit network classes, and obtain a verification result.

[0023] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps in the printed circuit board design method described in each embodiment of the present application.

[0024] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the processor to execute the steps in the printed circuit board design method described in each embodiment of the present application.

[0025] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the processor executes the steps in the printed circuit board design method described in each embodiment of the present application.

[0026] The above-mentioned printed circuit board design method, device, computer equipment, storage medium and computer program product divide each circuit network into each target circuit network class according to voltage, and set the safety distance between the circuit network classes in advance, so that the layout design can be carried out according to the target safety distance between each target circuit network class in the printed circuit board schematic diagram, so that the distance between each target circuit network class in the printed circuit board after layout design meets the target safety distance, and there is no need to use lines to divide each circuit network that needs to be separated one by one, thereby improving the efficiency of printed circuit board design while making the printed circuit board meet safety requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a schematic flow chart of a printed circuit board design method in one embodiment;

[0028] Figure 2 A schematic diagram of a process for making a safety distance template in an embodiment;

[0029] Figure 3 A schematic diagram of a process of using a safety distance template in an embodiment;

[0030] Figure 4 is a structural block diagram of a printed circuit board design device in one embodiment;

[0031] Figure 5A structural block diagram of a printed circuit board design device in another embodiment;

[0032] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0034] In some embodiments, Figure 1 As shown, a printed circuit board design method is provided. This embodiment uses the method applied to a computer device as an example. The computer device may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. In this embodiment, the method includes the following steps:

[0035] Step 102, determining the target circuit network class to which each circuit network in the printed circuit board schematic diagram belongs; the target circuit network class to which each circuit network belongs is determined according to the voltage of the circuit network.

[0036] Among them, the circuit network is a network formed by connecting multiple electronic components in a printed circuit board. The circuit network class is a class obtained by pre-classifying multiple circuit networks with similar voltages. The target circuit network class refers to the circuit network class to which the circuit network in the printed circuit board schematic belongs among the pre-classified circuit network classes.

[0037] In some embodiments, each circuit network class has a corresponding voltage interval. The computer device can determine the target circuit network class to which the circuit network belongs based on the voltage interval to which the voltage of the circuit network belongs. Alternatively, the computer device can obtain the target circuit network class marked by the user for each circuit network in the printed circuit board schematic.

[0038] For example: assuming that the voltage range corresponding to circuit network class A is 0V-25V, the voltage range corresponding to circuit network class B is 25V-50V, the voltage range corresponding to circuit network class C is 50V-100V, ..., the voltage range corresponding to circuit network class Z is 950V-1000V, if the voltage of a circuit network in the printed circuit board schematic is 70V, which belongs to the voltage range of 50V-100V, then it can be determined that the target circuit network class to which the circuit network belongs is circuit network class C.

[0039] In some embodiments, each circuit network class has a corresponding characterization voltage, and the computer device can directly obtain the characterization voltage marked by the user for each circuit network in the printed circuit board schematic diagram, and use the characterization voltage to represent the corresponding target circuit network class.

[0040] In some embodiments, the computer device may obtain the target circuit network class marked by the user for each circuit network in the printed circuit board schematic diagram based on the printed circuit board design software.

[0041] Step 104 , determining a target safety distance between target circuit network classes according to a preset safety distance between circuit network classes.

[0042] Among them, safety distance refers to the distance between circuit network types that meets safety regulations.

[0043] In some embodiments, the characterization voltage of each circuit network class can be predetermined, and the safety distance between each circuit network class can be determined according to the characterization voltage, wherein the characterization voltage is a voltage value used to represent the voltage condition of the circuit network class.

[0044] In some embodiments, the characterizing voltage of the circuit network class may be determined according to the voltage interval corresponding to the circuit network class.

[0045] In some embodiments, the computer device can obtain the input safety distances between various circuit network classes based on the printed circuit board design software as the safety distances between the pre-set circuit network classes. In other embodiments, the computer device can obtain a pre-made safety distance template based on the printed circuit board design software to obtain the safety distances between the pre-set circuit network classes.

[0046] In some embodiments, the computer device may use the preset safety distances corresponding to the target circuit network classes as the target safety distances.

[0047] Step 106 , performing layout design on the printed circuit board in the printed circuit board schematic diagram according to the target safety distance.

[0048] Among them, layout design is the process of connecting electronic components, circuit relays, inductors, motors, etc. through electrical connections and solder joints, and laying them out on a printed circuit board according to specific circuit size, layout and rules.

[0049] In some embodiments, the computer device can perform layout design of the printed circuit board in the printed circuit board schematic diagram based on the printed circuit board design software according to the target safety distance, so that the distance between each circuit network class in the printed circuit board meets the target safety distance.

[0050] The above-mentioned printed circuit board design method divides each circuit network into each target circuit network class according to voltage, and sets the safety distance between the circuit network classes in advance, so that the layout design can be performed according to the target safety distance between each target circuit network class in the printed circuit board schematic diagram, so that the distance between each target circuit network class in the printed circuit board after layout design meets the target safety distance, and there is no need to separate each circuit network that needs to be separated one by one with lines. While making the printed circuit board meet the safety requirements, the efficiency of printed circuit board design is improved, and the method is highly reusable. In addition, the target safety distance between each circuit network class can be determined, and the safety division is rigorous and clear, avoiding the problem of omissions that are easy to cause by dividing one by one with lines in the traditional method.

[0051] In some embodiments, before determining the target circuit network class to which each circuit network in the printed circuit board schematic belongs, the method also includes: determining the circuit network class to which each sample circuit network in the sample printed circuit board schematic belongs; the circuit network class to which each sample circuit network belongs is determined based on the voltage of the sample circuit network; obtaining the safety distance set between the circuit network classes to which each sample circuit network belongs; exporting the set safety distance between each circuit network class as a safety distance template; determining the target safety distance between each target circuit network class based on the pre-set safety distance between the circuit network classes includes: determining the target safety distance between each target circuit network class based on the safety distance between the circuit network classes pre-set in the safety distance template.

[0052] The sample printed circuit board schematic diagram is a printed circuit board schematic diagram used in advance for making a mounting board. The sample circuit network refers to the circuit network in the sample printed circuit board schematic diagram.

[0053] In some embodiments, each circuit network class has a corresponding voltage interval. The computer device can determine the circuit network class to which the sample circuit network belongs based on the voltage interval to which the voltage of the sample circuit network belongs. Alternatively, the computer device can obtain the circuit network class marked by the user for each sample circuit network in the sample printed circuit board schematic.

[0054] In some embodiments, each circuit network class has a corresponding characterization voltage, and the computer device can directly obtain the characterization voltage marked by the user for each circuit network in the sample printed circuit board schematic diagram, and use the characterization voltage to represent the corresponding circuit network class.

[0055] In some embodiments, the computer device may obtain, based on printed circuit board design software, the circuit network class marked by the user for each sample circuit network in a sample printed circuit board schematic.

[0056] In some embodiments, the computer device may obtain the input safety distances set between the circuit network classes to which each sample circuit network belongs based on printed circuit board design software.

[0057] In other embodiments, the computer device may determine the safety distance between each circuit network class according to the characteristic voltage of the circuit network class to which each sample circuit network belongs, and perform settings based on the determined safety distance.

[0058] In some embodiments, the computer device can export the safety distances between the set circuit network classes as a safety distance template. When performing subsequent printed circuit board design, the safety distance template is imported to determine the target safety distances between the target circuit network classes based on the safety distances between the circuit network classes pre-set in the safety distance template.

[0059] In some embodiments, when subsequently designing a printed circuit board, the computer device can import the safety distance template into the printed circuit board design software, and the printed circuit board design software can obtain the safety distance between the pre-set circuit network classes according to the safety distance template.

[0060] In the above embodiment, the circuit network class to which each sample circuit network in the sample printed circuit board schematic belongs is determined in advance, the safety distance set between the circuit network classes to which each sample circuit network belongs is obtained, and the set safety distances between the circuit network classes are exported as a safety distance template. Therefore, when the printed circuit board is subsequently designed, the target safety distances between the target circuit network classes can be determined directly based on the safety distances between the circuit network classes pre-set in the safety distance template, without repeatedly setting the safety distances between the circuit network classes in turn, thereby improving the efficiency of printed circuit board design.

[0061] like Figure 2 FIG. 1 is a flow chart of a process of making a safety distance template before determining the target circuit network class to which each circuit network in the printed circuit board schematic diagram belongs in step 102, comprising the following steps:

[0062] Step 202: Formulate circuit network classification rules, that is, formulate voltage intervals corresponding to each circuit network class.

[0063] Step 204, establishing safety distances between various circuit network types.

[0064] Step 206: Determine the circuit network class to which each circuit network in the sample printed circuit board schematic belongs based on the voltage of the circuit network.

[0065] Step 208, setting the safety distances between the various circuit network classes in the sample printed circuit board according to the pre-defined safety distances between the various circuit network classes.

[0066] Step 210 , performing layout design on the printed circuit board in the sample printed circuit board schematic diagram based on the set safety distance.

[0067] Step 212, verify whether the distance between each circuit network class in the layout design result meets the safety distance, and obtain a verification result.

[0068] Step 214: Export the set safety distance as a safety distance template.

[0069] like Figure 3 The figure shows a flow chart of using the safety distance template after obtaining the safety distance template, including the following steps:

[0070] Step 302: Determine the target circuit network class to which each circuit network in the printed circuit board schematic belongs according to the voltage of the circuit network.

[0071] Step 304 , determining a target safety distance between target circuit network classes according to the safety distance between circuit network classes preset in the safety distance template.

[0072] Step 306 , performing layout design on the printed circuit board in the printed circuit board schematic diagram according to the target safety distance.

[0073] Step 308, verifying whether the distance between each circuit network class in the layout design result meets the target safety distance, and obtaining a verification result.

[0074] In some embodiments, each circuit network class has a corresponding characterization voltage, which is used to represent the voltage condition of the circuit network class; the safety distance between any two circuit network classes is positively correlated with the voltage difference between the characterization voltages of the two circuit network classes.

[0075] In some embodiments, the safety distance between any two circuit network classes is proportional to the voltage difference between the characteristic voltages of the two circuit network classes.

[0076] In some embodiments, the computer device can determine the safety distance between any two circuit network classes according to the voltage difference between the characteristic voltages of the two circuit network classes.

[0077] In the above embodiment, the safety distance between any two circuit network classes is positively correlated with the voltage difference between the characteristic voltages of the two circuit network classes, so that the larger the voltage difference between the two circuit network classes, the larger the set safety distance is, which is more compliant with safety regulations and improves safety.

[0078] In some embodiments, each circuit network class has a corresponding voltage interval; the representative voltage of the circuit network class is determined according to any one of the voltage values ​​of the target endpoint or the midpoint of the voltage interval.

[0079] The target endpoint is the endpoint of the voltage interval, and the middle is the midpoint of the voltage interval.

[0080] In some embodiments, the target endpoint may be any one of a left endpoint or a right endpoint of the voltage interval.

[0081] In some embodiments, any one of the voltage values ​​of the target endpoint or the midpoint of the voltage interval corresponding to the circuit network class can be used as the characterization voltage of the circuit network class. In other embodiments, the characterization voltage of the circuit network class can be obtained by multiplying any one of the voltage values ​​of the target endpoint or the midpoint of the voltage interval corresponding to the circuit network class by a weighting coefficient.

[0082] For example: assuming that the voltage value of the right endpoint of the voltage interval of the circuit network class is used as the characterization voltage of the circuit network class, the voltage interval corresponding to circuit network class A is 0V-25V, the voltage interval corresponding to circuit network class B is 25V-50V, the voltage interval corresponding to circuit network class C is 50V-100V, ..., and the voltage interval corresponding to circuit network class Z is 950V-1000V, then the characterization voltage of circuit network class A can be 25V, the characterization voltage of circuit network class B can be 50V, the characterization voltage of circuit network class C can be 100V, ..., and the characterization voltage of circuit network class Z can be 1000V. In some embodiments, since the voltage interval 0V-25V corresponding to circuit network class A is very low and close to 0V, the characterization voltage of circuit network class A can be determined as 0V, and the characterization voltages of the remaining circuit network classes except circuit network class A adopt the voltage values ​​of the right endpoints of the corresponding voltage intervals.

[0083] In the above embodiment, the characterization voltage of the circuit network class is determined based on any one of the voltage values ​​of the target endpoint or midpoint of the voltage interval, so that the voltage condition of the circuit network class can be accurately represented by the characterization voltage, thereby facilitating accurate determination of the safety distance between the circuit network classes based on the characterization voltage.

[0084] In some embodiments, obtaining the safety distance set between the circuit network classes to which each sample circuit network belongs includes: determining, for any two circuit network classes in each circuit network class, the voltage difference between the characterizing voltages corresponding to the two circuit network classes; obtaining the unit safety distance corresponding to the unit voltage difference; and determining the safety distance between the two circuit network classes based on the voltage difference and the unit safety distance.

[0085] In some embodiments, the safety distance between any two circuit network classes in each circuit network class is determined based on the voltage difference between the two circuit network classes and the unit safety distance corresponding to the unit voltage difference.

[0086] The unit safety distance corresponding to the unit voltage difference refers to the safety distance that needs to be set when there is a unit voltage difference between the characteristic voltages of the circuit network.

[0087] In some embodiments, the computer device can determine the safety distance between two circuit network classes based on the product of the voltage difference and the unit safety distance. The calculation formula for the safety distance between any two circuit network classes is:

[0088] T=|(X1-X2)×T0|

[0089] Where X1 and X2 are the characteristic voltages corresponding to any two circuit network classes. T is the safety distance between the two circuit network classes. T0 is the unit safety distance corresponding to the unit voltage difference.

[0090] In some embodiments, the unit safety distance corresponding to the unit voltage difference may be determined based on the reference voltage difference and the reference safety distance corresponding to the reference voltage difference. In some embodiments, the unit safety distance corresponding to the unit voltage difference is determined based on the ratio between the reference safety distance corresponding to the reference voltage difference and the reference voltage difference.

[0091] For example, if the reference voltage difference is 50V, the corresponding reference safety distance is 0.25mm (i.e., for every 50V difference in the characteristic voltage of the power grid network class, the safety distance increases by 0.25mm). The unit safety distance corresponding to the unit voltage difference is 0.25 / 50. The calculation formula for the safety distance between any two circuit network classes is:

[0092]

[0093] Where X1 and X2 are the characteristic voltages corresponding to any two circuit network classes, and T is the safety distance between the two circuit network classes.

[0094] In the above embodiment, the safety distance between the two circuit network classes is determined based on the voltage difference between the two circuit network classes and the unit safety distance corresponding to the unit voltage difference, so that the safety distance that meets the safety regulations can be accurately calculated to improve safety.

[0095] In some embodiments, after performing layout design on a printed circuit board in a printed circuit board schematic diagram according to a target safety distance, the method further includes: verifying whether the distances between target circuit network classes in a layout design result of the printed circuit board meet the target safety distances according to pre-set safety distances between circuit network classes, and obtaining a verification result.

[0096] In some embodiments, the computer device can verify whether the distance between each target circuit network class in the layout design result of the printed circuit board meets the target safety distance based on the printed circuit board design software through the DRC (Design Rule Checking) function according to the pre-set safety distance between circuit network classes, and obtain a verification result.

[0097] In some embodiments, after verification, the computer device may output the circuit network class that does not meet the target safety distance in the layout design result of the printed circuit board.

[0098] In some embodiments, after outputting abnormal circuit network classes that do not meet the target safety distance, the computer device can receive adjustment instructions for the abnormal circuit network classes and make corresponding adjustments between the abnormal circuit network classes to make the abnormal circuit network classes meet the target safety distance.

[0099] In some embodiments, the adjustment instruction may be an instruction corresponding to at least one of increasing the distance, opening a groove, and filling with glue, etc. In response to the adjustment instruction, the computer device may perform at least one of increasing the distance, opening a groove, and filling with glue, etc. between the abnormal circuit network classes, so that the abnormal circuit network classes meet the target safety distance.

[0100] Among them, increasing the distance refers to the process of increasing the distance between abnormal circuit network classes. Grooving is the process of making cuts or grooves between abnormal circuit network classes to separate the networks. Gluing is the process of wrapping electronic components or circuits in special voltage-resistant glue to provide electrical isolation and protection.

[0101] In the above embodiment, it is possible to automatically verify whether the distances between the target circuit network classes in the layout design result of the printed circuit board meet the target safety distances based on the pre-set safety distances between the circuit network classes, thereby facilitating the inspection of whether there are safety violations in the printed circuit board and avoiding the problem of difficulty in inspecting safety in traditional methods.

[0102] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0103] Based on the same inventive concept, the embodiment of the present application also provides a printed circuit board design device for implementing the printed circuit board design method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more printed circuit board design device embodiments provided below can refer to the limitations of the printed circuit board design method above, and will not be repeated here.

[0104] In some embodiments, Figure 4 As shown, a printed circuit board design device 400 is provided, comprising: a circuit network type determination module 402, a safety distance determination module 404 and a layout design module 406, wherein:

[0105] The circuit network class determination module 402 is used to determine the target circuit network class to which each circuit network in the printed circuit board schematic diagram belongs; the target circuit network class to which each circuit network belongs is determined based on the voltage of the circuit network.

[0106] The safety distance determination module 404 is used to determine the target safety distance between target circuit network classes according to the preset safety distance between circuit network classes.

[0107] The layout design module 406 is used to perform layout design on the printed circuit board in the printed circuit board schematic diagram according to the target safety distance.

[0108] In some embodiments, Figure 5As shown, the device 400 also includes: a template export module 408, wherein: the circuit network class determination module 402 is also used to determine the circuit network class to which each sample circuit network in the sample printed circuit board schematic diagram belongs; the circuit network class to which each sample circuit network belongs is determined according to the voltage of the sample circuit network. The safety distance determination module 404 is also used to obtain the safety distance set between the circuit network classes to which each sample circuit network belongs. The template export module 408 is used to export the safety distances between the set circuit network classes into a safety distance template. The safety distance determination module 404 is also used to determine the target safety distances between the target circuit network classes based on the safety distances between the circuit network classes pre-set in the safety distance template.

[0109] In some embodiments, each circuit network class has a corresponding characterization voltage, which is used to represent the voltage condition of the circuit network class; the safety distance between any two circuit network classes is positively correlated with the voltage difference between the characterization voltages of the two circuit network classes.

[0110] In some embodiments, each circuit network class has a corresponding voltage interval; the representative voltage of the circuit network class is determined according to any one of the voltage values ​​of the target endpoint or the midpoint of the voltage interval.

[0111] In some embodiments, the safety distance determination module 404 is also used to determine, for any two circuit network classes in each circuit network class, the voltage difference between the characteristic voltages corresponding to the two circuit network classes; obtain the unit safety distance corresponding to the unit voltage difference; and determine the safety distance between the two circuit network classes based on the voltage difference and the unit safety distance.

[0112] In some embodiments, Figure 5 As shown, the device 400 also includes:

[0113] The verification module 410 is used to verify whether the distance between each target circuit network class in the layout design result of the printed circuit board meets the target safety distance according to the preset safety distance between the circuit network classes, and obtain a verification result.

[0114] The above-mentioned printed circuit board design device divides each circuit network into each target circuit network class according to voltage, and sets safety distances between the circuit network classes in advance, so that layout design can be performed according to the target safety distances between each target circuit network class in the printed circuit board schematic diagram, so that the distances between each target circuit network class in the printed circuit board after layout design meet the target safety distances, and there is no need to use lines to divide each circuit network that needs to be separated one by one. While making the printed circuit board meet safety requirements, the efficiency of printed circuit board design is improved.

[0115] Each module in the above-mentioned printed circuit board design device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0116] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a printed circuit board design method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0117] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0119] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0120] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0121] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0122] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0123] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0124] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A printed circuit board design method, characterized in that: The method comprises: Determine the target circuit network class to which each circuit network in the schematic diagram of the printed circuit board belongs; the target circuit network class to which each circuit network belongs is determined according to the voltage of the circuit network; the circuit network is a network formed by connecting multiple electronic components in the printed circuit board; Determine the target safety distance between each target circuit network class according to the safety distance between the circuit network classes preset in the safety distance template; Performing layout design on the printed circuit board in the printed circuit board schematic diagram according to the target safety distance; The method further comprises: For any two circuit network classes in the schematic diagram of the sample printed circuit board, determine the voltage difference between the characteristic voltages respectively corresponding to the two circuit network classes; Determine the safety distance between two circuit network classes based on the voltage difference and the unit safety distance corresponding to the unit voltage difference; The safety distances between the circuit network classes are exported as safety distance templates.

2. The method according to claim 1, characterized in that Before determining the voltage difference between the characterization voltages respectively corresponding to any two circuit network classes in the sample printed circuit board schematic diagram, the method further includes: The circuit network class to which each sample circuit network in the sample printed circuit board schematic diagram belongs is determined; the circuit network class to which each sample circuit network belongs is determined according to the voltage of the sample circuit network.

3. The method according to claim 2, characterized in that Each circuit network class has a corresponding characterization voltage, and the characterization voltage is used to represent the voltage condition of the circuit network class; the safety distance between any two circuit network classes is positively correlated with the magnitude of the voltage difference between the characterization voltages of the two circuit network classes.

4. The method according to claim 3, characterized in that Each of the circuit network classes has a corresponding voltage interval; the characterizing voltage of the circuit network class is determined according to any one of the voltage values ​​of the target endpoint or the midpoint of the voltage interval.

5. The method according to claim 1, characterized in that Determining the safety distance between two circuit network classes according to the voltage difference and the unit safety distance corresponding to the unit voltage difference includes: Get the unit safety distance corresponding to the unit voltage difference; The safety distance between the two circuit network types is determined according to the voltage difference and the unit safety distance.

6. The method according to any one of claims 1 to 5, characterized in that After performing layout design on the printed circuit board in the printed circuit board schematic diagram according to the target safety distance, the method further includes: According to the preset safety distances between the circuit network classes, it is verified whether the distances between the target circuit network classes in the layout design result of the printed circuit board meet the target safety distances to obtain a verification result.

7. A printed circuit board design device, characterized in that: The device comprises: A circuit network class determination module is used to determine the target circuit network class to which each circuit network in the schematic diagram of the printed circuit board belongs; the target circuit network class to which each circuit network belongs is determined according to the voltage of the circuit network; the circuit network is a network formed by connecting multiple electronic components in the printed circuit board; A safety distance determination module, used to determine the target safety distance between each target circuit network class according to the safety distance between the circuit network classes preset in the safety distance template; A layout design module, used for performing layout design on the printed circuit board in the printed circuit board schematic diagram according to the target safety distance; The template export module is used to determine the voltage difference between the characterization voltages corresponding to any two circuit network classes in the sample printed circuit board schematic diagram; determine the safety distance between the two circuit network classes based on the voltage difference and the unit safety distance corresponding to the unit voltage difference; and export the safety distance between each of the circuit network classes as a safety distance template.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.