A method for generating production data, electronic device and storage medium
By traversing objects and judging overlays, and binding negative polarity attribute tags to generate production data, the problem of high computational complexity and recovery errors in the existing technology is solved, and the generation efficiency and data accuracy are improved.
Patent Information
- Application Number
- CN202410986287.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-23
AI Technical Summary
When the existing technology generates production data in PCB manufacturing, the calculation complexity is high and the efficiency is low, and it is prone to errors when restoring the design data, especially during the conversion and merging operations of copper sheets and holes.
By obtaining multiple stack data specified by the user, it traverses all objects and determines whether the stack to which the copper object belongs is a negative layer. If so, bind the negative polarity attribute tag to generate negative copper production data to avoid the change of copper sheets and holes one by one. Transformation and merging operations.
It greatly reduces the usage of computing resources, improves the efficiency of production data generation, simplifies the recovery process of design data, and reduces the risk of errors.
Smart Images

Figure CN118520836B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of EDA, and in particular to a method for generating production data, an electronic device and a storage medium. Background Art
[0002] Negative film technology is generally used in PCB manufacturing. The advantage of negative film technology is that its manufacturing cost is relatively low. In PCB manufacturing, film is used to transfer design data to the PCB substrate. From the film of the negative film process, the white area represents the area containing the actual wiring or copper foil, while the black area represents the area without wiring or copper foil. In chip design, the design data of the entire circuit design includes the graphic data of an overall outer frame, and the outer frame includes a large amount of graphic data of copper foil, wherein the overall outer frame is only a boundary graphic, not an actual copper foil graphic or hole graphic. The graphic shape of the copper foil can be a copper foil without inner holes, or a copper foil including one or more inner holes, wherein the inner hole is a hole located in the middle of the copper foil, and the hole and the copper foil together constitute the overall graphic of the copper foil. Therefore, in the design data, the graphic data of the copper foil includes the copper foil data and U inner hole data, where U is greater than or equal to 0, and there may be overlap between the copper foil graphics of different layers. At present, the common practice of outputting design data into production data using negative film technology is: converting the copper data in the graphic data of each copper sheet in the negative film layer in the original design data into hole data in the production data, and converting the hole data into copper data in the production data, and at the same time merging the graphic data of multiple copper sheets in the negative film layer in the original design data to achieve the purpose of removing duplicate areas, and then recombining the processed data to regenerate production data. This method has the following defects:
[0003] First, the computational complexity of the merge operation is high, which occupies a large amount of hardware computing resources, resulting in low efficiency in generating production data;
[0004] Second, the production data obtained by the above method has undergone operations such as conversion of copper foil and hole and merging operation between copper foil graphic data, which may easily lead to recovery errors or even failure to recover when the production data is restored to design data. Summary of the invention
[0005] In view of the above technical problems, the technical solution adopted by the present invention is: a method for generating production data, the method comprising the following steps:
[0006] S100, obtaining H layers specified by a user for generating production data, wherein the H layers include at least one negative layer; layer={layer1, layer2, ..., layer q ,…,layer H}, layerq It is the qth stack, and the value of q ranges from 1 to H.
[0007] S200, classifying the objects in the original design data of each stack by type, and filtering out the overall frame objects and copper skin objects in the current stack; wherein, the layer q Original design data q It includes an overall frame object outline and N copper objects obj; among them, outline is bound to the graphic data ladata0 of the overall frame, obj={obj1,obj2,…,obj i ,…,obj N}, obj i is the i-th copper skin object, obj i Bind obj i Graphic data of ladata i , the value range of i is 1 to N.
[0008] S300, when the user q When generating production data, traverse Data q For all objects in the image, generate the graphic data of each object. The generation steps include:
[0009] S310, when traversing to Data q When creating the outline object in the image, the negative attribute label negative is not bound, and the outline object and its bound outline graphic data ladata0 are generated.
[0010] S320, when traversing to obj in obj i When judging obj i The current overlay layer q Is it a negative layer? If so, it is obj i Bind the negative polarity attribute tag negative and generate obj i and its bound graphic data ladata i .
[0011] In addition, the present invention also provides a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the above method.
[0012] In addition, the present invention also provides an electronic device, including a processor and the above-mentioned non-transitory computer-readable storage medium.
[0013] The present invention has at least the following beneficial effects:
[0014] The present invention provides a method for generating production data, an electronic device and a storage medium, which traverses the original design data Data h All objects in the , determine the current layer to which each copper skin object belongs h Whether it is a negative layer, if so, bind a negative polarity attribute label to the corresponding copper object, and then generate negative copper production data. Compared with the existing technology, this method does not need to convert the copper and holes one by one when exporting and generating production data, nor does it need to merge the graphic data of the copper object, which greatly reduces the occupation of computing resources, improves the efficiency of generating production data, and is less prone to errors when restoring design data based on the production data. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0016] Figure 1 A flow chart of a method for generating production data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0018] See also Figure 1 , which shows a flow chart of a method for generating production data, the method comprising the following steps:
[0019] S100, obtaining H layers specified by a user for generating production data, wherein the H layers include at least one negative layer; layer={layer1, layer2, ..., layer q ,…,layer H}, layer q It is the qth stack, and the value of q ranges from 1 to H.
[0020] The user's chip design adopts a layered design, including multiple stacks, each of which includes different types of data.
[0021] Among them, the negative layer is specified when the chip is designed.
[0022] Among them, the positive film data is the graphic data of the copper skin, which is the same as the data on the film, that is, it directly represents the copper skin that is actually to be retained and the non-conductive area that needs to be removed, such as the hole data. The negative film data is completely opposite to the positive film, which is equivalent to a mold. The hole data in the negative film data represents the area where the copper skin needs to be removed, and the copper skin data represents the area where the copper skin needs to be retained. The area that needs to retain the copper skin in the negative film data is actually the copper skin data in the positive film data, and the area that needs to remove the copper skin is actually the hole data in the positive film data. Therefore, the negative film data can be obtained by converting the hole and copper skin data in the positive film data. During production, the overall outer frame object in the negative film data is a large piece of copper skin. By corroding the copper skin at the graphic position corresponding to the hole data in the negative film data and retaining the copper skin data in the negative film data, the desired result can be obtained.
[0023] S200, classifying the objects in the original design data of each stack by type, and filtering out the overall frame objects and copper skin objects in the current stack; wherein, the layer q Original design data q It includes an overall frame object outline and N copper objects obj; among them, outline is bound to the graphic data ladata0 of the overall frame, obj={obj1,obj2,…,obj i ,…,obj N}, obj i is the i-th copper skin object, obj i Bind obj i Graphic data of ladata i , the value range of i is 1 to N.
[0024] Among them, the object type is the design object in the stackup, including the overall frame object, copper object, through-hole object, pin object and wiring object.
[0025] Among them, the overall frame object outline is bound to the outer boundary graphics of the chip design.
[0026] Among them, the copper skin object is bound to the graphic data of a copper skin, and the graphic data of each copper skin includes the copper skin data and U hole data, where U is greater than or equal to 0. When U is equal to 0, the inside of the copper skin is solid, and there are no holes inside the copper skin. When U is not equal to 0, the inside of the copper skin also includes U holes, and the copper skin graphics are surrounded by the holes and the copper skin data. Optionally, the copper skin data is the shape data of the copper skin, and the hole data is the shape data of the hole. For example, the starting and ending positions of each line constituting the copper skin, or the starting and ending positions of each line constituting the hole.
[0027] As an example, the copper object may be a copper sheet used to connect concentrated pins, or may be a copper sheet used to lay a ground signal, and so on.
[0028] S300, when the user q When generating production data, traverse Data q For all objects in the image processing unit, the graphic data of each object is generated according to steps S310 and S320, and the generating step includes:
[0029] S310, when traversing to Data q When creating the outline object in the image, the negative attribute label negative is not bound, and the outline object and its bound outline graphic data ladata0 are generated.
[0030] It should be noted that the outline object outline and its outline graphic data ladata0 generated in the production data are q Same as in.
[0031] S320, when traversing to obj in obj i When judging obj i The current overlay layer q Is it a negative layer? If so, it is obj i Bind the negative polarity attribute tag negative and generate obj i and its bound graphic data ladata i .
[0032] It should be noted that the obj generated in the production data i and its bound image data ladata i With Data q The difference is that in obj i The negative polarity attribute tag negative is bound to the production stage, which is used to indicate that the current copper object obj i After the negative polarity conversion, the production is carried out, wherein the negative polarity conversion is: i Convert the copper data in the ladata to hole data. iThe hole data in the negative film layer is converted into copper data. Through S320, all copper objects in the negative film layer are bound to the negative polarity attribute label negative to generate production data. When the negative polarity attribute label negative is detected in the production stage, negative polarity conversion is performed. This method can simplify data calculations. There is no need to convert the copper and holes one by one when exporting and generating production data, nor is there any need to merge the graphic data of the copper objects, etc., which greatly reduces the occupation of computing resources and improves the efficiency of generating production data.
[0033] As a preferred embodiment, the method further includes:
[0034] S400, based on the production data NData modified by the user q ´, traverse NData q All objects in ´ are restored according to steps S410 and S420. q The graphic data of each object in Data q ´.
[0035] After obtaining the production data, it needs to be verified in the manufacturing stage, and the production data may be fine-tuned during the verification process. In order to quickly obtain the adjustments made by the user, it is necessary to import the modified production data into the design data through the EDA tool, and then compare the restored design data with the original design data to find the adjusted part.
[0036] Further, S410, when traversing to NData q When the overall outer frame object outline' in ' is generated, the overall outer frame object outline' and its bound outer frame graphic data ladata0' are generated.
[0037] It should be noted that when the production data is generated from the design data, the negative polarity attribute label of the overall outer frame object is not processed. Therefore, when the design data is restored from the production data, there is no need to unbind the overall outer frame object.
[0038] Further, S420, when traversing to NData q obj in ´ i When judging obj i Whether to bind the negative polarity attribute tag negative, if so, unbind the negative polarity attribute tag negative and generate obj i and its bound graphic data ladata i ´.
[0039] It should be noted that when the production data is reversely restored to the design data, the added negative polarity attribute label negative can be untied to restore the design data. There is no need to process the graphic data. It only needs to untie the negative polarity attribute label negative. There is no need to go through complex calculations. The recovery process is simple and efficient and will not go wrong. Compared with the prior art of "converting the copper data in the graphic data of each copper sheet in the negative layer in the original design data into the hole data in the production data, and converting the hole data into the copper data in the production data, and merging the graphic data of multiple copper sheets in the negative layer in the original design data", it does not require the conversion of a large amount of copper sheet data and hole data, nor does it require the reverse recovery of the merged graphic data in the production data into design data through complex algorithms. These recovery processes not only occupy a large amount of hardware computing resources, but also have low recovery efficiency, and are prone to errors in the recovered design data.
[0040] Other methods in the prior art for unbinding the negative polarity attribute label negative and restoring design data all fall within the protection scope of the present invention.
[0041] As a preferred embodiment, the method further includes:
[0042] S500, Data q ´ and Data q The graphic data of each object in the image are compared to obtain all modified objects and their modified graphic data. Methods for obtaining differences by comparing the restored design data with the original design data fall within the protection scope of the present invention.
[0043] As a preferred embodiment, in S320, for obj i When binding the negative polarity attribute tag negtive, obj is also bound i The unique identifier id i ; then S500 also includes:
[0044] S510, traverse Data q The unique identity of each object in ´. When traversing to id i When you get the id i Bound obj i In Data q Graphical data in ´ladata i ´; and traverse Data q The unique identifier in i When you get the id i Bound obj i In Data q Graphical data in ladata i, the ladata i ´ and ladata i Compare them. If the two are the same, the graphic data has not been modified. Otherwise, obj i As the modified object, ladata i ´ and ladata i The difference between them is used as the modified graphic data.
[0045] Among them, id i The data type is an integer or a string. Other data types used to represent a unique identity in the prior art fall within the protection scope of the present invention.
[0046] In the prior art, other methods for obtaining the modified object and its modified graphic data all fall within the protection scope of the present invention.
[0047] Optionally, the modified graphic data also includes ladata i ´ and ladata i .
[0048] It should be noted that during the verification process at the manufacturing stage, only the graphic data will be fine-tuned, and the unique identity of each object will not be changed. Therefore, when performing a comparison, a targeted comparison of each object before and after modification can be performed through the unique identity, which can reduce the comparison scope, reduce the algorithm complexity, reduce the consumption of hardware resources, and improve the comparison efficiency.
[0049] S520: When the traversal is completed, all modified objects and their modified graphic data are obtained.
[0050] S530: Visually display all modified objects and their modified graphic data.
[0051] Optionally, S530 further includes generating a comparison report, in which all modified objects and their modified graphic data are saved.
[0052] It should be noted that both the visual display and the comparison report enable the user to quickly identify the modified content directly based on the modified objects and their modified graphic data.
[0053] As a preferred embodiment, in S300, obj i Also bound to the i-th network net i ;
[0054] Then S320 also includes: if obj i Belong to net i , then obj i Binding neti In PCB design, data objects can be divided by stackup, by network, or in other ways, so a data object may have different types of division. For example, if divided by stackup, obj i Belongs to layer q ; Divide obj by network i Also belongs to the networknet i ; Therefore obj i Belongs to layer q , also belongs to net i .obj i The network to which it belongs has nothing to do with the positive and negative film data. Since the method of generating negative films adopted by the present invention does not destroy the original copper data, that is, the original data object is retained, the method of obtaining the attribute information of the object and binding the object and its corresponding attribute information can bind more original attribute information to each object in the output negative film data, so that the production end can obtain the attribute information of the object.
[0055] Others bind certain attribute information to obj i All of the methods fall within the protection scope of the present invention.
[0056] It should be noted that binding the network to which the current copper sheet belongs to each object can quickly identify the relationship between the copper sheet and the net during the design and production stages. For example, during the production stage, when two copper sheets belong to the same net on the same layer, the data of the two copper sheets can be merged.
[0057] In summary, the present invention provides a method for generating production data, wherein the method obtains H stacks specified by a user for generating production data, wherein the H stacks include at least one negative layer, and when the user generates production data according to the hth layer q Original design data q When generating production data, traverse Data q All objects in the layer, determine the current data layer to which each copper skin object belongs q Whether it is a negative layer, if so, a negative polarity attribute tag is bound to the corresponding copper object, and when a negative polarity attribute tag is detected during the production stage, a negative polarity conversion is performed. Compared with the prior art, this method does not need to convert the copper and holes one by one when generating production data, nor does it need to merge the graphic data of the copper object, which greatly reduces the occupation of computing resources, improves the efficiency of generating production data, and does not make mistakes when restoring design data based on the production data.
[0058] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a method in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiment.
[0059] An embodiment of the present invention further provides an electronic device, comprising a processor and the aforementioned non-transitory computer-readable storage medium.
[0060] An embodiment of the present invention further provides a computer program product, which includes program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the method according to various exemplary embodiments of the present invention described above in this specification.
[0061] Although some specific embodiments of the present invention have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A method for generating production data, characterized in that: The method comprises the following steps: S100, obtaining H layers specified by a user for generating production data, wherein the H layers include at least one negative layer; layer={layer1, layer2, ..., layer q ,…,layer H }, layer q is the qth stack, and the value of q ranges from 1 to H; S200, classifying the objects in the original design data of each stack by type, and filtering out the overall frame objects and copper skin objects in the current stack; wherein, the layer q Original design data q It includes an overall frame object outline and N copper objects obj; among them, outline is bound to the graphic data ladata0 of the overall frame, obj={obj1,obj2,…,obj i ,…,obj N }, obj i is the i-th copper skin object, obj i Bind obj i Graphic data of ladata i , the value range of i is from 1 to N; S300, when the user q When generating production data, traverse Data q For all objects in the image, generate the graphic data of each object. The generation steps include: S310, when traversing to Data q When the outline object in the image is generated, the negative polarity attribute label negative is not bound, and the outline object and its bound outline graphic data ladata0 are generated; S320, when traversing to obj in obj i When judging obj i The current overlay layer q Is it a negative layer? If so, it is obj i Bind the negative polarity attribute tag negative and generate obj i and its bound graphic data ladata i ; Wherein, the method further comprises: S400, based on the production data NData modified by the user q ´, traverse NData q ´, restore the layer according to the following steps q The graphic data of each object in Data q ´: S410, when traversing to NData q When the overall outer frame object outline' in ' is generated, the overall outer frame object outline' and its bound outer frame graphic data ladata0' are generated; S420, when traversing to NData q obj in ´ i When judging obj i Whether to bind the negative polarity attribute tag negative, if so, unbind the negative polarity attribute tag negative and generate obj i and its bound graphic data ladata i ´.
2. The method according to claim 1, characterized in that The method further comprises: S500, Data q ´ and Data q The graphic data of each object in is compared to obtain all modified objects and their modified graphic data.
3. The method according to claim 2, characterized in that S320 is obj i When binding the negative polarity attribute tag negtive, obj is also bound i Unique ID of i ; Then S500 also includes: S510, traverse Data q The unique identity of each object in ´. When traversing to id i When you get the id i Bound obj i In Data q Graphical data in ´ladata i ´; and traverse Data q The unique identifier in i When you get the id i Bound obj i In Data q Graphical data in ladata i , the ladata i ´ and ladata i Compare them. If the two are the same, the graphic data has not been modified. Otherwise, obj i As the modified object, ladata i ´ and ladata i The difference between them is used as the modified graphic data; S520, when the traversal is completed, all modified objects and their modified graphic data are obtained; S530: Visually display all modified objects and their modified graphic data.
4. The method according to claim 3, characterized in that The modified graphic data in S510 also includes ladata i ´ and ladata i .
5. The method according to claim 3, characterized in that: ID in S320 i The data type is integer or string.
6. The method according to claim 1, characterized in that In S300, obj i Also bound to the i-th network net i ; Then S320 also includes: if obj i Belong to net i , then obj i Binding net i .
7. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the method according to any one of claims 1 to 6.
8. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 7.
