Method and device for generating component list, terminal equipment and storage medium

文档序号:1098988 发布日期:2020-09-25 浏览:6次 中文

阅读说明:本技术 一种生成元件清单的方法、装置、终端设备及存储介质 (Method and device for generating component list, terminal equipment and storage medium ) 是由 刘新 廖义奎 于 2020-05-22 设计创作,主要内容包括:本申请适用于数据处理领域,提供了一种生成元件清单的方法、装置、终端设备及存储介质,其中生成元件清单的方法包括获取电路原理图,根据所述电路原理图,确定物料清单,所述物料清单列出所述电路原理图具有的各个电子元件,对于每个所述电子元件,均从预先建立的物料库中查找其具有的实际物料以及所述实际物料的价格,根据每个所述电子元件具有的实际物料以及所述实际物料的价格,分别为所述物料清单的每个所述电子元件确定对应的实际物料,得到至少一份元件清单,所述元件清单包含的各个实际物料的价格之和小于设定阈值。本申请有利于开发人员在设计过程中快速找到符合预算成本要求的电子元件,从而提高设计的效率。(The application is suitable for the field of data processing, and provides a method, a device, terminal equipment and a storage medium for generating a component list, wherein the method for generating the component list comprises the steps of obtaining a circuit schematic diagram, determining a material list according to the circuit schematic diagram, listing each electronic component with the circuit schematic diagram, searching actual materials with the electronic component from a pre-established material library and the price of the actual materials for each electronic component, and determining corresponding actual materials for each electronic component according to the actual materials with the electronic component and the price of the actual materials for each electronic component to obtain at least one component list, wherein the sum of the prices of the actual materials contained in the component list is smaller than a set threshold value. The method and the device are beneficial for developers to quickly find the electronic elements meeting the budget cost requirement in the design process, so that the design efficiency is improved.)

1. A method of generating a component inventory, comprising:

obtaining a schematic diagram of a circuit;

determining a bill of materials according to the circuit schematic diagram, wherein the bill of materials lists all electronic elements of the circuit schematic diagram;

for each electronic element, searching actual materials and prices of the actual materials from a pre-established material library;

and respectively determining corresponding actual materials for each electronic component in the material list according to the actual materials of each electronic component and the price of the actual materials to obtain at least one component list, wherein the sum of the prices of the actual materials contained in the component list is less than a set threshold value.

2. The method of claim 1, wherein said determining a corresponding physical material for each of said electronic components of said bill of materials based on said physical material each of said electronic components has and a price of said physical material comprises:

and respectively determining corresponding actual materials for each electronic component in the bill of materials according to a preset priority, the actual materials of each electronic component and the price of the actual materials.

3. The method of claim 2, wherein after said obtaining at least one component list, further comprising:

filling elements in a list of elements into the schematic diagram.

4. The method of claim 3, wherein populating the schematic circuit diagram with the components in a component list comprises:

adjusting the preset priority to obtain a component list which best meets the requirement;

and filling the elements in the most qualified element list into the circuit schematic diagram.

5. The method of claim 3 or 4, wherein populating the schematic circuit diagram with components from a list of components further comprises:

and when the size of a certain actual material contained in a certain component list in the component list does not accord with the design requirement of the printed circuit board corresponding to the circuit schematic diagram, deleting the certain component list, and filling the components in the other certain component list except the certain component list in the component list into the circuit schematic diagram.

6. An apparatus for generating a component list, comprising:

the acquisition module is used for acquiring a circuit schematic diagram;

the derivation module is used for determining a bill of materials according to the circuit schematic diagram, and the bill of materials lists all electronic elements of the circuit schematic diagram;

the searching module is used for searching actual materials and the prices of the actual materials from a pre-established material library for each electronic element;

and the distribution module is used for determining corresponding actual materials for each electronic element in the material list respectively according to the actual materials of each electronic element and the prices of the actual materials to obtain at least one element list, and the sum of the prices of the actual materials contained in the element list is less than a set threshold value.

7. The apparatus of claim 6, wherein the assignment module is specifically configured to:

and respectively determining corresponding actual materials for each electronic component in the bill of materials according to a preset priority, the actual materials of each electronic component and the price of the actual materials.

8. The apparatus of claim 6 or 7, wherein the apparatus further comprises:

and the filling module is used for filling the elements in the element list into the circuit schematic diagram.

9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 5 when executing the computer program.

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

Technical Field

The present application relates to the field of data processing, and in particular, to a method and an apparatus for generating a component list, a terminal device, and a storage medium.

Background

For developers of products, in order to improve competitiveness of the products, it is often necessary to appropriately reduce costs, and thus cost control of the products is a matter that almost all developers have to consider.

Disclosure of Invention

In view of this, embodiments of the present application provide a method and an apparatus for generating a component list, a terminal device, and a computer-readable storage medium, which can improve design efficiency.

A first aspect of an embodiment of the present application provides a method for generating a component list, including:

obtaining a schematic diagram of a circuit;

determining a bill of materials according to the circuit schematic diagram, wherein the bill of materials lists all electronic elements of the circuit schematic diagram;

for each electronic element, searching actual materials and prices of the actual materials from a pre-established material library;

and respectively determining corresponding actual materials for each electronic component in the material list according to the actual materials of each electronic component and the price of the actual materials to obtain at least one component list, wherein the sum of the prices of the actual materials contained in the component list is less than a set threshold value.

In one embodiment, the determining, for each electronic component of the bill of materials, a corresponding physical material according to the physical material each electronic component has and the price of the physical material includes:

and respectively determining corresponding actual materials for each electronic component in the bill of materials according to a preset priority, the actual materials of each electronic component and the price of the actual materials.

In one embodiment, after obtaining at least one component list, the method further includes:

filling elements in a list of elements into the schematic diagram.

In one embodiment, the populating the schematic circuit diagram with the components in a component list includes:

adjusting the preset priority to obtain a component list which best meets the requirement;

and filling the elements in the most qualified element list into the circuit schematic diagram.

In one embodiment, the filling the components in the component list into the schematic circuit diagram further includes:

and when the size of a certain actual material contained in a certain component list in the component list does not accord with the design requirement of the printed circuit board corresponding to the circuit schematic diagram, deleting the certain component list, and filling the components in the other certain component list except the certain component list in the component list into the circuit schematic diagram.

The beneficial effects of the embodiment of the application are that: the method comprises the steps of obtaining a circuit schematic diagram, determining a material list according to the circuit schematic diagram, searching actual materials and prices of the actual materials of each electronic element listed in the material list from a pre-established material library, and determining corresponding actual materials for each electronic element in the material list according to the prices of the actual materials and the actual materials of each electronic element to obtain at least one element list with the sum of the prices of the actual materials being smaller than a set threshold value, so that developers can quickly find the electronic elements meeting the requirement of budget cost in the design process, and the design efficiency is improved; the embodiment of the application can also obtain the component list that the sum of the prices of all the actual materials is less than the set threshold value according to the preset priority and each price of the actual materials and the actual materials of the electronic component, thereby being beneficial to developers to quickly find the electronic component which not only meets the requirement of budget cost but also can be considered preferentially in the design process, further improving the design efficiency, and also being capable of filling the components in the generated component list into the circuit schematic diagram, thereby completing the overall design of the printed circuit board and having stronger usability and practicability.

A second aspect of an embodiment of the present application provides an apparatus for generating a component list, including:

the acquisition module is used for acquiring a circuit schematic diagram;

the derivation module is used for determining a bill of materials according to the circuit schematic diagram, and the bill of materials lists all electronic elements of the circuit schematic diagram;

the searching module is used for searching actual materials and the prices of the actual materials from a pre-established material library for each electronic element;

and the distribution module is used for determining corresponding actual materials for each electronic element in the material list respectively according to the actual materials of each electronic element and the prices of the actual materials to obtain at least one element list, and the sum of the prices of the actual materials contained in the element list is less than a set threshold value.

In one embodiment, the allocation module is specifically configured to:

and respectively determining corresponding actual materials for each electronic component in the bill of materials according to a preset priority, the actual materials of each electronic component and the price of the actual materials.

In one embodiment, the apparatus further comprises:

and the filling module is used for filling the elements in the element list into the circuit schematic diagram.

In one embodiment, the filling module specifically includes:

the adjusting unit is used for adjusting the preset priority to obtain a component list which best meets the requirement;

and the filling unit is used for filling the elements in the element list which most meets the requirement into the circuit schematic diagram.

In one embodiment, the filling module is further specifically configured to:

and when the size of a certain actual material contained in a certain component list in the component list does not accord with the design requirement of the printed circuit board corresponding to the circuit schematic diagram, deleting the certain component list, and filling the components in the other certain component list except the certain component list in the component list into the circuit schematic diagram.

A third aspect of embodiments of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method of any one of the first aspect.

A fourth aspect of embodiments of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the first aspects.

A fifth aspect of embodiments of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to perform the method of any one of the first aspect.

It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.

Drawings

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

Fig. 1 is a schematic flowchart of a method for generating a component list according to an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of a method for generating a component list according to a second embodiment of the present disclosure;

fig. 3 is a schematic structural diagram of an apparatus for generating a component list according to a third embodiment of the present application;

fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present application.

Detailed Description

In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".

It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.

It should be noted that, the descriptions of "first" and "second" in this embodiment are used to distinguish different regions, modules, and the like, and do not represent a sequential order, and the descriptions of "first" and "second" are not limited to be of different types.

The method for generating the component list can be used in a scene that electronic components meeting preset cost need to be quickly selected when the plate frame of the printed circuit board is small in size.

In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种高频PCB电路板高密精细化导热铜箔布局方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类