A method, system, electronic device and storage medium for encapsulation polarity identification design
By digitizing the component external rectangular frame into multiple sub-regions in the PCB design, the polarity identification graphics and reference areas are determined, the position coordinates and dimensions are calculated, and the value is assigned to the component packaging attributes, the problem of polarity identification difficulties in high-density PCB is solved, and the automatic judgment and correct installation of polarity identification are realized.
Patent Information
- Application Number
- CN202210927435.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2042-08-03
AI Technical Summary
In high-density PCB design, the polarity recognition of components is difficult and identification errors lead to poor product functions and failure of the entire PCBA board.
By digitizing the component external rectangular frame into multiple sub-regions in EDA design, the polarity identification pattern and reference area are determined, the position coordinates and dimensions are calculated, and the value is assigned to the packaging properties of the component, so as to realize the automated judgment of polarity identification.
It improves the accuracy and efficiency of polarity recognition, avoids identification difficulties and errors caused by manual judgment, and ensures that the components are properly mounted.
Smart Images

Figure CN115221832B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of PCB design, and particularly relates to a method, a system, an electronic device, and a storage medium for designing package polarity identification. Background Art
[0002] With the development of the integrated circuit and electronics industries, miniaturization, high density, multi-functionality, and digitalization have become the current trends in PCB design. In the process of PCB design, the package design of components is an important process, and its design quality will directly affect the subsequent manufacturing process and the final product quality. During the package design process of components, some components have requirements for the polarity direction. For example, electrolytic capacitors, diodes, triodes, integrated circuit ICs, etc. Generally, the industry will make a kind of identification for components with polarity direction requirements, and this identification indicates the positive and negative poles or the position of the first pin of the component. Polar components need to be mounted on the PCB in a certain direction to ensure that the positive and negative poles of the component or the first pin of the component match the actual circuit on the PCB. If the mounting direction is incorrect during installation, it will cause consequences such as the circuit not working, the component body short-circuiting and burning out, and the circuit not working properly.
[0003] Currently, in the industry, the design of component package polarity identification is on the PCB silk screen layer, and generally symbols such as "○", "▲", and "+" are used for identification. When checking the mounting direction, it is all confirmed by manual identification and verification. However, in high-density PCBs, due to the very close distance between two components, it is very easy to have situations such as difficult polarity identification, confusion, and misidentification, which ultimately result in poor product functionality and the failure of the entire PCBA board, causing economic losses.
[0004] Then, for polar components, how to establish a digital method in EDA (Electronic Design Automation) design to achieve the polarity design of component packages, and then solve the defects of the prior art that manual identification and verification are used to confirm the polarity of components, resulting in difficult polarity identification, misidentification, etc., has become an important technical problem in the PCB package design link. Summary of the Invention
[0005] In order to solve the above problems existing in the prior art, the present invention provides a method, a system, an electronic device, and a storage medium for designing package polarity identification. The technical problems to be solved by the present invention are achieved through the following technical solutions:
[0006] In a first aspect, an embodiment of the present invention provides a method for designing package polarity identification, the method including:
[0007] Divide the external rectangular frame of the component to be designed with a polarity mark into multiple sub-regions according to a preset division method, and obtain the size of the external rectangular frame;
[0008] Determine the polarity mark pattern of the component to be designed with a polarity mark;
[0009] Define the names of multiple reference regions corresponding to the polarity mark pattern; wherein, the multiple reference regions are the multiple sub-regions or multiple spanning regions; each spanning region is formed by connecting multiple sub-regions corresponding to one side of the external rectangular frame;
[0010] Determine that the position range of the polarity mark pattern is inside or outside the external rectangular frame;
[0011] Determine a target reference region among the multiple reference regions, and calculate the position coordinates of the polarity mark pattern according to the size of the external rectangular frame, the polarity mark pattern, the position range, and the name of the target reference region;
[0012] Calculate the size of the polarity mark pattern according to the size of the external rectangular frame and the polarity mark pattern;
[0013] Assign the polarity mark pattern, the name of the target reference region, the position coordinates, and the size of the polarity mark pattern to the package of the component to be designed with a polarity mark as an attribute of the package.
[0014] In a second aspect, an embodiment of the present invention provides a package polarity mark design system, and the system includes:
[0015] A sub-region division module, configured to divide the external rectangular frame of the component to be designed with a polarity mark into multiple sub-regions according to a preset division method, and obtain the size of the external rectangular frame;
[0016] A polarity mark pattern selection module, configured to determine the polarity mark pattern of the component to be designed with a polarity mark;
[0017] A reference region name definition module, configured to define the names of multiple reference regions corresponding to the polarity mark pattern; wherein, the multiple reference regions are the multiple sub-regions or multiple spanning regions; each spanning region is formed by connecting multiple sub-regions corresponding to one side of the external rectangular frame;
[0018] A position range determination module, configured to determine that the position range of the polarity mark pattern is inside or outside the external rectangular frame;
[0019] A position coordinate calculation module, configured to determine a target reference area among the multiple reference areas, and calculate the position coordinates of the polarity identification pattern according to the size of the circumscribed rectangle, the polarity identification pattern, the position range, and the name of the target reference area;
[0020] A size calculation module, configured to calculate the size of the polarity identification pattern according to the size of the circumscribed rectangle and the polarity identification pattern;
[0021] An encapsulation attribute assignment module, configured to assign the polarity identification pattern, the name of the target reference area, the position coordinates, and the size of the polarity identification pattern to the encapsulation of the component to be designed with a polarity identification as an attribute of the encapsulation.
[0022] 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. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus;
[0023] The memory is used to store a computer program;
[0024] When the processor is configured to execute the program stored on the memory, it implements the steps of the encapsulation polarity identification design method provided by the embodiment of the present invention.
[0025] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the encapsulation polarity identification design method provided by the embodiment of the present invention.
[0026] Advantages of the present invention:
[0027] The encapsulation polarity identification design method provided by the embodiment of the present invention can, at the early EDA design stage, through a digital method, determine the polarity identification pattern, the target reference area, the position coordinates, and the size of the polarity identification pattern of the component to be designed with a polarity identification, and assign this information to the encapsulation of the component to be designed with a polarity identification as an attribute of its encapsulation itself and carry it in the electronic design file of the PCB. When performing a mounting direction check, by querying this encapsulation attribute in the electronic design file of the PCB of the polar component, the relevant information of the polarity identification can be determined, thereby judging the polarity direction of the component, without the need to use the manual judgment method anymore. Therefore, it can avoid problems such as difficult and incorrect polarity identification that occur when manually identifying and checking the polarity of components due to the components being too close, and can improve the accuracy and efficiency of polarity identification. Description of the Drawings
[0028] Figure 1 Schematic diagram of a method for designing package polarity identification provided by an embodiment of the present invention;
[0029] Figure 2 Schematic diagram of dividing the external rectangular frame of the component to be designed with a polarity identification according to the 9-grid division method in an embodiment of the present invention;
[0030] Figure 3 Schematic diagram for understanding the sub-regions and the spanning region in an embodiment of the present invention;
[0031] Figure 4 Schematic diagram of a method for naming and marking each sub-region and the spanning region in an embodiment of the present invention;
[0032] Figures 5(a) to 5(c) Three examples of the positional forms of a triangle relative to the external rectangular frame are given by taking the polarity identification graphic as a triangle and the external rectangular frame as the rectangular frame of the component body to be designed with a polarity identification in an embodiment of the present invention;
[0033] Figures 6(a) to 6(d) Partial step result diagram of Example 1 in an embodiment of the present invention;
[0034] Figures 7(a) to 7(c) Partial step result diagram of Example 2 in an embodiment of the present invention;
[0035] Figure 8 Schematic diagram of the structure of a package polarity identification design system provided by an embodiment of the present invention;
[0036] Figure 9 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Detailed implementation manners
[0037] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments.
[0038] To solve the above-mentioned defects in the prior art, embodiments of the present invention provide a method, a system, an electronic device and a storage medium for designing package polarity identification.
[0039] It should be noted that the solution provided by the embodiments of the present invention can be embedded in existing EDA package design software, and the existing EDA package design software includes but is not limited to Cadence Allegro, Altium Designer, MentorPads, etc.
[0040] In the first aspect, an embodiment of the present invention provides a method for designing package polarity identification, as shown in Figure 1As shown, it may include the following steps:
[0041] S1. Divide the circumscribed rectangular frame of the component to be designed with a polarity mark into multiple sub-regions according to a preset division method, and obtain the size of the circumscribed rectangular frame.
[0042] For any component to be designed with a polarity mark, when designing the package polarity mark, the circumscribed rectangular frame of the component to be designed with a polarity mark can be obtained from its attribute information. The circumscribed rectangular frame can be the rectangular frame of the body of the component to be designed with a polarity mark, or the rectangular frame including the body of the component to be designed with a polarity mark and the corresponding pads, which can be selected according to needs during design.
[0043] In the embodiment of the present invention, dividing the circumscribed rectangular frame into multiple sub-regions is to form different regions inside and even further outside the rectangular frame, so as to facilitate using different regions to locate the position of the polarity mark in the subsequent process. The details of this part will be described in detail later.
[0044] In order to improve the accuracy of positioning the position of the polarity mark, it can be considered to divide as many sub-regions as possible. However, considering minimizing the computational complexity, therefore, in an optional embodiment, dividing the circumscribed rectangular frame of the component to be designed with a polarity mark into multiple sub-regions according to a preset division method may include:
[0045] Divide the circumscribed rectangular frame of the component to be designed with a polarity mark into 9 sub-regions according to the 9-grid division method.
[0046] Among them, the specific process of the 9-grid division method includes: for each pair of opposite sides of the circumscribed rectangular frame, use 2 parallel lines perpendicular to and exceeding the distance between this pair of opposite sides to divide this pair of opposite sides into 3 equal parts, so that the circumscribed rectangular frame is divided into 9 sub-regions. And the four dividing lines extend infinitely to both sides, so that except for the central sub-region, the range of any sub-region is not limited to the inside of the rectangular frame, but covers the extended region defined by the two dividing lines corresponding to this sub-region. That is to say, the extended line range of the sub-region also belongs to this sub-region.
[0047] For specific details, please refer to Figure 2 for understanding. Figure 2 In the figure, the solid-line rectangular frame is the rectangular frame of the body of the component to be designed with a polarity mark, and the dashed-line rectangular frame is the rectangular frame including the body of the component to be designed with a polarity mark and the corresponding pads. The length direction of the rectangular frame along the X-axis is the length direction, and the length is represented as L; the width direction of the rectangular frame along the Y-axis is the width direction, and the width is represented as W; the shorter of the length L and the width W is a. The dot represents the center of the rectangular frame.
[0048] Of course, the preset partitioning method in the embodiments of the present invention is not limited to the above-mentioned 9-grid partitioning method. For each pair of opposite sides of the circumscribed rectangular frame, one parallel line perpendicular to and exceeding the distance between the pair of opposite sides can be used to bisect each of the pair of opposite sides, so that the circumscribed rectangular frame is divided into 4 sub-regions; or, for each pair of opposite sides of the circumscribed rectangular frame, three parallel lines perpendicular to and exceeding the distance between the pair of opposite sides can be used to divide each of the pair of opposite sides into 4 equal parts, so that the circumscribed rectangular frame is divided into 16 sub-regions; or the sides of the circumscribed rectangular frame can be non-uniformly divided by cross lines parallel to the sides of the circumscribed rectangular frame, so that the circumscribed rectangular frame is divided into multiple sub-regions, and so on.
[0049] S2. Determine the polarity marking pattern of the component for which the polarity marking is to be designed.
[0050] In the embodiments of the present invention, any one of the commonly used patterns in EDA package design can be selected as the polarity marking pattern of the component for which the polarity marking is to be designed.
[0051] In an optional implementation manner, the types of polarity marking patterns include a first type of pattern and a second type of pattern.
[0052] Among them, the first type of pattern may include a circle or a triangle; among them, the display effect of the circle may be "○"; the triangle is an equilateral triangle, and the display effect may be "▲". Of course, the first type of pattern may also include shapes such as "+". The second type of pattern may include a line segment.
[0053] In specific design, considering the different types of components for which the polarity marking is to be designed, the PCB layout design can be reasonably carried out and the design requirements such as clarity and beauty can be met, and any one of the first type of pattern or the second type of pattern can be selected as the polarity marking pattern of the component for which the polarity marking is to be designed.
[0054] For example, for a BGA device, a circle or a triangle in the first type of pattern can be selected; for a diode, a line segment in the second type of pattern can be selected, and so on.
[0055] It should be noted that the execution order of S2 and S1 can be interchanged.
[0056] S3. Define the names of multiple reference regions corresponding to the polarity marking pattern.
[0057] Among them, the multiple reference regions are the multiple sub-regions or multiple spanning regions; each spanning region is formed by connecting multiple sub-regions corresponding to one side of the circumscribed rectangular frame.
[0058] For the convenience of understanding the concepts of sub-regions and spanning regions, please refer to Figure 2and Figure 3 Understanding Figure 3 It is a schematic diagram for understanding the sub-regions and the across-regions in the embodiments of the present invention. Figure 3 Taking the circumscribed rectangular frame of the component with the polarity mark to be designed as the rectangular frame of the component body with the polarity mark to be designed, and taking the three sub-regions corresponding to the left short side of the circumscribed rectangular frame divided by the 9-grid as examples for illustration. These three sub-regions are respectively indicated by different shades, but the shaded areas in the figure do not limit the range of the sub-regions. From Figure 3 It can be seen that each sub-region not only includes the internal region of the circumscribed rectangular frame, but also includes the extended regions defined by the corresponding two dividing lines. Then, these three sub-regions can be connected to form an across-region corresponding to the left short side of the circumscribed rectangular frame. Similarly, for the other three sides of the circumscribed rectangular frame, the across-region corresponding to each side is formed by connecting the three sub-regions on that side, that is, there are 4 across-regions in total for the 9 sub-regions. The determination methods for the remaining across-regions are not illustrated one by one here.
[0059] In an optional implementation manner, there is a preset corresponding relationship between the polarity mark graph and the reference regions. For any polarity mark graph, its multiple reference regions are multiple sub-regions or multiple across-regions. Therefore, the names of the multiple reference regions corresponding to the defined polarity mark graph may include:
[0060] (1) If the polarity mark graph is a first type of graph, determine that the multiple reference regions corresponding to the polarity mark graph correspond one-to-one to the multiple sub-regions; and define the names of the multiple sub-regions according to the preset sub-region name marking method.
[0061] (2) If the polarity mark graph is a second type of graph, determine that the multiple reference regions corresponding to the polarity mark graph are the multiple across-regions; and define the names of the multiple across-regions according to the preset across-region name marking method.
[0062] For the convenience of comparative understanding, the above two situations are described together. Specifically:
[0063] If the polarity mark graph is a first type of graph, then determine that the multiple reference regions corresponding to the polarity mark graph are the multiple sub-regions. Taking the 9-grid as an example, when the polarity mark graph is a first type of graph, the 9 sub-regions are its 9 reference regions.
[0064] If the polarity mark graph is a second type of graph, then determine that the multiple reference regions corresponding to the polarity mark graph are the multiple across-regions. Taking the 9-grid as an example, when the polarity mark graph is a second type of graph, the 4 across-regions are its 4 reference regions.
[0065] The naming marking method of the preset sub-region or the spanning region can be any method of non-repeating marking names, so as to achieve the purpose of distinguishing between sub-regions or between spanning regions, including but not limited to random marking or marking according to a certain order, etc., which is not limited here.
[0066] S4. Determine that the position range of the polarity identification graphic is inside or outside the circumscribed rectangular frame.
[0067] In this step, the position range of the polarity identification graphic inside or outside the circumscribed rectangular frame can be selected according to certain requirements. Selecting the position range of the polarity identification graphic outside the circumscribed rectangular frame, that is, marking the polarity identification outside the circumscribed rectangular frame, is mainly to facilitate the verification of the polarity points on the physical component and the polarity points on the PCB silk screen. In addition, if there is a large margin in the PCB layout space, the position range of the polarity identification graphic can also be selected outside the circumscribed rectangular frame. Of course, the factors for selecting the position range of the polarity identification graphic can also include layout aesthetics, etc.
[0068] S5. Determine a target reference region among the multiple reference regions, and calculate the position coordinates of the polarity identification graphic according to the size of the circumscribed rectangular frame, the polarity identification graphic, the position range, and the name of the target reference region.
[0069] In this step, any one of the multiple reference regions corresponding to the polarity identification graphic can be arbitrarily selected as the target reference region range according to the design requirements, which is not limited here. After determining the target reference region, the name of the target reference region can be obtained for subsequent use.
[0070] In the embodiment of the present invention, for different situations composed of the position range being inside or outside the circumscribed rectangular frame, the polarity identification graphic being the first type of graphic or the second type of graphic, and the target reference region being each of the multiple sub-regions or each of the multiple spanning regions, according to the mathematical geometry theory, with the center of the circumscribed rectangular frame as the origin, using the size of the circumscribed rectangular frame, various calculation formulas of the center position coordinates (x, y) of the polarity identification graphic relative to the origin are pre-constructed in advance. Then, in step S5, for any one of the situations, the corresponding preset formula can be selected to calculate the center position coordinates (x, y) of the polarity identification graphic.
[0071] The preset formulas for the above various situations can be reasonably set according to needs, which are not specifically limited here. For the 9-grid division method, the preset formulas for various situations will be specifically illustrated later.
[0072] S6. Calculate the size of the polarity identification pattern according to the size of the circumscribed rectangular frame and the polarity identification pattern.
[0073] In this step, according to the specific shape of the polarity identification pattern, the corresponding size can be calculated according to the preset parameter calculation formula.
[0074] For example, if the polarity identification pattern is circular, the preset parameter calculation formula can be a calculation formula for the radius. Using this formula, the radius of the circle can be calculated, and then the size of the circular polarity identification pattern is determined.
[0075] For another example, if the polarity identification pattern is triangular, the preset parameter calculation formula can be a calculation formula for the radius of a circle. The radius calculated by using this formula can determine a circle, and then the inscribed triangle of this circle is obtained, and thus the size of the triangular polarity identification pattern is determined.
[0076] For yet another example, if the polarity identification pattern is a line segment, the preset parameter calculation formula can be a calculation formula for the line length and line width. Using this formula, the length and width of the line segment can be calculated, and then the size of the line segment-shaped polarity identification pattern is determined.
[0077] Of course, for the polarity identification patterns of other shapes, some calculation formulas for key parameters that can determine their graphic sizes can also be pre-constructed, which will not be exemplified here.
[0078] S7. Assign the polarity identification pattern, the name of the target reference area, the position coordinates, and the size of the polarity identification pattern to the package of the component with the polarity identification to be designed as an attribute of the package.
[0079] It can be understood that in this step, the polarity identification pattern, the name of the target reference area, the position coordinates, and the size of the polarity identification pattern are assigned to the package of the component with the polarity identification to be designed as an attribute of the package, completing the EDA package polarity identification design of the component with the polarity identification to be designed. After that, this attribute can be carried in the electronic design file of the PCB.
[0080] It can be seen that the encapsulation polarity identification design method provided by the embodiments of the present invention can, at the early EDA design stage, determine the polarity identification pattern, target reference area, position coordinates, and size of the polarity identification pattern of the component to be designed with a polarity identification through digital methods, and assign this information to the package of the component to be designed with a polarity identification, which is carried as an attribute of the package itself in the electronic design file of the PCB. When checking the mounting direction, by querying this package attribute in the electronic design file of the PCB of the polar component, the relevant information of the polarity identification can be determined to judge the polarity direction of the component, without the need to use manual judgment methods. Therefore, it is possible to avoid problems such as difficult and incorrect polarity identification when manually distinguishing and verifying the polarity of components due to the close distance between components, and improve the accuracy and efficiency of polarity identification.
[0081] Specific descriptions will be given below for some optional embodiments of the present invention.
[0082] In an optional embodiment, defining the names of the multiple sub-regions according to the preset sub-region name marking method includes: using each first character in the preset first character sequence to sequentially define the names of the multiple sub-regions obtained according to the preset sub-region arrangement method.
[0083] For the convenience of understanding the solution, the 9-grid division method will be used for description hereinafter.
[0084] Among them, the first character sequence can be a digital sequence (1, 2, 3, 4, 5, 6, 7, 8, 9), and the preset sub-region arrangement method includes the arrangement method of each sub-region from top to bottom and from left to right. Of course, for the 9 sub-regions divided by the 9-grid division method, the preset sub-region arrangement method can also include the arrangement method of each sub-region from left to right and from top to bottom, and so on.
[0085] Defining the names of the multiple across-regions according to the preset across-region name marking method includes: using each second character in the preset second character sequence to sequentially define the names of the multiple across-regions obtained according to the preset across-region arrangement method.
[0086] Among them, the second character sequence can be an alphabetical sequence (A, B, C, D), and the preset across-region arrangement method includes the counterclockwise arrangement method of each across-region. For example, the names of the 4 across-regions are sequentially A, B, C, D starting from the leftmost across-region. Of course, across-region A can also be any one of the other three across-regions.
[0087] For the four divided across-regions, the preset arrangement of across-regions may also include the clockwise arrangement of each across-region, or the arrangement from top to bottom, from left to right, and from left to right, from top to bottom, etc.
[0088] Exemplarily, a preferred implementation is given as follows:
[0089] The first character sequence includes a digital sequence (1, 2, 3, 4, 5, 6, 7, 8, 9); the preset arrangement of sub-regions includes the arrangement of each sub-region from top to bottom and from left to right; the second character sequence includes an alphabetical sequence (A, B, C, D); the preset arrangement of across-regions includes the counterclockwise arrangement of each across-region; and, across-region A is composed of sub-regions 1, 2, 3; across-region B is composed of sub-regions 3, 6, 9; across-region C is composed of sub-regions 7, 8, 9; across-region D is composed of sub-regions 1, 4, 7. For details, please refer to Figure 4 Understanding.
[0090] In S5, according to the size of the circumscribed rectangle, the polarity identification graph, the position range, and the name of the target reference region, calculate the position coordinates of the polarity identification graph. Depending on different situations, taking the center of the circumscribed rectangle as the origin (0, 0), and using the size of the circumscribed rectangle, there are several alternative implementation manners according to different calculation formulas of the center position coordinates (x, y) of the polarity identification graph relative to the origin in the rectangular coordinate system.
[0091] 1) If the position range is inside the circumscribed rectangle and the polarity identification graph is the first type of graph, such as a circle or a triangle, determine the target first type of formula corresponding to the target reference region among the preset multiple first type of formulas, and calculate the position coordinates of the polarity identification graph relative to the center of the circumscribed rectangle by using the target first type of formula, the size of the circumscribed rectangle, and the selected adjustment parameter value.
[0092] Among them, the preset multiple first type of formulas include:
[0093] The first type of formula corresponding to sub-region 1 is: (x, y) = {-(L / 2 - a / k), (W / 2 - a / k)};
[0094] The first type of formula corresponding to sub-region 2 is: (x, y) = {-(L / 2 - a / k), 0};
[0095] The first type of formula corresponding to sub-region 3 is: (x, y) = {-(L / 2 - a / k), -(W / 2 - a / k)};
[0096] The first - type formula corresponding to sub - region 4 is: (x,y) = {0, (W / 2 - a / k)};
[0097] The first - type formula corresponding to sub - region 6 is: (x,y) = {0, -(W / 2 - a / k)};
[0098] The first - type formula corresponding to sub - region 7 is: (x,y) = {(L / 2 - a / k), (W / 2 - a / k)};
[0099] The first - type formula corresponding to sub - region 8 is: (x,y) = {(L / 2 - a / k), 0};
[0100] The first - type formula corresponding to sub - region 9 is: (x,y) = {(L / 2 - a / k), -(W / 2 - a / k)};
[0101] Among them, x and y respectively represent the x - coordinate and y - coordinate in the central position coordinates of the polarity - identification graph with the center of the circumscribed rectangle frame as the origin; L represents the length of the circumscribed rectangle frame along the x - axis direction; W represents the width of the circumscribed rectangle frame along the y - axis direction; a represents the short - side dimension of the circumscribed rectangle frame; k represents the value of the adjustment parameter, k ∈ [6,8], and k can be selected as needed.
[0102] 2) If the position range is inside the circumscribed rectangle frame and the polarity - identification graph is the second - type graph, such as a line segment, determine the target second - type formula corresponding to the target reference area among the preset multiple second - type formulas, and use the target second - type formula, the dimensions of the circumscribed rectangle frame, and the selected value of the adjustment parameter to calculate the position coordinates of the polarity - identification graph relative to the center of the circumscribed rectangle frame;
[0103] Among them, the preset multiple second - type formulas include:
[0104] The second - type formula corresponding to the across - region A is: (x,y) = {-(L / 2 - a / k), 0}; the corresponding line equation is: x = -(L / 2 - a / k);
[0105] The second - type formula corresponding to the across - region B is: (x,y) = {0, -(W / 2 - a / k)}; the corresponding line equation is: y = -(W / 2 - a / k);
[0106] The second - type formula corresponding to the across - region C is: (x,y) = {(L / 2 - a / k), 0}; the corresponding line equation is: x = (L / 2 - a / k);
[0107] The second - type formula corresponding to the across - region D is: (x,y) = {0, (W / 2 - a / k)}; the corresponding line equation is: y = (W / 2 - a / k);
[0108] Wherein, x and y respectively represent the x - coordinate and y - coordinate in the central position coordinates of the polarity identification pattern with the center of the circumscribed rectangular frame as the origin; L represents the length of the circumscribed rectangular frame along the x - axis direction; W represents the width of the circumscribed rectangular frame along the y - axis direction; a represents the short - side dimension of the circumscribed rectangular frame; k represents the value of the adjustment parameter, k ∈ [6, 8], and k can be selected as needed.
[0109] It can be understood that in this case, for the area spanning A and C, the length direction of the line segment is along the Y - axis direction and the y - coordinate is 0, and only the x - coordinate needs to be calculated; for the area spanning B and D, the length direction of the line segment is along the X - axis direction and the x - coordinate is 0, and only the y - coordinate needs to be calculated.
[0110] 3) If the position range is outside the circumscribed rectangular frame and the polarity identification pattern is the first - type pattern, such as a circle or a triangle, determine the target third - type formula corresponding to the target reference area among a preset plurality of third - type formulas, and use the target third - type formula, the dimensions of the circumscribed rectangular frame, and the selected value of the adjustment parameter to calculate the position coordinates of the polarity identification pattern relative to the center of the circumscribed rectangular frame;
[0111] Among them, the preset plurality of third - type formulas include:
[0112] The third - type formula corresponding to sub - region 1 is: (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)};
[0113] The third - type formula corresponding to sub - region 2 is: (x, y) = {-(L / 2 + a / k), 0};
[0114] The third - type formula corresponding to sub - region 3 is: (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)};
[0115] The third - type formula corresponding to sub - region 4 is: (x, y) = {0, (W / 2 + a / k)};
[0116] The third - type formula corresponding to sub - region 6 is: (x, y) = {0, -(W / 2 + a / k)};
[0117] The third - type formula corresponding to sub - region 7 is: (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)};
[0118] The third - type formula corresponding to sub - region 8 is: (x,y)={(L / 2 + a / k),0};
[0119] The third - type formula corresponding to sub - region 9 is: (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)};
[0120] Where x and y respectively represent the x - coordinate and y - coordinate in the central position coordinates of the polarity - identification graph with the center of the circumscribed rectangular frame as the origin; L represents the length of the circumscribed rectangular frame along the x - axis direction; W represents the width of the circumscribed rectangular frame along the y - axis direction; a represents the short - side dimension of the circumscribed rectangular frame; k represents the value of the adjustment parameter, k∈[6,8], and k can be selected as needed.
[0121] It should be noted that if a certain sub - region has multiple third - type formulas, one of them can be selected for calculation as needed.
[0122] 4) If the position range is outside the circumscribed rectangular frame and the polarity - identification graph is the second - type graph, such as a line segment, determine the target fourth - type formula corresponding to the target reference region among a preset number of fourth - type formulas, and use the target fourth - type formula, the dimensions of the circumscribed rectangular frame, and the selected value of the adjustment parameter to calculate the position coordinates of the polarity - identification graph relative to the center of the circumscribed rectangular frame;
[0123] Among them, the preset number of fourth - type formulas include:
[0124] The fourth - type formula corresponding to the cross - region A is: (x,y)={-(L / 2 + a / k),0}; the corresponding line equation is: x =-(L / 2 + a / k);
[0125] The fourth - type formula corresponding to the cross - region B is: (x,y)={0,-(W / 2 + a / k)}; the corresponding line equation is: y =-(W / 2 + a / k);
[0126] The fourth - type formula corresponding to the cross - region C is: (x,y)={(L / 2 + a / k),0}; the corresponding line equation is: x =(L / 2 + a / k);
[0127] The fourth type of formula corresponding to the across region D is: (x,y) = {0, (W / 2 + a / k)}; the corresponding line equation is: y = (W / 2 + a / k);
[0128] Where x and y respectively represent the x coordinate and y coordinate in the central position coordinates of the polarity identification pattern with the center of the circumscribed rectangle as the origin; L represents the length of the circumscribed rectangle along the x-axis direction; W represents the width of the circumscribed rectangle along the y-axis direction; a represents the short side dimension of the circumscribed rectangle; k represents the adjustment parameter value, k ∈ [6, 8], and k can be selected as needed.
[0129] It can be understood that in this case, for the across regions A and C, the length direction of the line segment is along the Y-axis direction and the y coordinate is 0, and only the x coordinate needs to be calculated; for the across regions B and D, the length direction of the line segment is along the X-axis direction and the x coordinate is 0, and only the y coordinate needs to be calculated.
[0130] It can be understood that the above calculation formulas are determined for the 9-grid division method. If other methods besides the 9-grid division method are adopted, the preset formulas corresponding to each target reference region in different situations can also be constructed according to relevant mathematical and geometric theories, and no examples will be given here.
[0131] For S6, in an optional implementation manner, the calculating the size of the polarity identification pattern according to the size of the circumscribed rectangle and the polarity identification pattern includes:
[0132] ① If the polarity identification pattern is circular, determine the radius as a / p to obtain the size of the polarity identification pattern; where p ∈ [9, 18].
[0133] ② If the polarity identification pattern is triangular, obtain a circle R with a radius of a / p, and find an inscribed triangle of the circle R to obtain the size of the polarity identification pattern.
[0134] ③ If the polarity identification pattern is a line segment, for the across regions A and C, determine the line length as W and the line width as a / 4p; for the across regions B and D, determine the line length as L and the line width as a / p to obtain the size of the polarity identification pattern.
[0135] Among them, in the preferred implementation manner, p can be 12.
[0136] In an optional implementation manner, for the polarity identification pattern being the first type of pattern, if the first type of pattern is non-circular, then when the first type of pattern rotates around its center, it may have different positional forms relative to the circumscribed rectangle, so the rotation degree of its specific position relative to the circumscribed rectangle can be designed to a certain extent.
[0137] Taking the case where the polar identification graphic is a triangle and the circumscribed rectangular frame is the rectangular frame of the component body to be designed with the polar identification. If the center of the triangle is located in the outer area of a corner of the circumscribed rectangular frame, in an optional implementation, the perpendicular bisector of the triangle where the vertex of the target angle of the triangle facing the corner is located is located on the extension line of the line connecting the center of the circumscribed rectangular frame and the vertex of the corner towards the side of the triangle. Please refer to Fig. 5(a) for understanding. Among them, the corner towards which the triangle faces is the upper left corner of the circumscribed rectangular frame, and the perpendicular bisector of the triangle is indicated by a dashed line. In another optional implementation, the included angles between the perpendicular bisector of the triangle where the vertex of the target angle of the triangle facing the corner is located and the two extension lines of the corner on the side of the triangle are both 45°. Please refer to Fig. 5(b) for understanding. Among them, the corner towards which the triangle faces is the upper left corner of the circumscribed rectangular frame, the perpendicular bisector of the triangle is indicated by a dashed line, and the two extension lines of the corner on the side of the triangle are indicated by dotted lines.
[0138] If the center of the triangle is located in the vicinity of a side of the circumscribed rectangular frame, in an optional implementation, the perpendicular bisector of the triangle where the target angle facing the side is located is perpendicular to the side. Please refer to Fig. 5(c) for understanding. Among them, the triangle faces the left side of the circumscribed rectangular frame, and the perpendicular bisector of the triangle is indicated by a dashed line.
[0139] Of course, the position form of the polar identification graphic, which is a first-type non-circular graphic, based on the corresponding central position coordinates is not limited to the above examples and can be reasonably selected according to needs during design. Furthermore, the parameter information related to its position form can also be assigned to the package of the component to be designed with the polar identification.
[0140] In an optional implementation, after assigning the polar identification graphic, the name of the target reference area, the position coordinates, and the size of the polar identification graphic to the package of the component to be designed with the polar identification as an attribute of the package, the method further includes:
[0141] Setting the display attribute of the polar identification graphic on the PCB according to the polar identification display requirement of the component to be designed with the polar identification, where the display attribute includes display or hiding.
[0142] That is to say, when using the method of the embodiment of the present invention for EDA package polarity identification design, whether to hide the component polarity identification can be selected according to the polarity identification display requirement. Then, the polarity of the component package does not need to appear in the form of a graph, but is used as an internal attribute of a component. In this way, this internal attribute can be used to avoid problems such as difficult manual identification of polarity, easy confusion, and identification errors due to too close distance between components during the inspection of the mounting direction. It can be understood that if the polarity identification is selected to be displayed, the polarity identification graph is drawn on the silk screen layer according to the attributes of the package obtained from S7; if the polarity identification is selected to be hidden, the polarity identification graph is not drawn on the PCB silk screen layer, then space can be left to make the PCB more densely packed, and thus a product with a smaller volume and stronger function can be made, and it is beneficial to the confidentiality of the product.
[0143] To more intuitively and clearly understand each step of the method of the embodiment of the present invention, the following uses two specific examples for detailed description. In the two examples, the external rectangular frame is the rectangular frame of the component body for which the polarity identification is to be designed. The 9-grid division method is adopted. For the naming methods of each sub-region and the spanning region, please refer to Figure 4 .
[0144] (1) Example 1
[0145] For S1, please refer to Fig. 6(a). Design the package polarity identification for a component with a package name of "SOP16". Divide the external rectangular frame of the component "SOP16" into 9 sub-regions according to the 9-grid division method; the length of the external rectangular frame is along the X-axis direction, with a length of L = 10 mm; the width is along the Y-axis direction, with a width of W = 4 mm. Compare the length L and the width W, and take the shorter side as a.
[0146] For S2, determine that the polarity identification graph is the circle "○" in the first type of graph.
[0147] For S3, determine that the multiple reference regions corresponding to the circular polarity identification graph are 9 sub-regions, and define the names of these 9 sub-regions.
[0148] The naming results of the 9 sub-regions are shown in Fig. 6(b). That is, the name of the sub-region in the upper left corner of the nine-grid is 1, and from top to bottom and from left to right, the names of each sub-region are 2, 3, 4, 5, 6, 7, 8, 9 respectively.
[0149] For S4, determine that the position range of the polarity identification graph is inside the external rectangular frame.
[0150] For S5, the target reference area is selected as sub-area 1, and according to the first type of formula corresponding to sub-area 1: (x,y) = {-(L / 2 - a / k), (W / 2 - a / k)}, substituting L = 10mm, W = 4mm, a = 4mm, k = 6, the position coordinates of the polarity marking pattern are calculated to obtain (x,y) = (-4.333, 1.333). The result of this step is shown in Fig. 6(c).
[0151] For S6, according to the calculation formula of the radius of a circle a / p, substituting a = 4mm, p = 12, the radius of the circle is calculated as r = 0.333mm, then the size of the polarity marking pattern is determined. The result of this step is shown in Fig. 6(d).
[0152] For S7, the polarity design of the component package "SOP16" is completed, and the polarity marking pattern: ○; the name of the target reference area: sub-area 1; the center position coordinates (-4.333, 1.333) of the polarity marking pattern and the size of the polarity marking pattern, that is, the radius r of the circle: 0.333, are assigned to this package as an attribute of this package. The specific attributes of the assigned package are shown in Table 1.
[0153] Table 1
[0154]
[0155] Furthermore, if there is a need to display the polarity marking, then according to the attributes of this package obtained in S7, the polarity marking is drawn on the silk screen layer.
[0156] (2) Example 2
[0157] For S1, please refer to Fig. 7(a). Design the package polarity marking for a component with the package name "SMD-1005". The outer rectangular frame of the component "SMD-1005" is divided into 9 sub-areas according to the 9-grid division method; the length of the outer rectangular frame is along the X-axis direction, with a length of L = 4.8mm; the width is along the Y-axis direction, with a width of W = 2mm. Comparing the length L and the width W, the shorter side is taken as a, a = 2mm.
[0158] For S2, it is determined that the polarity marking pattern is a line segment in the second type of graphics
[0159] For S3, it is determined that the multiple reference areas corresponding to the line segment of the polarity marking pattern are 4 across areas, and the names of these 4 across areas are defined.
[0160] The naming definition results of the 4 cross-regions can be seen in Figure 7(b). That is, the name of the sub-region in the upper left corner of the nine-square grid is 1. From top to bottom and from left to right, the names of the sub-regions are 2, 3, 4, 5, 6, 7, 8, 9 respectively. Sub-regions 1, 2, and 3 are connected to form cross-region A; sub-regions 3, 6, and 9 are connected to form cross-region B; sub-regions 7, 8, and 9 are connected to form cross-region C; sub-regions 1, 4, and 7 are connected to form cross-region D.
[0161] For S4, determine that the position range of the polarity marking pattern is outside the circumscribed rectangular frame.
[0162] For S5, select the target reference region as cross-region C, and according to the fourth type of formula corresponding to cross-region C: (x,y)={(L / 2 + a / k), 0}, substitute L = 4.8mm, W = 2mm, a = 2mm, k = 6, calculate the position coordinates of the polarity marking pattern, and get (x,y)=(2.733,0). And substitute the above parameters into the corresponding line equation x=(L / 2 + a / k), and get x = 2.733.
[0163] For S6, according to the calculation formulas for the length and width of the line segment: the line length is W, and the line width is a / p; substitute W = 2mm, a = 4mm, p = 12, calculate that the length of the line segment is l = 2mm, and the width is w = 0.167mm, then determine the size of the polarity marking pattern. The results of S5 and S6 can be seen in Figure 7(c).
[0164] For S7, the polarity design of the component package "SMD-1005" is completed, and the polarity marking pattern: The name of the target reference region: cross-region C; the center position coordinates of the polarity marking pattern (2.733,0), the line equation: x = 2.733 and the size of the polarity marking pattern, that is, l = 2mm, w = 0.167mm, are assigned to this package as an attribute of this package. The specific attributes of the assigned package are shown in Table 2.
[0165] Table 2
[0166]
[0167] Furthermore, if there is a need to display the polarity marking, then according to the attributes of this package obtained in S7, draw this polarity marking on the silk screen layer.
[0168] In the second aspect, corresponding to the above method embodiment, the embodiment of the present invention further provides a package polarity marking design system, as Figure 8 shown, this system includes:
[0169] The sub-region division module 801 is configured to divide the external rectangular frame of the component to be designed with a polarity mark into multiple sub-regions according to a preset division method, and obtain the size of the external rectangular frame;
[0170] The polarity mark graphic selection module 802 is configured to determine the polarity mark graphic of the component to be designed with a polarity mark;
[0171] The reference region name definition module 803 is configured to define the names of multiple reference regions corresponding to the polarity mark graphic; wherein, the multiple reference regions are the multiple sub-regions or multiple spanning regions; each spanning region is formed by connecting multiple sub-regions corresponding to one side of the external rectangular frame;
[0172] The position range determination module 804 is configured to determine that the position range of the polarity mark graphic is inside or outside the external rectangular frame;
[0173] The position coordinate calculation module 805 is configured to determine a target reference region among the multiple reference regions, and calculate the position coordinates of the polarity mark graphic according to the size of the external rectangular frame, the polarity mark graphic, the position range, and the name of the target reference region;
[0174] The size calculation module 806 is configured to calculate the size of the polarity mark graphic according to the size of the external rectangular frame and the polarity mark graphic;
[0175] The package attribute assignment module 807 is configured to assign the polarity mark graphic, the name of the target reference region, the position coordinates, and the size of the polarity mark graphic to the package of the component to be designed with a polarity mark as an attribute of the package.
[0176] In a third aspect, an embodiment of the present invention further provides an electronic device, as Figure 9 shown, including a processor 901, a communication interface 902, a memory 903, and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904,
[0177] The memory is used for storing a computer program;
[0178] When the processor is configured to execute 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.
[0179] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like.
[0180] The communication interface is used for communication between the above electronic device and other devices.
[0181] The memory may include a Random Access Memory (RAM), or may also include a Non-Volatile Memory (NVM), such as at least one disk memory.
[0182] The above-mentioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), etc.
[0183] The method provided by the embodiments of the present invention can be applied to an electronic device. Specifically, the electronic device may be: a desktop computer, a portable computer, a smart mobile terminal, a server, etc., which is not limited herein.
[0184] In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the packaging polarity identification design methods provided in the first aspect of the embodiments of the present invention are implemented.
[0185] For the system / electronic device / storage medium embodiments, the specific implementation principles, processes, and technical effects are similar to those of the method embodiments, and will not be elaborated herein.
[0186] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, an apparatus (device), or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects, which are collectively referred to herein as "modules" or "systems". Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) that contain computer-usable program code. The computer program is stored / distributed in a suitable medium, provided together with other hardware or as part of the hardware, and can also be in other distribution forms, such as via the Internet or other wired or wireless telecommunication systems.
[0187] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for descriptive and distinguishing purposes, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. In the description of the present invention, "a plurality of" means two or more, unless otherwise specifically defined.
[0188] The above content is a further detailed description of the present invention in combination with specific preferred embodiments. It cannot be determined that the specific implementation of the present invention is only limited to these descriptions. Those skilled in the art can combine and combine the different embodiments or examples described in this specification. For those of ordinary skill in the technical field to which the present invention pertains, without departing from the concept of the present invention, several simple deductions or substitutions can still be made, which should all be regarded as belonging to the protection scope of the present invention.
Claims
1. A method for designing an encapsulation polarity identifier, characterized in that, Including: Dividing the external rectangular frame of the component to be designed with a polarity mark into multiple sub-regions according to a preset division method, and obtaining the size of the external rectangular frame; Determining the polarity mark pattern of the component to be designed with a polarity mark; Defining the names of multiple reference regions corresponding to the polarity mark pattern; wherein, the multiple reference regions are the multiple sub-regions or multiple across-regions; each across-region is formed by connecting multiple sub-regions corresponding to one side of the external rectangular frame; Determining that the position range of the polarity mark pattern is inside or outside the external rectangular frame; Determining a target reference region among the multiple reference regions, and calculating the position coordinates of the polarity mark pattern according to the size of the external 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 according to the size of the external rectangular frame and the polarity mark pattern; Assigning the polarity mark pattern, the name of the target reference region, the position coordinates, and the size of the polarity mark pattern to the package of the component to be designed with a polarity mark as an attribute of the package.
2. The encapsulation polarity identification design method according to claim 1, characterized in that The dividing the external rectangular frame of the component to be designed with a polarity mark into multiple sub-regions according to a preset division method includes: Dividing the external rectangular frame of the component to be designed with a polarity mark into 9 sub-regions according to a 9-grid division method.
3. The encapsulation polarity identification design method according to claim 2, characterized in that The defining the names of multiple reference regions corresponding to the polarity mark pattern includes: If the polarity mark pattern is a first type of pattern, determining that the multiple reference regions corresponding to the polarity mark pattern correspond one-to-one to the multiple sub-regions; and defining the names of the multiple sub-regions according to a preset sub-region name marking method; If the polarity mark pattern is a second type of pattern, determining that the multiple reference regions corresponding to the polarity mark pattern are the multiple across-regions; and defining the names of the multiple across-regions according to a preset across-region name marking method; Wherein, the first type of pattern includes a circle or a triangle; the second type of pattern includes a line segment.
4. The method for designing a package polarity mark according to claim 3, wherein The defining the names of the multiple sub-regions according to a preset sub-region name marking method includes: Using each first character in a preset first character sequence to define the names of the multiple sub-regions in turn according to a preset sub-region arrangement method; wherein, the first character sequence includes a number sequence (1, 2, 3, 4, 5, 6, 7, 8, 9); the preset sub-region arrangement method includes the arrangement method of each sub-region from top to bottom and from left to right; The defining the names of the multiple across-regions according to a preset across-region name marking method includes: Define the names of the respective spanning regions obtained from the multiple spanning regions according to the preset spanning region arrangement manner by using each second character in the preset second character sequence; wherein, the second character sequence includes an alphabet sequence (A, B, C, D); the preset spanning region arrangement manner includes a counterclockwise arrangement manner of each spanning region; and, spanning region A is composed of sub-regions 1, 2, and 3; spanning region B is composed of sub-regions 3, 6, and 9; spanning region C is composed of sub-regions 7, 8, and 9; spanning region D is composed of sub-regions 1, 4, and 7.
5. The encapsulation polarity identification design method according to claim 4, characterized in that, Calculating the position coordinates of the polarity identification pattern according to the size of the circumscribed rectangular frame, the polarity identification pattern, the position range, and the name of the target reference region includes: If the position range is inside the circumscribed rectangular frame and the polarity identification pattern is the first type of pattern, determine the target first type of formula corresponding to the target reference region among the preset multiple first type of formulas, and use the target first type of formula, the size of the circumscribed rectangular frame, and the selected adjustment parameter value to calculate the position coordinates of the polarity identification pattern relative to the center of the circumscribed rectangular frame; Among them, the preset multiple first type of formulas include: The first type of formula corresponding to sub-region 1 is: (x,y) = {-(L / 2 - a / k), (W / 2 - a / k)}; The first type of formula corresponding to sub-region 2 is: (x,y) = {-(L / 2 - a / k), 0}; The first type of formula corresponding to sub-region 3 is: (x,y) = {-(L / 2 - a / k), -(W / 2 - a / k)}; The first type of formula corresponding to sub-region 4 is: (x,y) = {0, (W / 2 - a / k)}; The first type of formula corresponding to sub-region 6 is: (x,y) = {0, -(W / 2 - a / k)}; The first type of formula corresponding to sub-region 7 is: (x,y) = {(L / 2 - a / k), (W / 2 - a / k)}; The first type of formula corresponding to sub-region 8 is: (x,y) = {(L / 2 - a / k), 0}; The first type of formula corresponding to sub-region 9 is: (x,y) = {(L / 2 - a / k), -(W / 2 - a / k)}; Among them, x and y respectively represent the x coordinate and the y coordinate in the center position coordinates of the polarity identification pattern with the center of the circumscribed rectangular frame as the origin; L represents the length of the circumscribed rectangular frame along the x-axis direction; W represents the width of the circumscribed rectangular frame along the y-axis direction; a represents the short side size of the circumscribed rectangular frame; k represents the adjustment parameter value, k ∈ [6, 8].
6. The encapsulation polarity identification design method according to claim 4, characterized in that Calculating the position coordinates of the polarity identification pattern according to the size of the circumscribed rectangular frame, the polarity identification pattern, the position range, and the name of the target reference region includes: If the position range is inside the circumscribed rectangle and the polarity identification pattern is the second type of pattern, determine the target second type of formula corresponding to the target reference area among a plurality of preset second type of formulas, and use the target second type of formula, the size of the circumscribed rectangle, and the selected adjustment parameter value to calculate the position coordinates of the polarity identification pattern relative to the center of the circumscribed rectangle; Among them, the plurality of preset second type of formulas include: The second type of formula corresponding to the spanning area A is: (x, y) = {-(L / 2 - a / k), 0}; the corresponding line equation is: x = -(L / 2 - a / k); The second type of formula corresponding to the spanning area B is: (x, y) = {0, -(W / 2 - a / k)}; the corresponding line equation is: y = -(W / 2 - a / k); The second type of formula corresponding to the spanning area C is: (x, y) = {(L / 2 - a / k), 0}; the corresponding line equation is: x = (L / 2 - a / k); The second type of formula corresponding to the spanning area D is: (x, y) = {0, (W / 2 - a / k)}; the corresponding line equation is: y = (W / 2 - a / k); Among them, x and y respectively represent the x coordinate and y coordinate in the center position coordinates of the polarity identification pattern with the center of the circumscribed rectangle as the origin; L represents the length of the circumscribed rectangle along the x-axis direction; W represents the width of the circumscribed rectangle along the y-axis direction; a represents the short side size of the circumscribed rectangle; k represents the adjustment parameter value, and k ∈ [6, 8].
7. The encapsulation polarity identification design method according to claim 4, wherein The calculating the position coordinates of the polarity identification pattern according to the size of the circumscribed rectangle, the polarity identification pattern, the position range, and the name of the target reference area includes: If the position range is outside the circumscribed rectangle and the polarity identification pattern is the first type of pattern, determine the target third type of formula corresponding to the target reference area among a plurality of preset third type of formulas, and use the target third type of formula, the size of the circumscribed rectangle, and the selected adjustment parameter value to calculate the position coordinates of the polarity identification pattern relative to the center of the circumscribed rectangle; Among them, the plurality of preset third type of formulas include: The third type of formula corresponding to sub-region 1 is: (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 type of formula corresponding to sub-region 2 is: (x, y) = {-(L / 2 + a / k), 0}; The third type of formula corresponding to sub-region 3 is: (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 type of formula corresponding to sub-region 4 is: (x, y) = {0, (W / 2 + a / k)}; The third - type formula corresponding to sub - region 6 is: (x,y) = {0, -(W / 2 + a / k)}; The third - type formula corresponding to sub - region 7 is: (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 - type formula corresponding to sub - region 8 is: (x,y) = {(L / 2 + a / k), 0}; The third - type formula corresponding to sub - region 9 is: (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)}; Wherein, x and y respectively represent the x - coordinate and y - coordinate in the central position coordinates of the polarity - identification graph with the center of the circumscribed rectangular frame as the origin; L represents the length of the circumscribed rectangular frame along the x - axis direction; W represents the width of the circumscribed rectangular frame along the y - axis direction; a represents the short - side dimension of the circumscribed rectangular frame; k represents the adjustment parameter value, and k ∈ [6, 8].
8. The encapsulation polarity identification design method according to claim 4, characterized in that Calculating the position coordinates of the polarity - identification graph according to the size of the circumscribed rectangular frame, the polarity - identification graph, the position range, and the name of the target reference region includes: If the position range is outside the circumscribed rectangular frame and the polarity - identification graph is the second - type graph, determine the target fourth - type formula corresponding to the target reference region among a plurality of preset fourth - type formulas, and calculate the position coordinates of the polarity - identification graph relative to the center of the circumscribed rectangular frame by using the target fourth - type formula, the size of the circumscribed rectangular frame, and the selected adjustment parameter value; Among them, the plurality of preset fourth - type formulas include: The fourth - type formula corresponding to cross - region A is: (x,y) = {-(L / 2 + a / k), 0}; the corresponding line equation is: x = -(L / 2 + a / k); The fourth - type formula corresponding to cross - region B is: (x,y) = {0, -(W / 2 + a / k)}; the corresponding line equation is: y = -(W / 2 + a / k); The fourth - type formula corresponding to cross - region C is: (x,y) = {(L / 2 + a / k), 0}; the corresponding line equation is: x = (L / 2 + a / k); The fourth - type formula corresponding to cross - region D is: (x,y) = {0, (W / 2 + a / k)}; the corresponding line equation is: y = (W / 2 + a / k); Wherein, x and y respectively represent the x - coordinate and y - coordinate in the central position coordinates of the polarity - identification graph with the center of the circumscribed rectangular frame as the origin; L represents the length of the circumscribed rectangular frame along the x - axis direction; W represents the width of the circumscribed rectangular frame along the y - axis direction; a represents the short - side dimension of the circumscribed rectangular frame; k represents the adjustment parameter value, and k ∈ [6, 8].
9. The encapsulation polarity identification design method according to any one of claims 5-8, characterized in that Calculating the size of the polarity - identification graph according to the size of the circumscribed rectangular frame and the polarity - identification graph includes: If the polar identification pattern is circular, determine the radius as a / p to obtain the size of the polar identification pattern; where p ∈ [9, 18]; If the polar identification pattern is triangular, obtain a circle R with radius a / p, and find an inscribed triangle of the circle R to obtain the size of the polar identification pattern; If the polar identification pattern is a line segment, for the area spanning regions A and C, determine the line length as W and the line width as a / p; for the area spanning regions B and D, determine the line length as L and the line width as a / p to obtain the size of the polar identification pattern.
10. The encapsulation polarity identification design method according to claim 1, characterized in that After assigning the polar identification pattern, the name of the target reference region, the position coordinates, and the size of the polar identification pattern to the package of the component to be designed with a polar identification as an attribute of the package, the method further includes: According to the polar identification display requirement of the component to be designed with a polar identification, set the display attribute of the polar identification pattern on the PCB, and the display attribute includes display or hiding.
11. An encapsulation polarity identification design system, characterized in that, Including: A sub-region division module, configured to divide the circumscribed rectangle of the component to be designed with a polar identification into multiple sub-regions according to a preset division method, and obtain the size of the circumscribed rectangle; A polar identification pattern selection module, configured to determine the polar identification pattern of the component to be designed with a polar identification; A reference region name definition module, configured to define the names of multiple reference regions corresponding to the polar identification pattern; where the multiple reference regions are the multiple sub-regions or multiple spanning regions; each spanning region is formed by connecting multiple sub-regions corresponding to one side of the circumscribed rectangle; A position range determination module, configured to determine that the position range of the polar identification pattern is inside or outside the circumscribed rectangle; A position coordinate calculation module, configured to determine a target reference region among the multiple reference regions, and calculate the position coordinates of the polar identification pattern according to the size of the circumscribed rectangle, the polar identification pattern, the position range, and the name of the target reference region; A size calculation module, configured to calculate the size of the polar identification pattern according to the size of the circumscribed rectangle and the polar identification pattern; A package attribute assignment module, configured to assign the polar identification pattern, the name of the target reference region, the position coordinates, and the size of the polar identification pattern to the package of the component to be designed with a polar identification as an attribute of the package.
12. An electronic device, characterized in that, Including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store a computer program; When the processor executes the program stored on the memory, it implements the method steps of any one of claims 1-10.
13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method steps of any one of claims 1-10.
Citation Information
Patent Citations
Electronic device, package drawing graph generation method, and computer readable storage medium
CN110941937A
Polarity recognition recognition method and recognition device, electronic equipment and storage medium
CN111738247A