Method and device for adding capacitor to PCB wiring, electronic equipment and storage medium
By using simulation software to debug trace capacitors in PCB design, the complex and time-consuming process of adding capacitors temporarily is solved, and rapid and economical capacitor addition is achieved, thus reducing PCB production costs.
Patent Information
- Application Number
- CN202411629322.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-03-07
AI Technical Summary
During the PCB design process, the process of temporarily adding capacitors is more difficult, and it is necessary to change the schematic, generate netlists and re-import the PCB, resulting in a longer time and increased cost.
By presetting the basic capacitance value, use simulation software to debug the PCB trace, adjust the length and width of the trace until the capacitance value reaches the preset value, and linearly superimpose the final trace in the PCB board to add capacitors.
It realizes rapid and efficient addition of capacitors to PCB boards, reducing PCBA manufacturing costs and PCB patch production time.
Smart Images

Figure CN119578359A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of PCB design, and in particular to a method, device, electronic device and storage medium for adding capacitance to PCB routing. Background Art
[0002] In the process of PCB design, it is often necessary to temporarily add capacitors to the PCB. However, the process of temporarily adding capacitors to the PCB is relatively difficult. Currently, capacitors are mainly added by changing the PCB schematic. Furthermore, a netlist is generated in the changed schematic, and then the netlist is re-imported into the PCB for PXB design, and finally patch production is carried out.
[0003] This method of adding capacitors is difficult to implement, takes a long time, and increases manufacturing and labor costs. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a method, device, electronic device and storage medium for adding capacitance to PCB traces to solve the problem that temporary addition of capacitance takes a long time and is difficult to implement.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] A first aspect of the present invention discloses a method for adding capacitance to a PCB trace, the method comprising:
[0007] When the basic capacitance value is received, the area of the PCB trace corresponding to the basic capacitance value is calculated;
[0008] Importing the simulated PCB board into the simulation software, and calculating the PCB trace capacitance of the target trace network in the simulated PCB board;
[0009] Adding a PCB test routing line to the target routing network to obtain a routing network to be tested;
[0010] Calculating the current PCB routing capacitance of the routing network to be tested and the difference between the current PCB routing capacitance and the PCB routing capacitance to obtain a test capacitance;
[0011] If the test capacitance is not equal to the basic capacitance value, the length and width of the PCB test trace are adjusted according to the area to obtain a new PCB test trace, and the step of adding a PCB test trace to the target trace network to obtain a trace network to be tested is returned to be executed;
[0012] If the test capacitance is equal to the basic capacitance value, determining the current PCB test trace to be the final PCB trace;
[0013] When receiving an adding instruction including a capacitance value to be added, calculating the number of final PCB traces corresponding to the capacitance value to be added;
[0014] Add a corresponding number of the final PCB traces to the target PCB board to obtain a final PCB board.
[0015] Preferably, the step of importing the simulated PCB board into the simulation software and calculating the PCB routing capacitance of the target routing network in the simulated PCB board comprises:
[0016] Importing the simulated PCB board into the simulation software, and setting the stacking information of the simulated PCB board in the simulation software;
[0017] Initializing the source end and the terminal end of the routing network of the capacitor to be extracted in the simulated PCB board in the simulation software to obtain the target routing network;
[0018] The simulation software is used to calculate the PCB routing capacitance of the target routing network.
[0019] Preferably, the calculating the number of final PCB traces corresponding to the capacitance value to be added includes:
[0020] Calculating a quotient of the capacitance to be added divided by the test capacitance;
[0021] The quotient is determined as the number of final PCB traces.
[0022] Preferably, the calculating the area of the PCB trace corresponding to the basic capacitance value includes:
[0023] Obtaining a preset coefficient, a preset plate dielectric constant, and a preset spacing value between adjacent reference layers;
[0024] Calculating the product of the basic capacitance value, the preset coefficient and the preset spacing value of adjacent reference layers;
[0025] The quotient of the product divided by the preset board dielectric constant is marked as the area of the PCB trace corresponding to the basic capacitance value.
[0026] A second aspect of the present invention discloses a device for adding capacitance to a PCB trace, the device comprising:
[0027] An area calculation unit, used to calculate the area of the PCB trace corresponding to the basic capacitance value when a basic capacitance value is received;
[0028] A first capacitance calculation unit is used to import the simulated PCB board into the simulation software and calculate the PCB routing capacitance of the target routing network in the simulated PCB board;
[0029] A first adding unit is used to add a PCB test routing line in the target routing network to obtain a routing network to be tested;
[0030] A second capacitance calculation unit, used for calculating the current PCB routing capacitance of the routing network to be tested, and the difference between the current PCB routing capacitance and the PCB routing capacitance, to obtain a test capacitance;
[0031] an adjusting unit, configured to adjust the length and width of the PCB test trace according to the area if the test capacitance is not equal to the basic capacitance value, to obtain a new PCB test trace, and return to execute the first adding unit;
[0032] A determining unit, configured to determine that the current PCB test trace is a final PCB trace if the test capacitance is equal to the basic capacitance value;
[0033] A number calculation unit, configured to calculate the number of final PCB traces corresponding to the capacitance value to be added when receiving an adding instruction including the capacitance value to be added;
[0034] The second adding unit is used to add a corresponding number of the final PCB traces in the target PCB board to obtain a final PCB board.
[0035] Preferably, the first capacitance calculation unit includes:
[0036] A setting module, used for importing the simulated PCB board into the simulation software, and setting the stacking information of the simulated PCB board in the simulation software;
[0037] An initialization module is used to initialize the source end and the terminal end of the routing network of the capacitor to be extracted in the simulated PCB board in the simulation software to obtain a target routing network;
[0038] A calculation module is used to calculate the PCB routing capacitance of the target routing network using the simulation software.
[0039] Preferably, the number calculation unit is specifically used for:
[0040] The quotient of the capacitance value to be added divided by the test capacitance is calculated; and the quotient is determined as the number of final PCB traces.
[0041] Preferably, the area calculation unit is specifically used for:
[0042] Obtain a preset coefficient, a preset board dielectric constant, and a preset spacing value between adjacent reference layers; calculate the product of the basic capacitance value, the preset coefficient, and the preset spacing value between adjacent reference layers; and mark the quotient of the product divided by the preset board dielectric constant as the area of the PCB trace corresponding to the basic capacitance value.
[0043] A third aspect of the present invention discloses an electronic device, comprising:
[0044] Memory and processor;
[0045] Wherein, the memory is used to store programs;
[0046] The processor is used to execute the program, and when the program is executed, it is specifically used to implement the method for adding capacitance to PCB routing disclosed in the first aspect of the present invention.
[0047] A fourth aspect of the present invention discloses a computer storage medium for storing a computer program. When the computer program is executed, it is used to implement the method for adding capacitance to PCB routing disclosed in the first aspect of the present invention.
[0048] Based on the above-mentioned embodiment of the present invention, a method, device, electronic device and storage medium for adding capacitance to a PCB trace are provided. When a basic capacitance value is received, the area of the PCB trace corresponding to the basic capacitance value is calculated; the simulated PCB board is imported into the simulation software to add a PCB test trace in the simulated PCB board, and the length and width of the PCB test trace are continuously adjusted according to the calculated test capacitance of the PCB test trace until the test capacitance of the final PCB trace is equal to the basic capacitance value. When an addition instruction containing the capacitance value to be added is received, the number of final PCB traces corresponding to the capacitance value to be added is calculated; the corresponding number of final PCB traces are added to the target PCB board to obtain the final PCB board. By presetting the basic capacitance value, the PCB trace is debugged in combination with the simulation software to determine the final PCB trace whose capacitance value is the basic capacitance value. Further, by linearly superimposing the basic capacitance value in the PCB board, that is, superimposing the final PCB trace, the demand for temporary addition of capacitance to the PCB board is met, and the effect of reducing the PCBA manufacturing cost and the PCB patch production time is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0050] Figure 1 A flow chart of a method for adding capacitance to a PCB trace provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of adding PCB traces to a PCB board provided in an embodiment of the present invention;
[0052] Figure 3 A structural block diagram of a device for adding capacitance to a PCB trace provided by an embodiment of the present invention;
[0053] Figure 4 A schematic diagram of the structure of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0056] As can be seen from the background technology, in the process of producing PCB boards, if it is temporarily necessary to add capacitors in the PCB, it is necessary to add them by changing the PCB schematic diagram, further, generate a netlist in the changed schematic diagram, and then re-import the netlist in the PCB for PXB design, and finally perform patch production. This method of adding capacitors is difficult to implement, takes a long time, and increases manufacturing costs and labor costs.
[0057] Therefore, the embodiment of the present invention provides a method, device, electronic device and storage medium for adding capacitance to a PCB trace; by presetting a basic capacitance value, the PCB trace is debugged in combination with simulation software to determine the final PCB trace with a capacitance value as the basic capacitance value. Furthermore, by linearly superimposing the basic capacitance value in the PCB board, that is, superimposing the final PCB trace, the demand for temporary addition of capacitance to the PCB board is met, and the effect of reducing PCBA manufacturing costs and PCB patch production time is achieved.
[0058] See also Figure 1 , shows a flow chart of a method for adding capacitance to a PCB trace provided by an embodiment of the present invention, the method comprising:
[0059] It can be understood that the PCB circuit board is a process control block (PCB Process Control Block), and the PCB is used to store process management and control information.
[0060] Step S101: when a basic capacitance value is received, the area of the PCB trace corresponding to the basic capacitance value is calculated.
[0061] It should be noted that a basic capacitance value is preset according to actual conditions, and debugging of adding capacitance to PCB routing is performed based on the basic capacitance value.
[0062] It can be understood that during the debugging process, the area covered by the trace is regarded as the area of the flat plate capacitor, the spacing between adjacent layers is regarded as the spacing of the flat plate capacitor, and further, the small capacitance caused by other factors is ignored; at this time, the capacitance of the flat plate capacitor can be regarded as the capacitance generated by the PCB trace.
[0063] In the specific implementation of step S101, when a basic capacitance value (eg, a basic capacitance value of 5 pF) is received: an area of a PCB trace corresponding to the basic capacitance value is calculated.
[0064] Specifically, the process of calculating the area of the PCB trace corresponding to the basic capacitance value is as follows:
[0065] Obtain a preset coefficient, a preset board dielectric constant, and a preset spacing value between adjacent reference layers; calculate the product of the basic capacitance value, the preset coefficient, and the preset spacing value between adjacent reference layers; and divide the product by the quotient of the preset board dielectric constant to obtain the area of the PCB trace corresponding to the basic capacitance value.
[0066] It can be understood that, in a PCB board, a dielectric is provided between adjacent capacitor plates, the thickness of the dielectric can be regarded as the dielectric constant of the board, and the spacing between adjacent flat plates is the spacing value of preset adjacent reference layers.
[0067] Specifically, the area of the PCB trace corresponding to the basic capacitance value is calculated by formula (1).
[0068] C = εS / 11.3d(1)
[0069] Among them, S is the area of the PCB trace corresponding to the basic capacitance value; C is the basic capacitance value (such as 5pF); the preset coefficient is 11.3; d is the preset spacing value between adjacent reference layers (such as 0.072mm); ε is the preset board dielectric constant (such as 4.3).
[0070] For example: 5 = (4.3*S) / (11.3*0.072), the calculated S is approximately equal to 0.9 mm 2 .
[0071] It should be noted that formula (1) is obtained by simplifying formula (2).
[0072] C=εS / 4ΠKd(2)
[0073] Where C is the capacitance, ε is the dielectric constant of the PCB board, S is the area of the PCB trace, Π is the circumference, which is usually 3.14, and K is the electrostatic force constant, which is 9.0*10 9 Nm 2 / C 2 , d is the spacing between adjacent reference layers.
[0074] Step S102: importing the simulated PCB board into the simulation software, and calculating the PCB routing capacitance of the target routing network in the simulated PCB board.
[0075] In the specific implementation process of step S102, the simulated PCB board is imported into the simulation software, and the stacking information of the simulated PCB board is set in the simulation software; the source end and the terminal end of the routing network of the capacitor to be extracted in the simulated PCB board are initialized in the simulation software to obtain the target routing network; and the PCB routing capacitance of the target routing network is calculated using the simulation software.
[0076] For example, the PCB trace capacitance of the target trace network in the simulated PCB board is calculated and extracted using simulation software to be 4.43pF.
[0077] It should be noted that the corresponding settings are made in the simulation software according to the stacking information of the simulated PCB board, wherein the stacking information involves the physical structure of the simulated PCB board, including parameters such as layers, materials, and thickness.
[0078] It is understandable that the simulated PCB contains multiple capacitor routing networks, and the source and terminal of the routing network of the capacitor to be extracted in the simulated PCB are initialized in the simulation software, so as to extract the routing network of the capacitor to be extracted in the simulated PCB and obtain the target routing network. If the PCB is large in actual operation, the PCB can be cut according to the PCB routing network to be extracted.
[0079] Among them, extracting the target routing network that needs to be subjected to capacitance extraction from the simulated PCB board can further improve the speed of debugging simulation.
[0080] It should be noted that after initializing the source and terminal of the routing network to be extracted, check whether the imported routing is missing. If there is any missing, it needs to be supplemented and adjusted.
[0081] Step S103: adding a PCB test routing line to the target routing network to obtain a routing network to be tested.
[0082] In the specific implementation of step S103, according to the area of the PCB trace corresponding to the above basic capacitance value, a PCB test trace is added to the target trace network of the simulated PCB board to obtain a trace network to be tested.
[0083] That is to say, the area of the PCB test trace is the area of the PCB trace corresponding to the above basic capacitance value, which can ensure that the capacitance of the added PCB test trace is close to 5pF.
[0084] For example: add a line with an area of approximately 0.9mm in the target routing network 2 The PCB test trace has a trace width of 32mil (0.8mm) and a length of 11mm.
[0085] Step S104: Calculate the current PCB routing capacitance of the routing network to be tested, and the difference between the current PCB routing capacitance and the PCB routing capacitance to obtain the test capacitance.
[0086] In the specific implementation process of step S104, the total capacitance of the simulated PCB board plus the PCB test trace is calculated, that is, the current PCB trace capacitance of the trace network to be tested is calculated, and then the total capacitance is subtracted from the initial capacitance of the simulated PCB board to obtain the capacitance of the PCB test trace.
[0087] For example, the current PCB routing capacitance of the routing network to be tested is calculated by using simulation software to be 10.08 pF, that is, the total capacitance after the simulation PCB board plus the PCB test routing is 10.08 pF.
[0088] Calculate the difference between the current PCB trace capacitance and the PCB trace capacitance: 10.08pF-4.43pF=5.65pF, and get the test capacitance, that is, the capacitance of the PCB test trace is 5.65pF.
[0089] Step S105: determine whether the test capacitance is equal to the basic capacitance value; if the test capacitance is not equal to the basic capacitance value, execute step S106; if the test capacitance is equal to the basic capacitance value, execute step S107.
[0090] In the process of specifically implementing step S105, it is determined whether the capacitance of the current PCB test trace is equal to the required basic capacitance value. If the capacitance of the current PCB test trace is not equal to the required basic capacitance value, it is indicated that the current PCB test trace needs to be adjusted, and step S106 is executed; if the capacitance of the current PCB test trace is equal to the required basic capacitance value, step S107 is executed.
[0091] Step S106: adjusting the length and width of the PCB test trace according to the area to obtain a new PCB test trace, and returning to execute step S103.
[0092] In the process of specifically implementing step S106, if the test capacitance is not equal to the basic capacitance value, that is, if the capacitance of the current PCB test trace is not equal to the required basic capacitance value, then according to the area of the PCB trace corresponding to the basic capacitance value calculated above, the length and width of the PCB test trace are adjusted in a small range to obtain a new PCB test trace, and the process returns to step S103 to check whether the capacitance of the new PCB test trace is equal to the basic capacitance value.
[0093] Step S107: Determine that the current PCB test trace is the final PCB trace.
[0094] In the specific implementation of step S107, if the test capacitance is equal to the basic capacitance value, that is, if the capacitance of the current PCB test trace is equal to the required basic capacitance value, the current PCB test trace is determined to be the final PCB trace.
[0095] For example, the current PCB test trace has a trace width of 24 mil (0.61 mm) and a length of 12.5 mm. According to the simulation software calculation, the capacitance of the PCB test trace with a trace width of 24 mil (0.61 mm) and a length of 12.5 mm is 5 pF.
[0096] In the specific application process, according to debugging, it is determined that the PCB routing of the basic capacitance value can be linearly superimposed to obtain the temporary added capacitance value actually required by the PCB board.
[0097] For example, as shown in Table 1, in actual application, Table 1 is the extraction result of superimposing the basic capacitance value of 5pF.
[0098] Table 1
[0099]
[0100] It can be understood that according to Table 1, it can be determined that by linearly superimposing the PCB traces of the basic capacitance value, the capacitance value thereof increases linearly. Therefore, in actual application, by linearly superimposing the PCB traces of the basic capacitance value, the capacitance value actually required by the PCB board can be added to the PCB board.
[0101] Step S108: when an adding instruction including a capacitance value to be added is received, the number of final PCB traces corresponding to the capacitance value to be added is calculated.
[0102] In the process of specifically implementing step S108, when an add instruction is received, indicating that a capacitor needs to be added in the PCB board, the capacitance value to be added contained in the add instruction is obtained, and the number of final PCB traces corresponding to the capacitance value to be added and the test capacitance of the above-mentioned final PCB traces is calculated using the capacitance value to be added.
[0103] It should be noted that the specific calculation process is as follows: calculate the quotient of the capacitance value to be added divided by the test capacitance; determine the quotient as the number of final PCB traces, that is, the capacitance value to be added ÷ the test capacitance = the number of final PCB traces.
[0104] Step S109: adding a corresponding number of final PCB traces to the target PCB board to obtain a final PCB board.
[0105] In the specific implementation of step S109, based on the number of final PCB traces obtained by the above calculation, a corresponding number of final PCB traces are added to the target PCB board to obtain a final PCB board.
[0106] For example Figure 2 As shown, 15 final PCB traces are added to the target PCB board to add 75.47pF to the target PCB board to obtain the capacitance of the final PCB board.
[0107] In an embodiment of the present invention, in the process of producing a PCB board, when the schematic diagram has been set up, if it is necessary to temporarily add capacitance, the schematic diagram needs to be modified, and the process is too complicated. Therefore, by presetting the basic capacitance value, the PCB routing is debugged in combination with the simulation software to determine the final PCB routing with the capacitance value as the basic capacitance value. Further, by linearly superimposing the basic capacitance value in the PCB board, that is, superimposing the final PCB routing, the demand for temporary addition of capacitance to the PCB board is met, and the effect of reducing the PCBA manufacturing cost and the PCB patch production time is achieved.
[0108] Corresponding to the method for adding capacitors to PCB traces provided in the above embodiment of the present invention, see Figure 3 , shows a structural block diagram of a device for adding capacitance to PCB traces provided by an embodiment of the present invention, the device includes: an area calculation unit 301, a first capacitance calculation unit 302, a first adding unit 303, a second capacitance calculation unit 304, an adjustment unit 305, a determination unit 306, a number calculation unit 307 and a second adding unit 308. The implementation principle of each unit is as follows:
[0109] The area calculation unit 301 is used to calculate the area of the PCB trace corresponding to the basic capacitance value when the basic capacitance value is received.
[0110] The area calculation unit 301 is specifically used to: obtain a preset coefficient, a preset board dielectric constant and a preset spacing value between adjacent reference layers; calculate the product of the basic capacitance value, the preset coefficient and the preset spacing value between adjacent reference layers; and divide the product by the quotient of the preset board dielectric constant to obtain the area of the PCB trace corresponding to the basic capacitance value.
[0111] The first capacitance calculation unit 302 is used to import the simulated PCB board into the simulation software and calculate the PCB routing capacitance of the target routing network in the simulated PCB board.
[0112] The first adding unit 303 is used to add a PCB test routing line to the target routing network to obtain a routing network to be tested.
[0113] The second capacitance calculating unit 304 is used to calculate the current PCB routing capacitance of the routing network to be tested, and the difference between the current PCB routing capacitance and the PCB routing capacitance, to obtain the test capacitance.
[0114] The adjusting unit 305 is used to adjust the length and width of the PCB test trace according to the area if the test capacitance is not equal to the basic capacitance value, obtain a new PCB test trace, and return to execute the first adding unit 303.
[0115] The determination unit 306 is configured to determine that the current PCB test trace is a final PCB trace if the test capacitance is equal to the base capacitance value.
[0116] The number calculation unit 307 is used to calculate the number of final PCB traces corresponding to the capacitance value to be added when receiving an adding instruction including the capacitance value to be added.
[0117] The number calculation unit 307 is specifically used to: calculate the quotient of the capacitance to be added divided by the test capacitance; and determine the quotient as the number of final PCB traces.
[0118] The second adding unit 308 is used to add a corresponding number of final PCB traces to the target PCB board to obtain a final PCB board.
[0119] In the embodiment of the present invention, by presetting the basic capacitance value and debugging the PCB routing in combination with the simulation software, the final PCB routing whose capacitance value is the basic capacitance value is determined. Furthermore, by linearly superimposing the basic capacitance value in the PCB board, that is, superimposing the final PCB routing, the demand for temporary addition of capacitance to the PCB board is met, and the effect of reducing the PCBA manufacturing cost and the PCB patch production time is achieved.
[0120] Combination Figure 3 As shown in the figure, the first capacitance calculation unit 302 includes: a setting module, an initialization module and a calculation module. The implementation principle of each module is as follows:
[0121] The setting module is used to import the simulated PCB board into the simulation software and set the stacking information of the simulated PCB board in the simulation software.
[0122] The initialization module is used to initialize the source end and the terminal end of the routing network of the capacitor to be extracted in the simulation PCB board in the simulation software to obtain the target routing network.
[0123] A calculation module is used to calculate the PCB trace capacitance of the target trace network using simulation software.
[0124] Another embodiment of the present application provides an electronic device, such as Figure 4 As shown, it includes: a memory 401 and a processor 402.
[0125] The memory 401 is used to store programs.
[0126] The processor 402 is used to execute a program. When the program is executed, it is specifically used to implement a method for adding capacitance to a PCB trace as provided in any one of the above embodiments.
[0127] Another embodiment of the present application provides a computer storage medium for storing a computer program. When the computer program is executed, it is used to implement a method for adding capacitance to a PCB trace as provided in any of the above embodiments.
[0128] Computer storage media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0129] In summary, the embodiments of the present invention provide a method, device, electronic device and storage medium for adding capacitance to PCB routing; by presetting a basic capacitance value, the PCB routing is debugged in combination with simulation software to determine the final PCB routing whose capacitance value is the basic capacitance value. Furthermore, by linearly superimposing the basic capacitance value in the PCB board, that is, superimposing the final PCB routing, the demand for temporary addition of capacitance to the PCB board is met, and the effect of reducing PCBA manufacturing costs and PCB patch production time is achieved.
[0130] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0131] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0132] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for adding capacitance to PCB routing, characterized in that: The method comprises: When the basic capacitance value is received, the area of the PCB trace corresponding to the basic capacitance value is calculated; Importing the simulated PCB board into the simulation software, and calculating the PCB trace capacitance of the target trace network in the simulated PCB board; Adding a PCB test routing line to the target routing network to obtain a routing network to be tested; Calculating the current PCB routing capacitance of the routing network to be tested and the difference between the current PCB routing capacitance and the PCB routing capacitance to obtain a test capacitance; If the test capacitance is not equal to the basic capacitance value, the length and width of the PCB test trace are adjusted according to the area to obtain a new PCB test trace, and the step of adding a PCB test trace to the target trace network to obtain a trace network to be tested is returned to be executed; If the test capacitance is equal to the basic capacitance value, determining the current PCB test trace as the final PCB trace; When receiving an adding instruction including a capacitance value to be added, calculating the number of final PCB traces corresponding to the capacitance value to be added; Add a corresponding number of the final PCB traces to the target PCB board to obtain a final PCB board.
2. The method according to claim 1, characterized in that: The step of importing the simulated PCB board into the simulation software and calculating the PCB routing capacitance of the target routing network in the simulated PCB board includes: Importing the simulated PCB board into the simulation software, and setting the stacking information of the simulated PCB board in the simulation software; Initializing the source end and the terminal end of the routing network of the capacitor to be extracted in the simulated PCB board in the simulation software to obtain the target routing network; The simulation software is used to calculate the PCB routing capacitance of the target routing network.
3. The method according to claim 1, characterized in that The calculating the number of final PCB traces corresponding to the capacitance value to be added includes: Calculating a quotient of the capacitance to be added divided by the test capacitance; The quotient is determined as the number of final PCB traces.
4. The method according to claim 1, characterized in that: The calculating the area of the PCB trace corresponding to the basic capacitance value includes: Obtaining a preset coefficient, a preset plate dielectric constant, and a preset spacing value between adjacent reference layers; Calculating the product of the basic capacitance value, the preset coefficient and the preset spacing value of adjacent reference layers; The quotient of the product divided by the preset board dielectric constant is marked as the area of the PCB trace corresponding to the basic capacitance value.
5. A device for adding capacitance to PCB traces, characterized in that: The device comprises: An area calculation unit, used to calculate the area of the PCB trace corresponding to the basic capacitance value when a basic capacitance value is received; A first capacitance calculation unit is used to import the simulated PCB board into the simulation software and calculate the PCB routing capacitance of the target routing network in the simulated PCB board; A first adding unit is used to add a PCB test routing line in the target routing network to obtain a routing network to be tested; A second capacitance calculation unit, used for calculating the current PCB routing capacitance of the routing network to be tested, and the difference between the current PCB routing capacitance and the PCB routing capacitance, to obtain a test capacitance; an adjusting unit, configured to adjust the length and width of the PCB test trace according to the area if the test capacitance is not equal to the basic capacitance value, to obtain a new PCB test trace, and return to execute the first adding unit; A determining unit, configured to determine that the current PCB test trace is a final PCB trace if the test capacitance is equal to the basic capacitance value; A number calculation unit, configured to calculate the number of final PCB traces corresponding to the capacitance value to be added when receiving an adding instruction including the capacitance value to be added; The second adding unit is used to add a corresponding number of the final PCB traces in the target PCB board to obtain a final PCB board.
6. The device according to claim 5, characterized in that The first capacitance calculation unit comprises: A setting module, used for importing the simulated PCB board into the simulation software, and setting the stacking information of the simulated PCB board in the simulation software; An initialization module is used to initialize the source end and the terminal end of the routing network of the capacitor to be extracted in the simulated PCB board in the simulation software to obtain a target routing network; A calculation module is used to calculate the PCB routing capacitance of the target routing network using the simulation software.
7. The device according to claim 5, characterized in that The calculation number unit is specifically used for: The quotient of the capacitance value to be added divided by the test capacitance is calculated; and the quotient is determined as the number of final PCB traces.
8. The device according to claim 5, characterized in that The area calculation unit is specifically used for: Obtain a preset coefficient, a preset board dielectric constant, and a preset spacing value between adjacent reference layers; calculate the product of the basic capacitance value, the preset coefficient, and the preset spacing value between adjacent reference layers; and mark the quotient of the product divided by the preset board dielectric constant as the area of the PCB trace corresponding to the basic capacitance value.
9. An electronic device, characterized in that: include: Memory and processor; Wherein, the memory is used to store programs; The processor is used to execute the program, and when the program is executed, it is specifically used to implement the method for adding capacitance to PCB traces as described in any one of claims 1 to 4.
10. A computer storage medium, characterized in that: Used to store a computer program, which, when executed, is used to implement the method for adding capacitance to PCB traces as described in any one of claims 1 to 4.