Drawing method, system and related device for GND attribute copper sheet on circuit board

文档序号:971421 发布日期:2020-11-03 浏览:7次 中文

阅读说明:本技术 电路板上gnd属性铜皮的绘制方法、系统及相关装置 (Drawing method, system and related device for GND attribute copper sheet on circuit board ) 是由 郑凯强 于 2020-07-29 设计创作,主要内容包括:本申请提供一种电路板上GND属性铜皮的绘制方法,包括:获取所述电路板上各差分线位置;根据各所述差分线位置确定对应的过孔坐标;分别以各所述过孔坐标为圆心,以预设距离为半径绘制各所述差分线对应的GND属性铜皮。本申请通过直接获取各差分线位置并确定过孔坐标,可以实现快速绘制整个电路板上所有差分线过孔对应的GND属性铜皮,降低了由于人工筛选绘制带来的错误率高、效率低等问题,提高电路板的制成质量。本申请还提供一种电路板上GND属性铜皮的绘制系统、计算机可读存储介质和电子设备,具有上述有益效果。(The application provides a drawing method of a GND attribute copper sheet on a circuit board, which comprises the following steps: acquiring positions of all differential lines on the circuit board; determining corresponding via hole coordinates according to the positions of the differential lines; and drawing the GND attribute copper sheet corresponding to each difference line by taking the coordinate of each via hole as a circle center and a preset distance as a radius. According to the method and the device, the positions of the differential lines are directly acquired, the coordinates of the via holes are determined, the GND attribute copper sheets corresponding to all the differential line via holes on the whole circuit board can be quickly drawn, the problems of high error rate, low efficiency and the like caused by manual screening and drawing are reduced, and the manufacturing quality of the circuit board is improved. The application also provides a drawing system of the GND attribute copper sheet on the circuit board, a computer readable storage medium and electronic equipment, which have the beneficial effects.)

1. A drawing method of GND attribute copper sheets on a circuit board is characterized by comprising the following steps:

acquiring positions of all differential lines on the circuit board;

determining corresponding via hole coordinates according to the positions of the differential lines;

and drawing the GND attribute copper sheet corresponding to each difference line by taking the coordinate of each via hole as a circle center and a preset distance as a radius.

2. The drawing method according to claim 1, wherein obtaining the respective differential line positions on the circuit board comprises:

acquiring all target signals containing differential line parameters on the circuit board;

a corresponding differential line position is determined from each of the target signals.

3. The rendering method according to claim 1, further comprising, when the target differential line is changed:

acquiring the changed position of the target differential line;

determining a changed via hole coordinate according to the changed position;

and drawing the GND attribute copper sheet by taking the changed via hole coordinate as a circle center and the second distance as a radius.

4. The drawing method according to claim 1, wherein before drawing the GND property copper sheet corresponding to each of the differential lines with a preset distance as a radius, the drawing method further comprises:

receiving an input distance, and determining the preset distance according to the input distance.

5. The drawing method according to claim 1, wherein after drawing the GND property copper sheet corresponding to each of the differential lines with a preset distance as a radius, the drawing method further comprises:

configuring copper sheet attributes for each GND attribute copper sheet;

the copper sheet attribute comprises the via hole coordinate, the preset distance and the copper sheet state.

6. The rendering method according to claim 5, further comprising:

and when a deleting instruction is received, deleting the GND attribute copper sheet according to the copper sheet state.

7. The utility model provides a drawing system of GND attribute copper sheet on circuit board which characterized in that includes:

the acquisition module is used for acquiring the positions of all the differential lines on the circuit board;

the coordinate determination module is used for determining corresponding via hole coordinates according to the positions of the differential lines;

and the drawing module is used for drawing the GND attribute copper sheet corresponding to each difference line by taking the coordinate of each via hole as a circle center and taking a preset distance as a radius.

8. The rendering system of claim 7, wherein the obtaining module comprises:

the acquisition unit is used for acquiring all target signals containing the differential line parameters on the circuit board;

and a differential line determining unit for determining a corresponding differential line position by each of the target signals.

9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.

10. An electronic device, comprising a memory in which a computer program is stored and a processor which, when called upon in the memory, implements the steps of the method according to any one of claims 1-6.

Technical Field

The application relates to the field of circuit design, in particular to a drawing method and system for a GND attribute copper sheet on a circuit board and a related device.

Background

In the PCB design, in order to have better signal quality, a VIA hole with GND (abbreviated as Ground, Ground pole or 0 pole) attribute is added around two VIA holes of a differential line according to the simulation result during layout and routing, and the english name is return path GND VIA, which is also called VIA hole, thereby shortening the return path to reduce the electromagnetic compatibility problem and making the differential line have better signal quality.

In the engineering, due to the fact that tools are not perfect, VIA holes with the GND attribute originally can be converted into VIA VIA holes with the non-GND attribute easily in the design process, the current solution is to manually draw a copper sheet with the GND attribute on the VIA holes with the GND attribute, but the copper sheet with the GND attribute added manually is prone to leakage, and further poor signal quality is caused.

However, the manual operation is time consuming and prone to leakage, and if the leakage occurs, the via with the GND property is easily converted into the via with the non-GND property, so that the signal quality of the differential line is poor. And in the process of modifying the differential line, the GND attribute copper sheet is easy to ignore.

Disclosure of Invention

The application aims to provide a drawing method and system of a GND attribute copper sheet on a circuit board, a computer readable storage medium and electronic equipment, which can improve the drawing efficiency of the GND attribute copper sheet.

In order to solve the technical problem, the application provides a drawing method of a GND attribute copper sheet on a circuit board, and the specific technical scheme is as follows:

acquiring positions of all differential lines on the circuit board;

determining corresponding via hole coordinates according to the positions of the differential lines;

and drawing the GND attribute copper sheet corresponding to each difference line by taking the coordinate of each via hole as a circle center and a preset distance as a radius.

Optionally, the obtaining the positions of the differential lines on the circuit board includes:

acquiring all target signals containing differential line parameters on the circuit board;

a corresponding differential line position is determined from each of the target signals.

Optionally, when the target differential line is changed, the method further includes:

acquiring the changed position of the target differential line;

determining a changed via hole coordinate according to the changed position;

and drawing the GND attribute copper sheet by taking the changed via hole coordinate as a circle center and the second distance as a radius.

Optionally, before drawing each GND attribute copper sheet corresponding to the difference line with a preset distance as a radius, the method further includes:

receiving an input distance, and determining the preset distance according to the input distance.

Optionally, after drawing each GND attribute copper sheet corresponding to the difference line with a preset distance as a radius, the method further includes:

configuring copper sheet attributes for each GND attribute copper sheet;

the copper sheet attribute comprises the via hole coordinate, the preset distance and the copper sheet state.

Optionally, the method further includes:

and when a deleting instruction is received, deleting the GND attribute copper sheet according to the copper sheet state.

The application also provides a drawing system of GND attribute copper sheet on circuit board, includes:

the acquisition module is used for acquiring the positions of all the differential lines on the circuit board;

the coordinate determination module is used for determining corresponding via hole coordinates according to the positions of the differential lines;

and the drawing module is used for drawing the GND attribute copper sheet corresponding to each difference line by taking the coordinate of each via hole as a circle center and taking a preset distance as a radius.

Optionally, the obtaining module includes:

the acquisition unit is used for acquiring all target signals containing the differential line parameters on the circuit board;

and a differential line determining unit for determining a corresponding differential line position by each of the target signals.

The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method as set forth above.

The present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described above when calling the computer program in the memory.

The application provides a drawing method of a GND attribute copper sheet on a circuit board, which comprises the following steps: acquiring positions of all differential lines on the circuit board; determining corresponding via hole coordinates according to the positions of the differential lines; and drawing the GND attribute copper sheet corresponding to each difference line by taking the coordinate of each via hole as a circle center and a preset distance as a radius.

According to the method and the device, the positions of the differential lines are directly acquired, the coordinates of the via holes are determined, the GND attribute copper sheets corresponding to all the differential line via holes on the whole circuit board can be quickly drawn, the problems of high error rate, low efficiency and the like caused by manual screening and drawing are reduced, and the manufacturing quality of the circuit board is improved. The application also provides a drawing system of the GND attribute copper sheet on the circuit board, a computer readable storage medium and electronic equipment, which have the beneficial effects and are not repeated here.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

Fig. 1 is a flowchart of a method for drawing a GND property copper sheet on a circuit board according to an embodiment of the present disclosure;

fig. 2 is a schematic structural diagram of a drawing system of a GND property copper sheet on a circuit board according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

Referring to fig. 1, fig. 1 is a flowchart illustrating a method for drawing a GND property copper sheet on a circuit board according to an embodiment of the present disclosure, where the method includes:

s101: acquiring positions of all differential lines on the circuit board;

this step is intended to obtain the position of each differential line on the circuit board. Since VIA holes VIA with GND attribute need to be added at certain distance around the differential line VIA holes, the position of each differential line on the whole board is obtained in the step. As a preferred implementation of this step, all target signals containing differential line parameters on the circuit board may be acquired, so as to determine the corresponding differential line position by each target signal. By identifying the characteristics of the differential lines, the differential lines do not need to be manually selected one by one. Specifically, all signals on the circuit are traversed, a target signal with differential line parameters is searched, and due to the fact that the signals with non-differential line attributes are not provided with corresponding differential line parameters, all differential line signals on the circuit can be searched at one time, screening time is shortened, and meanwhile the problem of high error rate caused by manual screening is solved. It should be noted that the differential line parameter may be a DiffPair parameter, that is, an attribute of a search signal, and whether the signal attribute includes the DiffPair parameter is determined, if so, the signal attribute is a target signal including the differential line parameter, otherwise, the signal attribute is a normal signal. Of course, the differential line parameters may be in other forms, and those skilled in the art may also use the characteristics as a judgment basis when selecting the differential line, and the differential line parameters are all within the protection scope of the present application without departing from the core of the present application. It is easy to understand that after determining the target signal containing the differential line parameters, the position information of the differential line corresponding to the target signal can be directly obtained.

S102: determining corresponding via hole coordinates according to the positions of the differential lines;

after the differential lines are determined, the corresponding VIA hole coordinates need to be determined one by one, that is, the VIA hole coordinates of the VIA holes corresponding to the differential lines with the determined positions in S101 are determined one by one. It should be noted that, the step is to establish a corresponding coordinate system for the circuit board by default, and the specific coordinate system establishing manner and establishing position are not limited herein, and in fact, usually when performing layout and routing of the circuit board, the coordinate system is established as a default operation of those skilled in the art, or when adopting circuit design software, a cartesian coordinate system is established by default with a certain fixed point of the circuit board as a coordinate system origin. The step may determine VIA coordinates of each VIA hole based on an established coordinate system or a default coordinate system. It should be noted that each differential line typically includes at least one VIA, i.e., each differential line can obtain at least one VIA coordinate. The VIA hole position of each differential line depends on the position or function of the differential line, that is, the relative positions of VIA holes corresponding to different differential lines are not necessarily the same. VIA holes are used to shorten the return path to reduce the electromagnetic compatibility problem and improve the signal quality of the differential lines. This step therefore requires further determination of the VIA coordinates for each VIA.

In addition, it should be noted that, since the VIA hole is actually a small circle or an approximate circle, the center of the circle or the approximate circle may be used as the corresponding VIA hole coordinate. If circuit design software is adopted for design, the circuit board is not actually carved, and the VIA through hole is a round small hole during design.

S103: and drawing the GND attribute copper sheet corresponding to each difference line by taking the coordinate of each via hole as a circle center and a preset distance as a radius.

The step aims to draw the corresponding GND attribute copper sheet by taking the coordinate of the via hole as a circle center. The predetermined distance is not particularly limited, and usually the radii of the GND property copper sheets on the same circuit board are the same, that is, each circuit board may include a corresponding predetermined distance, and the specific predetermined distance value may be set by a person skilled in the art. Therefore, after the VIA hole coordinates are obtained in S102, the GND attribute copper sheet can be drawn for VIA holes on each differential line only by determining the preset distance in this step.

The determination of the preset distance is not specifically limited, and since the GND property copper sheets corresponding to different circuit boards may have differences, the input distance input by the user may be received during the layout and wiring of each circuit board, and the preset distance is further determined according to the input distance. Of course, if the radii of the GND-property copper sheets on the plurality of circuit boards are the same, only one input distance needs to be received.

Further, on the basis of the step, after the GND attribute copper sheets are drawn, the copper sheet attributes can be configured for the GND attribute copper sheets, and the copper sheet attributes can include via hole coordinates, preset distances, copper sheet states and the like. The copper sheet state, that is, the application state corresponding to the GND property copper sheet, may be changed in the application state for optimization in the layout and routing stage, for example, the copper sheet state may include two states of valid and invalid, when the GND property copper sheet is in the valid state, it means that the GND property copper sheet is successfully drawn, and may be in use, when the GND property copper sheet is in the invalid state, it means that the GND property copper sheet is deleted in the current circuit board layout and routing design, and if the invalid state is maintained to the actual print engraving, the GND property copper sheet does not appear.

On the basis, if a deleting instruction of the GND attribute copper sheet is received, the GND attribute copper sheet can be directly deleted according to the state of the copper sheet. Of course, batch deletion can be performed, and deletion can be performed for a single or a few GND attribute copper sheets.

According to the embodiment of the application, the positions of all the differential lines are directly acquired, the coordinates of the via holes are determined, the GND attribute copper sheets corresponding to all the differential line via holes on the whole circuit board can be quickly drawn, the problems of high error rate, low efficiency and the like caused by manual screening and drawing are reduced, and the manufacturing quality of the circuit board is improved.

On the basis of the above embodiment, as a preselected embodiment, when the target differential line is changed, the method may further include the following steps:

s201: acquiring the changed position of a target differential line;

s202: determining the changed via hole coordinates according to the changed position;

s203: and drawing the GND attribute copper sheet by taking the changed via hole coordinate as a circle center and the second distance as a radius.

When there is a differential line change, the post-change position of the target differential line is acquired, and similar steps are performed with reference to the previous embodiment. It should be noted that the second distance may be the same as the preset distance in the previous embodiment, or may be reset by one skilled in the art.

When the layout and wiring of the circuit board are performed, if the difference lines need to be changed in batch, it is obviously necessary to delete the drawn GND property copper sheet first, at this time, the batch deletion may be performed on all GND property copper sheets with reference to the copper sheet property set in the previous embodiment, and the drawing of the GND property copper sheets corresponding to all difference lines may be performed again.

On the basis of the above embodiments, a person skilled in the art can convert the execution steps corresponding to the above embodiments into corresponding programs or scripts for execution, and write a program for quickly drawing the GND attribute copper foil, so as to detect the VIA holes of the full-board differential signal lines, automatically draw the GND copper foil on the return path GND VIA, and execute the program to quickly draw the GND attribute copper foil of the full-board differential line VIA holes, thereby satisfying the PCB design requirements.

The following describes a drawing system of a GND property copper sheet on a circuit board provided in an embodiment of the present application, and the drawing system described below and the method described above for a GND property copper sheet on a circuit board may be referred to correspondingly.

Referring to fig. 2, fig. 2 is a schematic structural diagram of a drawing system of a GND property copper sheet on a circuit board according to an embodiment of the present application, and the present application further provides a drawing system of a GND property copper sheet on a circuit board, including:

an obtaining module 100, configured to obtain positions of differential lines on the circuit board;

a coordinate determination module 200, configured to determine corresponding via coordinates according to the positions of the differential lines;

and the drawing module 300 is configured to draw the GND attribute copper sheet corresponding to each difference line by using the coordinates of each via hole as a circle center and using a preset distance as a radius.

Based on the foregoing embodiment, as a preferred embodiment, the obtaining module includes:

the acquisition unit is used for acquiring all target signals containing the differential line parameters on the circuit board;

and a differential line determining unit for determining a corresponding differential line position by each of the target signals.

Based on the above embodiment, as a preferred embodiment, the method further includes:

the secondary drawing module is used for acquiring the changed position of the target difference line when the target difference line is changed; determining a changed via hole coordinate according to the changed position; and drawing the GND attribute copper sheet by taking the changed via hole coordinate as a circle center and the second distance as a radius.

Based on the above embodiment, as a preferred embodiment, the method further includes:

and the distance determining module is used for receiving an input distance before drawing the GND attribute copper sheet corresponding to each difference line by taking the preset distance as a radius, and determining the preset distance according to the input distance.

Based on the above embodiment, as a preferred embodiment, the method further includes:

the attribute configuration module is used for configuring copper sheet attributes for the GND attribute copper sheets;

the copper sheet attribute comprises the via hole coordinate, the preset distance and the copper sheet state.

The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed, may implement the steps provided by the above-described embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

The application further provides an electronic device, which may include a memory and a processor, where the memory stores a computer program, and the processor may implement the steps provided by the foregoing embodiments when calling the computer program in the memory. Of course, the electronic device may also include various network interfaces, power supplies, and the like.

The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system provided by the embodiment, the description is relatively simple because the system corresponds to the method provided by the embodiment, and the relevant points can be referred to the method part for description.

The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:进程自启停的基于频域电磁响应的集成电路版图优化方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类