Lead generation method, device, equipment and storage medium

文档序号:49487 发布日期:2021-09-28 浏览:19次 中文

阅读说明:本技术 引线生成方法、装置、设备及存储介质 (Lead generation method, device, equipment and storage medium ) 是由 叶平平 朱小安 邵宇 易永财 于 2021-06-24 设计创作,主要内容包括:本发明涉及EDA设计技术领域,公开一种引线生成方法、装置、设备及存储介质。本发明通过获取预设图形绘制窗口中展示的待处理器件的坐标信息,坐标信息包括待处理器件的引脚坐标、待处理器件的展示边框的对角坐标;根据对角坐标确定待处理器件的边框坐标方程;根据引脚坐标和边框坐标方程确定待处理器件的引脚对应的引线端点坐标;对引线端点坐标和引脚坐标进行连线,以获得待处理器件的引脚对应的引线。本发明通过获取待处理器件的坐标信息,然后根据坐标信息确定边框坐标方程,再确定引线的端点坐标,从而生成引线,相较于现有技术中需要根据电路符号的管脚名称手动标注引线,上述方式能够精准地自动生成引脚对应的引线,从而提高工作效率。(The invention relates to the technical field of EDA (electronic design automation) design, and discloses a lead generation method, device, equipment and storage medium. The method comprises the steps of obtaining coordinate information of a to-be-processed device displayed in a preset graph drawing window, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device; determining a frame coordinate equation of the device to be processed according to the diagonal coordinates; determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation; and connecting the lead endpoint coordinates with the pin coordinates to obtain a lead corresponding to the pin of the device to be processed. According to the method, the lead corresponding to the pin can be accurately and automatically generated by acquiring the coordinate information of the device to be processed, determining the coordinate equation of the frame according to the coordinate information and determining the endpoint coordinates of the lead, so that the lead is generated.)

1. A lead generation method, characterized by comprising:

acquiring coordinate information of a to-be-processed device displayed in a preset graph drawing window, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device;

determining a frame coordinate equation of the device to be processed according to the diagonal coordinates;

determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation;

and connecting the lead endpoint coordinates with the pin coordinates to obtain a lead corresponding to the pin of the device to be processed.

2. The lead generation method according to claim 1, wherein the step of determining the lead endpoint coordinates corresponding to the leads of the device to be processed according to the lead coordinates and the frame coordinate equation specifically comprises:

selecting a target coordinate equation from the frame coordinate equations according to the abscissa and the ordinate in the pin coordinates;

determining the pin direction of the pin of the device to be processed on the device to be processed according to the target coordinate equation;

and determining the lead endpoint coordinate corresponding to the pin of the device to be processed according to the pin direction and the preset lead length.

3. The lead generation method according to claim 2, wherein the step of determining the lead endpoint coordinates corresponding to the lead of the device to be processed according to the lead direction and the preset lead length specifically comprises:

obtaining a lead coordinate calculation equation corresponding to the pin direction;

and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation according to the pin coordinate and the preset lead length.

4. The method for generating leads according to claim 3, wherein the step of determining the coordinates of the lead end points corresponding to the leads of the device to be processed by the lead coordinate calculation equation according to the coordinates of the leads and the preset lead length specifically comprises:

reading a first diagonal coordinate and a second diagonal coordinate in the diagonal coordinates;

and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation based on the pin coordinate, the first diagonal coordinate, the second diagonal coordinate and the preset lead length.

5. The lead generation method of claim 4, wherein the first diagonal coordinate is a lower left corner coordinate of a display frame of the device to be processed, the second diagonal coordinate is an upper right corner coordinate of the display frame of the device to be processed, and the lead coordinate calculation equation is:

wherein xa is an abscissa in the pin coordinate, ya is an ordinate in the pin coordinate, wire is a preset lead length, x1 is an abscissa in the lower left corner coordinate, y1 is an ordinate in the lower left corner coordinate, x2 is an abscissa in the upper right corner coordinate, and y2 is an abscissa in the upper right corner coordinate.

6. The lead generation method according to any one of claims 1 to 5, wherein after the step of connecting the lead endpoint coordinates and the pin coordinates to obtain the lead corresponding to the pin of the device to be processed, the method further comprises:

and marking the pin name corresponding to the pin on the lead in the graph drawing window so as to obtain the pin name corresponding to the lead.

7. The lead generation method of claim 1, wherein the step of obtaining coordinate information of the to-be-processed device shown in the preset drawing window further comprises, before the step of obtaining coordinate information of the to-be-processed device shown in the preset drawing window:

taking the device with the graph drawing window in the selected state as a device to be processed;

and obtaining the position information of all pins on the device to be processed, and drawing a display frame of the device to be processed according to the position information.

8. A lead generation device, characterized by comprising:

the information acquisition module is used for acquiring coordinate information of a to-be-processed device displayed in a preset graph drawing window, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device;

the equation acquisition module is used for determining a frame coordinate equation of the device to be processed according to the diagonal coordinates;

the coordinate generating module is used for determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation;

and the lead generating module is used for connecting the lead endpoint coordinates with the pin coordinates to obtain leads corresponding to the pins of the device to be processed.

9. A lead generation device, comprising: a memory, a processor, and a lead generation program stored on the memory and executable on the processor, the lead generation program configured to implement the steps of the lead generation method of any of claims 1-7.

10. A storage medium, characterized in that the storage medium has stored thereon a lead generation program that, when executed by a processor, implements the steps of the lead generation method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of EDA (electronic design automation) design, in particular to a lead generation method, device, equipment and storage medium.

Background

At present, in the process of circuit analysis, circuits with certain functions are made into circuit symbols to form a hierarchical structure, and the circuit symbols and peripheral devices generate circuit connection relations.

The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.

Disclosure of Invention

The invention mainly aims to provide a lead generation method, a lead generation device, lead generation equipment and a storage medium, and aims to solve the technical problem that leads corresponding to pins cannot be automatically generated in the prior art.

In order to achieve the above object, the present invention provides a lead generation method, including:

acquiring coordinate information of a to-be-processed device displayed in a preset graph drawing window, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device;

determining a frame coordinate equation of the device to be processed according to the diagonal coordinates;

determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation;

and connecting the lead endpoint coordinates with the pin coordinates to obtain a lead corresponding to the pin of the device to be processed.

Preferably, the step of determining the coordinates of the lead end points corresponding to the leads of the device to be processed according to the coordinates of the leads and the frame coordinate equation specifically includes:

selecting a target coordinate equation from the frame coordinate equations according to the abscissa and the ordinate in the pin coordinates;

determining the pin direction of the pin of the device to be processed on the device to be processed according to the target coordinate equation;

and determining the lead endpoint coordinate corresponding to the pin of the device to be processed according to the pin direction and the preset lead length.

Preferably, the step of determining the lead endpoint coordinates corresponding to the lead of the device to be processed according to the lead direction and the preset lead length specifically includes:

obtaining a lead coordinate calculation equation corresponding to the pin direction;

and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation according to the pin coordinate and the preset lead length.

Preferably, the step of determining, according to the pin coordinate and a preset lead length, a lead endpoint coordinate corresponding to the pin of the device to be processed by using the lead coordinate calculation equation specifically includes:

reading a first diagonal coordinate and a second diagonal coordinate in the diagonal coordinates;

and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation based on the pin coordinate, the first diagonal coordinate, the second diagonal coordinate and the preset lead length.

Preferably, the first diagonal coordinate is a lower left corner coordinate of the display frame of the device to be processed, the second diagonal coordinate is an upper right corner coordinate of the display frame of the device to be processed, and the lead coordinate calculation equation is:

wherein xa is an abscissa in the pin coordinate, ya is an ordinate in the pin coordinate, wire is a preset lead length, x1 is an abscissa in the lower left corner coordinate, y1 is an ordinate in the lower left corner coordinate, x2 is an abscissa in the upper right corner coordinate, and y2 is an abscissa in the upper right corner coordinate.

Preferably, after the step of connecting the coordinates of the lead end points and the coordinates of the pins to obtain the leads corresponding to the pins of the device to be processed, the method further includes:

and marking the pin name corresponding to the pin on the lead in the graph drawing window so as to obtain the pin name corresponding to the lead.

Preferably, before the step of obtaining the coordinate information of the to-be-processed device displayed in the preset graph drawing window, the method further includes:

taking the device with the graph drawing window in the selected state as a device to be processed;

and obtaining the position information of all pins on the device to be processed, and drawing a display frame of the device to be processed according to the position information.

Further, in order to achieve the above object, the present invention also provides a lead wire generating device including:

the information acquisition module is used for acquiring coordinate information of a to-be-processed device displayed in a preset graph drawing window, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device;

the equation acquisition module is used for determining a frame coordinate equation of the device to be processed according to the diagonal coordinates;

the coordinate generating module is used for determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation;

and the lead generating module is used for connecting the lead endpoint coordinates with the pin coordinates to obtain leads corresponding to the pins of the device to be processed.

Further, to achieve the above object, the present invention also provides a lead wire generating apparatus including: a memory, a processor, and a lead generation program stored on the memory and executable on the processor, the lead generation program configured to implement the steps of the lead generation method as described above.

In addition, in order to achieve the above object, the present invention further provides a storage medium having a lead generation program stored thereon, which when executed by a processor, implements the steps of the lead generation method as described above.

The method comprises the steps of obtaining coordinate information of a to-be-processed device displayed in a preset graph drawing window, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device; determining a frame coordinate equation of the device to be processed according to the diagonal coordinates; determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation; and connecting the lead endpoint coordinates with the pin coordinates to obtain a lead corresponding to the pin of the device to be processed. Compared with the prior art that the lead needs to be manually marked according to the pin name of the circuit symbol, the lead corresponding to the pin can be accurately and automatically generated by the method, and therefore the working efficiency is improved.

Drawings

FIG. 1 is a schematic diagram of a lead generation device in a hardware operating environment according to an embodiment of the present invention;

FIG. 2 is a schematic flow chart of a lead generation method according to a first embodiment of the present invention;

fig. 3 is a schematic diagram of a display frame of a device to be processed according to an embodiment of a lead generation method of the present invention;

FIG. 4 is a schematic diagram of leads and pin names according to an embodiment of the lead generation method of the present invention;

FIG. 5 is a schematic flow chart of a lead generation method according to a second embodiment of the present invention;

FIG. 6 is a schematic flow chart of a lead generation method according to a third embodiment of the present invention;

fig. 7 is a block diagram showing the structure of the first embodiment of the lead wire generating apparatus of the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

Referring to fig. 1, fig. 1 is a schematic structural diagram of a lead generation device in a hardware operating environment according to an embodiment of the present invention.

As shown in fig. 1, the lead generation apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.

Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the lead generation apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

As shown in fig. 1, the memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a lead generation program.

In the lead generation apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the lead generation device of the present invention may be provided in a lead generation device that calls the lead generation program stored in the memory 1005 by the processor 1001 and executes the lead generation method provided by the embodiment of the present invention.

An embodiment of the present invention provides a lead generation method, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the lead generation method of the present invention.

In this embodiment, the lead generation method includes the steps of:

step S10: acquiring coordinate information of a to-be-processed device displayed in a preset graph drawing window, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device;

it should be noted that the execution main body of the method of this embodiment may be a central processing unit having the functions of obtaining pin coordinates and connecting endpoints, or may be a microcontroller, which is not limited in this embodiment.

It should be understood that the preset graphic drawing window refers to a window for drawing graphics and simulating devices in Cadence Virtuoso software, and the Cadence Virtuoso drawing window is a design which must develop optimal performance at a transistor level based on Cadence Virtuoso unified customization/simulation process support, and comprises a simulation and Radio Frequency (RF) circuit, a high-performance digital module and a graphic drawing window used as a standard cell library for constructing digital Integrated Circuits (ICs).

It can be understood that the pin coordinates refer to coordinates corresponding to all pins of the device to be processed in the preset graph drawing window, the diagonal coordinates refer to coordinates corresponding to a diagonal of the display frame, and may be a lower left corner coordinate and an upper right corner coordinate of the display frame, or an upper left corner coordinate and a lower right corner coordinate of the display frame, which is not limited in this embodiment.

Further, in order to determine the device to be processed and the display frame of the device to be processed, before step S10, the method further includes: taking the device with the graph drawing window in the selected state as a device to be processed; and obtaining the position information of all pins on the device to be processed, and drawing a display frame of the device to be processed according to the position information.

In a specific implementation, a designer may select a device to be processed, and the device is used as a device to be processed in this embodiment, and may be selected through a mouse or a keyboard, which is not specifically limited in this embodiment.

It should be understood that the position information refers to positions of all pins of the to-be-processed device, and the display frame of the to-be-processed device refers to a frame surrounding all the pins, and the display frame can be obtained by connecting all the pins.

According to the embodiment, the device with the graph drawing window in the selected state is used as the to-be-processed device, the position information of all pins on the to-be-processed device is obtained, the display frame of the to-be-processed device is drawn according to the position information, the to-be-processed device can be searched more accurately, the display frame is determined according to the positions of all the pins, the display frame can be determined more accurately, and therefore the lead corresponding to the pins can be generated accurately and automatically.

Further, referring to fig. 3, fig. 3 is a schematic diagram illustrating a frame of a device to be processed according to an embodiment of the lead generation method of the present invention.

As shown in fig. 3, the central portion of fig. 3 is a device to be processed, each small quadrangle represents a lead of the device to be processed, and the leads are all connected to obtain a display frame of the device to be processed, that is, a peripheral quadrangle.

Step S20: determining a frame coordinate equation of the device to be processed according to the diagonal coordinates;

it should be noted that the frame coordinate equation refers to an equation corresponding to each side of the display frame of the device to be processed, and in fig. 3, the frame coordinate equation refers to an equation of four sides of the frame connecting all the pins, for example: the frame coordinate equation is: x is 1, x is 3, y is 1, and y is 3, and other values are also possible, which is not particularly limited in this embodiment.

Step S30: determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation;

it should be noted that the lead end point coordinates refer to two end point coordinates corresponding to leads that need to be generated, where one end point coordinate is a pin coordinate, and each pin needs to generate a corresponding lead to be more conveniently connected to other devices that need to be connected.

Step S40: and connecting the lead endpoint coordinates with the pin coordinates to obtain a lead corresponding to the pin of the device to be processed.

It can be understood that each pin needs to generate a corresponding lead, so that the starting endpoint coordinate of the lead is the pin coordinate, and the lead corresponding to the pin of the device to be processed can be obtained by connecting the lead endpoint coordinate with the pin coordinate.

Further, after the step S40, the method further includes: and marking the pin name corresponding to the pin on the lead in the graph drawing window so as to obtain the pin name corresponding to the lead.

Further, referring to fig. 4, fig. 4 is a schematic diagram of a lead and a lead name according to an embodiment of the lead generation method of the present invention.

As shown in fig. 4, outside the display frame of the device to be processed in fig. 4, there is a lead generated corresponding to each pin, and each lead has a pin name corresponding to each pin, for example: 0_25, 0_24, TIP _ X2_ I0_4, etc. are names of pins corresponding to pins of the device to be processed, and this embodiment will not be described in detail.

In a specific implementation, leads around the same name as the pin of the device to be processed can be connected according to the pin name to implement the control logic required by the designer.

The method includes the steps that coordinate information of a to-be-processed device displayed in a preset graph drawing window is obtained, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device; determining a frame coordinate equation of the device to be processed according to the diagonal coordinates; determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation; and connecting the lead endpoint coordinates with the pin coordinates to obtain a lead corresponding to the pin of the device to be processed. In the embodiment, the lead is generated by acquiring the coordinate information of the device to be processed, determining the coordinate equation of the frame according to the coordinate information and determining the endpoint coordinates of the lead, and compared with the prior art in which the lead needs to be manually marked according to the pin name of the circuit symbol, the lead corresponding to the lead can be accurately and automatically generated by the above method, so that the working efficiency is improved.

Referring to fig. 5, fig. 5 is a schematic flow chart of a lead generation method according to a second embodiment of the present invention.

Based on the first embodiment described above, in the present embodiment, the step S30 includes:

step S301: selecting a target coordinate equation from the frame coordinate equations according to the abscissa and the ordinate in the pin coordinates;

it can be understood that when either the abscissa or the ordinate in the pin coordinate is the same as any one of the frame coordinate equations, the equation is the target coordinate equation, for example: the lead coordinate is (3,4), that is, the abscissa x is 3, the ordinate y is 4, the frame coordinate equation is x is 1, x is 3, y is 1, and y is 3, so that the target coordinate equation is x is 3.

Step S302: determining the pin direction of the pin of the device to be processed on the device to be processed according to the target coordinate equation;

it should be noted that the pin direction is a direction relative to the device to be processed, for example: up, down, left, right, when the target coordinate equation is x equals to 3, the lead direction can be found to be right.

Step S303: and determining the lead endpoint coordinate corresponding to the pin of the device to be processed according to the pin direction and the preset lead length.

It should be noted that the preset lead length is a lead length preset by a designer, and can be set according to actual conditions and a position relationship with surrounding devices, for example: 3. 4, 5, etc., which the present embodiment does not specifically limit.

It should be understood that the lead generation direction may be determined from the pin direction, for example: when the lead direction is upward, the generation direction of the lead should also be upward, and not toward the direction of the device to be processed. After the generation direction of the lead is obtained, the lead endpoint coordinates may be determined according to the length of the preset lead.

In the embodiment, a target coordinate equation is selected from the frame coordinate equations according to the abscissa and the ordinate in the pin coordinates; determining the pin direction of the pin of the device to be processed on the device to be processed according to the target coordinate equation; and determining the lead endpoint coordinate corresponding to the pin of the device to be processed according to the pin direction and the preset lead length. The pin direction is determined through the target coordinate equation, the direction of each pin in the to-be-processed device can be accurately determined, and then the terminal point coordinates of the lead are determined according to the pin direction and the preset lead length.

Referring to fig. 6, fig. 6 is a schematic flow chart of a lead generation method according to a third embodiment of the present invention.

Based on the foregoing embodiments, in this embodiment, the step S303 includes:

step S3031: obtaining a lead coordinate calculation equation corresponding to the pin direction;

it should be noted that the lead coordinate calculation equation is an equation required for calculating the coordinates of the lead end points, and the coordinates of the lead end points can be accurately obtained through the lead coordinate calculation equation.

It can be understood that different pin directions correspond to different lead coordinate calculation equations, and if the lead endpoint coordinates corresponding to different pins need to be obtained when the pin directions are different, the lead coordinate calculation equation corresponding to each pin direction needs to be obtained first.

Step S3032: and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation according to the pin coordinate and the preset lead length.

Further, the step S3032 includes: reading a first diagonal coordinate and a second diagonal coordinate in the diagonal coordinates; and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation based on the pin coordinate, the first diagonal coordinate, the second diagonal coordinate and the preset lead length.

It should be noted that the first diagonal coordinate and the second diagonal coordinate are diagonal coordinates of a display frame of the device to be processed, for example: when the first diagonal coordinate is the lower left corner coordinate of the display frame, the second diagonal coordinate must be the upper right corner coordinate of the display frame; when the first diagonal coordinate is the upper left corner coordinate of the display frame, the second diagonal coordinate must be the lower right corner coordinate of the display frame, and the frame coordinate equation can be obtained only if the diagonal coordinate of the display frame is known.

It can be understood that, in this embodiment, preferably, the first diagonal coordinate is a lower left corner coordinate of the display frame of the device to be processed, and the second diagonal coordinate is an upper right corner coordinate of the display frame of the device to be processed, at this time, the lead coordinate calculation equation is:

wherein xa is an abscissa in the pin coordinate, ya is an ordinate in the pin coordinate, wire is a preset lead length, x1 is an abscissa in the lower left corner coordinate, y1 is an ordinate in the lower left corner coordinate, x2 is an abscissa in the upper right corner coordinate, and y2 is an abscissa in the upper right corner coordinate.

In a specific implementation, when the abscissa of a lead is the same as the abscissa in the lower left corner coordinate, it indicates that the lead is located on the left side of the device to be processed, and the coordinates of the lead end point are (x1, ya), (x1-wire, ya), and since the generated lead needs to be on the left side of the lead, one end point of the lead is also located on the left side of the lead, the abscissa needs to subtract the preset lead length; when the abscissa of the pin is the same as the abscissa in the upper right-corner coordinate, the pin is positioned on the right side of the device to be processed, and the coordinates of the end points of the lead are (x2, ya), (x2+ wire, ya), and since the generated lead needs to be positioned on the right side of the pin, one end point of the lead is also positioned on the right side of the pin, the preset lead length needs to be added to the abscissa; when the ordinate of the pin is the same as the ordinate in the lower left-hand corner coordinate, it indicates that the pin is located below the device to be processed, and the terminal point coordinates of the lead are (xa, y1), (xa, y1-wire), and since the generated lead needs to be located below the pin, one terminal point of the lead is also located below the pin, so the ordinate needs to subtract the preset lead length; when the ordinate of the pin is the same as the ordinate in the upper right-hand coordinate, it indicates that the pin is located on the upper side of the device to be processed, and the coordinates of the lead end point are (xa, y1), (xa, y2+ wire), because the generated lead needs to be located on the upper side of the pin, one end point of the lead is also located on the upper side of the pin, and therefore the ordinate needs to be added with the preset lead length.

In the embodiment, an equation is calculated by obtaining lead coordinates corresponding to the pin direction; and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation according to the pin coordinate and the preset lead length. In the embodiment, the lead endpoint coordinates corresponding to each pin are obtained through the lead coordinate calculation equation corresponding to each pin direction, the lead endpoint coordinates in each direction can be generated according to actual conditions, the accuracy of the lead endpoint coordinates is ensured, and therefore the lead corresponding to the pin can be accurately and automatically generated.

Furthermore, an embodiment of the present invention further provides a storage medium, where the storage medium stores a lead generation program, and the lead generation program, when executed by a processor, implements the steps of the lead generation method as described above.

Referring to fig. 7, fig. 7 is a block diagram illustrating a first embodiment of a lead generating apparatus according to the present invention.

As shown in fig. 7, the lead generation apparatus according to the embodiment of the present invention includes:

the information acquisition module 701 is configured to acquire coordinate information of a to-be-processed device displayed in a preset graph drawing window, where the coordinate information includes a pin coordinate of the to-be-processed device and a diagonal coordinate of a display frame of the to-be-processed device;

an equation obtaining module 702, configured to determine a frame coordinate equation of the to-be-processed device according to the diagonal coordinate;

a coordinate generating module 703, configured to determine, according to the pin coordinate and the frame coordinate equation, a lead endpoint coordinate corresponding to the pin of the device to be processed;

and a lead generating module 704, configured to connect the lead endpoint coordinates and the pin coordinates to obtain a lead corresponding to the pin of the device to be processed.

The method includes the steps that coordinate information of a to-be-processed device displayed in a preset graph drawing window is obtained, wherein the coordinate information comprises pin coordinates of the to-be-processed device and diagonal coordinates of a display frame of the to-be-processed device; determining a frame coordinate equation of the device to be processed according to the diagonal coordinates; determining the lead endpoint coordinates corresponding to the pins of the device to be processed according to the pin coordinates and the frame coordinate equation; and connecting the lead endpoint coordinates with the pin coordinates to obtain a lead corresponding to the pin of the device to be processed. In the embodiment, the lead is generated by acquiring the coordinate information of the device to be processed, determining the coordinate equation of the frame according to the coordinate information and determining the endpoint coordinates of the lead, and compared with the prior art in which the lead needs to be manually marked according to the pin name of the circuit symbol, the lead corresponding to the lead can be accurately and automatically generated by the above method, so that the working efficiency is improved.

A second embodiment of the lead wire generating device of the present invention is proposed based on the above-described first embodiment of the lead wire generating device of the present invention.

In this embodiment, the coordinate generating module 703 is further configured to select a target coordinate equation from the frame coordinate equations according to an abscissa and an ordinate in the pin coordinate; determining the pin direction of the pin of the device to be processed on the device to be processed according to the target coordinate equation; and determining the lead endpoint coordinate corresponding to the pin of the device to be processed according to the pin direction and the preset lead length.

Further, the coordinate generating module 703 is further configured to obtain a lead coordinate calculation equation corresponding to the pin direction; and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation according to the pin coordinate and the preset lead length.

Further, the coordinate generating module 703 is further configured to read a first diagonal coordinate and a second diagonal coordinate in the diagonal coordinates; and determining the lead endpoint coordinate corresponding to the pin of the device to be processed through the lead coordinate calculation equation based on the pin coordinate, the first diagonal coordinate, the second diagonal coordinate and the preset lead length.

Further, the first diagonal coordinate is a lower left corner coordinate of the display frame of the device to be processed, the second diagonal coordinate is an upper right corner coordinate of the display frame of the device to be processed, and the lead coordinate calculation equation is as follows:

wherein xa is an abscissa in the pin coordinate, ya is an ordinate in the pin coordinate, wire is a preset lead length, x1 is an abscissa in the lower left corner coordinate, y1 is an ordinate in the lower left corner coordinate, x2 is an abscissa in the upper right corner coordinate, and y2 is an abscissa in the upper right corner coordinate.

Further, the lead generation apparatus further includes: a pin name generating module 700, where the pin name generating module 700 is configured to mark a pin name corresponding to the pin on the lead in the graph drawing window, so as to obtain the pin name corresponding to the lead.

Further, the lead generation apparatus further includes: a frame obtaining module 705, where the frame obtaining module 705 is configured to use a device in which the graphic drawing window is in the selected state as a device to be processed; and obtaining the position information of all pins on the device to be processed, and drawing a display frame of the device to be processed according to the position information.

Other embodiments or specific implementation manners of the lead generation apparatus of the present invention may refer to the above method embodiments, and are not described herein again.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a computer or a network device) to execute the method according to the embodiments of the present invention.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:评估PCB高速连接器焊盘参数方法、装置、设备及可读介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类