Package polarity mark design method, system, electronic device and storage medium

The digital design of package polarity marks on PCBs through sub-region division and attribute assignment addresses manual identification issues, improving accuracy and efficiency in component orientation verification.

JP2025527178AActive Publication Date: 2025-08-20VAYO SHANGHAI TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2025504282
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-08-03
Filing Date
2022-08-09
Publication Date
2025-08-20
Estimated Expiration
2042-08-09

AI Technical Summary

Technical Problem

Current PCB design methods face challenges in accurately identifying component polarity due to manual verification, leading to misidentification and errors, especially on high-density boards, resulting in circuit malfunctions and economic losses.

Method used

A digital method for designing package polarity marks involves dividing a circumscribing rectangular frame into sub-regions, determining a polarity mark pattern, calculating position coordinates, and assigning these attributes to the component package during the EDA design stage, eliminating the need for manual identification.

Benefits of technology

This method improves polarity identification accuracy and efficiency by digitally storing polarity mark information in the PCB design file, reducing manual errors and enhancing component orientation verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025527178000001_ABST
    Figure 2025527178000001_ABST
Patent Text Reader

Abstract

The present invention discloses a package polarity mark design method, system, electronic device, and storage medium. The method includes: dividing the circumscribing rectangular frame of a component for which polarity mark design is to be performed into multiple subregions according to a predetermined division scheme, obtaining the size of the circumscribing rectangular frame; determining a polarity mark pattern; defining names of multiple reference regions; determining whether the position range of the polarity mark pattern is inside or outside the circumscribing rectangular frame; determining a target reference region; calculating the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference region; calculating the size of the polarity mark pattern; and assigning the polarity mark pattern, the name of the target reference region, the position coordinates, and the polarity mark pattern size to the package of the component for which polarity mark design is to be performed as package attributes. This method can solve the conventional drawbacks of difficulty in polarity identification and identification errors caused by manually verifying component polarity through identification and matching.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to the field of PCB design, and more particularly to a package polarity mark design method, system, electronic device and storage medium. [Background technology]

[0002] With the development of the integrated circuit and electronics industries, miniaturization, high density, multi-functionality, and digitalization are the current trends in PCB design. Component package design is a crucial step in PCB design, and the quality of the design directly impacts the subsequent manufacturing process and the final product quality. Furthermore, during the component package design process, some components, such as electrolytic capacitors, diodes, bipolar transistors, and integrated circuits (ICs), require polarity. The industry generally marks components that require polarity. These markings indicate the location of the component's positive and negative terminals or first lead. When mounting polarized components on a PCB, they must be mounted in a specific orientation to ensure that the component's positive and negative terminals or first lead are aligned with the actual circuit on the PCB. Incorrect mounting orientation can result in circuit disconnections, short circuits, component body burns, and circuit malfunctions.

[0003] Currently, the industry designs component package polarity marks on PCB screen printing layers, typically using symbols such as "○", "▲", and "+". Furthermore, manual identification and verification is used to check the mounting orientation. However, on high-density PCBs, the distance between two components is very close, making it difficult to identify polarity, leading to confusion and misidentification. This ultimately leads to product malfunctions and the loss of functionality of the entire PCBA, resulting in economic losses.

[0004] Therefore, for components with polarity, how to develop a digitalized method for realizing the polarity design of component packages in EDA (Electronic Design Automation) design, and how to solve the drawbacks of the conventional technology that the polarity of components is confirmed by manual identification and matching, resulting in difficulty in identifying polarity and identification errors, has become an important technical challenge in the PCB package design stage. Summary of the Invention [Problem to be solved by the invention]

[0005] SUMMARY OF THE INVENTION In order to solve the above problems existing in the prior art, the present invention provides a package polarity mark design method, system, electronic device and storage medium. [Means for solving the problem]

[0006] The technical problem to be solved by the present invention is achieved by the following technical means. In a first aspect, an embodiment of the present invention provides a method for designing a package polarity mark. The method includes: dividing a circumscribing rectangular frame of a polarity mark design target component into a plurality of sub-regions according to a predetermined division scheme, and acquiring the size of the circumscribing rectangular frame; determining a polarity mark pattern for the polarity mark design target component; defining names of a plurality of reference regions corresponding to the polarity mark pattern, the plurality of reference regions being the plurality of sub-regions or a plurality of transverse regions, each transverse region being formed by a series of a plurality of sub-regions corresponding to one side of the circumscribing rectangular frame; determining whether the position range of the polarity mark pattern is inside or outside the circumscribing rectangular frame; determining one target reference region from the plurality of reference regions, and calculating position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference region; calculating the size of the polarity mark pattern based on the size of the circumscribing rectangular frame and the polarity mark pattern; and assigning the polarity mark pattern, the name of the target reference region, the position coordinates, and the size of the polarity mark pattern to a package of the polarity mark design target component as attributes of the package.

[0007] In a second aspect, an embodiment of the present invention provides a package polarity mark design system, which includes a sub-area division module that divides a circumscribing rectangular frame of a component for which a polarity mark is to be designed into a plurality of sub-areas according to a predetermined division scheme and acquires the size of the circumscribing rectangular frame, a polarity mark pattern selection module that determines a polarity mark pattern for the component for which a polarity mark is to be designed, a reference area name definition module that defines names of a plurality of reference areas corresponding to the polarity mark pattern, the plurality of reference areas being the plurality of sub-areas or a plurality of crossing areas, each crossing area being formed by a series of a plurality of sub-areas corresponding to one side of the circumscribing rectangular frame, and a reference area name definition module that determines whether the position range of the polarity mark pattern is inside or outside the circumscribing rectangular frame. a position coordinate calculation module that determines one target reference area from the plurality of reference areas and calculates the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range and the name of the target reference area; a size calculation module that calculates the size of the polarity mark pattern based on the size of the circumscribing rectangular frame and the polarity mark pattern; and a package attribute assignment module that assigns the polarity mark pattern, the name of the target reference area, the position coordinates and the size of the polarity mark pattern to the package of the polarity mark design target component as attributes of the package.

[0008] In a third aspect, an embodiment of the present invention provides an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other via the communication bus.

[0009] The memory is used to store computer programs.

[0010] When the processor executes the program stored in the memory, it implements the steps of the package polarity mark design method provided in the embodiment of the present invention.

[0011] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored therein, which, when executed by a processor, performs steps of the package polarity mark design method provided in the embodiment of the present invention. [Effects of the Invention]

[0012] The beneficial effects of the present invention are as follows:

[0013] In the package polarity mark design method provided in this embodiment of the present invention, the polarity mark pattern, target reference area, position coordinates, and polarity mark pattern size of the component for which the polarity mark is designed are determined digitally during the initial EDA design stage. This information is then assigned to the package of the component for which the polarity mark is designed, and stored as attributes of the package itself in the PCB electronic design file. When checking the mounting orientation, the polarity mark-related information can be identified by searching the package attributes of the polarity component in the PCB electronic design file, thereby eliminating the need for manual determination. This avoids problems such as polarity identification difficulties and identification errors that occur when manually identifying and matching component polarities due to components being too close to each other, thereby improving the accuracy and efficiency of polarity identification. [Brief explanation of the drawings]

[0014] [Figure 1] FIG. 1 is a schematic flow chart of a method for designing a package polarity mark provided in an embodiment of the present invention. [Figure 2] FIG. 2 is a schematic diagram of a case where the circumscribing rectangular frame of the polarity mark design target component is divided into nine sections according to a division method in the embodiment of the present invention. [Figure 3] FIG. 3 is a schematic diagram for understanding sub-regions and cross-sectional regions in an embodiment of the present invention. [Figure 4]FIG. 4 is a schematic diagram of the name labeling scheme for each sub-area and crossing area in an embodiment of the present invention. [Figure 5(a)] Figure 5(a) shows an example of the positional form of the triangle relative to the circumscribing rectangular frame, showing an example in which the polarity mark pattern in an embodiment of the present invention is a triangle and the circumscribing rectangular frame is the rectangular frame of the main body of the component for which the polarity mark is designed. [Figure 5(b)] Figure 5(b) shows an example of the positional form of the triangle relative to the circumscribing rectangular frame, showing an example in which the polarity mark pattern in an embodiment of the present invention is a triangle and the circumscribing rectangular frame is the rectangular frame of the main body of the component for which the polarity mark is designed. [Figure 5(c)] Figure 5(c) shows an example of the positional form of the triangle relative to the circumscribing rectangular frame, showing an example in which the polarity mark pattern in an embodiment of the present invention is a triangle and the circumscribing rectangular frame is the rectangular frame of the main body of the component for which the polarity mark is designed. [Figure 6(a)] FIG. 6(a) is a diagram showing the results of some steps of Example 1 in an embodiment of the present invention. [Figure 6(b)] FIG. 6(b) is a diagram showing the results of some steps of Example 1 in the embodiment of the present invention. [Figure 6(c)] FIG. 6(c) is a diagram showing the results of some steps of Example 1 in the embodiment of the present invention. [Figure 6(d)] FIG. 6(d) is a diagram showing the results of some steps of Example 1 in an embodiment of the present invention. [Figure 7(a)] FIG. 7(a) is a diagram showing the results of some steps of Example 2 in an embodiment of the present invention. [Figure 7(b)] FIG. 7(b) is a diagram showing the results of some steps of Example 2 in the embodiment of the present invention. [Figure 7(c)] FIG. 7(c) is a diagram showing the results of some steps of Example 2 in the embodiment of the present invention. [Figure 8] FIG. 8 is a schematic structural diagram of a package polarity mark design system provided in an embodiment of the present invention. [Figure 9] FIG. 9 is a schematic structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0015] The following describes the technical means in the embodiments of the present invention in a clear and concise manner in combination with the drawings of the embodiments of the present invention. It should be noted that the embodiments described here are only some of the embodiments of the present invention, and are not all of the embodiments.

[0016] To address the above-mentioned shortcomings in the prior art, embodiments of the present invention provide a package polarization mark design method, system, electronic device and storage medium.

[0017] It should be noted that the solutions provided by the embodiments of the present invention can be integrated into conventional EDA package design software, including but not limited to Cadence Allegro, Altium Designer, Mentor Pads, etc.

[0018] In a first aspect, an embodiment of the present invention provides a method for designing a package polarity mark. As shown in Figure 1, the method may include the following steps:

[0019] S1: Divide the circumscribing rectangular frame of the polarity mark design target component into a plurality of sub-regions according to a predetermined division method, and obtain the size of the circumscribing rectangular frame.

[0020] When designing a package polarity mark for any component for which polarity mark design is required, a circumscribing rectangular frame of the component for which polarity mark design is required may be obtained from the attribute information. The circumscribing rectangular frame may be a rectangular frame of the main body of the component for which polarity mark design is required, or a rectangular frame including the main body of the component for which polarity mark design is required and the corresponding pads. This can be selected as needed during design.

[0021] In an embodiment of the present invention, the circumscribing rectangle is divided into a plurality of sub-regions in order to form different regions inside and even outside the rectangle, which is convenient for later use in determining the positions of polarity marks, as will be described in detail later.

[0022] In order to improve the accuracy of determining the polarity mark position, it may be considered to divide into as many sub-regions as possible, but it is also necessary to consider reducing the computational complexity as much as possible. Therefore, in an optional embodiment, dividing the circumscribing rectangular frame of the polarity mark design target component into a plurality of sub-regions according to the above-mentioned predetermined division scheme may include dividing the circumscribing rectangular frame of the polarity mark design target component into nine sub-regions according to a nine-section division scheme.

[0023] The specific process of the nine-section division method includes the following: for each pair of opposite sides of the circumscribing rectangular frame, two parallel lines that are perpendicular and extend beyond the distance between the pair of opposite sides are used to divide each pair of opposite sides into thirds, thereby dividing the circumscribing rectangular frame into nine sub-regions. The four lines used for division extend infinitely to both sides. Therefore, except for the central sub-region, the range of each sub-region is not limited to the interior of the rectangular frame, but includes the extended region defined by the two dividing lines corresponding to that sub-region. In other words, the area along the extension of a sub-region also belongs to that sub-region.

[0024] Specifically, please refer to Figure 2 for understanding. The solid-line rectangular frame in Figure 2 is the rectangular frame of the main body of the component for which the polarity mark is designed, and the dotted-line rectangular frame is the rectangular frame including the main body of the component for which the polarity mark is designed and the corresponding pad. The X-axis direction of the rectangular frame is the length direction, and the length is indicated by L. The Y-axis direction of the rectangular frame is the width direction, and the width is indicated by W. The shorter of the length L and width W is designated as a. The circle indicates the center of the rectangular frame.

[0025] Of course, the predetermined division method in the embodiment of the present invention is not limited to the nine-section division method described above. For each pair of opposite sides of the circumscribing rectangular frame, one parallel line that is perpendicular to the pair of opposite sides and exceeds the distance between the pair of opposite sides may be used to divide the circumscribing rectangular frame into four sub-regions. Alternatively, for each pair of opposite sides of the circumscribing rectangular frame, three parallel lines that are perpendicular to the pair of opposite sides and exceed the distance between the pair of opposite sides may be used to divide the circumscribing rectangular frame into sixteen sub-regions. Alternatively, the circumscribing rectangular frame may be divided into multiple sub-regions by dividing each side of the circumscribing rectangular frame unevenly using intersecting lines that are parallel to the sides of the circumscribing rectangular frame.

[0026] S2: A polarity mark pattern for the polarity mark design target component is determined.

[0027] In the embodiment of the present invention, any pattern commonly used in EDA package design may be selected as the polarity mark pattern of the polarity mark design target component.

[0028] In an alternative embodiment, the types of polarity mark patterns include a first pattern and a second pattern.

[0029] The first pattern may include a circle or a triangle. The display effect of the circle may be "◯". The triangle may be an equilateral triangle, and the display effect may be "▲". Of course, the first pattern may further include shapes such as "+". The second pattern may also include a line segment.

[0030] When specifically designing, either the first pattern or the second pattern may be selected as the polarity mark pattern of the polarity mark design target component, taking into consideration differences in the types of the polarity mark design target component, a reasonable PCB layout design, and satisfying design requirements such as clarity and aesthetic beauty.

[0031] For example, in the case of a BGA device, a circle or a triangle may be selected as the first pattern, and in the case of a diode, a line segment may be selected as the second pattern.

[0032] It should be noted that the order of execution of S2 and S1 may be reversed.

[0033] S3: Define names of a plurality of reference areas corresponding to the polarity mark patterns.

[0034] The plurality of reference regions are the plurality of sub-regions or the plurality of cross-sectional regions, each of which is formed by connecting a plurality of sub-regions corresponding to one side of the circumscribing rectangular frame.

[0035] To facilitate understanding of the concepts of subregions and transverse regions, FIGS. 2 and 3 are used in combination. FIG. 3 is a schematic diagram for understanding subregions and transverse regions in an embodiment of the present invention. FIG. 3 illustrates a case in which the circumscribing rectangular frame of the polarity mark design target component is the rectangular frame of the polarity mark design target component's main body. The following description also illustrates three subregions corresponding to the left short side of the circumscribing rectangular frame, which is divided into nine sections. Note that these three subregions are shown with different hatching, but the hatched areas in the figure do not limit the scope of the subregions. As is clear from FIG. 3, each subregion not only includes the internal area of the circumscribing rectangular frame but also includes an extended area defined by the corresponding two dividing lines. These three subregions can be connected to form a single transverse region corresponding to the left short side of the circumscribing rectangular frame. Similarly, for the remaining three sides of the circumscribing rectangular frame, the transverse region corresponding to each side is formed by connecting the three subregions on that side. In other words, there are a total of four transverse regions for the nine subregions. The remaining methods for determining the cross-sectional area will not be illustrated and explained one by one here.

[0036] In an alternative embodiment, the polarity mark patterns and the reference areas have a predetermined correspondence relationship. For any polarity mark pattern, the multiple reference areas are multiple sub-areas or multiple cross-areas. Therefore, defining the names of the multiple reference areas corresponding to the polarity mark patterns may include:

[0037] (1) When the polarity mark pattern is a first pattern, the plurality of reference areas corresponding to the polarity mark pattern are identified as corresponding one-to-one to the plurality of sub-areas, and names of the plurality of sub-areas are defined based on a predetermined sub-area name labeling method.

[0038] (2) When the polarity mark pattern is a second pattern, the multiple reference areas corresponding to the polarity mark pattern are identified as the multiple crossing areas, and the names of the multiple crossing areas are defined based on a predetermined crossing area name labeling method.

[0039] For ease of comparison and understanding, we will focus on the above two situations.

[0040] Specifically, when the polarity mark pattern is a first pattern, the plurality of reference regions corresponding to the polarity mark pattern are identified as the plurality of sub-regions. For example, in the case of nine sections, when the polarity mark pattern is a first pattern, nine sub-regions become nine reference regions.

[0041] Furthermore, when the polarity mark pattern is the second pattern, the multiple reference areas corresponding to the polarity mark pattern are identified as the multiple crossing areas. For example, in the case of nine sections, when the polarity mark pattern is the second pattern, four crossing areas become four reference areas.

[0042] The name labeling method of the predetermined sub-areas or cross-sectional areas may be any method that does not overlap the name labels, so as to achieve the purpose of distinguishing each sub-area from another or each cross-sectional area from another, including, but not limited to, random labeling, labeling according to a certain order, etc. Therefore, no particular limitation is imposed here.

[0043] S4: Determine whether the position range of the polarity mark pattern is inside or outside the circumscribing rectangular frame.

[0044] In this step, it is possible to select whether the position range of the polarity mark pattern is inside or outside the circumscribing rectangular frame based on certain requirements. The reason for selecting the position range of the polarity mark pattern outside the circumscribing rectangular frame (i.e., marking the polarity marks outside the circumscribing rectangular frame) is mainly to make it easier to match the polarity points on the actual component with the polarity points on the PCB screen printing. In addition, when there is a large amount of excess space in the PCB layout, it is also possible to select the position range of the polarity mark pattern outside the circumscribing rectangular frame. Of course, factors for selecting the position range of the polarity mark pattern may also include the aesthetics of the layout.

[0045] S5: Determine one target reference area from the plurality of reference areas, and calculate the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference area.

[0046] In this step, according to the design requirements, one of the multiple reference areas corresponding to the polarity mark pattern may be arbitrarily selected as the range of the target reference area, and is not limited here. After the target reference area is determined, the name of the target reference area can be acquired for later use.

[0047] In an embodiment of the present invention, for different situations constituted by combinations of whether the position range is inside or outside the circumscribing rectangular frame, whether the polarity mark pattern is the first pattern or the second pattern, and whether the target reference area is one of the multiple sub-areas or one of the multiple cross-sectional areas, a calculation formula for the center position coordinates (x, y) of the polarity mark pattern relative to the origin in various situations may be pre-established based on mathematical and geometrical theories, using the center of the circumscribing rectangular frame as the origin and the size of the circumscribing rectangular frame. Thus, in step S5, the center position coordinates (x, y) of the polarity mark pattern can be calculated by selecting a corresponding pre-defined formula for any situation.

[0048] The predetermined formulas for the various situations described above can be reasonably set as needed, and no specific restrictions are imposed here. Note that, regarding the nine-zone division method, the predetermined formulas for the various situations will be explained in the specific examples below.

[0049] S6: Calculate the size of the polarity mark pattern based on the size of the circumscribing rectangular frame and the polarity mark pattern.

[0050] In this step, the corresponding size may be calculated based on the specific shape of the polarity mark pattern in accordance with a calculation formula of predetermined parameters.

[0051] For example, if the polarity mark pattern is circular, the formula for calculating the predetermined parameter may be a formula for calculating the radius of the circle, and the size of the circular polarity mark pattern can be determined by calculating the radius of the circle using this formula.

[0052] Furthermore, for example, if the polarity mark pattern is triangular, the formula for calculating the predetermined parameters may be a formula for calculating the radius of a circle. After determining a circle from the radius calculated using this formula, the size of the triangular polarity mark pattern can be determined by finding the inscribed triangle of the circle.

[0053] Furthermore, for example, if the polarity mark pattern is a line segment, the formula for calculating the predetermined parameters may be a formula for calculating the line length and line width, and by using this formula to calculate the length and width of the line segment, the size of the polarity mark pattern, which is a line segment, can be determined.

[0054] Naturally, for polarity mark patterns of other shapes, calculation formulas for main parameters that enable the size of the pattern to be determined may be constructed in advance, but will not be illustrated and described here.

[0055] S7: The polarity mark pattern, the name of the target reference area, the position coordinates, and the size of the polarity mark pattern are assigned to the package of the polarity mark design target component as attributes of the package.

[0056] As can be seen, in this step, the polarity mark pattern, the name of the target reference area, the position coordinates, and the size of the polarity mark pattern are assigned to the package of the polarity mark design target component as package attributes, thereby completing the EDA package polarity mark design of the polarity mark design target component, and then the attributes can be retained in the electronic design file of the PCB.

[0057] As can be seen from the above, the package polarity mark design method provided in the embodiment of the present invention uses a digital method in the initial EDA design stage to determine the polarity mark pattern, target reference area, position coordinates, and polarity mark pattern size of the component for which the polarity mark is designed. This information can then be assigned to the package of the component for which the polarity mark is designed, and stored as attributes of the package itself in the PCB electronic design file. When checking the mounting orientation, the package attributes of the polarity component in the PCB electronic design file can be searched to identify the relevant information about the polarity mark and determine the polarity orientation of the component, eliminating the need for manual determination. This avoids problems such as polarity identification difficulties and identification errors that occur when manually identifying and matching component polarities due to components being too close to each other, thereby improving the accuracy and efficiency of polarity identification.

[0058] Next, some alternative embodiments of the present invention will be specifically described.

[0059] In an optional embodiment, defining names of the plurality of sub-regions based on the above-described predetermined sub-region name labeling scheme includes defining names in order for each sub-region obtained from the plurality of sub-regions based on the predetermined sub-region ordering using each first character in a predetermined array of first characters.

[0060] To make it easier to understand the solution, the following describes the case of a nine-section division method.

[0061] The arrangement of the first characters may be an arrangement of numbers (1, 2, 3, 4, 5, 6, 7, 8, 9). The predetermined arrangement of the sub-areas may include an arrangement of the sub-areas from top to bottom and from left to right. Of course, in the case of nine sub-areas divided by a nine-section division method, the predetermined arrangement of the sub-areas may include an arrangement of the sub-areas from left to right and from top to bottom.

[0062] Defining names of the plurality of traversal areas based on the above-mentioned predetermined traversal area name labeling method includes defining names in order for each traversal area obtained from the plurality of traversal areas based on the predetermined arrangement of the traversal areas using each second character in the predetermined arrangement of second characters.

[0063] The arrangement of the second characters may be an arrangement of letters (A, B, C, D). The predetermined arrangement of the crossing areas includes an arrangement of the crossing areas in a counterclockwise direction. For example, the four crossing areas are named A, B, C, D, starting from the left crossing area. Naturally, crossing area A may be any of the remaining three crossing areas.

[0064] In the case of four divided transverse regions, the predetermined arrangement of the transverse regions may include a clockwise arrangement of each transverse region, or an arrangement from top to bottom, left to right, and left to right, top to bottom, etc.

[0065] Preferred embodiments are provided below by way of example.

[0066] The first character arrangement includes a sequence of numbers (1, 2, 3, 4, 5, 6, 7, 8, 9), and the predetermined sub-area arrangement includes a top-to-bottom, left-to-right arrangement of the sub-areas. The second character arrangement includes a sequence of letters (A, B, C, D), and the predetermined transverse area arrangement includes a counterclockwise arrangement of the transverse areas. Transverse area A is composed of sub-areas 1, 2, and 3, transverse area B is composed of sub-areas 3, 6, and 9, transverse area C is composed of sub-areas 7, 8, and 9, and transverse area D is composed of sub-areas 1, 4, and 7. For details, please refer to FIG. 4.

[0067] In S5, the position coordinates of the polarity mark pattern are calculated based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range and the name of the target reference area. The center of the circumscribing rectangular frame is set as the origin (0,0), and the size of the circumscribing rectangular frame is used to calculate the center position coordinates (x,y) of the polarity mark pattern relative to the origin, which are pre-constructed in a Cartesian coordinate system for different situations. Based on the differences in the calculation formulas, the following several alternative embodiments may be employed:

[0068] 1) If the position range is within the circumscribing rectangular frame and the polarity mark pattern is the first pattern such as a circle or a triangle, a first target formula corresponding to the target reference area is determined from a plurality of predetermined first formulas, and the position coordinates of the polarity mark pattern relative to the center of the circumscribing rectangular frame are calculated using the first target formula, the size of the circumscribing rectangular frame, and the value of a selected adjustment parameter.

[0069] The plurality of predetermined first formulas include: The first formula corresponding to subregion 1: (x,y)={-(L / 2-a / k),(W / 2-a / k)}, The first formula corresponding to subregion 2: (x,y)={-(L / 2-a / k),0}, The first formula corresponding to subregion 3: (x, y) = {-(L / 2-a / k),-(W / 2-a / k)}, The first formula corresponding to subregion 4: (x,y)={0,(W / 2-a / k)}, The first formula corresponding to subregion 6: (x,y)={0,-(W / 2-a / k)}, The first formula corresponding to subregion 7: (x, y) = {(L / 2-a / k), (W / 2-a / k)}, The first formula corresponding to subregion 8: (x, y) = {(L / 2-a / k), 0}, The first formula corresponding to subregion 9: (x,y)={(L / 2-a / k),-(W / 2-a / k)}.

[0070] x and y respectively represent the x- and y-coordinates of the center position of the polarity mark pattern when the center of the circumscribing rectangular frame is the origin. Furthermore, L represents the length of the circumscribing rectangular frame in the x-axis direction, W represents the width of the circumscribing rectangular frame in the y-axis direction, a represents the size of the short side of the circumscribing rectangular frame, and k represents the value of the adjustment parameter. Note that k∈[6,8]. k can be selected as needed.

[0071] 2) If the position range is within the circumscribing rectangular frame and the polarity mark pattern is the second pattern such as a line segment, a second target formula corresponding to the target reference area is determined from a plurality of predetermined second formulas, and the position coordinates of the polarity mark pattern relative to the center of the circumscribing rectangular frame are calculated using the second target formula, the size of the circumscribing rectangular frame, and the value of the selected adjustment parameter.

[0072] The plurality of predetermined second formulas include: The second formula corresponding to the cross-sectional area A: (x, y) = {-(L / 2-a / k), 0}, the corresponding line equation: x = -(L / 2-a / k), The second formula corresponding to the cross section B: (x, y) = {0, -(W / 2-a / k)}, the corresponding linear equation: y = -(W / 2-a / k), The second formula corresponding to the cross-sectional area C: (x, y) = {(L / 2-a / k), 0}, the corresponding line equation: x = (L / 2-a / k), The second formula corresponding to the cross-sectional area D: (x, y) = {0, (W / 2-a / k)}, the corresponding linear equation: y = (W / 2-a / k).

[0073] x and y respectively represent the x- and y-coordinates of the center position of the polarity mark pattern when the center of the circumscribing rectangular frame is the origin. Furthermore, L represents the length of the circumscribing rectangular frame in the x-axis direction, W represents the width of the circumscribing rectangular frame in the y-axis direction, a represents the size of the short side of the circumscribing rectangular frame, and k represents the value of the adjustment parameter. Note that k∈[6,8]. k can be selected as needed.

[0074] As can be seen, in this case, for cross-sectional areas A and C, the length direction of the line segment is the Y-axis direction and the y-coordinate is 0, so it is only necessary to calculate the x-coordinate. Also, for cross-sectional areas B and D, the length direction of the line segment is the x-axis direction and the x-coordinate is 0, so it is only necessary to calculate the y-coordinate.

[0075] 3) If the position range is outside the circumscribing rectangular frame and the polarity mark pattern is the first pattern such as a circle or a triangle, a third target formula corresponding to the target reference area is determined from a plurality of predetermined third formulas, and the position coordinates of the polarity mark pattern relative to the center of the circumscribing rectangular frame are calculated using the third target formula, the size of the circumscribing rectangular frame, and the value of the selected adjustment parameter.

[0076] The predetermined plurality of third formulas include: A third formula corresponding to subregion 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)}, The third formula corresponding to subregion 2: (x,y)={-(L / 2+a / k),0}, A third formula corresponding to subregion 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)}, The third formula corresponding to subregion 4: (x,y)={0,(W / 2+a / k)}, The third formula corresponding to subregion 6: (x,y)={0,-(W / 2+a / k)}, A third formula corresponding to subregion 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)}, The third formula corresponding to subregion 8: (x, y) = {(L / 2 + a / k), 0}, Third formula corresponding to subregion 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)}.

[0077] x and y respectively represent the x- and y-coordinates of the center position of the polarity mark pattern when the center of the circumscribing rectangular frame is the origin. Furthermore, L represents the length of the circumscribing rectangular frame in the x-axis direction, W represents the width of the circumscribing rectangular frame in the y-axis direction, a represents the size of the short side of the circumscribing rectangular frame, and k represents the value of the adjustment parameter. Note that k∈[6,8]. k can be selected as needed.

[0078] It should be noted that if any sub-region has multiple third formulas, any one may be selected and calculated as needed.

[0079] 4) If the position range is outside the circumscribing rectangular frame and the polarity mark pattern is the second pattern such as a line segment, a fourth target formula corresponding to the target reference area is determined from a plurality of predetermined fourth formulas, and the position coordinates of the polarity mark pattern relative to the center of the circumscribing rectangular frame are calculated using the fourth target formula, the size of the circumscribing rectangular frame, and the value of the selected adjustment parameter.

[0080] The predetermined plurality of fourth formulas include: The fourth formula corresponding to the cross-sectional area A: (x, y) = {-(L / 2 + a / k), 0}, the corresponding straight line equation: x = -(L / 2 + a / k), The fourth formula corresponding to the cross-sectional area B: (x, y) = {0, -(W / 2 + a / k)}, the corresponding linear equation: y = -(W / 2 + a / k), The fourth formula corresponding to the cross-sectional area C: (x, y) = {(L / 2 + a / k), 0}, the corresponding straight line equation: x = (L / 2 + a / k), The fourth formula corresponding to the cross-sectional area D is: (x, y) = {0, (W / 2 + a / k)}, and the corresponding linear equation is: y = (W / 2 + a / k).

[0081] x and y respectively represent the x- and y-coordinates of the center position of the polarity mark pattern when the center of the circumscribing rectangular frame is the origin. Furthermore, L represents the length of the circumscribing rectangular frame in the x-axis direction, W represents the width of the circumscribing rectangular frame in the y-axis direction, a represents the size of the short side of the circumscribing rectangular frame, and k represents the value of the adjustment parameter. Note that k∈[6,8]. k can be selected as needed.

[0082] As can be seen, in this case, for cross-sectional areas A and C, the length direction of the line segment is the Y-axis direction and the y-coordinate is 0, so it is only necessary to calculate the x-coordinate. Also, for cross-sectional areas B and D, the length direction of the line segment is the x-axis direction and the x-coordinate is 0, so it is only necessary to calculate the y-coordinate.

[0083] As can be understood, the above formulas are determined for the nine-section division method, if a division method other than the nine-section division method is used, a predetermined formula corresponding to each target reference area in different situations can be established based on the relevant mathematical and geometrical theory, but no examples will be given here.

[0084] Regarding S6, in an optional embodiment, calculating the size of the polarity mark pattern based on the size of the circumscribing rectangular box and the polarity mark pattern as described above includes:

[0085] (1) If the polarity mark pattern is circular, the size of the polarity mark pattern is obtained by setting the radius to a / p, where p∈[9,18].

[0086] (2) If the polarity mark pattern is triangular, a circle R is obtained from the radius a / p, and the inscribed triangle of the circle R is found to obtain the size of the polarity mark pattern.

[0087] (3) If the polarity mark pattern is a line segment, the line length is W and the line width is a / p for crossing regions A and C. Also, the line length is L and the line width is a / p for crossing regions B and D. This allows the size of the polarity mark pattern to be obtained.

[0088] In a preferred embodiment, p may be 12.

[0089] In an optional embodiment, if the polarity mark pattern is a first pattern and the first pattern is non-circular, the first pattern may have a different positional configuration relative to the circumscribing rectangular frame when rotated around its center, and therefore, in this case, a certain degree of rotation relative to a specific position of the circumscribing rectangular frame may be designed.

[0090] This example illustrates a case in which the polarity mark pattern is a triangle and the circumscribing rectangular frame is the rectangular frame of the main body of the component for which the polarity mark is designed. When the center of the triangle is located outside one corner of the circumscribing rectangular frame, in an optional embodiment, the perpendicular bisector of the triangle passing through the vertex of the target corner of the triangle facing the corner is located on an extension line connecting the center of the circumscribing rectangular frame to the vertex of the corner and pointing toward the triangle. Referring to FIG. 5(a), the corner facing the triangle is the upper left corner of the circumscribing rectangular frame. The perpendicular bisector of the triangle is also indicated by a dotted line. In another optional embodiment, the included angle between the perpendicular bisector of the triangle passing through the vertex of the target corner of the triangle facing the corner and the two extension lines of the corner on the triangle side is both 45°. Referring to FIG. 5(b), the corner facing the triangle is the upper left corner of the circumscribing rectangular frame. The perpendicular bisector of the triangle is indicated by a dotted line, and the two extensions of the corners on the triangle side are indicated by dashed lines.

[0091] In an alternative embodiment, if the center of the triangle is located in a region near one side of the circumscribing rectangular frame, the perpendicular bisector of the triangle passing through the target angle of the triangle facing the side is perpendicular to the side. Referring to Figure 5(c), the triangle faces the left side of the circumscribing rectangular frame. The perpendicular bisector of the triangle is indicated by a dotted line.

[0092] Of course, when the polarity mark pattern is a non-circular first pattern, the positional form based on the corresponding central position coordinates is not limited to the above example, and may be reasonably selected as needed during design. Furthermore, parameter information related to the positional form may also be attached to the package of the polarity mark design target component.

[0093] In an optional embodiment, after assigning the polarity mark pattern, the name of the target reference area, the position coordinates, and the size of the polarity mark pattern to the package of the polarity mark design target component as package attributes, the method further includes setting display attributes of the polarity mark pattern on the PCB based on a polarity mark display requirement of the polarity mark design target component, where the display attributes include display or non-display.

[0094] In other words, when designing EDA package polarity marks using the method of this embodiment, it is possible to select whether or not to display the polarity marks of a component based on the polarity mark display requirement. This allows the polarity of the component package to be used as an internal attribute of the component rather than being represented in pattern form. By utilizing this internal attribute, problems such as difficulty in manually identifying polarity due to components being too close together when checking the mounting orientation, confusion, or identification errors can be avoided. As can be seen, if displaying the polarity marks is selected, the polarity mark pattern is drawn on the screen printing layer based on the package attribute obtained in S7. On the other hand, if hiding the polarity marks is selected, the polarity mark pattern is not drawn on the screen printing layer of the PCB. This frees up space for further PCB density enhancement, resulting in a smaller volume and more sophisticated products. This also benefits product confidentiality.

[0095] In order to provide a clearer and more visual understanding of each step of the method in the embodiment of the present invention, two specific examples will be used to provide a detailed description. In both examples, the circumscribing rectangle is the rectangle of the main body of the polarity mark design target part, and a nine-section division method is used. The naming method of each sub-region and cross-section region is shown in Figure 4.

[0096] (1) Example 1 For S1, refer to Figure 6(a). To design a package polarity mark for a component with a package name of "SOP16," the circumscribing rectangle of the component "SOP16" is divided into nine sub-regions according to a nine-section division method. The length of the circumscribing rectangle is in the X-axis direction, and is length L = 10 mm. The width is in the Y-axis direction, and is width W = 4 mm. Comparing length L and width W, the shorter side is defined as a.

[0097] For S2, it is determined that the polarity mark pattern is the circular "o" in the first pattern.

[0098] For S3, the multiple reference regions corresponding to the circular polarity mark pattern are identified as nine sub-regions, and names of these nine sub-regions are defined.

[0099] As a result of the name definition of the nine sub-regions, referring to Figure 6(b), the name of the sub-region in the upper left corner of the nine sections is 1. Then, from top to bottom and left to right, the names of the sub-regions are 2, 3, 4, 5, 6, 7, 8, and 9, respectively.

[0100] For S4, it is determined that the position range of the polarity mark pattern is within the circumscribing rectangular frame.

[0101] For S5, select sub-region 1 as the target reference region, and substitute L=10 mm, W=4 mm, a=4 mm, and k=6 based on the first formula (x, y)={-(L / 2-a / k),(W / 2-a / k)} corresponding to sub-region 1. This calculates the position coordinates of the polarity mark pattern, obtaining (x, y)=(-4.333, 1.333). See FIG. 6(c) for the results of this step.

[0102] For step S6, based on the calculation formula a / p for the radius of the circle, a = 4 mm and p = 12 are substituted. This calculates the radius of the circle r = 0.333 mm, thereby determining the size of the polarity mark pattern. See Figure 6(d) for the results of this step.

[0103] For S7, the polarity design for the component package "SOP16" is completed. The following package attributes are assigned to the package: polarity mark pattern: ○, target reference area name: subarea 1, polarity mark pattern center coordinates (-4.333, 1.333), and the radius r of the circle that is the size of the polarity mark pattern: 0.333. For the assigned package attributes, see Table 1. [Table 1]

[0104] Furthermore, if there is a request to display a polarity mark, the polarity mark is drawn on the screen printing layer based on the attributes of the package acquired in S7.

[0105] (2) Example 2 For S1, refer to Figure 7(a). To design a package polarity mark for a component with a package name of "SMD-1005," the circumscribing rectangle of the component "SMD-1005" is divided into nine sub-regions according to a nine-section division method. The length of the circumscribing rectangle is in the X-axis direction, and is length L = 4.8 mm. The width is in the Y-axis direction, and is width W = 2 mm. Comparing length L and width W, the shorter side is defined as a. Therefore, a = 2 mm.

[0106] For S2, it is determined that the polarity mark pattern is the line segment "|" in the second pattern.

[0107] For S3, the multiple reference areas corresponding to the polarity mark patterns of the line segments are identified as four crossing areas, and the names of these four crossing areas are defined.

[0108] As a result of the name definition of the four transverse regions, referring to Figure 7(b), the name of the subregion in the upper left corner of the nine sections is 1. Then, from top to bottom and left to right, the names of the subregions are 2, 3, 4, 5, 6, 7, 8, and 9, respectively. Subregions 1, 2, and 3 are connected to form transverse region A, subregions 3, 6, and 9 are connected to form transverse region B, subregions 7, 8, and 9 are connected to form transverse region C, and subregions 1, 4, and 7 are connected to form transverse region D.

[0109] For S4, it is determined that the position range of the polarity mark pattern is outside the circumscribing rectangular frame.

[0110] For S5, select transverse region C as the target reference region, and based on the fourth formula (x, y) = {(L / 2 + a / k), 0} corresponding to transverse region C, substitute L = 4.8 mm, W = 2 mm, a = 2 mm, and k = 6. This calculates the position coordinates of the polarity mark pattern to obtain (x, y) = (2.733, 0). Then, substitute the above parameters into the corresponding linear equation x = (L / 2 + a / k) to obtain x = 2.733.

[0111] For S6, based on the line length W and line width a / p, which are the calculation formulas for the line length and width, W = 2 mm, a = 4 mm, and p = 12 are substituted. This calculates the line length l = 2 mm and width w = 0.167 mm, thereby determining the size of the polarity mark pattern. See Figure 7(c) for the results of S5 and S6.

[0112] For S7, the polarity design for the component package "SMD-1005" is completed. The following attributes are assigned to the package: polarity mark pattern: "|", target reference area name: cross-sectional area C, polarity mark pattern center coordinates (2.733, 0), linear equation: x = 2.733, and polarity mark pattern size: l = 2 mm, w = 0.167 mm. For the assigned package attributes, see Table 2. [Table 2]

[0113] Furthermore, if there is a request to display a polarity mark, the polarity mark is drawn on the screen printing layer based on the attributes of the package acquired in S7.

[0114] In a second aspect, corresponding to the above-mentioned method embodiment, an embodiment of the present invention further provides a package polarity mark design system. As shown in Figure 8, the system includes:

[0115] Sub-region division module 801: Divides the circumscribing rectangular frame of the polarity mark design target component into a plurality of sub-regions according to a predetermined division method, and acquires the size of the circumscribing rectangular frame.

[0116] Polarity mark pattern selection module 802: Determines the polarity mark pattern of the polarity mark design target component.

[0117] A reference area name definition module 803 defines the names of a plurality of reference areas corresponding to the polarity mark pattern. The plurality of reference areas are the plurality of sub-areas or a plurality of cross-sectional areas. Each cross-sectional area is formed by connecting a plurality of sub-areas corresponding to one side of the circumscribing rectangular frame.

[0118] Position range determination module 804: Determines whether the position range of the polarity mark pattern is inside or outside the circumscribing rectangular frame.

[0119] Position coordinate calculation module 805: Determine one target reference area from the multiple reference areas, and calculate the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range and the name of the target reference area.

[0120] Size calculation module 806: Calculates the size of the polarity mark pattern based on the size of the circumscribing rectangle and the polarity mark pattern.

[0121] Package attribute assignment module 807: Assigns the polarity mark pattern, the name of the target reference area, the position coordinates, and the size of the polarity mark pattern as package attributes to the package of the polarity mark design target component.

[0122] In a third aspect, an embodiment of the present invention further provides an electronic device. As shown 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 complete communication with each other via the communication bus 904.

[0123] The memory is used to store computer programs.

[0124] When the processor executes the program stored in the memory, it implements the steps of any of the package polarity mark design methods provided in the first aspect of the embodiments of the present invention.

[0125] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may also be divided into an address bus, a data bus, a control bus, etc.

[0126] The communication interface is used for communication between the electronic device and other devices.

[0127] The memory may include Random Access Memory (RAM) or Non-Volatile Memory (NVM), such as at least one magnetic disk memory.

[0128] The above processor may be a general-purpose processor including a central processing unit (CPU) or a network processor (NP), or may be a digital signal processing (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), etc.

[0129] The method provided in the embodiment of the present invention can be applied to electronic devices, specifically, the electronic devices can be, but are not limited to, desktop computers, laptops, smart mobile terminals, servers, etc.

[0130] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored therein, the computer program performing the steps of any of the package polarity mark design methods provided in the first aspect of the embodiment of the present invention when executed by a processor.

[0131] The system / electronic device / storage medium embodiments will not be described in detail again here, since the principles, processes and technical effects of specific implementations are similar to those of the method embodiments.

[0132] Those skilled in the art should understand that embodiments of the present application may be provided as a method, an apparatus (device), or a computer program product. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware, collectively referred to herein as a "module" or a "system." The present application may also take the form of a computer program product embodied in one or more computer-readable storage media (including, but not limited to, magnetic disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code. The computer program may be stored / distributed on an appropriate medium and provided together with or as part of other hardware. Other distribution methods, such as the Internet or other wired or wireless telecommunications systems, may also be used.

[0133] It should be understood that in the description of the present invention, the terms "first" and "second" are for descriptive and distinguishing purposes only and should not be understood to express or imply relative importance or the number of technical features involved. Furthermore, in the description of the present invention, unless otherwise expressly and specifically limited, "plurality" means two or more than two.

[0134] The above is a detailed description of the present invention in combination with specific preferred embodiments, and the specific implementation of the present invention should not be considered limited to these descriptions. Those skilled in the art may combine and combine different examples or examples described herein. Those skilled in the art may make some simple deductions or substitutions without departing from the concept of the present invention, and all of these should be considered to fall within the scope of protection of the present invention.

Claims

1. A method for designing a package polarity mark, comprising: Dividing a circumscribing rectangular frame of a polarity mark design target component into a plurality of sub-regions according to a predetermined division method, and acquiring the size of the circumscribing rectangular frame; determining a polarity mark pattern for the polarity mark design target component; Names of a plurality of reference areas corresponding to the polarity mark pattern are defined, the plurality of reference areas are the plurality of sub-areas or a plurality of crossing areas, and each crossing area is configured by a series of a plurality of sub-areas corresponding to one side of the circumscribing rectangular frame; determining whether the polarity mark pattern is to be positioned inside or outside the circumscribing rectangular frame; determining one target reference area from the plurality of reference areas, and calculating position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference area; calculating a size of the polarity mark pattern based on the size of the circumscribing rectangular frame and the polarity mark pattern; assigning the polarity mark pattern, the name of the target reference area, the position coordinates, and the size of the polarity mark pattern to the package of the polarity mark design target component as attributes of the package; 10. A method for designing a package polarity mark, comprising:

2. Dividing the circumscribing rectangular frame of the polarity mark design target component into a plurality of sub-regions according to the predetermined division method described above includes:

2. The method for designing a package polarity mark according to claim 1, further comprising: dividing the circumscribing rectangular frame of the polarity mark design target component into nine sub-regions according to a nine-section division scheme.

3. Defining names of a plurality of reference areas corresponding to the polarity mark patterns includes: When the polarity mark pattern is a first pattern, a plurality of reference areas corresponding to the polarity mark pattern are identified as corresponding to the plurality of sub-areas in a one-to-one relationship, and names of the plurality of sub-areas are defined based on a predetermined sub-area name labeling method; If the polarity mark pattern is a second pattern, a plurality of reference areas corresponding to the polarity mark pattern are identified as the plurality of crossing areas, and names of the plurality of crossing areas are defined based on a predetermined name labeling method for the crossing areas; Including, 3. The method for designing a package polarity mark according to claim 2, wherein the first pattern includes a circle or a triangle, and the second pattern includes a line segment.

4. Defining names of the plurality of sub-areas based on the predetermined sub-area name labeling scheme includes: defining a name for each sub-area obtained from the plurality of sub-areas based on a predetermined arrangement of the sub-areas using each first character in a predetermined sequence of first characters, wherein the sequence of first characters includes a sequence of numbers (1, 2, 3, 4, 5, 6, 7, 8, 9), and the predetermined arrangement of the sub-areas includes an arrangement of the sub-areas from top to bottom and left to right; Defining names of the plurality of traversal areas based on the predetermined traversal area name sign system includes: The method for designing a package polarity mark as described in claim 3, characterized in that it includes defining a name for each transverse area obtained from the plurality of transverse areas based on a predetermined arrangement of the transverse areas using each second character in a predetermined arrangement of second characters in order, wherein the arrangement of second characters includes an alphabet arrangement (A, B, C, D), the predetermined arrangement of the transverse areas includes a counterclockwise arrangement of each transverse area, and transverse area A is composed of sub-areas 1, 2, and 3, transverse area B is composed of sub-areas 3, 6, and 9, transverse area C is composed of sub-areas 7, 8, and 9, and transverse area D is composed of sub-areas 1, 4, and 7.

5. Calculating the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference area, When the position range is within the circumscribing rectangular frame and the polarity mark pattern is the first pattern, determining a first object formula corresponding to the object reference area from a plurality of predetermined first formulas, and calculating position coordinates of the polarity mark pattern relative to the center of the circumscribing rectangular frame using the first object formula, the size of the circumscribing rectangular frame, and the value of a selected adjustment parameter; The predetermined plurality of first formulas include: The first formula corresponding to subregion 1: (x, y) = {-(L / 2-a / k), (W / 2-a / k)}, The first formula corresponding to subregion 2: (x, y) = {-(L / 2-a / k), 0}, The first formula corresponding to subregion 3: (x, y) = {-(L / 2-a / k), -(W / 2-a / k)}, The first formula corresponding to subregion 4: (x, y) = {0, (W / 2 - a / k)}, The first formula corresponding to subregion 6: (x, y) = {0, - (W / 2 - a / k)}, The first formula corresponding to subregion 7: (x, y) = {(L / 2-a / k), (W / 2-a / k)}, The first formula corresponding to subregion 8: (x, y) = {(L / 2 - a / k), 0}, The first formula corresponding to subregion 9: (x, y) = {(L / 2 - a / k), - (W / 2 - a / k)}, Contains, 5. The method for designing a package polarity mark according to claim 4, wherein x and y respectively represent the x- and y-coordinates of the center position of the polarity mark pattern when the center of the circumscribing rectangular frame is the origin, L represents the length of the circumscribing rectangular frame in the x-axis direction, W represents the width of the circumscribing rectangular frame in the y-axis direction, a represents the size of the short side of the circumscribing rectangular frame, and k represents the value of the adjustment parameter, k∈[6, 8].

6. Calculating the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference area, When the position range is within the circumscribing rectangular frame and the polarity mark pattern is the second pattern, determining a second object formula corresponding to the object reference area from a plurality of predetermined second formulas, and calculating position coordinates of the polarity mark pattern relative to the center of the circumscribing rectangular frame using the second object formula, the size of the circumscribing rectangular frame, and the value of a selected adjustment parameter; The predetermined plurality of second formulas include: A second formula corresponding to the cross-sectional area A: (x, y) = {-(L / 2-a / k), 0}, and a corresponding straight line equation: x = -(L / 2-a / k), A second formula corresponding to the cross-sectional area B: (x, y) = {0, -(W / 2-a / k)}, and a corresponding linear equation: y = -(W / 2-a / k), A second formula corresponding to the cross-sectional area C: (x, y) = {(L / 2 - a / k), 0}, and a corresponding straight line equation: x = (L / 2 - a / k), A second formula corresponding to the cross-sectional area D: (x, y) = {0, (W / 2-a / k)}, and the corresponding linear equation: y = (W / 2-a / k), Contains, 5. The method for designing a package polarity mark according to claim 4, wherein x and y respectively represent the x- and y-coordinates of the center position of the polarity mark pattern when the center of the circumscribing rectangular frame is the origin, L represents the length of the circumscribing rectangular frame in the x-axis direction, W represents the width of the circumscribing rectangular frame in the y-axis direction, a represents the size of the short side of the circumscribing rectangular frame, and k represents the value of the adjustment parameter, k∈[6, 8].

7. Calculating the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference area, When the position range is outside the circumscribing rectangular frame and the polarity mark pattern is the first pattern, determining a third object formula corresponding to the object reference area from a plurality of predetermined third formulas, and calculating position coordinates of the polarity mark pattern relative to the center of the circumscribing rectangular frame using the third object formula, the size of the circumscribing rectangular frame, and the value of a selected adjustment parameter; The predetermined plurality of third formulas include: A third formula corresponding to subregion 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)}, The third formula corresponding to subregion 2: (x, y) = {-(L / 2 + a / k), 0}, A third formula corresponding to subregion 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)}, The third formula corresponding to subregion 4: (x, y) = {0, (W / 2 + a / k)}, A third formula corresponding to subregion 6: (x, y) = {0, - (W / 2 + a / k)}, A third formula corresponding to subregion 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)}, The third formula corresponding to subregion 8: (x, y) = {(L / 2 + a / k), 0}, A third formula corresponding to subregion 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)}, Contains, 5. The method for designing a package polarity mark according to claim 4, wherein x and y respectively represent the x- and y-coordinates of the center position of the polarity mark pattern when the center of the circumscribing rectangular frame is the origin, L represents the length of the circumscribing rectangular frame in the x-axis direction, W represents the width of the circumscribing rectangular frame in the y-axis direction, a represents the size of the short side of the circumscribing rectangular frame, and k represents the value of the adjustment parameter, k∈[6, 8].

8. Calculating the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference area, When the position range is outside the circumscribing rectangular frame and the polarity mark pattern is the second pattern, determining a fourth target formula corresponding to the target reference area from a plurality of predetermined fourth formulas, and calculating position coordinates of the polarity mark pattern relative to the center of the circumscribing rectangular frame using the fourth target formula, the size of the circumscribing rectangular frame, and the value of a selected adjustment parameter; The predetermined plurality of fourth formulas include A fourth formula corresponding to the cross-sectional area A: (x, y) = {-(L / 2 + a / k), 0}, and a corresponding straight line equation: x = -(L / 2 + a / k), A fourth formula corresponding to the cross-sectional area B: (x, y) = {0, -(W / 2 + a / k)}, and a corresponding linear equation: y = -(W / 2 + a / k). A fourth formula corresponding to the cross-sectional area C: (x, y) = {(L / 2 + a / k), 0}, and a corresponding straight line equation: x = (L / 2 + a / k), A fourth formula corresponding to the cross-sectional area D: (x, y) = {0, (W / 2 + a / k)}, and a corresponding linear equation: y = (W / 2 + a / k), Contains, 5. The method for designing a package polarity mark according to claim 4, wherein x and y respectively represent the x- and y-coordinates of the center position of the polarity mark pattern when the center of the circumscribing rectangular frame is the origin, L represents the length of the circumscribing rectangular frame in the x-axis direction, W represents the width of the circumscribing rectangular frame in the y-axis direction, a represents the size of the short side of the circumscribing rectangular frame, and k represents the value of the adjustment parameter, k∈[6, 8].

9. Calculating the size of the polarity mark pattern based on the size of the circumscribing rectangular frame and the polarity mark pattern includes: If the polarity mark pattern is circular, the size of the polarity mark pattern is obtained by taking the radius as a / p, and p∈[9, 18]; When the polarity mark pattern is triangular, a circle R is obtained from the radius a / p, and the size of the polarity mark pattern is obtained by finding an inscribed triangle of the circle R. When the polarity mark pattern is a line segment, the size of the polarity mark pattern is obtained by defining the line length as W and the line width as a / p for the crossing regions A and C, and the line length as L and the line width as a / p for the crossing regions B and D; The method for designing a package polarity mark according to any one of claims 1 to 8, further comprising:

10. After assigning the polarity mark pattern, the name of the target reference area, the position coordinates, and the size of the polarity mark pattern to the package of the polarity mark design target component as package attributes, the package polarity mark design method further includes: setting display attributes of the polarity mark pattern on a PCB based on a polarity mark display request of the polarity mark design target component; 2. The method for designing a package polarity mark according to claim 1, wherein the display attribute includes display or non-display.

11. A package polarity mark design system, comprising: a sub-area division module that divides a circumscribing rectangular frame of a polarity mark design target component into a plurality of sub-areas according to a predetermined division method and acquires the size of the circumscribing rectangular frame; a polarity mark pattern selection module for determining a polarity mark pattern for the polarity mark design target component; a reference area name definition module that defines names of a plurality of reference areas corresponding to the polarity mark pattern, the plurality of reference areas being the plurality of sub-areas or a plurality of cross-sectional areas, each of the cross-sectional areas being formed by a series of a plurality of sub-areas corresponding to one side of the circumscribing rectangular frame; a position range determination module that determines whether the position range of the polarity mark pattern is inside or outside the circumscribing rectangular frame; a position coordinate calculation module that determines one target reference area from the plurality of reference areas and calculates the position coordinates of the polarity mark pattern based on the size of the circumscribing rectangular frame, the polarity mark pattern, the position range, and the name of the target reference area; a size calculation module that calculates the size of the polarity mark pattern based on the size of the circumscribing rectangular frame and the polarity mark pattern; a package attribute assignment module that assigns the polarity mark pattern, the name of the target reference area, the position coordinates, and the size of the polarity mark pattern as package attributes to the package of the polarity mark design target component; 1. A package polarity mark design system comprising:

12. a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other via the communication bus; the memory is used to store a computer program; 11. An electronic device, wherein the processor, when executing a program stored in the memory, implements the steps of the package polarity mark design method according to claim 1.

13. A computer-readable storage medium having a computer program stored therein, the computer program causing a processor to execute the steps of the package polarity mark design method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Printed circuit board

    CN211378369U

  • Production device for silk screen

    JP1992001858A

  • Semiconductor device and its manufacturing method

    JP2003017619A

  • Electronic appliance having indicated attaching sense of electronic component

    JP2006100716A

  • Electronic device, method for generating package drawing and computer readable storage medium

    US20210133382A1