Disclosure of Invention
1. Problems to be solved
Aiming at the problems that the existing EPad central area sinking depends on the manual operation and has low efficiency and complicated operation, the invention provides a method, a system and a medium for processing the central area sinking of a QFP packaging device EPad. The invention uses the region as a unit to carry out the whole operation, avoids the situations of slow efficiency and easy operation error caused by the previous manual editing one by one, not only can facilitate the user to intuitively and quickly see the modeling effect, but also can quickly and efficiently carry out the operation processing under the condition of complex data of the EPad region, and ensures the combination of the efficiency and the precision.
2. Technical proposal
In order to solve the problems, the invention adopts the following technical scheme.
A method for sinking a central area of a QFP package EPad comprises the following steps:
Acquiring data of a EPad area and sinking processing parameters in a EPad area, wherein the EPad area comprises a central sinking area and a plurality of pin areas, the data comprises point data and line segment data, and the sinking processing parameters comprise sinking width, height, depth and modeling thickness;
Constructing a primary EPad dip dividing region, wherein the primary EPad dip dividing region comprises a center dip region and a plurality of pin regions;
Traversing all line segment data of EPad areas, judging that each line segment data belongs to a central sinking area or a plurality of pin areas of a primary EPad sinking dividing area, and forming a primary point set of the central sinking area and a primary point set of the plurality of pin areas;
reconstructing a secondary EPad subsidence dividing region after expanding a central subsidence region in a EPad subsidence dividing region, traversing all line segment data of a EPad region, judging that each line segment data belongs to the central subsidence region or a plurality of pin regions of the secondary EPad subsidence dividing region, and forming a secondary point set of the central subsidence region and a secondary point set of the plurality of pin regions, wherein the expanded value is a modeling thickness value;
calculating EPad corner region data, namely intersecting the secondary point set of the center sinking region with the primary point sets of the plurality of pin regions to obtain EPad corner region data;
And modeling the calculated model data to finish EPad the subsidence processing of the central region, wherein the model data comprises EPad corner region data, secondary point set data of the central subsidence region and primary point set data of a plurality of pin regions.
Further, when the EPad sinking dividing region is constructed once, a two-dimensional coordinate system is constructed by taking the central point of the central sinking region in the EPad region as an origin coordinate, and the plurality of pin regions are respectively positioned in different quadrants in the two-dimensional coordinate system.
Further, the construction of the EPad sinking dividing region once specifically includes the following steps:
constructing an outer boundary region of the model data;
constructing a polygonal area where the central sinking area is located;
and calculating the areas where the pins are positioned based on the polygonal areas where the outer boundary areas and the central sinking areas are positioned, so as to construct the polygonal areas where the pins are positioned.
Further, when all line segment data of the EPad area are traversed, when a certain line segment belongs to a certain area, two points of the line segment are judged to be in the area, and when the certain line segment is intersected with the certain area, the intersection point of the line segment and the area is judged to be in the area.
Further, the specific steps of modeling the calculated model data are as follows:
Directly stretching the secondary point set data of the central sinking area, and then translating downwards, wherein the stretching value is a modeling thickness value;
stretching the primary point set data of the plurality of pin areas downwards, wherein the downwards stretched value is a modeled thickness value;
The EPad corner region data was drawn down and then translated down, the value of the draw down was the depth of dip value-modeled thickness value, and the value of the translation down was the modeled thickness value.
A system for applying the center area dip processing method of the QFP package device EPad as claimed in any one of the preceding claims, comprising:
The data acquisition module is used for acquiring data of the EPad area and sinking processing parameters in the EPad area;
The primary EPad sinking divided region construction module is used for constructing a primary EPad sinking divided region;
The primary point set construction module is used for traversing all line segment data of the EPad area, judging that each line segment data belongs to a central sinking area or a plurality of pin areas of the primary EPad sinking dividing area, and forming a primary point set of the central sinking area and a primary point set of the plurality of pin areas;
the secondary EPad sinking divided region construction module is used for constructing a secondary EPad sinking divided region;
The secondary point set construction module is used for traversing all line segment data of the EPad area, judging that each line segment data belongs to a central sinking area or a plurality of pin areas of the secondary EPad sinking dividing area, and forming a secondary point set of the central sinking area and a secondary point set of the plurality of pin areas;
EPad a corner region data calculation module for calculating EPad corner region data;
And the modeling module is used for performing modeling operation on the calculated model data to finish EPad central area sinking processing.
A computer-readable storage medium storing a computer program which, when executed by a processor, implements a method of center area sinking of a QFP package EPad as described in any one of the above.
3. Advantageous effects
Compared with the prior art, the invention has the beneficial effects that:
(1) According to the method, the obtained EPad area data and EPad area sinking processing parameters are used for constructing EPad sinking dividing areas, the central sinking area and a plurality of pin areas are separately established, line segments in the EPad area are traversed in sequence, the specific areas are judged, point sets are formed, modeling operation is automatically carried out by calculating the plurality of pin area data and corner area data, EPad central area sinking processing is completed, simplicity and high efficiency are achieved, convenience is brought to lead-in modeling operation of QFP data by a user, and the situation that efficiency is slow and operation is complex and error is prone to occur due to manual editing one by one in the past is avoided by taking the area as a whole operation;
(2) The system has the advantages that the components of the system are simple, the sinking processing parameters of the central area of EPad are set, the sinking processing area data, the pin data and the corner data are automatically calculated, the QFP is automatically modeled and displayed, the previous complicated operation is avoided, a user can intuitively and quickly see the modeling effect, the operation processing can be still quickly and efficiently carried out under the condition that the data of the EPad area is complex, and the user experience is greatly improved.
Detailed Description
The invention is further described below in connection with specific embodiments and the accompanying drawings.
Example 1
Fig. 1 is a schematic overall flow chart of the present application, and in this embodiment, a method for sinking a central area of a QFP package EPad is provided, which includes the following steps:
s1, acquiring data of a EPad area and sinking processing parameters in a EPad area, wherein the EPad area comprises a central sinking area and a plurality of pin areas, the data comprises point data and line segment data, and the sinking processing parameters comprise sinking width, height, depth and modeling thickness;
The explanation in the step S1 is that the EPad area is a two-dimensional polygonal structure, which comprises a square, four vertexes of the square are respectively provided with pins, and the four pins extend to four side directions, so that the four pins are taken as an example for explanation in the embodiment, namely, when the EPad area is obtained, the center sinking area and the four pin areas are included, each area is composed of points and line segments, so that the point data and the line segment data of each area are obtained, the subsequent modeling and calculation are convenient, meanwhile, the sinking processing parameters are determined according to different conditions as shown in fig. 2, the application is not particularly limited, and the application can be confirmed according to the actual sinking condition;
S2, constructing a once EPad sinking dividing region which comprises a center sinking region and a plurality of pin regions, importing EPad region models according to acquired EPad region data, wherein the center sinking region is a Polygon for calculating the center region and the four pin regions, constructing a two-dimensional local coordinate system by taking a center point of the center sinking region in the EPad region as an origin coordinate when constructing the once EPad sinking dividing region, wherein the center sinking region is positioned in a quadrant Polyon00, and the plurality of pin regions are respectively positioned in different quadrants in the two-dimensional coordinate system, namely, the two-dimensional local coordinate system is provided with four quadrants, and the four pins are respectively positioned in four quadrants (an upper right pin is positioned in a first quadrant region Polygon01, an upper left pin is positioned in a second quadrant region Polygon02, a lower left pin is positioned in a third quadrant region Polygon03, and a lower right pin is positioned in a fourth quadrant region Polygon 04), as shown in FIG. 3;
The step S2 specifically comprises the following steps:
S21, constructing an outer boundary region of model data (namely EPad region model), specifically, in the step, firstly calculating the maximum value xMax and yMax of the model data, wherein xMax and yMax refer to the positions of an x axis and a y axis of a point of the extreme edge of a guide pin, then constructing four points on the outer boundary of the model data, wherein the four points are respectively (2 x Max, 0), (0, 2 x yMax) and (-2 x Max, 0) and (-2 x yMax), and sequentially connecting the four points to form the outer boundary region of the model data as shown in figure 4;
S22, constructing a polygonal area where a center sinking area is located, specifically, constructing a polygonal area Polygon00 where the center sinking area is located according to the Width and the Height in the sinking processing parameters in the EPad area in the step, wherein four points on the boundary of the Polygon00 are sequentially (Width, 0), (0, height), (-Width, 0), (0, -Height), and sequentially connecting the four points to form the polygonal area where the center sinking area is located as shown in figure 5;
The method comprises the steps of S23, calculating the areas where a plurality of pins (namely four pins) are located based on the polygonal areas where the outer boundary area and the center sinking area are located, so as to construct the polygonal areas where the plurality of pins are located, specifically, in the step, the upper boundary points of Polygon01 are (Width, 0), (2 x Max, 0), (0, 2 x Max), (0, height) in sequence, the upper boundary points of Polygon02 are (0, height), (0, 2 x Max), (-2 x Max, 0), (-Width, 0), the upper boundary points of Polygon03 are (-Width, 0), (-2 x Max, 0), (0 x yMax), (0, -Height) in sequence, the upper boundary points of Polygon04 are (0, -Height), (0, -2 x Max, 0), (Width, 0) in sequence, and the upper boundary points of Polygon02 are connected in sequence, so that four pins in each quadrant are respectively formed in the four areas.
S3, traversing all line segment data of EPad areas, judging that each line segment data belongs to a Center sinking area or a plurality of pin areas of a one-time EPad sinking dividing area, and forming a primary point set of the Center sinking area and a primary point set of the plurality of pin areas, specifically, judging that two points of a certain line segment are in a certain area when the certain line segment belongs to the certain area, judging that the intersection point of the line segment and the area is in the area when the certain line segment intersects the certain area, and therefore, after all points are collected, forming five point sets in five areas (the Center sinking area and the four pin areas), namely Center00 (the point set of the Center sinking area), lead01 (the point set of the first quadrant), lead02 (the point set of the second quadrant), lead03 (the point set of the third quadrant) and Lead04 (the point set of the fourth quadrant);
S4, expanding a Center sinking region (namely a polygonal region where the Center sinking region is located) in a EPad sinking dividing region, reconstructing a secondary EPad sinking dividing region (the step of constructing the secondary EPad sinking dividing region is the same as that of the step S2, so as to form a secondary Center sinking region Polygon05, the Polygon05 is combined with an outer boundary of a model, new four pin dividing regions Polygon06, polygon07, polygon08 and Polygon09 are calculated, all line segment data of the EPad region are traversed, each line segment data is judged to belong to the Center sinking region or a plurality of pin regions of the secondary EPad sinking dividing region (the step is the same as that of the step S3), and a secondary point set of the Center sinking region and a secondary point set of a plurality of pin regions are formed, so as to form Center01, lead05, lead06, lead07 and Lead08;
the method comprises the steps of S5, calculating EPad Corner area data, namely, intersecting a secondary point set of a Center sinking area with primary point sets of a plurality of pin areas to obtain EPad Corner area data, specifically, in the step, intersecting the calculated Center area data Center01 with the pin area data, and calculating four Corner area data, wherein the intersecting area of the Center01 and the Lead01 is a Corner Corner01, the intersecting area of the Center01 and the Lead02 is a Corner Corner02, the intersecting area of the Center01 and the Lead03 is a Corner Corner03, and the intersecting area of the Center01 and the Lead04 is a Corner Corner04;
S6, modeling operation is carried out on the calculated model data to finish EPad the sinking processing of the central area, wherein the model data comprises EPad corner area data, secondary point set data of the central sinking area and primary point set data of a plurality of pin areas, and the method specifically comprises the following steps:
Directly stretching the secondary point set data Center01 of the central sinking area, and then translating downwards, wherein the stretched value is a modeled thickness value;
stretching the primary point set data read 01, read 02, read 03 and read 04 of the plurality of pin areas downwards, wherein the downwards stretched value is a modeled thickness value;
The EPad Corner region data, corner01, corner02, corner03, corner04, was drawn down and then translated down, with the values drawn down being the sink depth values-modeled thickness values, and the values translated down being modeled thickness values.
The method comprises the steps of constructing EPad sinking dividing regions through acquired EPad region data and EPad region sinking processing parameters, establishing a central sinking region and a plurality of pin regions separately, traversing line segments in EPad regions in sequence to judge which specific region belongs to and form a point set, automatically performing modeling operation through calculating a plurality of pin region data and corner region data to complete EPad central region sinking processing, and performing integral operation by taking the regions as units to avoid the conditions of low efficiency and complex operation and easy error caused by manual editing one by one, wherein the whole method greatly improves the automation processing degree and ensures the compatibility between the efficiency and the precision.
Example 2
A system for applying the center area dip processing method of the QFP package device EPad as claimed in any one of the preceding claims, comprising:
The data acquisition module is used for acquiring data of the EPad area and sinking processing parameters in the EPad area;
The primary EPad sinking divided region construction module is used for constructing a primary EPad sinking divided region;
The primary point set construction module is used for traversing all line segment data of the EPad area, judging that each line segment data belongs to a central sinking area or a plurality of pin areas of the primary EPad sinking dividing area, and forming a primary point set of the central sinking area and a primary point set of the plurality of pin areas;
the secondary EPad sinking divided region construction module is used for constructing a secondary EPad sinking divided region;
The secondary point set construction module is used for traversing all line segment data of the EPad area, judging that each line segment data belongs to a central sinking area or a plurality of pin areas of the secondary EPad sinking dividing area, and forming a secondary point set of the central sinking area and a secondary point set of the plurality of pin areas;
EPad a corner region data calculation module for calculating EPad corner region data;
And the modeling module is used for performing modeling operation on the calculated model data to finish EPad central area sinking processing.
The system has the advantages that the components of the system are simple, the sinking processing parameters of the central area of EPad are set, the sinking processing area data, the pin data and the corner data are automatically calculated, the QFP is automatically modeled and displayed, the previous complicated operation is avoided, a user can intuitively and quickly see the modeling effect, the operation processing can be still quickly and efficiently carried out under the condition that the data of the EPad area is complex, and the user experience is greatly improved.
Example 3
A computer-readable storage medium storing a computer program which, when executed by a processor, implements a method of center area sinking of a QFP package EPad as described in any one of the above. It should be noted that, for a person skilled in the art, it is fully possible to implement the same program in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. by logic programming the method steps, except for implementing the system and the respective modules provided in the present application in a pure computer readable program code. Therefore, the system provided by the present application and each module thereof may be regarded as a hardware component, and the modules included therein for implementing various programs may be regarded as structures in the hardware component, and the modules for implementing various functions may be regarded as structures in both the hardware component and the software program for implementing the method.
The examples of the present invention are merely for describing the preferred embodiments of the present invention, and are not intended to limit the spirit and scope of the present invention, and those skilled in the art should make various changes and modifications to the technical solution of the present invention without departing from the spirit of the present invention.