METHOD AND SYSTEM FOR PACKAGING POLARITY MARKERS, ELECTRONIC DEVICE AND STORAGE MEDIUM
A digital method for packaging polarity identifiers in PCB construction addresses the challenges of manual polarity identification in high-density PCBs by assigning digital attributes to component packages, enhancing accuracy and efficiency.
Patent Information
- Application Number
- DE112022007618
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-08-03
- Filing Date
- 2022-08-09
- Publication Date
- 2025-05-15
AI Technical Summary
In high-density printed circuit board (PCB) construction, the close proximity of components leads to difficulties and errors in manual identification and verification of polarity, resulting in poor product performance and potential circuit failures.
A digital method and system for packaging polarity identifiers, which involves dividing a component's bounding rectangular frame into sub-regions, determining a polarity identifier graph, defining reference areas, calculating position coordinates and size, and assigning these attributes to the component package, thereby facilitating accurate polarity identification without manual intervention.
The method improves the accuracy and efficiency of polarity identification by allowing digital processing and storage of polarity information within the PCB design file, reducing errors and ensuring correct component mounting directions.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
FIELD OF THE INVENTION
[0001] The invention belongs to the field of printed circuit board (PCB) construction and, more particularly, to a method and system for packaging polarity identifiers, an electronic device, and a storage medium. BACKGROUND OF THE INVENTION
[0002] With the development of integrated circuits and the electronics industry, miniaturization, high density, multifunction, and digitalization have become the current trend of PCB design. In the PCB design process, component packaging design is an important step, and its design quality will directly affect the subsequent manufacturing process and final product quality. During component packaging design, some components, such as electrolytic capacitors, diodes, transistors, and integrated circuits (ICs), have polarity requirements. In the industry, components with polarity requirements typically have an identifier indicating the positive and negative terminals or the position of the first pin.These components must be mounted on the PCB in a specific direction to ensure their positive and negative terminals, or the first pin, are aligned with the actual PCB circuitry. Incorrect mounting direction can lead to circuit failure, short circuiting and component burnout, failure to operate properly, and more.
[0003] Currently, the polarity identification of components in the industry is packaged on a PCB silkscreen layer, which is generally marked with symbols such as "◯", "▲", and "+". The mounting direction verification is confirmed by manual identification and verification. However, in a high-density PCB, the distance between two components is very close, causing difficulty, confusion, and identification errors in polarity identification, which ultimately leads to poor product function and failure of the entire printed circuit board assembly (PCBA), resulting in economic losses.
[0004] Accordingly, for components with polarity requirements, the development of a digital electronic design automation (EDA) design method to implement packaging design for component polarity identification has become an important technical challenge in PCB packaging design. This approach addresses the challenges of manual identification and verification, thereby reducing difficulties and errors in polarity identification. SUMMARY OF THE INVENTION
[0005] To solve the above-mentioned problems existing in the prior art, the present invention provides a method and system for packaging polarity identifiers, an electronic device, and a storage medium. The technical problem to be solved by the present invention is achieved by the following technical solutions.
[0006] In a first aspect, embodiments of the present invention provide a method for packaging polarity identifiers. The method comprises steps S1-S7.
[0007] Step S1 includes dividing a bounding rectangular frame of a component having a polarity identifier to be designed into a plurality of sub-regions based on a preset dividing mode and obtaining a size of the bounding rectangular frame.
[0008] Step S2 comprises determining a polarity identifier graph of the component with the polarity identifier to be designed.
[0009] Step S3 includes defining names of a plurality of reference regions corresponding to the polarity identification graph. The plurality of reference regions is a plurality of partial regions or a plurality of cross regions; each of the cross regions is formed by connecting partial regions corresponding to one side of the bounding rectangular frame.
[0010] Step S4 includes determining that a position span of the polarity identification graph is an interior or an exterior of the bounding rectangular frame.
[0011] Step S5 includes determining a target reference area among the plurality of reference areas and calculating position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position range, and a name of the target reference area.
[0012] Step S6 includes calculating a size of the polarity identification graph based on the size of the connecting rectangular frame and the polarity identification graph.
[0013] Step S7 includes assigning the polarity identifier graph, the name of the target reference area, the position coordinates, and the size of the polarity identifier graph to a package of the component with the polarity identifier to be designed as an attribute of the package.
[0014] In a second aspect, embodiments of the present invention provide a system for packaging polarity labels. The system includes a sub-region division module, a polarity label graph selection module, a reference region name definition module, a position span determination module, a position coordinate calculation module, a size calculation module, and a packaging attribute assignment module.
[0015] The sub-area division module is configured to divide a bounding rectangular frame of a component having a polarity identifier to be designed into a plurality of sub-areas based on a preset division mode and obtain a size of the bounding rectangular frame.
[0016] The polarity identifier graph selection module is configured to determine a polarity identifier graph of the component having the polarity identifier to be designed.
[0017] The reference region name definition module is configured to define names of a plurality of reference regions corresponding to the polarity identification graph. The plurality of reference regions is a plurality of partial regions or a plurality of cross regions, and each of the cross regions is formed by connecting partial regions corresponding to one side of the bounding rectangular frame.
[0018] The position span determination module is configured to determine that a position span of the polarity identification graph is an inside or an outside of the bounding rectangular frame.
[0019] The position coordinate calculation module is configured to determine a target reference area among the plurality of reference areas and calculate position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position range, and a name of the target reference area.
[0020] The size calculation module is configured to calculate a size of the polarity identification graph based on the size of the connecting rectangular frame and the polarity identification graph.
[0021] The packaging attribute assignment module is configured to assign the polarity identifier graph, the name of the target reference area, the position coordinates, and the size of the polarity identifier graph to a packaging of the component with the polarity identifier to be designed as an attribute of the packaging.
[0022] In a third aspect, embodiments of the present invention provide an electronic device. The electronic device includes a processor, a communication interface, a memory, and a communication bus. The processor, the communication interface, and the memory communicate with each other via the communication bus.
[0023] The memory is configured to store computer programs.
[0024] The processor is configured to implement the steps of the method for packaging polarity identifiers provided by the embodiments of the present invention when executing programs stored in the memory.
[0025] In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer programs. When the computer programs are executed by a processor, the steps of the method for packaging polarity identifiers provided by embodiments of the present invention are implemented. Advantageous effects of the present invention:
[0026] According to the polarity identifier packaging method provided by the embodiments of the present invention, the polarity identifier graph of the component with the polarity identifier to be designed, the target reference range, the position coordinates, and the size of the polarity identifier graph can be determined at an early EDA design end through a digital process, and this information can be assigned to the packaging of the component with the polarity identifier to be designed and carried in the PCB electronic design file as the package attribute. When checking the mounting direction, the relevant polarity identifier information can be determined by querying the packaging attribute in the PCB electronic design file of the polar component to determine the polarity direction of the component without manual determination.Therefore, the problems such as the difficulty and identification errors in polarity identification when manually identifying and checking the polarity of the component due to the close distance between the components can be avoided, and the accuracy and efficiency of polarity identification can be improved. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic flow diagram illustrating a method for packaging polarity identifiers according to some embodiments of the present invention; Fig. 2 is a schematic diagram illustrating a process of dividing a bounding rectangular frame of a component with a polarity identifier to be designed based on a nine-square grid dividing mode according to some embodiments of the present invention; Fig.3 is a schematic diagram for understanding partial regions and cross regions according to some embodiments of the present invention; Fig. 4 is a schematic diagram illustrating a name marking mode for each partial area and each cross area according to some embodiments of the present invention; Fig. 5(a)-5(c) are three examples of positions of a triangle relative to a bounding rectangular frame by taking a polarity label graph as the triangle and the bounding rectangular frame as a rectangular frame of a component body with a polarity label to be designed as an example according to some embodiments of the present invention; Fig. 6(a)-6(d) are diagrams illustrating results of substeps of Example 1 according to some embodiments of the present invention; Fig.7(a)-7(c) are diagrams illustrating results of substeps of Example 2 according to some embodiments of the present invention; Fig. 8 is a schematic structural diagram illustrating a system for packaging polarity identifiers according to some embodiments of the present invention; Fig. 9 is a schematic structural diagram illustrating an electronic device according to some embodiments of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0027] The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention and not all embodiments.
[0028] To solve the deficiencies in the prior art, embodiments of the present invention provide a method and system for packaging polarity identifiers, an electronic device, and a storage medium.
[0029] It should be noted that the solution provided in the embodiments of the present invention can be embedded in existing EDA packaging design software, and the existing EDA packaging design software includes, but is not limited to, Cadence Allegro, Altium Designer, Mentor Pads, etc.
[0030] In a first aspect, embodiments of the present invention provide a method for packaging polarity identifiers as described in Fig. 1. The method may include the following steps S1-S7.
[0031] Step S1 includes dividing a bounding rectangular frame of a component having a polarity identifier to be designed into a plurality of sub-regions based on a preset dividing mode and obtaining a size of the bounding rectangular frame.
[0032] For each component with a polarity identifier to be designed, when packaging polarity identifiers, information about the bounding rectangular box of the component with the polarity identifier to be designed can be obtained from its attribute information. The bounding rectangular box can be a rectangular box of a component body with the polarity identifier to be designed, or a rectangular box containing the component body and a corresponding pad, which can be selected during design if necessary.
[0033] According to embodiments of the present invention, the bounding rectangular frame is divided into the plurality of sub-regions to form different regions within the rectangular frame or even outside the rectangular frame to facilitate the subsequent positioning of the polarity identifier using the different regions, which will be described in detail later.
[0034] To improve the accuracy of positioning the polarity identifier, the bounding rectangular frame may be divided into as many sub-areas as possible. To minimize computational complexity, in an optional embodiment, dividing the bounding rectangular frame of the component with the polarity identifier to be designed into the plurality of sub-areas based on the preset division mode may include:
[0035] Dividing the bounding rectangular frame of the component with the polarity identifier to be designed into nine sub-areas based on a nine-square grid division mode.
[0036] The specific process of the nine-square grid division mode includes: for each set of opposite sides of the bounding rectangular frame, dividing the set of opposite sides into three equal parts using two parallel straight lines that are perpendicular to the set of opposite sides and exceed a distance between them, so that the bounding rectangular frame is divided into nine sub-regions. In addition, four straight lines for division extend infinitely to two sides, so that, with the exception of a central sub-region, the span of any sub-region is not limited to the interior of the rectangular frame, but covers an extension range defined by the two straight lines for division corresponding to the sub-region. That is, the span of the extension line of the sub-region also belongs to the sub-region.
[0037] With reference to Fig.2 is a solid rectangular frame in Fig. 2 The rectangular frame of the component body, and a dashed rectangular frame is the rectangular frame containing the component body and the corresponding pad. A direction of the solid rectangular frame along an X-axis direction is a length direction, and a length of the solid rectangular frame is represented by L; a direction of the solid rectangular frame along a Y-axis direction is a width direction, and a width of the solid rectangular frame is expressed as W. The shorter of the length L and the width W is represented by a. The dot represents the center of the solid rectangular frame.
[0038] The default division mode of the embodiments of the present invention is not limited to the nine-square grid division mode. It is also possible to divide each set of opposite sides of the bounding rectangular frame into two equal parts using a parallel straight line that is perpendicular to the set of opposite sides and exceeds the distance between them, so that the bounding rectangular frame is divided into four sub-areas; or for each set of opposite sides of the bounding rectangular frame, the set of opposite sides is divided into four equal parts using three parallel straight lines that are perpendicular to the set of opposite sides and exceed the distance between them, so that the bounding rectangular frame is divided into sixteen sub-areas;or the sides of the bounding rectangular frame are divided unevenly using intersecting straight lines parallel to the sides of the bounding rectangular frame, so that the bounding rectangular frame is divided into the plurality of sub-regions, and so on.;
[0039] Step S2 comprises determining a polarity identifier graph of the component with the polarity identifier to be designed.
[0040] In embodiments of the present invention, any of the graphs commonly used in EDA packaging design may be selected as the polarity label graph of the component having the polarity label to be designed.
[0041] In an optional embodiment, types of polarity identification graphs include a graph of a first type and a graph of a second type.
[0042] The first type of graph can include a circle or a triangle. A display effect of the circle can be denoted as "◯." The triangle is an equilateral triangle, and a display effect of the triangle can be denoted as "▲." The first type of graph can also include shapes such as "+." The second type of graph can include a rectangular strip.
[0043] During the specific design, different types of components with the polarity identifier to be designed can be considered. The PCB layout design can be reasonably carried out to meet the design requirements of clarity and aesthetics. Either the first-type graph or the second-type graph can be selected as the polarity identifier graph of the component with the polarity identifier to be designed.
[0044] For example, for a BGA (ball grid array) device, a circle or a triangle in the graph of the first type can be selected; for a diode, a rectangular stripe in the graph of the second type can be selected, and so on.
[0045] It should be noted that the execution order of steps S2 and S1 can be interchanged.
[0046] Step S3 includes defining names of a plurality of reference regions corresponding to the polarity identification graph.
[0047] The plurality of reference regions is a plurality of subregions or a plurality of cross regions. Each of the cross regions is formed by connecting subregions corresponding to one side of the bounding rectangular frame.
[0048] Understanding the concepts of sub-areas and cross-areas is in Fig. 2 and Fig. 3 can be found. Fig.3 is a schematic diagram for understanding subregions and cross regions according to some embodiments of the present invention. Fig. 3 takes a bounding rectangular frame of a component with a polarity identifier to be designed as an example, and uses three sub-areas corresponding to a left short side of the bounding rectangular frame divided based on a nine-square grid as examples for explanation. The three sub-areas are indicated by different shading, but ranges of the shading in Fig. 3 do not limit the scope of the sub-areas. As can be seen Fig.3, each of the sub-regions includes not only an inner region of the bounding rectangular frame but also an extension region defined by two corresponding straight lines for division. Accordingly, the three sub-regions can be connected to form a cross region corresponding to the left short side of the bounding rectangular frame. Similarly, for the remaining three sides of the bounding rectangular frame, the cross region corresponding to each side is formed by connecting the three sub-regions on the side. That is, there are a total of four cross regions for the nine sub-regions. The method of determining the remaining cross regions is not individually illustrated here.
[0049] In an optional embodiment, the polarity identification graph and the reference regions have a preset correspondence relationship. For each polarity identification graph, the plurality of reference regions is the plurality of subregions or the plurality of cross-regions. Accordingly, defining the names of the plurality of reference regions corresponding to the polarity identification graph may include: (1) if the polarity identification graph is a graph of a first type, determining that the plurality of reference regions corresponding to the polarity identification graph correspond to the plurality of partial regions in a one-to-one manner; and defining names of the plurality of partial regions based on a preset partial region name marking mode; (2) if the polarity identification graph is a graph of a second type, determining that the plurality of reference regions corresponding to the polarity identification graph are the plurality of cross regions; and defining the names of the plurality of cross regions based on a preset cross region name marking mode.
[0050] To facilitate comparison and understanding, the above two situations are explained together. In particular: If the polarity identification graph is the first-type graph, the plurality of reference regions corresponding to the polarity identification graph are determined to be the plurality of partial regions. Taking the nine-square grid as an example, if the polarity identification graph is the first-type graph, nine partial regions of the bounding rectangular frame are regarded as its nine reference regions; When the polarity identification graph is a second-type graph, the plurality of reference regions corresponding to the polarity identification graph are determined to be the plurality of cross regions. Taking the nine-square grid as an example, when the polarity identification graph is a second-type graph, four cross regions of the bounding rectangular frame are regarded as its four reference regions.
[0051] The preset partial area or cross area name marking mode may be any non-repeating marking mode to achieve the purpose of distinguishing the partial areas from each other or distinguishing the cross areas from each other, including but not limited to random marking or marking according to a certain order, etc., which is not limited here.
[0052] Step S4 includes determining whether a position span of the polarity label graph is an interior or exterior of the bounding rectangular frame.
[0053] In step S4, the position span of the polarity identifier graph can be selected to be the inside or outside of the bounding rectangular frame according to specific requirements. The position span of the polarity identifier graph is selected to be the outside of the bounding rectangular frame, i.e., the polarity identifier is marked outside the bounding rectangular frame, primarily to facilitate the verification of polarity points on a physical component and polarity points on the PCB silkscreen. Additionally, if a space span of the PCB layout is sufficient, the position span of the polarity identifier graph can also be selected to be the outside of the bounding rectangular frame. Factors for selecting the position span of the polarity identifier graph may also include layout aesthetics or the like.
[0054] Step S5 includes determining a target reference area among the plurality of reference areas and calculating position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position range, and a name of the target reference area.
[0055] In step S5, each of the plurality of reference ranges corresponding to the polarity identification graph can be selected as a span of the target reference range according to design requirements, which is not limited here. After the target reference range is determined, the name of the target reference range can be obtained for subsequent use.
[0056] In the embodiments of the present invention, for various situations where the position range is the inside or the outside of the bounding rectangular frame, the polarity identification graph is the first type graph or the second type graph, and the target reference area is one of the plurality of partial areas or one of the plurality of cross areas, a calculation formula for center position coordinates (x, y) of the polarity identification graph relative to an origin in various situations can be constructed in advance according to mathematical geometry theory with the center of the bounding rectangular frame as the origin and the size of the bounding rectangular frame. In this way, in step S5, the corresponding preset formula can be selected for each situation to calculate the center position coordinate (x, y) of the polarity identification graph.
[0057] The preset formulas for different situations can be adjusted reasonably as needed, and are not specifically limited here. Regarding the nine-square grid division mode, the preset formulas for different situations are specifically shown below.
[0058] Step S6 includes calculating a size of the polarity identification graph based on the size of the connecting rectangular frame and the polarity identification graph.
[0059] In step S6, the corresponding size can be calculated according to a specific shape of the polarity identification graph and a preset parameter calculation formula.
[0060] For example, if the polarity identification graph is a circle, the preset parameter calculation formula may be a calculation formula for a radius, and the radius of the circle may be calculated using the formula to determine the size of the polarity identification graph as the circle.
[0061] As another example, if the polarity identification graph is a triangle, the default parameter calculation formula may be a calculation formula for a radius of a circle. The radius calculated using this formula can determine a circle, and then the inscribed triangle of the circle can be obtained to determine the size of the polar identification figure as a triangle.
[0062] As another example, when the polarity identification graph is a line segment (i.e., a rectangular strip), the preset parameter calculation formula may be a calculation formula for a line length and a line width. A length and a width of the rectangular strip may be calculated using the calculation formula to determine the size of the polarity identification graph as a rectangular strip.
[0063] For the polarity identification graphs of other shapes, some calculation formulas that can determine key parameters of shape sizes can be constructed in advance, which are not explained here with examples.
[0064] Step S7 includes assigning the polarity identifier graph, the name of the target reference area, the position coordinates, and the size of the polarity identifier graph to a package of the component with the polarity identifier to be designed as an attribute of the package.
[0065] It should be understood that in step S7, the polarity identifier graph, the name of the target reference area, the position coordinates, and the size of the polarity identifier graph are assigned to the package of the component with the polarity identifier to be designed as the package attribute, thereby completing the EDA packaging design of the polarity identifier of the component with the polarity identifier to be designed. After that, the attribute can be carried in the electronic design file of the PCB.
[0066] It can be seen that the polarity identifier packaging method provided in the embodiments of the present invention can determine the polarity identifier graph, the target reference range, the position coordinates, and the size of the polarity identifier graph of the component with the polarity identifier to be designed at the early EDA design end through a digital process, and assign this information to the packaging of the component with the polarity identifier to be designed, so that this information can be carried in the electronic design file of the PCB as the attribute of the packaging. When checking the mounting direction, the relevant polarity identifier information can be determined by querying the packaging attribute in the electronic design file of the PCB of the polar component to determine the polarity direction of the component without manual determination.Therefore, the problems such as the difficulty and identification errors in polarity identification when manually identifying and checking the polarity of the component due to the close distance between the components can be avoided, and the accuracy and efficiency of polarity identification can be improved.
[0067] Some optional embodiments of the present invention are described in detail below.
[0068] In an optional embodiment, defining the names of the plurality of sub-areas based on the preset sub-area name marking mode includes: defining a name for each of the sub-areas obtained based on a preset sub-area arrangement mode using first characters in a preset first character string.
[0069] To facilitate understanding of the solution, the nine-square grid division mode is used as an example for explanation.
[0070] The first character string can be a numeric sequence (1, 2, 3, 4, 5, 6, 7, 8, 9). The default sub-area arrangement mode includes a top-to-bottom and left-to-right arrangement mode for the sub-areas. For the nine sub-areas divided based on the nine-square grid division mode, the default sub-area arrangement mode can also include a left-to-right, top-to-bottom, and so on arrangement mode for the sub-areas.
[0071] Defining the names of a plurality of intersection regions based on a preset intersection region naming mode includes the following: Defining the name of each of the intersection regions, which is obtained according to a preset intersection region arrangement mode using second characters in a preset second character sequence.
[0072] The second character sequence can be a sequence of letters (A, B, C, D), and the preset intersection region arrangement mode can include a counterclockwise arrangement mode of the intersection regions. For example, four intersection regions starting from the left intersection region are denoted by A, B, C, and D. The intersection region A can be one of the other three intersection regions.
[0073] For the four cross areas, the preset cross area arrangement mode can also include a clockwise arrangement mode of the cross areas, or an arrangement from top to bottom and left to right, from left to right and top to bottom, and so on.
[0074] A preferred embodiment is given by way of example as follows.
[0075] The first character string contains a numeric sequence (1, 2, 3, 4, 5, 6, 7, 8, 9); the preset sub-area arrangement mode contains an arrangement mode of the sub-areas from top to bottom and from left to right; the second character string contains a letter sequence (A, B, C, D); the preset cross-area arrangement mode contains a counterclockwise arrangement mode of the cross-areas; and a cross-area A consists of sub-areas 1, 2 and 3; a cross-area B consists of sub-areas 3, 6 and 9; a cross-area C consists of sub-areas 7, 8 and 9; and a cross-area D consists of sub-areas 1, 4 and 7. Further details are in Fig. 4 can be found.
[0076] In S5, the position coordinates of the polarity identification graph are calculated based on the size of the bounding rectangular frame, the polarity identification graph, the position range, and the name of the target reference area. There are optional embodiments for different situations because calculation formulas for the center position coordinates (x, y) of the polarity identification graph relative to an origin (0, 0), which is the center of the bounding rectangular frame, are different. The center position coordinates are constructed in advance in a rectangular coordinate system based on the size of the bounding rectangular frame and the position range.
[0077] 1) When the position range is the interior of the bounding rectangular frame and the polarity identification graph is the graph of a first type, such as a circle or a triangle, a target formula of a first type corresponding to the target reference range is determined from a plurality of preset formulas of a first type, and the position coordinates of the polarity identification graph relative to the center of the bounding rectangular frame are calculated using the target formula of a first type, the size of the bounding rectangular frame, and the selected adjustment parameter value; wherein the plurality of preset formulas of a first type include: a formula of a first type corresponding to a subarea 1: (x,y)={−(L / 2−a / k),(W / 2−a / k)}; a formula of a first type corresponding to a subarea 2: (x,y)={−(L / 2−a / k),0}; a formula of a first type corresponding to a subarea 3: (x,y)={−(L / 2−a / k),−(W / 2−a / k)}; a formula of a first type corresponding to a subarea 4: (x,y)={0,(W / 2=a / k)}; a formula of a first type corresponding to a subarea 6: (x,y)={0,−(W / 2−a / k)}; a formula of a first type corresponding to a subarea 7: (x,y)={(L / 2−a / k),(W / 2−a / k)}; a formula of a first type corresponding to a subrange 8: (x,y)={(L / 2−a / k),0}; a formula of a first type corresponding to a subrange 9: (x,y)={(L / 2−a / k),−(W / 2−a / k)}; where x, y respectively represent an x-coordinate and a y-coordinate of the center position coordinates of the polarity identification graph when the center of the bounding rectangular frame is used as the origin; L represents a length of the bounding rectangular frame along the x-axis direction; W represents a width of the bounding rectangular frame along the y-axis direction; α represents a short-side size of the bounding rectangular frame; and k represents the fitting parameter value k ε [6, 8], which can be selected as needed.
[0078] 2) When the position range is the interior of the bounding rectangular frame and the polarity identification graph is the graph of a second type, such as a rectangular strip, a target formula of a second type corresponding to the target reference range is determined from a plurality of preset formulas of a second type, and the position coordinates of the polarity identification graph relative to the center of the bounding rectangular frame are calculated using the target formula of a second type, the size of the bounding rectangular frame, and the selected adjustment parameter value; wherein the plurality of preset formulas of a second type includes: a formula of a second type corresponding to a cross area A: (x,y)={−(L / 2−a / k),0}; a corresponding line equation: X=−(L / 2−a / k); a formula of a second type corresponding to a cross region B: (x,y)={0,−(W / 2−a / k)}; a corresponding line equation: y=−(W / 2−a / k) a formula of a second type corresponding to a cross area C: (x,y)={(L / 2−a / k),0}; a corresponding line equation: X=(L / 2−a / k); a formula of a second type corresponding to a cross area D: (x,y)={0,(W / 2−a / k)}; a corresponding line equation: y=(W / 2−a / k); where x, y respectively represent an x-coordinate and a y-coordinate of the center position coordinates of the polarity identification graph when the center of the bounding rectangular frame is used as the origin; L represents the length of the bounding rectangular frame along the x-axis direction; W represents the width of the bounding rectangular frame along the y-axis direction; α represents the short side size of the bounding rectangular frame; and k represents the fitting parameter value k ε [6, 8], which can be selected as needed.
[0079] It is understood that in this case, for each of the cross regions A and C, its length direction is along the Y-axis direction, the y-coordinate is 0, and only the x-coordinate needs to be calculated; for each of the cross regions B and D, its length direction is along the X-axis direction, the x-coordinate is 0, and only the y-coordinate needs to be calculated.
[0080] 3) When the position range is the exterior of the bounding rectangular frame and the polarity identification graph is the graph of a first type, such as a circle or a triangle, a target formula of a third type corresponding to the target reference range is determined from a plurality of preset formulas of a third type, and the position coordinates of the polarity identification graph relative to the center of the bounding rectangular frame are calculated using the target formula of a third type, the size of the bounding rectangular frame, and the selected adjustment parameter value; wherein the plurality of preset formulas of a third type includes: a formula of a third type corresponding to a subarea 1: (x,y)={−(L / 2−a / k),(W / 2+a / k)}or (x,y)={−(L / 2+a / k),(W / 2−a / k)}or (x,y)={−(L / 2+a / k),(W / 2+a / k)}; a formula of a third type corresponding to a subarea 2: (x,y)={−(L / 2+a / k),0}; a formula of a third type corresponding to a subarea 3: (x,y)={−(L / 2−a / k),−(W / 2+a / k)}or (x,y)={−(L / 2+a / k),−(W / 2−a / k)}or (x,y)={−(L / 2+a / k),−(W / 2+a / k)}; a formula of a third type corresponding to a subarea 4: (x,y)={0,(W / 2+a / k)}l; a formula of a third type corresponding to a subarea 6: (x,y)={0,−(W / 2+a / k)}; a formula of a third type corresponding to a subarea 7: (x,y)={(L / 2−a / k),(W / 2+a / k)}or (x,y)={(L / 2+a / k)},(W / 2−a / k)or (x,y)={(L / 2+a / k),(W / 2+a / k)}; a formula of a third type corresponding to a subrange 8: (x,y)={(L / 2+a / k),0}; a formula of a third type corresponding to a subarea 9: (x,y)={L / 2−a / k,−(W / 2+a / k)}or (x,y)={(L / 2+a / k),−(W / 2−a / k)}or (x,y)={(L / 2+a / k),−(W / 2)+a / k}; where x, y respectively represent an x-coordinate and a y-coordinate of the center position coordinates of the polarity identification graph when the center of the bounding rectangular frame is used as the origin; L represents a length of the bounding rectangular frame along the x-axis direction; W represents a width of the bounding rectangular frame along the y-axis direction; α represents a short-side size of the bounding rectangular frame; and k represents the fitting parameter value k ε [6, 8], which can be selected as needed.
[0081] It should be noted that when a sub-area has a plurality of formulas of a third type, one of the plurality of formulas of a third type can be selected for calculation as needed.
[0082] 4) When the position range is the exterior of the bounding rectangular frame and the polarity identification graph is the graph of a second type, such as a rectangular strip, a target formula of a fourth type corresponding to the target reference range is determined from a plurality of preset formulas of a fourth type, and the position coordinates of the polarity identification graph relative to the center of the bounding rectangular frame are calculated using the target formula of a fourth type, the size of the bounding rectangular frame, and the selected adjustment parameter value; wherein the plurality of preset formulas of a fourth type includes: a formula of a fourth type corresponding to a cross area A: (x,y)={−(L / 2+a / k),0}; a corresponding line equation: x=−(L / 2+a / k); a formula of a fourth type corresponding to a cross region B: (x,y)={0,−(W / 2+a / k)}; a corresponding line equation: y=−(W / 2+a / k); a formula of a fourth type corresponding to a cross area C: (x,y)={(L / 2+a / k),0}; a corresponding line equation: x=(L / 2+a / k); a formula of a fourth type corresponding to a cross area D: (x,y)={0,(W / 2+a / k)}; a corresponding line equation: y=(W / 2+a / k); where x, y respectively represent an x-coordinate and a y-coordinate of the center position coordinates of the polarity identification graph when the center of the bounding rectangular frame is used as the origin; L represents the length of the bounding rectangular frame along the x-axis direction; W represents the width of the bounding rectangular frame along the y-axis direction; α represents the short side size of the bounding rectangular frame; and k represents the fitting parameter value k ε [6, 8], which can be selected as needed.
[0083] It is understood that in this case, for each of the cross regions A and C, its length direction is along the Y-axis direction, the y-coordinate is 0, and only the x-coordinate needs to be calculated; for each of the cross regions B and D, its length direction is along the X-axis direction, the x-coordinate is 0, and only the y-coordinate needs to be calculated.
[0084] It should be understood that the above calculation formulas are determined for the nine-square grid division mode. When using modes other than the nine-square grid division mode, the preset formula corresponding to each target reference range in different situations can be constructed according to relevant mathematical geometry theories, which will not be described here with examples.
[0085] With respect to S6, in an optional embodiment, calculating the size of the polarity identification graph based on the size of the bounding rectangular frame and the polarity identification graph includes: 1, if the polarity label graph is a circle, determining a radius a / p to obtain the size of the polarity label graph; where p is ε [9, 18]; 2, if the polarity identification graph is a triangle, determining a circle R with radius a / p and obtaining an inscribed triangle of the circle R to obtain the size of the polarity identification graph; 3, if the polarity identification graph is a rectangular strip, for the cross regions A and C, determine a line length W and a line width a / p; for the cross regions B and D, determine the line length L and the line width a / p to obtain the size of the polarity identification graph.
[0086] In a preferred embodiment, p may be 12.
[0087] In an optional embodiment, the polarity identification graph is a first-type graph. If the first-type graph is not circular, when the first-type graph rotates around its center, the first-type graph may have different positional shapes relative to the bounding rectangular frame. At this time, the degree of rotation relative to a specific position of the bounding rectangular frame may be designed to some extent.
[0088] Take the situation that the polarity identifier graph is a triangle and the bounding rectangular frame is a rectangular frame of a component body with a polarity identifier to be designed as an example. In an optional embodiment, when the center of the triangle is located in an outer region of a corner of the bounding rectangular frame, a perpendicular bisector of the triangle, where a vertex of a target angle of the triangle facing the corner lies, is located on an extension line of a line connecting the center of the bounding rectangular frame and the vertex of the corner to one side of the triangle. With reference to Fig.5(a), the facing corner of the triangle is an upper left corner of the bounding rectangular frame, and the perpendicular bisector of the triangle is indicated by a dashed line. In another optional embodiment, an angle between the perpendicular bisector of the triangle, where the vertex of the target angle of the triangle facing the corner lies, and each of two extension lines of the corner on the side of the triangle is 45°. Referring to Fig. 5(b), the facing corner of the triangle is the upper left corner of the bounding rectangular frame, the perpendicular bisector of the triangle is indicated by the dashed line, and the two extension lines of the corner on the side of the triangle are indicated by dotted lines.
[0089] In an optional embodiment, when the center of the triangle is located near a side of the bounding rectangular frame, the perpendicular bisector of the triangle, where the vertex of the target angle of the triangle facing the corner lies, is perpendicular to the side. With reference to Fig. 5(c) the triangle faces the left side of the bounding rectangular frame and the vertical bisector of the triangle is indicated by a dashed line.
[0090] The polarity label graph is a non-circular graph of the first type, and its position shape based on the corresponding center position coordinates is not limited to the above examples. It can be reasonably selected during design according to needs. Furthermore, parameter information related to its position shape can also be assigned to the packaging of the component with the polarity label to be designed.
[0091] In an optional embodiment, after assigning the polarity identifier graph, the name of the target reference area, the position coordinates and the size of the polarity identifier graph to the packaging of the component with the polarity identifier to be designed as the attribute of the packaging, the method further comprises:
[0092] Setting a display attribute of the polarity identifier graph on a PCB based on a polarity identifier display requirement of the component having the polarity identifier to be designed, wherein the display attribute includes displaying or hiding.
[0093] That is, when the EDA packaging design of the polarity identifier is implemented using the method of embodiments of the present invention, optional concealment of the component's polarity identifier can be realized according to the display requirements of the polarity identifier. Then, the polarity of the component packaging can be used as an internal attribute of the component, rather than appearing in the form of a graph. In this way, problems such as difficulty, easy confusion, and identification errors in manual polarity identification due to the close spacing of components when checking the mounting direction using the internal attribute can be avoided.It is understood that when it is determined that the polarity identifier is displayed, the polarity identifier graph is drawn on a silk screen layer based on the attribute of the package obtained in S7; when it is determined that the polarity identifier is hidden, the polarity identifier graph is not drawn on the PCB silk screen layer, so that space can be reserved to make the PCB more dense, thereby manufacturing a smaller and more powerful product and facilitating product confidentiality.
[0094] In order to more intuitively and clearly understand each step of the method of the embodiments of the present invention, two specific examples are described in detail below. In the two examples, the bounding rectangular frame is the rectangular frame of the component body with the polarity identifier to be designed, and the nine-square grid division mode is used. The naming mode of each sub-region and each cross-region is Fig. 4 can be found. (1) Example 1
[0095] For S1, with reference to Fig.6(a) A polarity identifier is designed for a component with a package name "SOP16," and a bounding rectangular frame of the "SOP16" component is divided into nine sub-regions based on the nine-square grid division mode. A length of the bounding rectangular frame is along an X-axis direction and is represented by L = 10 mm, and a width of the bounding rectangular frame is along a Y-axis direction and is represented by W = 4 mm. The length L and the width W are compared, and the shorter side is taken as a.
[0096] For S2, it is determined that the polarity identification graph is a circle “◯” in the graph of the first type.
[0097] For S3, it is determined that a plurality of reference areas corresponding to the circular polarity identification graph are nine sub-areas, and the names of the nine sub-areas are defined.
[0098] The name definition results of the nine sub-areas are in Fig. 6(b). That is, the name of the sub-area in the upper left corner of the nine-square grid is 1, and from top to bottom and from left to right, the names of the sub-areas are 2, 3, 4, 5, 6, 7, 8, and 9, respectively.
[0099] For S4, the position span of the polarity identification graph is determined to be the interior of the bounding rectangular frame.
[0100] For S5, the target reference range is selected as a subrange 1 and L = 10 mm, W = 4 mm, α = 4 mm, k = 6 are inserted into the formula of the first type corresponding to subrange 1: (x,y)={−(L / 2−a / k),(W / 2−a / k)}, the position coordinates of the polarity identification graph are calculated to (x,y)=(−4.333,1.333).
[0101] The result of step S5 is in Fig. 6(c).
[0102] For S6, α = 4 mm, p = 12 are inserted into the calculation formula a / p for the radius of the circle, and the radius of the circle is calculated as r = 0.333 mm, then the size of the polarity identification graph is determined. The result of step S6 is shown in Fig. 6(d).
[0103] For S7, the polarity design of the component package "SOP16" is completed, and the polarity identification graph (i.e., "◯"), the name of the target reference region (i.e., subregion 1), the center position coordinates of the polarity identification graph (-4.333, 1.333), and the size of the polarity identification graph (i.e., the radius r of the circle: 0.333) are assigned to the package as the attribute of the package. Further details of the assigned attribute of the package can be found in Table 1. Table 1 Name of the packaging Polarity identification graph Name of the target reference range Center position coordinates of the polarity identification graph Size of the polarity identification graph SOP16 ◯ Sub-area 1 (-4,333, 1,333) Radius r of the circle = 0.333
[0104] Furthermore, if there is a need to display the polarity identifier, the polarity identifier is drawn on the screen printing layer based on the attribute of the package obtained in S7. (2) Example 2
[0105] For S1, with reference to Fig. 7(a) A polarity identifier is designed for a component with a package designation "SMD-1005*." The bounding rectangular frame of the "SMD-1005" component is divided into nine sub-regions based on the nine-square grid division mode. A length of the bounding rectangular frame is along the X-axis direction and is represented by L = 4.8 mm, and a width of the bounding rectangular frame is along the Y-axis direction and is represented by W = 2 mm. The length L and the width W are compared, and the shorter side is taken as a, α = 2 mm.
[0106] For S2, it is determined that the polarity identification graph is a rectangular strip “I” in the graph of the second type.
[0107] For S3, it is determined that the plurality of reference areas corresponding to the polarity identification graph of the rectangular stripe are four cross areas, and the names of the four cross areas are defined.
[0108] The name definition results of the four cross areas are in Fig. 7(b). That is, the name of the sub-area in the upper left corner of the nine-square grid is 1, and from top to bottom and from left to right, the names of the sub-areas are 2, 3, 4, 5, 6, 7, 8, and 9, respectively. Sub-areas 1, 2, and 3 are connected to form a cross-area A; sub-areas 3, 6, and 9 are connected to form a cross-area B; sub-areas 7, 8, and 9 are connected to form a cross-area C; and sub-areas 1, 4, and 7 are connected to form a cross-area D.
[0109] For S4, the position span of the polarity identification graph is determined to be the exterior of the bounding rectangular frame.
[0110] For S5, the target reference area is selected as the cross area C, and L = 4.8 mm, W = 2 mm, α = 2 mm, k = 6 are inserted into the fourth type formula corresponding to the cross area C: (x,y)={(L / 2+a / k),0}, then the position coordinates of the polarity identification graph are calculated to (x,y)=(2,733,0), and inserting the above parameters into the corresponding straight line equation x = (L / 2 + a / k) to x = 2.733.
[0111] For S6, according to the calculation formula for the length and width of the rectangular stripe: the line length is W, the line width is a / p; W = 2 mm, α = 4 mm, p = 12 are inserted to calculate the length of the rectangular stripe as I = 2 mm and the width as w = 0.167 mm, then the size of the polarity identification graph is determined. The results of steps S5 and S6 are shown in Fig. 7(c).
[0112] For S7, the polarity design of the component package "SMD-1005" is completed, and the polarity identification graph (i.e., "I"), the name of the target reference region (i.e., across region C), the center position coordinates (2.733, 0) of the polarity identification graph, the line equation (i.e., x = 2.733), and the size of the polarity identification graph (i.e., I = 2 mm, w = 0.167 mm) are assigned to the package as the package attribute. Further details of the assigned package attribute can be found in Table 2.
[00164] Table 2 Name of the packaging Polarity identification graph Name of the target reference range Center position coordinates of the polarity identification graph and line equation Size of the polarity identification graph SMD-1005 I Cross area C (2,733,0) x = 2,733 I = 2; w = 0.167
[0113] Furthermore, if there is a need to display the polarity identifier, the polarity identifier is drawn on the screen printing layer based on the attribute of the package obtained in S7.
[0114] In a second aspect corresponding to the above embodiments of the method, the embodiments of the present invention further provide a system for packaging polarity identifiers as described in Fig. 8. The system includes a partial area division module 801, a polarity identification graph selection module 802, a reference area name definition module 803, a position span determination module 804, a position coordinate calculation module 805, a size calculation module 806, and a packaging attribute assignment module 807.
[0115] The sub-area division module 801 is configured to divide a bounding rectangular frame of a component having a polarity identifier to be designed into a plurality of sub-areas based on a preset division mode and obtain a size of the bounding rectangular frame.
[0116] The polarity identifier graph selection module 802 is configured to determine a polarity identifier graph of the component having the polarity identifier to be designed.
[0117] The reference area name definition module 803 is configured to define names of a plurality of reference areas corresponding to the polarity identification graph. The plurality of reference areas are a plurality of partial areas or a plurality of cross areas; each of the cross areas is formed by connecting partial areas corresponding to one side of the bounding rectangular frame.
[0118] The position span determination module 804 is configured to determine that a position span of the polarity identification graph is an interior or an exterior of the bounding rectangular frame.
[0119] The position coordinate calculation module 805 is configured to determine a target reference area among the plurality of reference areas and calculate position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position range, and a name of the target reference area.
[0120] The size calculation module 806 is configured to calculate a size of the polarity identification graph based on the size of the connecting rectangular frame and the polarity identification graph.
[0121] The packaging attribute assignment module 807 is configured to assign the polarity identifier graph, the name of the target reference area, the position coordinates, and the size of the polarity identifier graph to a packaging of the component having the polarity identifier to be designed as an attribute of the packaging.
[0122] In a third aspect, embodiments of the present invention further provide an electronic device as described in Fig. 9. The electronic device includes a processor 901, a communication interface 902, a memory 903, and a communication bus 904. The processor 901, the communication interface 902, and the memory 903 communicate with each other via the communication bus 904.
[0123] The memory is configured to store computer programs.
[0124] The processor is configured to implement any method for packaging polarity identifiers provided in the first aspect of the embodiments of the present invention when executing computer programs stored in the memory.
[0125] The communication bus of the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, or the like.
[0126] The communication interface is used for communication between the electronic device and other devices.
[0127] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.
[0128] The processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; the processor may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), etc.
[0129] The method provided by the embodiments of the present invention can be applied to the electronic device. In particular, the electronic device can be a desktop computer, a portable computer, a smart mobile terminal, a server, etc., which is not limited here.
[0130] In a fourth aspect, embodiments of the present invention further provide a non-transitory computer-readable storage medium storing computer programs. When the computer programs are executed by a processor, any method for packaging polarity identifiers provided in the first aspect of the embodiments of the present invention may be implemented.
[0131] For the embodiments of the system / electronic device / storage medium, the specific implementation principles, processes and technical effects are similar to those of the embodiments of the method, which are not repeated here.
[0132] Those skilled in the art should understand that embodiments of the present invention may be provided as methods, apparatus (equipment), or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects, all collectively referred to herein as a "module" or a "system." Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.The computer programs are stored / distributed in a suitable medium, provided with or as part of other hardware, or may be distributed in other ways, such as via the Internet or other wired or wireless telecommunications systems.
[0133] In the description of the present invention, it is understood that the terms "first" and "second" are used for descriptive and distinguishing purposes only and should not be construed as indicating or implying relative importance or the number of the specified technical features. In the description of the present invention, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0134] The above contents are further detailed descriptions of the present invention in conjunction with specific preferred implementations. It should not be considered that the specific implementation of the present invention is limited to these descriptions. Those skilled in the art can integrate and combine various embodiments or examples described in this specification. For those of ordinary skill in the art, several simple derivations or substitutions can be made without departing from the concept of the present invention, which should be considered to fall within the scope of the present invention.
Claims
[1] Method for packaging polarity identifiers, characterized by that it includes: Dividing a bounding rectangular frame of a component having a polarity identifier to be designed into a plurality of sub-regions based on a preset division mode and obtaining a size of the bounding rectangular frame; Determining a polarity identifier graph of the component with the polarity identifier to be designed; Defining names of a plurality of reference regions corresponding to the polarity identification graph; wherein the plurality of reference regions is a plurality of partial regions or a plurality of cross regions; wherein each of the cross regions is formed by connecting partial regions corresponding to one side of the bounding rectangular frame; determining that a position span of the polarity identification graph is an interior or an exterior of the bounding rectangular frame; Determining a target reference area among the plurality of reference areas and calculating position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position range, and a name of the target reference area; Calculating a size of the polarity identification graph based on the size of the connecting rectangular frame and the polarity identification graph; and Assigning the polarity identifier graph, the name of the target reference area, the position coordinates, and the size of the polarity identifier graph to a package of the component with the polarity identifier to be designed as an attribute of the package. [2] Method according to claim 1, characterized bythat dividing a bounding rectangular frame of a component having a polarity identifier to be designed into a plurality of sub-areas based on a preset division mode comprises: Dividing the bounding rectangular frame of the component with the polarity identifier to be designed into nine sub-areas based on a nine-square grid division mode. [3] Method according to claim 2, characterized by that defining names of a plurality of reference ranges corresponding to the polarity identification graph includes: if the polarity identification graph is a graph of a first type, determining that the plurality of reference regions corresponding to the polarity identification graph correspond to the plurality of partial regions in a one-to-one manner, and defining names of the plurality of partial regions based on a preset partial region name marking mode; if the polarity identification graph is a graph of a second type, determining that the plurality of reference regions corresponding to the polarity identification graph is the plurality of cross regions, and defining names of the plurality of cross regions based on a preset cross region name marking mode; wherein the graph of the first type comprises a circle or a triangle; and the graph of the second type comprises a rectangular strip. [4] Method according to claim 3, characterized by , that: defining names of the plurality of subareas based on a preset subarea name marking mode includes: Defining a name for each of the plurality of sub-areas obtained according to a preset sub-area arrangement mode using first characters in a preset first character string; wherein the first character string comprises a number sequence (1, 2, 3, 4, 5, 6, 7, 8, 9); and the preset sub-area arrangement mode comprises a top-to-bottom and left-to-right arrangement mode of each sub-area; defining names of the plurality of cross areas based on a preset cross area name marking mode includes: Defining a name for each of the plurality of cross regions obtained according to a preset cross region arrangement mode using second characters in a preset second character string; wherein the second character string comprises a letter string (A, B, C, D); the preset cross region arrangement mode comprises a counterclockwise arrangement mode of the cross regions; wherein a cross region A consists of partial regions 1, 2 and 3, a cross region B consists of partial regions 3, 6 and 9, a cross region C consists of partial regions 7, 8 and 9, and a cross region D consists of partial regions 1, 4 and 7. [5] Method according to claim 4, characterized by that calculating position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position span, and a name of the target reference area comprises: if the position range is the interior of the bounding rectangular frame and the polarity identification graph is the graph of a first type, determining a target formula of a first type corresponding to the target reference range from a plurality of preset formulas of a first type and calculating the position coordinates of the polarity identification graph relative to a center of the bounding rectangular frame using the target formula of a first type, the size of the bounding rectangular frame, and a selected fitting parameter value; wherein the plurality of preset formulas of a first type comprises: a formula of a first type corresponding to a subarea 1: (x,y)={−(L2−ak),(W2−ak)}; a formula of a first type corresponding to a subarea 2: (x,y)={−(L2−ak),0}; a formula of a first type corresponding to a subarea 3: (x,y)={−(L2−ak),−(W2−ak)}; a formula of a first type corresponding to a subarea 4: (x,y)={0,(W2−ak)}; a formula of a first type corresponding to a subarea 6: (x,y)={0,−(W2−ak)}; a formula of a first type corresponding to a subarea 7: (x,y)={(L2−ak),(W2−ak)}; a formula of a first type corresponding to a subrange 8: (x,y)={(L2−ak),0}; a formula of a first type corresponding to a subrange 9: (x,y)={(L2−ak),−(W2−ak)}; where x, y respectively represent an x-coordinate and a y-coordinate of center position coordinates of the polarity label graph with the center of the bounding rectangular frame as the origin; L represents a length of the bounding rectangular frame along an x-axis direction; W represents a width of the bounding rectangular frame along a y-axis direction; α represents a short-side size of the bounding rectangular frame; and k represents the fitting parameter value k ∈ [6,8]. [6] Method according to claim 4, characterized by that calculating position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position span, and a name of the target reference area comprises: if the position range is the interior of the bounding rectangular frame and the polarity identification graph is the graph of a second type, determining a target formula of a second type corresponding to the target reference range from a plurality of preset formulas of a second type and calculating the position coordinates of the polarity identification graph relative to the center of the bounding rectangular frame using the target formula of a second type, the size of the bounding rectangular frame, and the selected adjustment parameter value; wherein the plurality of preset formulas of a second type comprises: a formula of a second type corresponding to a cross area A: (x,y)={−(L2−ak),0}; a corresponding line equation: x=−(L2−ak); a formula of a second type corresponding to a cross region B: (x,y)={0,−(W2−ak)}; a corresponding line equation: y=−(W2−ak); a formula of a second type corresponding to a cross area C: (x,y)={(L2−ak),0}; a corresponding line equation: x=(L2−ak); a formula of a second type corresponding to a cross area D: (x,y)={0,(W2−ak)}; a corresponding line equation: y=(W2−ak); where x, y represent the x-coordinate and y-coordinate of the center position coordinates of the polarity label graph with the center of the bounding rectangular box as the origin; L represents the length of the bounding rectangular box along the x-axis direction; W represents the width of the bounding rectangular box along the y-axis direction; α represents the short side size of the bounding rectangular box; and k represents the fitting parameter value k ∈ [6,8]. [7] Method according to claim 4, characterized bythat calculating position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position span, and a name of the target reference area comprises: if the position range is the exterior of the bounding rectangular frame and the polarity identification graph is the graph of a first type, determining a target formula of a third type corresponding to the target reference range from a plurality of preset formulas of a third type and calculating the position coordinates of the polarity identification graph relative to the center of the bounding rectangular frame using the target formula of a third type, the size of the bounding rectangular frame, and the selected adjustment parameter value; wherein the plurality of preset formulas of a third type includes: a formula of a third type corresponding to a subarea 1: (x,y)={−(L2−ak),(W2+ak)} or (x,y)={−(L2−ak),(W2−ak)} or (x,y)={−(L2−ak),(W2+ak)}; a formula of a third type corresponding to a subarea 2: (x,y)={−(L2−ak),0}; a formula of a third type corresponding to a subarea 3: (x,y)={−(L2−ak),−(W2+ak)} or (x,y)={−(L2+ak),−(W2−ak)} or (x,y)={−(L2+ak),−(W2+ak)}; a formula of a third type corresponding to a subarea 4: (x,y)={0,(W2+ak)}; a formula of a third type corresponding to a subarea 6: (x,y)={0,−(W2+ak)}; a formula of a third type corresponding to a subarea 7: (x,y)={(L2−ak),(W2+ak)} or (x,y)={(L2+ak),(W2−ak)} or (x,y)={(L2+ak),(W2+ak)}; a formula of a third type corresponding to a subrange 8: (x,y)={(L2−ak),0}; a formula of a third type corresponding to a subarea 9: (x,y)={(L2−ak),−(W2+ak)} or (x,y)={(L2−ak),−(W2−ak)} or (x,y)={(L2+ak),−(W2+ak)}; where x, y respectively represent an x-coordinate and a y-coordinate of center position coordinates of the polarity label graph with the center of the bounding rectangular frame as the origin; L represents a length of the bounding rectangular frame along an x-axis direction; W represents a width of the bounding rectangular frame along a y-axis direction; α represents a short-side size of the bounding rectangular frame; and k represents the fitting parameter value k ∈ [6,8]. [8] Method according to claim 4, characterized bythat calculating position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position span, and a name of the target reference area comprises: if the position range is the exterior of the bounding rectangular frame and the polarity identification graph is the graph of a second type, determining a target formula of a fourth type corresponding to the target reference range from a plurality of preset formulas of a fourth type and calculating the position coordinates of the polarity identification graph relative to the center of the bounding rectangular frame using the target formula of a fourth type, the size of the bounding rectangular frame, and the selected adjustment parameter value; wherein the plurality of preset formulas of a fourth type includes: a formula of a fourth type corresponding to a cross area A: (x,y)={−(L2+ak),0}; a corresponding line equation: x=−(L2+ak); a formula of a fourth type corresponding to a cross region B: (x,y)={0,−(W2+ak)}; a corresponding line equation: y=−(W2+ak); a formula of a fourth type corresponding to a cross area C: (x,y)={(L2+ak),0}; a corresponding line equation: x=(L2+ak); a formula of a fourth type corresponding to a cross area D: (x,y)={0,(W2+ak)}; a corresponding line equation: y={(W2+ak)}; where x, y represent the x-coordinate and y-coordinate of the center position coordinates of the polarity label graph with the center of the bounding rectangular box as the origin; L represents the length of the bounding rectangular box along the x-axis direction; W represents the width of the bounding rectangular box along the y-axis direction; α represents the short side size of the bounding rectangular box; and k represents the fitting parameter value k ∈ [6,8]. [9] Method according to one of claims 1-8, characterized by that calculating a size of the polarity identification graph based on the size of the connecting rectangular frame and the polarity identification graph comprises: if the polarity identification graph is a circle, determining a radius ap, to obtain the size of the polarity label graph; where p ∈ [9,18]; if the polarity identification graph is a triangle, obtaining a circle R based on the radius ap and obtaining an inscribed triangle of the circle R to obtain the size of the polarity identification graph; and if the polarity identification graph is a rectangular strip, for each of the cross areas A and C, determine that a line length W and a line width ap is; for each of the cross regions B and D, determine that the line length L and the line width ap to obtain the size of the polarity identification graph. [10] Method according to claim 1, characterized by that the method, after assigning the polarity identifier graph, the name of the target reference area, the position coordinates and the size of the polarity identifier graph to the packaging of the component with the polarity identifier to be designed as the attribute of the packaging, further comprises: Setting a display attribute of the polarity identifier graph on a printed circuit board based on a polarity identifier display requirement of the component having the polarity identifier to be designed, wherein the display attribute comprises displaying or hiding. [11] Polarity identification packaging system comprising: a sub-area division module configured to divide a bounding rectangular frame of a component having a polarity identifier to be designed into a plurality of sub-areas based on a preset division mode and obtain a size of the bounding rectangular frame; a polarity identifier graph selection module configured to determine a polarity identifier graph of the component having the polarity identifier to be designed; a reference area name definition module configured to define names of a plurality of reference areas corresponding to the polarity identification graph; wherein the plurality of reference areas is a plurality of partial areas or a plurality of cross areas; wherein each of the cross areas is formed by connecting partial areas corresponding to one side of the bounding rectangular frame; a position span determination module configured to determine that a position span of the polarity identification graph is an inside or an outside of the bounding rectangular frame; a position coordinate calculation module configured to determine a target reference area among the plurality of reference areas and calculate position coordinates of the polarity identification graph based on the size of the bounding rectangular frame, the polarity identification graph, the position range, and a name of the target reference area; a size calculation module configured to calculate a size of the polarity identification graph based on the size of the connecting rectangular frame and the polarity identification graph; and a packaging attribute assignment module configured to assign the polarity identifier graph, the name of the target reference area, the position coordinates, and the size of the polarity identifier graph to a packaging of the component having the polarity identifier to be designed as an attribute of the packaging. [12] An electronic device comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus; the memory is configured to store computer programs; and the processor is configured to implement the method described in any one of claims 1-10 when the programs stored in the memory are executed. [13] Computer-readable storage medium, characterized by , that: the computer-readable storage medium stores computer programs, and when the computer programs are executed by a processor, the method described in any one of claims 1-10 is implemented.