CN117610478B - Method for recovering design diagram, electronic equipment and storage medium - Google Patents
Method for recovering design diagram, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117610478B CN117610478B CN202410097650.6A CN202410097650A CN117610478B CN 117610478 B CN117610478 B CN 117610478B CN 202410097650 A CN202410097650 A CN 202410097650A CN 117610478 B CN117610478 B CN 117610478B
- Authority
- CN
- China
- Prior art keywords
- design
- die
- copper sheet
- holes
- hole
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000010586 diagram Methods 0.000 title abstract description 6
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 claims abstract description 100
- 229910052802 copper Inorganic materials 0.000 claims abstract description 100
- 239000010949 copper Substances 0.000 claims abstract description 100
- 238000004519 manufacturing process Methods 0.000 claims abstract description 44
- 238000012986 modification Methods 0.000 claims description 3
- 230000004048 modification Effects 0.000 claims description 3
- 230000000295 complement effect Effects 0.000 description 6
- 238000012795 verification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 150000003071 polychlorinated biphenyls Chemical class 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/39—Circuit design at the physical level
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2115/00—Details relating to the type of the circuit
- G06F2115/12—Printed circuit boards [PCB] or multi-chip modules [MCM]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Moulds For Moulding Plastics Or The Like (AREA)
Abstract
The invention relates to the EDA field, in particular to a method for recovering a design drawing, electronic equipment and a storage medium, wherein production data are obtained, the production data comprise a plurality of die copper sheets and die holes, and each die copper sheet and each die hole are provided with area coordinates; analyzing the production data to obtain all the die copper sheets and all the die holes; resetting all the die copper sheets to design holes respectively, and resetting all the dies Kong Chongzhi to design copper sheets; acquiring design copper sheets corresponding to each design hole according to the inclusion relation among the region coordinates, binding the design holes with the inclusion relation and the design copper sheets into an integral element, and obtaining production data of a plurality of design copper sheets with the design holes; all production data are visually displayed, and the design diagram is restored.
Description
Technical Field
The present invention relates to the field of EDA, and in particular, to a method for recovering a design drawing, an electronic device, and a storage medium.
Background
In the production of PCBs, there are currently two processes, one is a positive process and one is a negative process. Wherein in the positive design, the pattern of the copper layer is the same as the final desired circuit board pattern. That is, the copper layer pattern in the feature is the actual circuit on the circuit board. The negative is diametrically opposed to the positive, and in the negative design, the pattern of the copper layer is opposite to the final desired circuit board pattern. That is, the copper layer pattern in the negative design is a blank area on the circuit board, not the circuit.
When a circuit pattern on a layer of a PCB is desired to be produced in a negative process, the EDA tool outputs the "what you see is what you get" circuit design in a "negated" manner, i.e., outputs negative data as production data. After the production data is obtained, verification is required at the manufacturing stage, and the production data may be trimmed during verification. In order to quickly obtain what adjustments the user made, the modified production data is currently imported into the restoration design drawing by the EDA tool, and then the modified design drawing is compared with the original design drawing to obtain a modified part. The specific process of the EDA tool for importing the modified production data into the restoration design drawing comprises the following steps: and directly importing the modified production data into a restoration design drawing after taking the complementary data, namely taking the complementary data of the die copper sheet and the die hole in the production data by an EDA tool. In the process of taking the complementary data, an error may occur to cause a wrong design diagram to be recovered, for example, an outer frame in the production data may be taken as a hole to take the complementary data by mistake, and further, the data of other mold copper sheets and mold holes may be disordered to generate the wrong design diagram. The erroneous design is compared with the original design, and the obtained comparison result is also erroneous. There is therefore a need for a method that enables the correct importing of production data into an EDA tool to generate a correct design drawing.
Disclosure of Invention
Aiming at the technical problems, the invention adopts the following technical scheme: a method of restoring a design drawing, the method comprising the steps of:
s100, acquiring production data, wherein the production data comprise a plurality of die copper sheets and die holes, and each die copper sheet and each die hole are configured with area coordinates.
And S200, analyzing the production data to obtain all the die copper sheets and all the die holes, and the area coordinates of each die copper sheet and each die hole.
S300, resetting all the die copper sheets to design holes respectively, and resetting all the dies Kong Chongzhi to design copper sheets.
S400, obtaining a design copper sheet containing each design hole according to the inclusion relation among the region coordinates, binding the design holes with the inclusion relation and the design copper sheet into an integral element, and obtaining design data of a plurality of design copper sheets with the design holes; .
S500, visually displaying all the design data, and recovering the design drawing.
The present invention also provides a non-transitory computer readable storage medium having stored therein at least one instruction or at least one program loaded and executed by a processor to implement the above-described method.
Furthermore, the invention also provides an electronic device comprising a processor and the non-transitory computer readable storage medium.
The invention has at least the following beneficial effects:
the embodiment of the invention provides a method for recovering a design drawing, electronic equipment and a storage medium, which bind the relation between a design copper sheet and a design hole through the inclusion relation between region coordinates after the copper sheet of a mould and the mould Kong Chongzhi, so that the situation of incorrect recognition of the copper sheet and the hole is avoided, and the correct design drawing is recovered.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for recovering a design chart according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
Referring to fig. 1, a flowchart of a method for recovering a design drawing, the method includes the following steps:
s100, acquiring production data, wherein the production data comprise a plurality of die copper sheets and die holes, and each die copper sheet and each die hole are configured with area coordinates.
After the original design is designed, the design desired to be produced by the negative process is derived and generated as a negative design, and production data is obtained. In the production and manufacturing process, production is required according to production data in the negative film design drawing, and the production data can be finely adjusted according to actual conditions before production so as to meet corresponding conditions. When it is necessary to know what content has been adjusted in the production stage, the adjusted production data needs to be reintroduced into the EDA tool, and then compared with the original design drawing to obtain a difference portion, which is the adjusted content.
The production data and the design data are in complementary relation, the design copper sheet in the design data is a die hole in the production data, and the design hole in the design data is the die copper sheet in the production data. The production data is generated by the EDA tool after the EDA tool takes the reverse from the design data.
Wherein the pattern of copper sheets or holes is generally a regular pattern, e.g. polygonal or circular, etc.
When the copper sheet or the hole is polygonal, the area coordinates of the copper sheet or the hole are the coordinates of each vertex of the polygonal outer frame. When the copper sheet or the hole is circular, the area coordinates of the copper sheet or the hole are the center point coordinates and the radius length of the circle.
Optionally, the production data is stored in a file in xml format.
It should be noted that, in the embodiment of the present invention, the production data and the design data originate from the source program.
And S200, analyzing the production data to obtain all the die copper sheets and all the die holes, and the area coordinates of each die copper sheet and each die hole.
When analyzing the die data, generating a grammar tree, wherein each die copper sheet and each die hole are respectively a node in the grammar tree, and the attribute of each node comprises a node type and a coordinate attribute, wherein the node type can be a type label of the die copper sheet or a type label of the die hole, and the coordinate attribute is the area coordinate of the current die copper sheet or the current die hole. And searching the node types of the grammar tree according to the node types of the mould copper sheets to obtain the nodes of all the mould copper sheets. Similarly, when the data block is analyzed, node types of all the die holes in the grammar tree are the same, and node types of the grammar tree are searched according to the node types of the die holes to obtain nodes of all the die holes.
S300, resetting all the die copper sheets to design holes respectively, and resetting all the dies Kong Chongzhi to design copper sheets.
Wherein the types of the copper sheet and the hole are reset in this step, in order to convert the production data into the design data by using the complementary relationship between the production data and the design data.
When the type of the die copper sheet of the node is reset to the type of the design hole, the coordinate attribute of the node is unchanged. For example, the type of the current node before the reset is the mold copper sheet and the area coordinate is a, and the type of the current node after the reset is the design hole and the area coordinate is a.
In the original design data, the corresponding region coordinates are already allocated to each copper sheet and each hole, respectively. Therefore, the patterns visually overlapped in the design drawing of the design data are actually independent region coordinates in the production data and the design data, and do not interfere with each other.
As a preferred embodiment, the outermost mold copper sheet is extracted and the outermost mold copper sheet is replaced as the design frame. Optionally, the step of extracting the outermost mold copper sheet includes: and extracting the maximum area coordinates of all the die copper sheets, wherein the die copper sheet corresponding to the maximum area coordinates is the die copper sheet of the outermost layer.
S400, obtaining the design copper sheet containing each design hole according to the containing relation among the region coordinates, binding the design holes with the containing relation and the design copper sheet into a whole element, and obtaining design data of a plurality of design copper sheets with the design holes.
Wherein, a whole element binds a design copper sheet and K design holes, wherein K is more than or equal to 0. The relationship between the various types of design copper sheet and design holes is included in the design data, for example, one design copper sheet includes one design hole, or may include a plurality of design holes.
The algorithm for obtaining the design copper sheet containing each design hole according to the containing relation among the region coordinates is graphic operation.
Optionally, the algorithm for obtaining the design copper sheet containing each design hole according to the inclusion relation between the region coordinates comprises the following steps:
s420, judging whether the outer frames of the design copper sheet and the design hole are intersected according to the region coordinates, and judging that the outer frames have no inclusion relationship if the outer frames intersect; otherwise, S440 is performed.
It should be noted that when there is an intersecting relationship between two polygons, one of the polygons has two vertices, one inside the other polygon and one outside the other polygon. Therefore, whether an intersection relationship exists between two polygons or not can be judged through the magnitude relationship between the abscissa and the ordinate of the region coordinates.
S440, judging whether the region coordinates in the design holes are in the outer frame of the design copper sheet, if so, the design copper sheet comprises the design holes; otherwise, the two have no inclusion relationship.
Other algorithms in the prior art for determining the inclusion relationship between two different region coordinates fall within the scope of the present invention.
Wherein, an integral element includes a design copper sheet and a design hole, and the region of design copper sheet is greater than the region of design hole, and the pattern that actually forms is the difference of design copper sheet and design hole, namely removes the copper sheet region after the design hole in the region of design copper sheet and be the circuit area of hopefully.
As a preferred embodiment, the S400 further includes: when the region coordinates of the ith design hole are contained by the region coordinates of the candidate plurality of design copper sheets, a minimum bounding box of the region coordinates of the candidate plurality of design copper sheets is obtained, and the design copper sheet corresponding to the minimum bounding box and the ith design hole are bound into a whole element.
S500, visually displaying all the design data, and recovering the design drawing.
As a preferred embodiment, the method further comprises:
s600, comparing the updated design data with the original design data, wherein the difference part is a modification position.
Specifically, the comparison method is to compare the updated design data with each region coordinate in the original design data, when the region coordinates are different, the different region coordinates in the updated design drawing and the original design drawing are extracted and visualized and displayed in a centralized manner, and the design copper sheets or holes corresponding to the different region coordinates are highlighted in the updated design drawing, so that a user can conveniently and quickly check the number of changed coordinates and which of the changed drawings are.
In summary, the embodiment of the present invention provides a method for recovering a design drawing, which includes analyzing and obtaining a mold copper sheet and a mold hole in production data, resetting the mold copper sheet to be a design hole, resetting the mold Kong Chongzhi to be a design copper sheet, obtaining a design copper sheet including each design hole by calculating a inclusion relation between coordinate areas, binding each pair of design holes and the design copper sheet to be an integral element, obtaining design data, and visualizing all the design data to recover the design drawing. After the copper sheet and the hole are reset, the relationship between the copper sheet and the hole is bound through the inclusion relationship between the region coordinates, so that the situation of incorrect recognition of the copper sheet and the hole is avoided, and the correct design diagram is recovered.
Embodiments of the present invention also provide a non-transitory computer readable storage medium that may be disposed in an electronic device to store at least one instruction or at least one program for implementing one of the methods embodiments, the at least one instruction or the at least one program being loaded and executed by the processor to implement the methods provided by the embodiments described above.
Embodiments of the present invention also provide an electronic device comprising a processor and the aforementioned non-transitory computer-readable storage medium.
Embodiments of the present invention also provide a computer program product comprising program code for causing an electronic device to carry out the steps of the method according to the various exemplary embodiments of the invention as described in the specification, when said program product is run on the electronic device.
While certain specific embodiments of the invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the invention. Those skilled in the art will also appreciate that many modifications may be made to the embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.
Claims (8)
1. A method of restoring a design drawing, the method comprising the steps of:
s100, acquiring production data, wherein the production data comprise a plurality of die copper sheets and die holes, and each die copper sheet and each die hole are configured with area coordinates;
s200, analyzing the production data to obtain all the die copper sheets and all the die holes, and the area coordinates of each die copper sheet and each die hole;
s300, resetting all the die copper sheets to design holes respectively, and resetting all the dies Kong Chongzhi to design copper sheets;
s400, obtaining a design copper sheet containing each design hole according to the inclusion relation among the region coordinates, binding the design holes with the inclusion relation and the design copper sheet into an integral element, and obtaining design data of a plurality of design copper sheets with the design holes;
s500, visually displaying all the design data, and recovering the design drawing.
2. The method of claim 1, wherein S400 further comprises: when the region coordinates of the ith design hole are contained by the region coordinates of the candidate plurality of design copper sheets, a minimum bounding box of the region coordinates of the candidate plurality of design copper sheets is obtained, and the design copper sheet corresponding to the minimum bounding box and the ith design hole are bound into a whole element.
3. The method according to claim 1, wherein the method further comprises: s600, comparing the updated design drawing with the original design drawing, wherein the difference part is a modification position.
4. The method of claim 1, wherein S400 further comprises:
s420, judging whether the outer frames of the design copper sheet and the design hole are intersected according to the region coordinates, and judging that the outer frames have no inclusion relationship if the outer frames intersect; otherwise, S440 is performed;
s440, judging whether the region coordinates in the design holes are in the outer frame of the design copper sheet, if so, the design copper sheet comprises the design holes; otherwise, the two have no inclusion relationship.
5. The method of claim 1, wherein in S400, a single integral element binds a design copper sheet and K design holes, wherein K is 0 or more.
6. The method of claim 1, wherein S300 further comprises: and extracting the outermost mould copper sheet, and resetting the outermost mould copper sheet as a design frame.
7. A non-transitory computer readable storage medium having stored therein at least one instruction or at least one program, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the method of any one of claims 1-6.
8. An electronic device comprising a processor and the non-transitory computer readable storage medium of claim 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410097650.6A CN117610478B (en) | 2024-01-24 | 2024-01-24 | Method for recovering design diagram, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410097650.6A CN117610478B (en) | 2024-01-24 | 2024-01-24 | Method for recovering design diagram, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117610478A CN117610478A (en) | 2024-02-27 |
CN117610478B true CN117610478B (en) | 2024-03-22 |
Family
ID=89956561
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410097650.6A Active CN117610478B (en) | 2024-01-24 | 2024-01-24 | Method for recovering design diagram, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117610478B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE553184C (en) * | 1930-03-07 | 1932-06-22 | Ullstein A G | Process for the production of press-ready galvanos |
JPH01315749A (en) * | 1988-06-16 | 1989-12-20 | Oki Electric Ind Co Ltd | Formation of document master plate of printed circuit board |
JP2011035094A (en) * | 2009-07-31 | 2011-02-17 | Dainippon Printing Co Ltd | Method of repairing printed board pattern |
CN106897490A (en) * | 2017-01-18 | 2017-06-27 | 深圳市百能信息技术有限公司 | The recognition methods of copper sheet in a kind of PCB project files |
CN110135082A (en) * | 2019-05-20 | 2019-08-16 | 苏州浪潮智能科技有限公司 | A kind of method of negative film layer copper sheet evacuation via hole in PCB design |
CN111859846A (en) * | 2020-06-21 | 2020-10-30 | 苏州浪潮智能科技有限公司 | Negative film comparison method, system, equipment and medium of PCB |
CN115279050A (en) * | 2022-07-26 | 2022-11-01 | 中山国昌荣电子有限公司 | PCB copper-stacking processing method, electronic device and computer-readable storage medium |
CN116090316A (en) * | 2023-04-11 | 2023-05-09 | 巨霖科技(上海)有限公司 | PCB two-dimensional unstructured grid generation method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10070532B2 (en) * | 2015-04-28 | 2018-09-04 | The United States Of America, As Represented By The Secretary Of The Navy | Printed circuit board fabrication processes and architecture including point-of-use design and fabrication capacity employing additive manufacturing |
-
2024
- 2024-01-24 CN CN202410097650.6A patent/CN117610478B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE553184C (en) * | 1930-03-07 | 1932-06-22 | Ullstein A G | Process for the production of press-ready galvanos |
JPH01315749A (en) * | 1988-06-16 | 1989-12-20 | Oki Electric Ind Co Ltd | Formation of document master plate of printed circuit board |
JP2011035094A (en) * | 2009-07-31 | 2011-02-17 | Dainippon Printing Co Ltd | Method of repairing printed board pattern |
CN106897490A (en) * | 2017-01-18 | 2017-06-27 | 深圳市百能信息技术有限公司 | The recognition methods of copper sheet in a kind of PCB project files |
CN110135082A (en) * | 2019-05-20 | 2019-08-16 | 苏州浪潮智能科技有限公司 | A kind of method of negative film layer copper sheet evacuation via hole in PCB design |
CN111859846A (en) * | 2020-06-21 | 2020-10-30 | 苏州浪潮智能科技有限公司 | Negative film comparison method, system, equipment and medium of PCB |
CN115279050A (en) * | 2022-07-26 | 2022-11-01 | 中山国昌荣电子有限公司 | PCB copper-stacking processing method, electronic device and computer-readable storage medium |
CN116090316A (en) * | 2023-04-11 | 2023-05-09 | 巨霖科技(上海)有限公司 | PCB two-dimensional unstructured grid generation method and system |
Non-Patent Citations (1)
Title |
---|
模具零件孔特征的自动化标注;高国利;贾宇霖;;模具制造;20130408(第04期);91-93 * |
Also Published As
Publication number | Publication date |
---|---|
CN117610478A (en) | 2024-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102089762B (en) | Method and system for model-based design and layout of an integrated circuit | |
US7042451B2 (en) | Methods using specific attributes and graph grammars in graph-based techniques for feature recognition | |
JP2019532377A (en) | Printed circuit board metal mask manufacturing method and printed circuit board metal mask manufacturing system | |
CN111611766A (en) | Method, apparatus and storage medium for determining circuit layout constraints | |
JP7451373B2 (en) | Drawing structuring system and drawing structuring method | |
CN112818457A (en) | BIM (building information modeling) model intelligent generation method and system based on CAD (computer-aided design) drawing | |
CN110705213A (en) | PDF (Portable document Format) table extraction method and device, terminal and computer readable storage medium | |
CN112182406A (en) | Mechanical design scheme recommendation method and device | |
TW201430485A (en) | Automated design layout pattern correction based on context-aware patterns | |
CN114896395A (en) | Language model fine-tuning method, text classification method, device and equipment | |
CN112395425A (en) | Data processing method and device, computer equipment and readable storage medium | |
CN117610478B (en) | Method for recovering design diagram, electronic equipment and storage medium | |
CN114509912A (en) | Mask optimization method, mask optimization device and electronic equipment | |
US20200364034A1 (en) | System and Method for Automated Code Development and Construction | |
CN116798053A (en) | Icon generation method and device | |
CN111832906A (en) | CAD drawing complexity evaluation method and device | |
CN113688243B (en) | Method, device, equipment and storage medium for labeling entities in sentences | |
CN114860894A (en) | Method and device for querying knowledge base, computer equipment and storage medium | |
US10564554B2 (en) | System and method for analyzing printed masks for lithography based on representative contours | |
JP2000090117A (en) | Method and device for extracting logical element of document image, and recording medium therefor | |
JP4209567B2 (en) | Tool path data creating method and computer readable storage medium storing tool path data creating program | |
CN115995087B (en) | Document catalog intelligent generation method and system based on fusion visual information | |
US11373020B2 (en) | Method and system with mesh data conversion for stamping dies | |
CN117972123B (en) | Customer service information system, method, equipment and medium based on 5G message | |
CN114972862A (en) | Part machining feature recognition method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |