Method and device for determining circuit element specification, terminal equipment and storage medium

By constructing a target model and automatically determining the target specifications of circuit components, the problem of low efficiency in circuit component selection in the existing technology is solved, circuit performance and cost are optimized, and the yield rate is improved.

CN120688426APending Publication Date: 2025-09-23CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410338494.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-22
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

In the prior art electronic product manufacturing process, the selection efficiency of circuit components is low, resulting in a low yield rate, and the Monte Carlo analysis is cumbersome and time-consuming.

Method used

By building a target model and combining circuit performance parameter ranges and cost data, the target specifications of circuit components can be automatically determined, reducing the number of Monte Carlo analysis iterations and improving selection efficiency.

Benefits of technology

It reduces the calculation time for circuit component selection, improves the yield rate, and optimizes the production process while taking into account circuit performance and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120688426A_ABST
    Figure CN120688426A_ABST
Patent Text Reader

Abstract

The invention provides a method and device for determining circuit element specifications, terminal equipment and a storage medium, and the method comprises the steps: determining an output target of a target circuit, a performance parameter range of the output target and j types of circuit elements, and each type of circuit element corresponds to i different specifications; analyzing the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to the j types of circuit elements under the i specifications; constructing a target model based on the actual constraint boundary condition and the output target; and respectively inputting the different specifications of the various types of circuit elements into the target model so as to determine the target specification of each circuit element. According to the application, the target model is constructed in consideration of the circuit performance, and the target specification of the circuit element of the circuit output meeting the user expectation is determined through the target model, so that Monte Carlo analysis does not need to be carried out for many times, the calculation time is shortened, and the selection efficiency of the electric appliance element in the manufacturing process of an electronic product is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of circuit manufacturing technology, and in particular relates to a method, apparatus, terminal device, and storage medium for determining specifications of circuit components. Background Art

[0002] Due to bottlenecks in the manufacturing process of electronic products, the parameters of components in the actual circuits of electronic products manufactured using conventional processing methods can have random errors compared to the target values ​​designed by the staff, which can seriously affect the actual performance of the circuit. To address this, the staff needs to perform multiple Monte Carlo analysis iterations to minimize these errors, but this analysis process is too cumbersome. When the circuit is large and the number of components is large, the simulation time cost is high.

[0003] Therefore, how to improve the selection efficiency of electrical components during the manufacturing process of electronic products so as to increase the yield rate of electronic products during the manufacturing process is a technical problem that needs to be solved urgently. Summary of the Invention

[0004] The embodiments of the present application provide a method, apparatus, terminal device, and storage medium for determining circuit component specifications, which can solve the current technical problem of low efficiency in selecting electrical components for circuits during the manufacturing process of electronic products.

[0005] In a first aspect, an embodiment of the present application provides a method for determining specifications of a circuit element, comprising:

[0006] Determining an output target of a target circuit, a performance parameter range of the output target, and j types of circuit elements, where each type of circuit element corresponds to i different specifications, and i and j are both positive integers;

[0007] Analyzing the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to j types of circuit elements under i specifications; and constructing a target model based on the actual constraint boundary conditions and the output target;

[0008] Different specifications of various types of circuit elements are input into the target model to determine target specifications of various circuit elements.

[0009] In the embodiment of the present application, a target model can be constructed while taking into account circuit performance, and circuit elements that meet the circuit output expectations of the user can be determined through the target model. During the circuit product generation process, there is no need to repeatedly perform Monte Carlo analysis to select suitable electrical components as in the prior art, which reduces calculation time and improves the efficiency of selecting electrical components during the manufacturing process of electronic products.

[0010] In some embodiments, the method further comprises:

[0011] Determine the number of components required for circuit elements of various specifications;

[0012] Inputting different specifications of each type of circuit element into the target model to determine the target specification of each circuit element includes:

[0013] Inputting each of the specifications and the corresponding number of components into the target model to obtain a plurality of candidate analysis data, wherein the candidate analysis data is a component arrangement and combination of the j different types of circuit components under i different specifications;

[0014] Determining a target element arrangement and combination from the plurality of candidate analysis data;

[0015] Target specifications of each circuit element are determined according to the target element arrangement and combination.

[0016] In an embodiment of the present application, the number of components required for circuit elements under various specifications can be automatically obtained. With the best circuit performance as a guide, the component permutations and combinations of j different types of circuit elements under i different specifications are calculated through the target model, and the target component permutations and combinations that best represent the circuit performance are selected from them. Furthermore, the target component permutations and combinations can be used to determine which specifications of each circuit element are the target specifications that optimize the target circuit performance, so as to more accurately obtain the circuit element specifications that meet the user's expected output targets.

[0017] In some embodiments, the method further comprises:

[0018] Determine the cost data corresponding to each of the specifications;

[0019] Inputting each of the specifications and the corresponding component quantity into the target model to obtain a plurality of candidate analysis data, including:

[0020] Each of the specifications, corresponding component quantity and corresponding cost data is input into the target model to obtain multiple candidate analysis data, where the candidate analysis data is the component arrangement and combination related to the circuit component cost of the j different types of circuit components under i different specifications.

[0021] In an embodiment of the present application, guided by the consideration of both circuit performance and component cost, component permutations and combinations related to circuit component cost for j different types of circuit components under i different specifications are calculated through a target model, and target component permutations and combinations that take both circuit performance and component cost into consideration are selected from the permutations and combinations, which can ensure the yield of electronic products during the manufacturing process while reasonably reducing production costs.

[0022] In some embodiments, the performance parameter range of the output target includes a target minimum value and a target maximum value of the output of the target circuit; each specification corresponds to a corresponding resistance tolerance;

[0023] Analyzing the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to j types of circuit elements under i specifications includes:

[0024] analyzing the target circuit in combination with the output target minimum value and the output target maximum value within the performance parameter range to obtain actual outputs of the target circuit for j types of circuit elements within resistance tolerances corresponding to i types of specifications, the actual outputs including actual maximum values ​​and actual minimum values;

[0025] The actual maximum value of the circuit output is not greater than the output target maximum value, and the actual minimum value of the circuit output is not less than the output target minimum value.

[0026] In an embodiment of the present application, before the circuit is mass-produced, the output target minimum value and the output target maximum value are set for the performance parameter range expected by the user, and the actual maximum value of the circuit output and the actual maximum value of the circuit output corresponding to j types of circuit elements under the corresponding tolerance values ​​of i types of specifications are calculated, so that the actual maximum value of the circuit output and the actual maximum value of the circuit output are within the performance parameter range of the output target expected by the user, which helps to complete the tolerance design and reduce the production trial and error cost.

[0027] In some embodiments, the constructing a target model based on the actual constraint boundary conditions and the output target includes:

[0028] determining an upper limit on the number of specifications of the circuit components and an upper limit on the number of types of the circuit components;

[0029] constructing a target model based on the cost data, the upper limit of the number of the circuit component specifications, the upper limit of the number of the types of the circuit components, the actual minimum value, the actual maximum value, and the output target;

[0030] Determining the target component arrangement and combination from the plurality of candidate analysis data includes:

[0031] Determining the model output value for each candidate analysis data;

[0032] Select the model target output value with the smallest value from each model output value;

[0033] Determine the target element arrangement and combination corresponding to the target output value of the model.

[0034] In some embodiments, the target model is expressed as:

[0035]

[0036] Wherein, Y represents the target output value of the model; j represents the type of the circuit element, i represents the specification of the circuit element; n1 represents the upper limit of the number of the circuit element specification, and n2 represents the upper limit of the number of the type of the circuit element; x ij Indicates that the target circuit selects the i-th specification of the circuit element of type j, and x ij is a Boolean value; p ij b represents the cost data of the i-th specification of the circuit component of type j; ij The number of components required for the i-th specification of circuit components of type j;

[0037] Characterizing the permutations and combinations of j types of circuit elements required for the target circuit under i different specifications;

[0038] g1(x ij ) represents the target maximum value of the i-th specification of the circuit element of type j, g2(x ij ) represents the target minimum value of the i-th specification of the circuit element of type j, and C represents the output target.

[0039] In the embodiment of the present application, the target model represents the component arrangement and combination results of j different types of circuit elements under i different specifications. Each component arrangement and combination result forms a model output value. The target component arrangement and combination corresponding to the model target output value Y with the smallest numerical value is taken as the optimal selection result of the circuit element ultimately desired to be obtained in the present application; g1(x ij ) and g2(x ij ) can represent the worst-case analysis results of the circuit, g1(x ij )-C+|g2(x ij )-C| can characterize the performance of the circuit, g1(x ij )-C+|g2(x ij The smaller the value of )-C|, the closer the selected circuit components are to the output target expected by the user. ij Characterizes the cost of circuit components, p ij *b ij *x ij The smaller it is, the lower the cost of the circuit element. This embodiment can construct its mathematical model based on the circuit design goals and the worst-case analysis results with the goal of lowest cost and best circuit performance to meet work requirements.

[0040] In some embodiments, before determining the output target of the target circuit, the performance parameter range of the output target, and j types of circuit elements, the method further includes:

[0041] Acquiring a circuit topology structure of the target circuit;

[0042] determining j types of circuit elements required for the target circuit according to the circuit topology;

[0043] The output target, the performance parameter range of the output target, the specifications related to each type of circuit element, and the cost data corresponding to each specification are inputted by the user.

[0044] In the embodiment of the present application, the user can set the output target of the desired target circuit and the performance parameter range of the output target according to his or her own needs. The computer equipment can perform corresponding calculations and processing based on the parameters input by the staff in a timely manner, thereby improving the staff's user experience.

[0045] In some embodiments, the method further comprises:

[0046] determining a circuit physical model based on the circuit topology;

[0047] The target circuit is analyzed based on the circuit physical model and in combination with the target minimum value and the target maximum value to obtain actual outputs of the target circuit under resistance tolerances corresponding to i specifications for j types of circuit elements.

[0048] In an embodiment of the present application, a computer can automatically calculate the actual output of the target circuit's circuit elements under different specifications based on the circuit physical model corresponding to the circuit topology structure. Staff can refer to the results output by the computer, thereby improving work efficiency.

[0049] In some embodiments, after the step of inputting different specifications of different types of circuit elements into the target model to determine target specifications of each circuit element, the method further includes:

[0050] Generate a uniformly distributed pseudo-random number sampling sequence;

[0051] Based on the uniformly distributed pseudo-random number sampling sequence, establishing a random sampling sequence with a distribution specified by the target specification of each circuit element;

[0052] Simulating virtual circuits composed of target specifications of N groups of randomly sampled circuit elements in sequence to obtain simulation results;

[0053] The simulation results are statistically analyzed to calculate the statistical laws of the performance parameters of the target circuit and the yield rate of each virtual circuit.

[0054] In an embodiment of the present application, a statistical method for generating random numbers is used to simulate virtual circuits composed of target specifications of N groups of randomly sampled circuit elements in sequence to obtain simulation results; then, the statistical laws of the performance parameters of the target circuits and the yield rate of each virtual circuit are calculated, which can be used to verify that the target specifications of each circuit element selected based on the target model of the present application meet the output targets expected by the user.

[0055] In a second aspect, the present application further provides a device for determining specifications of a circuit element, comprising:

[0056] an acquisition unit, configured to determine an output target of a target circuit, a performance parameter range of the output target, and j types of circuit elements; and further configured to have i different specifications corresponding to each type of circuit element, where i and j are both positive integers;

[0057] an analyzing unit, configured to analyze the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to j types of circuit elements under i specifications;

[0058] A construction unit, configured to construct a target model based on the actual constraint boundary conditions and the output target;

[0059] The determination unit is used to input different specifications of each type of circuit element into the target model respectively to determine the target specification of each circuit element.

[0060] In a third aspect, the present application further proposes a terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect above when executing the computer program.

[0061] In a fourth aspect, the present application further proposes a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.

[0062] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0064] Figure 1A flowchart of a method for determining circuit component specifications provided in the first embodiment of the present application;

[0065] Figure 2 A flowchart of a method for determining circuit component specifications provided in a second embodiment of the present application;

[0066] Figure 3 A circuit diagram of a target circuit provided in the third embodiment of the present application when the target circuit is a threshold comparison circuit;

[0067] Figure 4 This is a schematic diagram of the structure of an embodiment of a terminal device for manufacturing electrical components provided by the present application;

[0068] Figure 5 This is a structural block diagram of a device for determining circuit component specifications provided by this application. DETAILED DESCRIPTION

[0069] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.

[0070] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0071] It will also be understood that the term "and / or" 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.

[0072] In the description of the embodiments of the present application, the term "plurality" refers to two or more (including two), unless otherwise clearly and specifically defined.

[0073] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0074] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0075] The inventors of this application have noted that, due to bottlenecks in the manufacturing process of electrical and electronic products, the parameters of components in the actual circuits of electronic products manufactured using conventional processing methods may have random errors compared to the target values ​​designed by the personnel, which will seriously affect the actual performance of the circuits. To address the above circuit component selection issues, there are two existing approaches in the art:

[0076] The first processing method in the prior art is to prioritize circuit performance and select all high-precision devices, but the disadvantage of the first processing method is that the production cost is high;

[0077] The second approach in the prior art takes cost into consideration and selects only some components as high-precision devices. The tolerance range of circuit component parameters is given, and then Monte Carlo analysis is used to statistically analyze the impact of components with different parameters on circuit performance. However, the second approach in the prior art has the following drawbacks:

[0078] Defect 1: Multiple Monte Carlo analysis iterations are required, and the analysis process is cumbersome;

[0079] Defect 2: When the circuit is large and has many components, the time cost of simulation is relatively high.

[0080] Defect 3: To select a circuit component selection scheme that takes into account both cost and circuit performance, it is necessary to traverse and simulate each possibility. The simulation time will be further increased based on the above-mentioned Defect 2 option, and the feasibility of the scheme is low.

[0081] In summary, how to improve the efficiency of selecting electrical components during the manufacturing process of electronic products so as to improve the yield of electronic products during the manufacturing process is a technical problem that needs to be solved urgently; therefore, the present application provides a method, device, terminal equipment and storage medium for determining the specifications of circuit components to avoid the need for repeated iterative analysis of circuits to select circuit components during the manufacturing process of electronic products, which can greatly improve the efficiency of selecting electrical components of the circuit.

[0082] In order to illustrate the specific technical solutions proposed in the embodiments of this application, a specific embodiment is provided below for illustration.

[0083] Example 1

[0084] See also Figure 1 , Figure 1 This is a flow chart of a first embodiment of a method for determining circuit component specifications provided by the present application. The method for determining circuit component specifications in the embodiment of the present application can be applied to terminal equipment for manufacturing electrical components. The method includes:

[0085] Step S01, determining an output target of a target circuit, a performance parameter range of the output target, and j types of circuit components, wherein each type of circuit component corresponds to i different specifications, and i and j are both positive integers;

[0086] It should be noted that the execution subject of this embodiment is a terminal device used to manufacture electrical components;

[0087] The target circuit is a circuit that needs to be processed and produced during the manufacturing process of electronic equipment products; the output target of the target circuit can be the output voltage, output power, etc. of this circuit;

[0088] The performance parameter range of the target output of the target circuit can be an interval range, and the performance parameter range includes the target minimum value and target maximum value of the target circuit output; the output target is the target output voltage V out For example, the target output voltage V out The performance parameter range is between the target minimum value of 200V and the target maximum value of 210V. The target output voltage expected by the user can be the middle value of this performance parameter range, 205V.

[0089] The circuit elements are circuit components (loads) required in the manufacturing process of electronic equipment products. Each circuit component has i different specifications, and each specification corresponds to a resistance tolerance.

[0090] In a specific implementation, the circuit designer (user) can conduct a specific analysis of the target circuit to determine the type of circuit components required for the target circuit, and can obtain the corresponding specifications of different types of circuit components through actual research and analysis;

[0091] The terminal device for manufacturing electrical components may have a human-computer interaction interface. The memory of the terminal device stores a pre-written computer program. The user inputs the circuit topology of the target circuit into the computer program of the terminal device through the human-computer interaction interface. The computer program of the terminal device can determine j types of circuit components suitable for the target circuit based on the circuit topology. For example, the computer program can automatically recommend five types of circuit components R1, R2, R3, R4, and R5 for the target circuit based on the circuit topology, and design specific resistance values ​​of the circuit components R1, R2, R3, R4, and R5 according to the specific circuit design.

[0092] At the same time, the user also inputs the output (voltage) target of his desired target circuit, the performance parameter range of the output target he proposes, and the specifications of different types of circuit components obtained from his actual research into the terminal device through the human-computer interaction interface. The computer program can obtain data such as the output target input by the user, the performance parameter range of the output target, and the specifications related to various types of circuit components.

[0093] Step S02, analyzing the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to j types of circuit elements under i specifications;

[0094] In this embodiment, the terminal device analyzes the target circuit in combination with the target minimum value and target maximum value of the target circuit output to obtain the actual output of the target circuit under the resistance tolerance corresponding to the i specifications of the j types of circuit elements. The actual output includes the actual minimum value g2(x ij ) and the actual maximum value g1(x ij ); wherein the actual maximum value g1(x ij ) is not greater than the target maximum value V H , the actual minimum value g2(x ij ) is not less than the target minimum value V L ;

[0095] It is understandable that the actual minimum value g2(x ij ) and the actual maximum value g1(x ij ) is the actual constraint boundary condition corresponding to the j-th type of circuit element under the ith specification, which can be understood as the worst-case analysis result.

[0096] Step S03, constructing a target model based on the actual constraint boundary conditions and the output target;

[0097] In a specific implementation, it is necessary to obtain the circuit topology of the target circuit. The computer program on the terminal device of this embodiment can automatically determine the j types of circuit elements required for the target circuit based on the circuit topology of the target circuit, then determine the upper limit of the number of types of each type of circuit element, and further determine the upper limit of the number of specifications of each type of circuit element. Different circuit topologies correspond to different circuit types. Different circuit topologies correspond to different circuit types. Different circuit analysis methods (circuit physical models) are required for different circuits to obtain different output targets.

[0098] The actual constraint boundary conditions can be understood as the worst-case analysis results of the target circuit. In this embodiment, the target model is constructed based on the circuit design goals and the worst-case analysis results, with the goal of maximizing circuit performance:

[0099] In a specific implementation, the terminal device constructs a target model based on the upper limit of the number of circuit element specifications, the upper limit of the number of types of the circuit elements, the actual minimum value, the actual maximum value, and the output target. The target model of the first embodiment is expressed as follows:

[0100]

[0101] Wherein, j in the above (Formula 1-1) represents the type of the circuit element, i represents the specification of the circuit element; n1 represents the upper limit of the number of specifications of the circuit element, and n2 represents the upper limit of the number of types of the circuit element; x ij Indicates that the target circuit selects the i-th specification of the circuit element of type j, and x ij is a Boolean value; b ij The number of components required for the i-th specification of circuit components of type j;

[0102] Understandably, It can be understood as the candidate permutations and combinations of j types of circuit elements required by the target circuit under i different specifications, g1(x ij ) and g2(x ij ) can represent the worst-case analysis results of the circuit, g1(x ij )-C+|g2(x ij )-C| can characterize the performance of the circuit, g1(x ij )-C+|g2(x ij The smaller the value of )-C|, the closer the selected circuit components are to the user's desired output target;

[0103] Since x ij is a Boolean value (either 0 or 1), so b ij *x ijIndicates whether the i-th specification of the circuit element of type j is selected. When it is 1, it indicates that the specification is selected, and when it is 0, it indicates that the specification is not selected. This embodiment can construct its mathematical model based on the circuit design goals and the worst-case analysis results with the goal of maximizing circuit performance to meet work requirements.

[0104] In step S04 , different specifications of various types of circuit components are input into the target model to determine target specifications of various circuit components.

[0105] In the specific implementation, the terminal device will determine the number of components b required for the circuit components under each specification. ij ; Each of the specifications x ij and its corresponding number of components b ij (specific value) is input into the target model to obtain the model output values ​​corresponding to multiple candidate analysis data The candidate analysis data is the component arrangement and combination of the j different types of circuit components under i different specifications;

[0106] Determine the model output value of each candidate analysis data, sort the model output values ​​of multiple candidate analysis data, select the model target output value Y with the smallest numerical value from the model output values ​​of multiple candidate analysis data, determine the target element arrangement and combination corresponding to the model target output value, and then determine which specifications of each circuit element are the target specifications that optimize the performance of the target circuit through the target element arrangement and combination corresponding to the target output value Y.

[0107] The beneficial effect of this embodiment is that it can take circuit performance into consideration to construct a target model, determine circuit elements that meet the circuit output expectations of the user through the target model, and accurately find the target specifications of the circuit elements that closest to the target circuit output performance. During the circuit product generation process, there is no need to repeatedly perform Monte Carlo analysis to select appropriate electrical components as in the prior art, which reduces calculation time and improves the efficiency of selecting electrical components during the manufacturing process of electronic products.

[0108] Example 2

[0109] Based on the content of the method for determining the specifications of circuit components in the first embodiment above, a second embodiment of the method for determining the specifications of circuit components in this application is proposed, such as Figure 2 As shown, this embodiment takes into account the cost data of various specifications.

[0110] In this embodiment, step S01 specifically includes:

[0111] Step S01: Determine the output target of the target circuit, the performance parameter range of the circuit output target, j types of circuit components and cost data corresponding to each specification, where each type of circuit component corresponds to i different specifications;

[0112] It is understood that the cost data can be understood as the unit price of each specification of the circuit components;

[0113] For example, each circuit element has four different specifications. These four different specifications may include resistance tolerance of 0.1%, resistance tolerance of 1%, resistance tolerance of 5%, and resistance tolerance of 10%. The terminal device may determine the number of circuit elements required and the resistance value of each circuit element based on the circuit topology of the target circuit. For example, it may be determined that the target circuit requires five different circuit elements, R1, R2, R3, R4, and R5, and the resistance values ​​of these five different circuit elements are already determined.

[0114] Of course, in other embodiments, the circuit elements required for the target circuit and the resistance values ​​of each circuit element may also be information manually input by the user, which allows the user to configure more flexibly. For example, the user may input the circuit elements required for the target circuit and the resistance values ​​of each circuit element into the computer program of the terminal device through the human-computer interaction interface.

[0115] Accordingly, the step S03 further includes:

[0116] Step S03: constructing a target model based on the cost data, the upper limit of the number of circuit component specifications, the upper limit of the number of types of circuit components, the actual minimum value, the actual maximum value and the output target;

[0117] The expression of the target model of the second embodiment is:

[0118]

[0119] Wherein, Y represents the model target output value corresponding to the target element arrangement and combination; j represents the type of the circuit element, i represents the specification of the circuit element; n1 represents the upper limit of the number of circuit element specifications, and n2 represents the upper limit of the number of types of the circuit element; x ij Indicates that the target circuit selects the i-th specification of the circuit element of type j, and x ij is a Boolean value; p ij b represents the cost data of the i-th specification of the circuit component of type j; ij The number of components required for the i-th specification of circuit components of type j;

[0120] Characterizing the permutations and combinations of j types of circuit elements required for the target circuit under i different specifications;

[0121] g1(x ij ) represents the target maximum value of the i-th specification of the circuit element of type j, g2(x ij ) represents the target minimum value of the i-th specification of the circuit element of type j, and C represents the output target.

[0122] The expression of the target model of this embodiment (Formula 1-2) represents the component arrangement and combination results of j different types of circuit components under i different specifications. Each component arrangement and combination result forms a model output value. The target component arrangement and combination corresponding to the model target output value Y with the smallest numerical value is taken as the optimal selection result of the circuit component ultimately desired to be obtained in this application; g1(x ij ) and g2(x ij ) can represent the worst-case analysis results of the circuit, g1(x ij )-C+|g2(x ij )-C| can characterize the performance of the circuit, g1(x ij )-C+|g2(x ij The smaller the value of )-C|, the closer the selected circuit components are to the output target expected by the user. ij Characterizes the cost of circuit components, p ij *b ij *x ij The smaller the value, the lower the cost of the circuit components. This embodiment can construct a mathematical model of the target circuit based on the circuit design goals and the worst-case analysis results, with the goal of minimizing cost and maximizing circuit performance, to meet work requirements.

[0123] It is understandable that g1(x ij ) is the maximum value of the output (voltage) of the entire circuit, and g2(x ij ) is the minimum value of the entire circuit output. For example, if the target output voltage range of this embodiment is 200V-210V (i.e., the performance parameter range of the output target), the user's target circuit hopes that the actual output voltage value (i.e., the output target) is in the middle of the range of 200V-210V. For example, the user can set the output target C to 205V. If g1(x ij )-C+|g2(x ij )-C| is larger, the actual output target of Vout will be biased towards the minimum of 200 or the maximum of 210; if g1(x ij )-C+|g2(x ijThe smaller )-C| is, the more the actual output target Vout will be closer to the middle value of the performance parameter range of 200v-210v, that is, the actual output voltage of the target circuit is closer to the output target expected by the user.

[0124] Accordingly, the step S04 further includes:

[0125] Step S04: Inputting each of the specifications, corresponding component quantities, and corresponding cost data into the target model to obtain a plurality of candidate analysis data, determining a target component arrangement and combination from the plurality of candidate analysis data, and determining a target specification for each circuit component based on the target component arrangement and combination;

[0126] The candidate analysis data is component permutations and combinations related to circuit component costs of the j different types of circuit components under i different specifications.

[0127] In the specific implementation, the terminal device will determine the number of components b required for the circuit components under each specification. ij ; Each of the specifications x ij , the corresponding number of components b ij (specific value) and cost data for each specification p ij Input into the target model to obtain multiple candidate analysis data The candidate analysis data is the component arrangement and combination of the j different types of circuit components under i different specifications;

[0128] In this embodiment, the cost data corresponding to each specification can be the unit price currently researched by the user. The circuit components R1, R2, R3, R4, and R5 are automatically determined by the computer program based on the circuit topology. The resistance values ​​of each circuit component can also be automatically determined based on the circuit topology. Of course, in other embodiments, the user can also flexibly set the circuit components and resistance values ​​required for the target circuit, and does not necessarily have to perform subsequent processing according to the data automatically recommended by the computer program.

[0129] It is understandable that the actual resistance of each circuit element in the electronic device of the prior art may deviate from the pre-set resistance value during the actual production process; for example, the ideal resistance value of a circuit element has been determined to be 420K, but in the actual processing and production process, the resistance value of the circuit element will deviate from 420K. Then this deviation will definitely have an impact on the target voltage of the final output of the target circuit. Therefore, this application needs to select a target specification from the above four specifications for each circuit element. That is, in this process, this embodiment 2 needs to confirm the selection of a suitable accuracy to see whether the tolerance value of 0.1%, the tolerance value of 1%, the tolerance value of 5% or the tolerance value of 10% is the most suitable specification for the circuit element in the target circuit. At the same time, it is also necessary to determine that the unit price of the circuit element when selecting this specification is relatively the lowest. At the same time, it is also necessary to make the actual voltage value of the final output of the target circuit close to the output target value V out The deviation is not large, and it is guided by the balance between circuit performance and component cost;

[0130] The target model (i.e., Formula 1-2) of this embodiment represents selecting the candidate analysis data with the smallest model output value from each candidate analysis data as the target element arrangement and combination;

[0131] The target model is used to calculate the component permutations and combinations related to the circuit component costs for j different types of circuit components under i different specifications, and the target component permutation and combination corresponding to the model target output value Y with the smallest model output value is selected from all the component permutations and combinations as the target component permutations and combinations that take into account both circuit performance and component costs. The target component permutations and combinations Y can then be used to determine which specifications of each circuit component are the target specifications that result in the lowest cost and best performance for the target circuit, thereby ensuring the yield in the electronic product manufacturing process while reasonably reducing production costs.

[0132] Example 3

[0133] Based on the contents of the circuit element specification method of the above-mentioned embodiment 1 and embodiment 2, a third embodiment of the method for determining the circuit element specification of the present application is proposed, such as Figure 3 As shown, this embodiment is described by taking a threshold comparison circuit as an example of the target circuit of the present invention.

[0134] Of course, the threshold comparison circuit used in this embodiment is only used for illustration, and target circuits of other circuit types are also applicable to the technical solutions of the above-mentioned embodiments 1 and 2 of the present invention, and this application will not elaborate on them one by one here.

[0135] In this embodiment, during the execution of step S01, the terminal device first determines whether Figure 3The circuit topology shown is used to determine the j types of circuit components required for the target circuit based on the circuit topology; then, the performance parameter range of the target circuit output target, the cost data corresponding to each specification, and the i different specifications corresponding to each type of circuit component are determined.

[0136] The specific circuit application example is described as follows:

[0137] like Figure 3 As shown, in this threshold comparison circuit, V in1 Indicates the input voltage (such as charging voltage), take 220V, V cc Indicates the power supply voltage of the op amp, which is 11.59V, V ref Indicates the reference voltage of the circuit (R ref represents the reference resistance), take 2.3V, V out represents the output voltage (such as operating voltage or discharge voltage) of the threshold comparator circuit, that is, the output target mentioned in the first or second embodiment; and the performance parameter range of the output voltage of the threshold comparator circuit is 200V≤V out ≤210V.

[0138] Specifically, Figure 3 The threshold comparison circuit has j=4 types of corresponding circuit elements R1, R2, R3, R4, and the resistance values ​​of each circuit element are R1=420k, R2=4.6; R3=100k; R4=1k;

[0139] The specifications of each type of circuit element can have i=4 specifications: 0.1%; 1%; 5%; 10%;

[0140] The price p (unit yuan) of circuit components of different specifications is also different, specifically it can be: 0.3 yuan; 0.06 yuan; 0.05 yuan; 0.04 yuan, as shown in Table 1 below (the value of each grid in Table 1 below represents the price p of circuit component j of component type j and model specification i) ij , in yuan).

[0141] In a specific implementation, this embodiment first determines a corresponding circuit physical model based on the circuit topology of the target circuit. The circuit physical model of the third embodiment is related to the threshold comparison circuit. The circuit physical model may include at least Formula 2, Formula 3, Formula 4, Formula 5, and Formula 6.

[0142] Specifically, according to Figure 3 The type of each circuit element of the threshold comparator circuit, combined with the calculation formula of the output voltage of the threshold comparator circuit (calling the circuit physical model), is obtained:

[0143]

[0144] in: Vos=2mV is the offset voltage of the op amp.

[0145] Furthermore, during the execution of step S20, the terminal device performs a worst-case analysis of the target circuit based on the circuit physical model and in combination with the performance parameter range, and derives actual constraint boundary conditions based on the analysis results, for example:

[0146] (1) When k takes the minimum value, the actual maximum value of the target circuit output is obtained. The actual maximum value of the output should not exceed the set target maximum value 210. Substituting the relevant parameters into Formula 2, the actual maximum value of the target output g1(x ij ) expression:

[0147]

[0148] Among them, k min The expression is:

[0149]

[0150] (2) When k takes the maximum value, the actual minimum value of the target circuit output is obtained. The actual minimum value of the output should exceed the specified target minimum value by 200. Substituting the relevant parameters into Formula 4, the actual minimum value of the target output g2(x ij ) expression formula 5:.

[0151]

[0152] Among them, k max The expression is:

[0153]

[0154] It should be noted that the value of k here is a variable related to the specification accuracy i of the circuit element (resistor). While the resistance value of each circuit element is predetermined, the specification accuracy i of each circuit element (resistor) varies. Therefore, the target model in step S30 is used to calculate the target specification accuracy that minimizes the manufacturing cost and optimizes the performance of the target circuit, ensuring that the target output meets the user's ideal requirements. Generally, for any type of circuit, the value of k is related to the variable current and variable voltage.

[0155] Furthermore, during the execution of step S30, the terminal device constructs its target model based on the goal of lowest cost and best circuit performance:

[0156]

[0157] Where C is the desired output target, which is 205V. The price of the circuit component with device type j and model specification i (p ij The value range of , unit price is RMB) can be shown in the following table 1:

[0158]

[0159] Table 1 The constraints related to the target model include:

[0160]

[0161]

[0162]

[0163]

[0164]

[0165] Formulas 1-3 ensure that circuit component j can only select one specification model from among the many specifications models i. Formulas 3 and 5 represent the output threshold range allowed by the target circuit.

[0166] Furthermore, in the specific implementation process of executing step S40, the terminal device of this embodiment can use an existing solver or a self-written algorithm to solve the target model (Formula 1-2).

[0167] For example, the solution results of the target model (i.e., the target component arrangement and combination) are shown in Table 2 below: R1 = 420k, allowing 1% error; R2 = 4.6k, allowing 0.1% error; R3 = 100k, allowing 5% error; R4 = 1k, allowing 5% error:

[0168] Accuracy R1 R2 R3 R4 0.1% 0 1 0 0 1% 1 0 0 0 5% 0 0 1 1 10% 0 0 0 0

[0169] Table 2

[0170] Finally, after executing step S40, the target component arrangement and combination solved in step S40 may be verified by the following operations, including:

[0171] Generate a uniformly distributed pseudo-random number sampling sequence;

[0172] Based on the uniformly distributed pseudo-random number sampling sequence, establishing a random sampling sequence with a distribution specified by the target specification of each circuit element;

[0173] Simulating virtual circuits composed of target specifications of N groups of randomly sampled circuit elements in sequence to obtain simulation results;

[0174] The simulation results are statistically analyzed to calculate the statistical laws of the performance parameters of the target circuit and the yield rate of each virtual circuit.

[0175] In an embodiment of the present application, a statistical method for generating random numbers is used to simulate virtual circuits composed of target specifications of N groups of randomly sampled circuit elements in sequence to obtain simulation results; then, the statistical laws of the performance parameters of the target circuits and the yield rate of each virtual circuit are calculated, which can be used to verify that the target specifications of each circuit element selected based on the target model of the present application meet the output targets expected by the user.

[0176] Example 4

[0177] See also Figure 4 , Figure 4 This is a schematic diagram of an embodiment of a terminal device for manufacturing electrical components provided by this application. The terminal device can be deployed in a factory that manufactures electronic equipment products, such as Figure 4 As shown, the terminal device of this embodiment includes: at least one processor 10, a memory 11, and a computer program 12 stored in the memory 11 and executable on the at least one processor 10. When the processor 10 executes the computer program 12, the steps in the method embodiment for determining circuit element specifications of the present application are implemented.

[0178] Figure 4 The terminal device shown may include, but is not limited to, a processor 10 and a memory 11. Those skilled in the art will understand that Figure 4 These are merely examples of terminal devices and do not constitute limitations on the terminal devices. The terminal devices may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal devices may also include input and output devices, network access devices, etc.

[0179] The processor 10 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.

[0180] In some embodiments, the memory 11 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. In other embodiments, the memory 11 may also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Furthermore, the memory 11 may also include both an internal storage unit of the terminal device and an external storage device. The memory 11 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 11 may also be used to temporarily store data that has been output or is to be output.

[0181] Furthermore, in one embodiment, if Figure 5 As shown, the present invention also provides a device for determining circuit component specifications, comprising:

[0182] An acquisition unit 10 is configured to determine an output target of a target circuit, a performance parameter range of the output target, and j types of circuit components; each type of circuit component corresponds to i different specifications, where i and j are both positive integers;

[0183] An analyzing unit 20, configured to analyze the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to j types of circuit elements under i specifications;

[0184] A construction unit 30, configured to construct a target model based on the actual constraint boundary conditions and the output target;

[0185] The determination unit 40 is used to input different specifications of each type of circuit element into the target model to determine the target specification of each circuit element.

[0186] It should be noted that the device for determining circuit component specifications can be understood as a virtual device that can be installed in the terminal device of the aforementioned embodiment. The terminal device uses a processor to call the device for determining circuit component specifications, and then executes the specific implementation plan of the above method embodiment for determining circuit component specifications. Since the information exchange and execution process between the above devices / units are based on the same concept as the method embodiment of this application, their specific functions and technical effects can be found in the method embodiment section.

[0187] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0188] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0189] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process of the above-mentioned method embodiment by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium can at least include: any entity or device capable of carrying computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, mobile hard drive, magnetic disk, or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals or telecommunication signals.

[0190] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0191] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A method for determining circuit component specifications, characterized in that: include: Determining an output target of a target circuit, a performance parameter range of the output target, and j types of circuit elements, where each type of circuit element corresponds to i different specifications, and i and j are both positive integers; Analyzing the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to j types of circuit elements under i specifications; Building a target model based on the actual constraint boundary conditions and the output target; Different specifications of various types of circuit elements are input into the target model to determine target specifications of various circuit elements.

2. The method according to claim 1, wherein The method further comprises: Determine the number of components required for circuit elements of various specifications; Inputting different specifications of each type of circuit element into the target model to determine the target specification of each circuit element includes: Inputting each of the specifications and the corresponding number of components into the target model to obtain a plurality of candidate analysis data, wherein the candidate analysis data is a component arrangement and combination of the j different types of circuit components under i different specifications; Determining a target element arrangement and combination from the plurality of candidate analysis data; Target specifications of each circuit element are determined according to the target element arrangement and combination.

3. The method according to claim 2, wherein The method further comprises: Determine the cost data corresponding to each of the specifications; Inputting each of the specifications and the corresponding component quantity into the target model to obtain a plurality of candidate analysis data, including: Each of the specifications, corresponding component quantity and corresponding cost data is input into the target model to obtain multiple candidate analysis data, where the candidate analysis data is the component arrangement and combination related to the circuit component cost of the j different types of circuit components under i different specifications.

4. The method according to any one of claims 1 to 3, wherein The performance parameter range includes a target minimum value and a target maximum value output by the target circuit; each specification corresponds to a resistance tolerance; Analyzing the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to j types of circuit elements under i specifications includes: Analyzing the target circuit in combination with the target minimum value and the target maximum value to obtain actual outputs of the target circuit under resistance tolerances corresponding to i specifications of j types of circuit elements, the actual outputs including actual maximum values ​​and actual minimum values; The actual maximum value is not greater than the target maximum value, and the actual minimum value is not less than the target minimum value.

5. The method according to claim 4, wherein The constructing of the target model based on the actual constraint boundary conditions and the output target includes: determining an upper limit on the number of specifications of the circuit components and an upper limit on the number of types of the circuit components; constructing a target model based on the cost data, the upper limit of the number of the circuit component specifications, the upper limit of the number of the types of the circuit components, the actual minimum value, the actual maximum value, and the output target; Determining the target component arrangement and combination from the plurality of candidate analysis data includes: Determining the model output value for each candidate analysis data; Select the model target output value with the smallest value from each model output value; Determine the target element arrangement and combination corresponding to the target output value of the model.

6. The method according to claim 5, wherein The expression of the target model is: Wherein, Y represents the target output value of the model; j represents the type of the circuit element, i represents the specification of the circuit element; n1 represents the upper limit of the number of the circuit element specification, and n2 represents the upper limit of the number of the type of the circuit element; x ij Indicates that the target circuit selects the i-th specification of the circuit element of type j, and x ij is a Boolean value; p ij b represents the cost data of the i-th specification of the circuit component of type j; ij The number of components required for the i-th specification of circuit components of type j; Characterizing the permutations and combinations of j types of circuit elements required for the target circuit under i different specifications; g1(x ij ) represents the target maximum value of the i-th specification of the circuit element of type j, g2(x ij ) represents the target minimum value of the i-th specification of the circuit element of type j, and C represents the output target of the target circuit.

7. The method according to any one of claims 1 to 6, wherein: The step of determining an output target of a target circuit, a performance parameter range of the output target, and j types of circuit elements further includes: Acquiring a circuit topology structure of the target circuit; determining j types of circuit elements required for the target circuit according to the circuit topology; The output target input by the user, the performance parameter range of the output target, the specifications related to each type of circuit element, and the cost data corresponding to each specification are obtained.

8. The method according to claim 7, wherein Also includes: determining a circuit physical model based on the circuit topology; The target circuit is analyzed based on the circuit physical model and in combination with the target minimum value and the target maximum value to obtain actual outputs of the target circuit under resistance tolerances corresponding to i specifications for j types of circuit elements.

9. The method according to any one of claims 1 to 6, wherein: After the step of inputting different specifications of each type of circuit element into the target model to determine the target specifications of each circuit element, the method further includes: Generate a uniformly distributed pseudo-random number sampling sequence; Based on the uniformly distributed pseudo-random number sampling sequence, establishing a random sampling sequence with a distribution specified by the target specification of each circuit element; Simulating virtual circuits composed of target specifications of N groups of randomly sampled circuit elements in sequence to obtain simulation results; The simulation results are statistically analyzed to calculate the statistical laws of the performance parameters of the target circuit and the yield rate of each virtual circuit.

10. A device for determining specifications of circuit components, characterized in that: include: an acquisition unit, configured to determine an output target of a target circuit, a performance parameter range of the output target, and j types of circuit elements; It is also used for each type of circuit element corresponding to i different specifications, and i and j are both positive integers; an analyzing unit, configured to analyze the target circuit in combination with the performance parameter range to obtain actual constraint boundary conditions corresponding to j types of circuit elements under i specifications; A construction unit, configured to construct a target model based on the actual constraint boundary conditions and the output target; The determination unit is used to input different specifications of each type of circuit element into the target model respectively to determine the target specification of each circuit element.

11. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.

12. A storage medium, wherein the storage medium is a computer-readable storage medium and stores a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.