Circuit layout method and device, equipment, storage medium and program product

Through preset generalization formulas and slope judgment, the problem of frequent adjustment and simulation software dependence in PCB circuit layout is solved, and efficiency and resource utilization are improved.

CN118940707APending Publication Date: 2024-11-12NAVINFO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410940461.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, the layout of deserializers and serializers in PCB circuit layout requires frequent adjustment and the use of simulation software, resulting in inefficiency and waste of computing resources.

Method used

By receiving the user's target circuit layout request, obtaining the preset generalization formula, inputting the preset length to output the preset slope, determining whether the target circuit layout requirements are met, and generating circuit layout information. The user layouts based on this information to avoid frequent use of simulation software.

Benefits of technology

Improves circuit layout efficiency, saves computing resources, and reduces users' frequent adjustments to PCB circuit diagrams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940707A_ABST
    Figure CN118940707A_ABST
Patent Text Reader

Abstract

The invention provides a circuit layout method and device, equipment, a storage medium and a program product, and is applied to the technical field of intelligent driving. The method comprises the following steps: receiving a target circuit layout request sent by a user through a corresponding operation interface, wherein the request comprises a plurality of preset sub-circuit identifiers and a preset length corresponding to each preset sub-circuit; obtaining a preset generalization formula, and inputting each preset length into the preset generalization formula; the preset generalization formula comprises the corresponding relation between the length and the slope in the current stacking state, and the slope is used for representing the trend of the insertion loss parameter curve under a certain length; outputting a preset slope corresponding to each preset length based on a preset generalization formula, and judging whether each preset length meets a target circuit layout requirement or not according to each preset slope; and if yes, generating first circuit layout information according to a judgment result and outputting the first circuit layout information, so that a user layouts the target circuit according to each preset length according to the first circuit layout information. Layout efficiency is improved, and computing resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and in particular to a circuit layout method, device, equipment, storage medium and program product. Background Art

[0002] With the continuous development of intelligent driving technology, more and more intelligent vehicles allow the display of camera images on the vehicle display screen, so that the driver can know the vehicle environment status according to the camera image. However, this function of displaying camera images cannot be separated from the support of deserializers and serializers. Therefore, it is necessary to layout the deserializer and serializer on the PCB (Printed Circuit Board) to realize the display of camera images.

[0003] When the deserializer serializer is currently laid out in the PCB, the user generally first makes a complete PCB circuit diagram based on the wiring requirements of the deserializer and serializer, and uses simulation software to determine the corresponding insertion loss parameter curve, and then determines whether the wiring of the complete PCB circuit diagram is within the range allowed by the bus design standard based on the insertion loss parameter curve. If so, the above complete PCB circuit diagram is determined to be the final PCB circuit diagram. If not, the user adjusts the complete PCB circuit diagram until it is adjusted to within the range allowed by the standard, and the complete PCB circuit diagram at this time is determined as the final PCB circuit diagram.

[0004] However, this layout method requires users to frequently adjust the complete PCB circuit diagram when it is not within the range allowed by the standard, and frequently use simulation software to determine the insertion loss parameter curve, which reduces layout efficiency and wastes computing resources. Summary of the invention

[0005] The present application provides a circuit layout method, device, equipment, storage medium and program product to solve the technical problems in the prior art that users need to frequently adjust the complete PCB circuit diagram and frequently use simulation software to determine the insertion loss parameter curve, which reduces layout efficiency and wastes computing resources.

[0006] In a first aspect, the present application provides a circuit layout method, comprising: receiving a target circuit layout request sent by a user through a corresponding operation interface, wherein the target circuit layout request includes a plurality of preset sub-circuit identifiers and preset lengths corresponding to each preset sub-circuit;

[0007] Obtain a preset generalization formula, and input each preset length into the preset generalization formula; the preset generalization formula includes a corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve under a certain length;

[0008] Outputting a preset slope corresponding to each preset length based on the preset generalized formula, and judging whether each preset length meets the target circuit layout requirement according to each preset slope;

[0009] If so, first circuit layout information is generated and output according to the judgment result, so that the user can layout the target circuit according to the first circuit layout information according to each preset length.

[0010] In a second aspect, the present application provides a circuit layout device, comprising: a receiving module, configured to receive a target circuit layout request sent by a user through a corresponding operation interface, wherein the target circuit layout request includes a plurality of preset sub-circuit identifiers and preset lengths corresponding to each preset sub-circuit;

[0011] An acquisition module, used to acquire a preset generalization formula;

[0012] An input module, used to input each preset length into the preset generalized formula; the preset generalized formula includes the corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve under a certain length;

[0013] An output module, used for outputting preset slopes corresponding to each preset length based on the preset generalized formula;

[0014] A judgment module, used for judging whether each preset length meets the target circuit layout requirement according to each preset slope;

[0015] a generating module, configured to generate first circuit layout information according to the determination result;

[0016] The output module is further used to output the first circuit layout information, so that the user can layout the target circuit according to the first circuit layout information and the preset lengths.

[0017] In a third aspect, the present application provides an electronic device, comprising: a processor, a memory and a transceiver communicatively connected to the processor;

[0018] The memory stores computer-executable instructions; the transceiver is used to send and receive data;

[0019] The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.

[0020] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0021] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0022] The circuit layout method, apparatus, device, storage medium and program product provided by the present application receive a target circuit layout request sent by a user through a corresponding operation interface, wherein the target circuit layout request includes multiple preset sub-circuit identifiers and preset lengths corresponding to each preset sub-circuit; obtain a preset generalization formula, and input each preset length into the preset generalization formula; the preset generalization formula includes a corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve under a certain length; output the preset slope corresponding to each preset length based on the preset generalization formula, and judge whether each preset length meets the target circuit layout requirements according to each preset slope; if so, generate and output first circuit layout information according to the judgment result, so that the user can layout the target circuit according to each preset length according to the first circuit layout information. Since a preset generalized formula including the corresponding relationship between the length and the slope in the current stacking state is predetermined, by receiving a target circuit layout request including multiple preset sub-circuit identifiers and preset lengths corresponding to each preset sub-circuit triggered by the user in the corresponding operation interface and obtaining the preset generalized formula, each preset length can be input into the preset generalized formula, and the preset slope corresponding to each preset length can be output based on the preset generalized formula. And since the slope can characterize the trend of the insertion loss parameter curve under a certain length, an association is indirectly established between the length and the trend of the insertion loss parameter curve. Therefore, through each preset slope, it can be determined whether each preset length meets the target circuit layout requirements, and when it is determined to meet the requirements, the first circuit layout information can be generated and output according to the judgment result, so that the user can layout the target circuit according to each preset length according to the first circuit layout information, without the need to determine the insertion loss parameter curve through simulation software, thereby improving layout efficiency and saving computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0024] Figure 1 An application scenario diagram of a circuit layout method provided in an embodiment of the present application;

[0025] Figure 2 A method flow chart of a circuit layout method provided by an embodiment of the present application;

[0026] Figure 3 A method flow chart of a circuit layout method provided by another embodiment of the present application;

[0027] Figure 4 A complete method flow chart of a circuit layout method provided by an embodiment of the present application;

[0028] Figure 5 A schematic diagram of the structure of a circuit layout device provided in one embodiment of the present application;

[0029] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application.

[0030] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] First, the terms involved in this application are explained:

[0034] Insertion loss parameter: a parameter that measures the loss of a signal during transmission or processing;

[0035] GMSL: Gigabit Multimedia Serial Link, a high-speed serial communication standard used in the automotive field, mainly used to connect multimedia devices inside the car, such as cameras, displays, etc.

[0036] MIPI: Mobile Industry Processor Interface, short for Mobile Industry Processor Interface Alliance, defines a series of open standards and specifications for interconnection between internal components of mobile devices.

[0037] When pre-layouting the deserializer serializer in the PCB, the user generally first makes a complete PCB circuit diagram based on the wiring requirements of the deserializer and serializer, and then uses simulation software to simulate the complete PCB circuit diagram to obtain the corresponding insertion loss parameter curve, and compares the insertion loss value corresponding to each frequency in the insertion loss parameter curve with the bus design standard value to determine whether the wiring situation in the complete PCB circuit diagram is within the range allowed by the standard. If so, the above-mentioned complete PCB circuit diagram is determined to be the final PCB circuit diagram. If not, the wiring situation in the above-mentioned complete PCB circuit diagram is adjusted until it is determined to be within the range allowed by the standard, and the complete PCB circuit diagram formed at this time is determined as the final PCB circuit diagram. When it is not within the range allowed by the standard, the user needs to frequently adjust the complete PCB circuit diagram, and needs to frequently use simulation software to determine the insertion loss parameter curve, which reduces layout efficiency and wastes computing resources.

[0038] Therefore, in the face of the problems in the prior art, in order to improve layout efficiency and save computing resources, it is not necessary to use simulation software to determine the insertion loss parameter curve, and then compare the insertion loss parameter curve with the standard to evaluate the feasibility of the circuit layout. Instead, a relationship between the circuit length and the slope that can reflect the trend of the insertion loss parameter curve is established, that is, the change in the corresponding insertion loss parameter curve can be known by the change in the circuit length, and a generalized formula for determining whether the circuit layout is reasonable is established based on this relationship. Then, when the user has a circuit layout requirement, the corresponding sub-circuit identifiers and the corresponding lengths of each sub-circuit of this circuit are configured through the operation interface, and the circuit layout request is triggered based on the configuration result. In response to the above request being triggered, the configured sub-circuit identifiers and the corresponding lengths of the sub-circuits are obtained, and a pre-established generalized formula is obtained, and then the lengths corresponding to the sub-circuits are input into the formula, and the corresponding slopes are output based on the formula, and it is determined whether the current layout is within the range allowed by the standard based on the trend of the insertion loss parameter curve reflected by the slope. If so, prompt information is generated based on the result that meets the requirements, so that the user can perform circuit layout according to each length according to the prompt information, without having to determine the insertion loss parameter curve through simulation software, thereby improving layout efficiency and saving computing resources.

[0039] Figure 1 This is an application scenario diagram of the circuit layout method provided in one embodiment of the present application, such as Figure 1As shown, the circuit layout system provided by the present application includes: a user terminal 1, an electronic device 2, and a database 3. Among them, the user terminal 1 is a terminal for the user to perform corresponding operations based on the circuit layout requirements. The electronic device 2 is a device that performs circuit layout. The database 3 is a database corresponding to the electronic device 2. Among them, the electronic device 2 is respectively connected to the user terminal 1 and the database 3 in communication. First, the user establishes the corresponding relationship between the length and the slope in the current stacking state in advance according to the characteristics that the slope can characterize the trend of the insertion loss parameter curve under a certain length, obtains a preset generalized formula, and stores it in the database 3. The user sends a target circuit layout request containing multiple preset sub-circuit identifiers and preset lengths corresponding to each preset sub-circuit to the electronic device 2 through the corresponding operation interface based on the user terminal 1. Then, in response to receiving the target circuit layout request, the electronic device 2 obtains the preset generalized formula based on the database 3, and inputs each preset length into the preset generalized formula. Then, based on the preset generalized formula, the preset slope corresponding to each preset length is output, and according to each preset slope, it is judged whether each preset length meets the target circuit layout requirement, and when it is determined that the requirement is met, the first circuit layout information is generated and output according to the judgment result, so that the user can layout the target circuit according to each preset length according to the first circuit layout information.

[0040] The circuit layout method provided in this application is intended to solve the above technical problems in the prior art.

[0041] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0042] Figure 2 A method flow chart of a circuit layout method provided by an embodiment of the present application, such as Figure 2 As shown, the execution subject of this embodiment is a circuit layout device, and the circuit layout device is located in an electronic device. The specific execution steps of this embodiment are:

[0043] S201 : receiving a target circuit layout request sent by a user through a corresponding operation interface, where the target circuit layout request includes a plurality of preset sub-circuit identifiers and preset lengths corresponding to the preset sub-circuits.

[0044] The target circuit layout request is a request for instructing the electronic device to evaluate the target circuit layout, and specifically includes a plurality of preset sub-circuit identifiers and preset lengths corresponding to each preset sub-circuit.

[0045] Among them, the target circuit is a circuit with circuit layout requirements, such as circuits corresponding to a serializer and a deserializer that need to be laid out on a PCB board.

[0046] The preset subcircuit identifier is any identifier that characterizes the identity of the preset subcircuit, such as the name and number of the preset subcircuit. The preset subcircuit is a subcircuit divided in the target circuit based on the circuit layout requirements. The preset length is the length determined in advance for the subcircuit.

[0047] For example, if the target circuit is a circuit corresponding to a serializer and a deserializer that needs to be laid out on a PCB board, the circuit can be divided based on the above circuit to obtain a preset subcircuit corresponding to the chip pin to the capacitor, a preset subcircuit corresponding to the capacitor itself, a preset subcircuit corresponding to the capacitor to the via, and a preset subcircuit corresponding to the via. Further, when dividing each preset subcircuit, a length can be determined for each preset subcircuit to obtain a preset length corresponding to each preset subcircuit, such as determining the preset subcircuit corresponding to the chip pin to the capacitor as 500MIL.

[0048] In this embodiment, the user can pre-divide the target circuit, and configure corresponding preset sub-circuit identifiers and preset lengths of each preset sub-circuit for the target circuit in the corresponding operation interface according to the division result, and trigger the target circuit layout component in the corresponding operation interface. Then, in response to the above component being triggered, a target circuit layout request is generated and sent to the electronic device.

[0049] Based on this, the electronic device receives a target circuit layout request, and obtains multiple preset sub-circuit identifiers of the target circuit configured by the user and preset lengths corresponding to the preset sub-circuits in the target circuit layout request.

[0050] S202, obtaining a preset generalization formula, and inputting each preset length into the preset generalization formula. The preset generalization formula includes the corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve under a certain length.

[0051] Among them, the preset generalized formula is a formula that characterizes the corresponding relationship between length and slope in the current stacking state. Specifically, it can be a formula with length as the independent variable and slope as the dependent variable. It is used to determine whether the preset length corresponding to each preset sub-circuit in the current stacking state meets the target circuit layout requirements.

[0052] The current stacking state is the stacking state of the currently used PCB board, and for different stacking states, there are corresponding preset generalized formulas for users to evaluate whether the target circuit layout meets the requirements.

[0053] The slope is a slope representing the trend of the insertion loss parameter curve under a certain length. The insertion loss parameter curve is an insertion loss parameter curve obtained by simulation using simulation software.

[0054] In this embodiment, the user can divide the previously laid out circuits in advance according to the previous layout conditions to obtain the previously laid out sub-circuits, and simulate each previously laid out sub-circuit to obtain the insertion loss parameter curve corresponding to each previously laid out sub-circuit. Then, the above insertion loss parameter curves are fitted to obtain the slope corresponding to each insertion loss parameter curve, thereby establishing the corresponding relationship between the length corresponding to each previously laid out sub-circuit and the corresponding slope, and obtaining a preset generalized formula. That is, at a certain length, what is the corresponding slope.

[0055] Based on this, after obtaining a plurality of preset sub-circuit identifiers and the preset lengths corresponding to the preset sub-circuits, a pre-stored preset generalization formula is obtained, and each preset length is input into the preset generalization formula.

[0056] S203 , outputting preset slopes corresponding to the preset lengths based on a preset generalized formula, and judging whether the preset lengths meet the target circuit layout requirements according to the preset slopes.

[0057] The preset slope is a slope determined based on a preset length.

[0058] The target circuit layout requires that the wiring of the target circuit meets the requirements of the bus design standard.

[0059] It can be understood that since the preset generalized formula contains the corresponding relationship between the length and the slope in the current stacking state, after each preset length is input into the preset generalized formula, the slope corresponding to each preset length, that is, the preset slope, can be calculated based on the preset generalized formula, and it can be judged according to each preset slope whether each preset length meets the target circuit layout requirements.

[0060] Specifically, the trend of the insertion loss parameter curve under each preset length is determined according to each preset slope, and the trend of the insertion loss parameter curve is compared with the bus design standard to determine whether each preset length meets the target circuit layout requirement.

[0061] S204: If yes, generate and output first circuit layout information according to the judgment result, so that the user can layout the target circuit according to the first circuit layout information and the preset lengths.

[0062] Among them, the first circuit layout information is information that characterizes that each preset length meets the target circuit layout requirements, for example, the field where "determines whether each preset length meets the target circuit layout requirements based on the preset slope corresponding to each preset length" is located. This example is only an example and should not constitute a limitation on this application.

[0063] In this embodiment, it is determined whether each preset length meets the layout requirement of the target circuit based on each preset slope. If so, it means that the preset length corresponding to each preset subcircuit meets the layout requirement of the target circuit, and each preset length can be used to layout the target circuit.

[0064] Based on this, the first circuit layout information is generated according to the judgment result, that is, the result that each preset length meets the target circuit layout requirement, and the first circuit layout information is output, such as displayed on the corresponding operation interface, so that the user can know according to the result displayed on the corresponding operation interface that the preset length corresponding to each preset sub-circuit meets the target circuit layout requirement, and layout the target circuit according to each preset length.

[0065] The circuit layout method provided in this embodiment receives a target circuit layout request sent by a user through a corresponding operation interface, wherein the target circuit layout request includes multiple preset subcircuit identifiers and preset lengths corresponding to each preset subcircuit; obtains a preset generalization formula, and inputs each preset length into the preset generalization formula; the preset generalization formula includes the corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve under a certain length; outputs the preset slope corresponding to each preset length based on the preset generalization formula, and judges whether each preset length meets the target circuit layout requirement according to each preset slope; if so, generates and outputs the first circuit layout information according to the judgment result, so that the user can layout the target circuit according to each preset length according to the first circuit layout information. Since the preset generalization formula including the corresponding relationship between the length and the slope in the current stacking state is predetermined, by receiving the target circuit layout request including multiple preset subcircuit identifiers and preset lengths corresponding to each preset subcircuit triggered by the user in the corresponding operation interface, and obtaining the preset generalization formula, each preset length can be input into the preset generalization formula, and the preset slope corresponding to each preset length can be output based on the preset generalization formula. And because the slope can characterize the trend of the insertion loss parameter curve under a certain length, an association is indirectly established between the length and the trend of the insertion loss parameter curve. Therefore, through each preset slope, it can be judged whether each preset length meets the target circuit layout requirement, and when it is determined that it meets the requirement, the first circuit layout information can be generated and output according to the judgment result, so that the user can layout the target circuit according to each preset length according to the first circuit layout information, without determining the insertion loss parameter curve through simulation software, thereby improving layout efficiency and saving computing resources.

[0066] Figure 3 A method flow chart of a circuit layout method provided by another embodiment of the present application, such as Figure 3As shown, based on the above embodiment, this embodiment further refines the content included in the insertion loss parameter curve, and further refines the process of judging whether each preset length meets the target circuit layout requirement according to each preset slope. In this embodiment, the insertion loss parameter curve includes the corresponding relationship between the insertion loss value and the frequency. When judging whether each preset length meets the target circuit layout requirement according to each preset slope, the following steps are specifically included:

[0067] S301 . Estimate insertion loss values ​​in a preset frequency range according to each preset slope, and obtain a preset bus design standard value.

[0068] In this embodiment, the insertion loss parameter curve includes the corresponding relationship between the insertion loss value and the frequency, which can be specifically embodied as a curve with the frequency as the x-axis and the insertion loss value as the y-axis. The insertion loss value is used to describe the amount of power reduction after the signal passes through a device or system during the transmission process. The frequency refers to the rate of periodic change of the above signal.

[0069] The preset frequency range is a certain frequency range in the insertion loss parameter curve. The preset bus design standard value is the insertion loss value threshold required in the design standard of a certain bus, and the preset bus design standard value can be one or more of the Gigabit Multimedia Serial Link GMSL bus design standard value and the mobile industry processor interface MIPI bus design standard value.

[0070] It can be understood that since each preset slope represents the trend of the insertion loss parameter curve corresponding to the preset length, the straight line drawn using each preset slope can characterize the insertion loss parameter curve corresponding to the preset length to a certain extent, that is, the straight line drawn by each preset slope is a straight line with frequency as the x-axis and insertion loss value as the y-axis.

[0071] Based on this, in response to judging whether each preset length meets the target circuit layout requirements according to each preset slope, each preset slope is obtained, and based on a straight line drawn by each preset slope with frequency as the x-axis and insertion loss value as the y-axis, the insertion loss value within the preset frequency range is obtained to estimate the insertion loss value within the preset frequency range in the insertion loss parameter curve corresponding to the preset length, and obtain the pre-stored preset bus design standard value.

[0072] S302: Determine whether the insertion loss values ​​in the preset frequency range are all greater than the preset bus design standard values.

[0073] In this embodiment, since the insertion loss value threshold is specified in the preset bus design standard, after the insertion loss value in the preset frequency range and the preset bus design standard value are obtained, the two values ​​are compared.

[0074] Specifically, the insertion loss value corresponding to each frequency point within the preset frequency range is obtained, and the standard value at the same frequency point is searched in the preset bus design standard value, and the insertion loss value and the standard value at the same frequency point are compared one by one to determine whether the insertion loss values ​​in the preset frequency range are all greater than the preset bus design standard value.

[0075] S303: If yes, determine whether each preset length meets the target circuit layout requirement.

[0076] In this embodiment, it is determined whether the insertion loss values ​​in the preset frequency range are all greater than the preset bus design standard values. If so, it means that the insertion loss values ​​in the preset frequency range in the insertion loss parameter curves of each preset length basically meet the preset bus design standard, and the layout of the target circuit using each preset length can meet the product requirements, then it is determined that each preset length meets the target circuit layout requirements.

[0077] S304: If not, determine that each preset length does not meet the target circuit layout requirement.

[0078] In this embodiment, it is determined whether the insertion loss values ​​in the preset frequency range are all greater than the preset bus design standard values. If not, it means that the insertion loss values ​​in the preset frequency range in the insertion loss parameter curves of each preset length do not meet the preset bus design standard. The layout of the target circuit using each preset length cannot meet the product requirements, and it is determined that each preset length does not meet the target circuit layout requirements.

[0079] In the circuit layout method provided by the present embodiment, the insertion loss parameter curve includes the corresponding relationship between the insertion loss value and the frequency; when judging whether each preset length meets the target circuit layout requirements according to each preset slope, the insertion loss value in the preset frequency range is estimated according to each preset slope, and the preset bus design standard value is obtained; it is judged whether the insertion loss values ​​in the preset frequency range are all greater than the preset bus design standard value; if so, it is determined that each preset length meets the target circuit layout requirements; if not, it is determined that each preset length does not meet the target circuit layout requirements. Since the insertion loss parameter curve includes the corresponding relationship between the insertion loss value and the frequency, and the preset slope is the slope of the insertion loss parameter curve reflecting the corresponding preset length, the insertion loss value in the preset frequency range can be estimated by each preset slope, and by obtaining the preset bus design standard value, it can be determined whether the insertion loss values ​​in the preset frequency range are all greater than the preset bus design standard value, so that when it is determined that they are all greater than, it is determined that each preset length meets the target circuit layout requirements, and when it is determined that there is a situation of less than, it is determined that each preset length does not meet the target circuit layout requirements, so as to accurately judge whether each preset length meets the target circuit layout requirements, and improve the accuracy of judgment.

[0080] As an optional embodiment, based on the above embodiment, after determining that each preset length does not meet the target circuit layout requirement, this embodiment further includes the following steps:

[0081] Step a1: If not, then obtain the latest length corresponding to each preset sub-circuit, and determine each latest slope according to the preset generalization formula and each latest length.

[0082] The latest length is the length after adjusting the preset length. The latest slope is the slope newly determined in the preset generalization formula using the latest length.

[0083] In this embodiment, based on the judgment result that each preset length does not meet the target circuit layout requirement, each preset length needs to be adjusted, and after the adjustment, it is judged again whether the target circuit layout requirement is met.

[0084] Specifically, the user can adaptively extend or shorten the preset length corresponding to each preset sub-circuit according to the result that each preset length does not meet the target circuit layout requirement, obtain the latest length corresponding to each preset sub-circuit, and trigger the target circuit layout component again based on each preset sub-circuit identifier and the latest length corresponding to each preset sub-circuit, thereby generating a target circuit layout request, and sending the target circuit layout request to the electronic device.

[0085] Based on this, the electronic device receives the target circuit layout request, obtains the latest length corresponding to each preset sub-circuit in the request, and further obtains the pre-stored preset generalization formula. The latest length corresponding to each preset sub-circuit is input into the preset generalization formula, and the latest slope corresponding to each latest length is output based on the preset generalization formula. The specific execution method is similar to S201-S203, and will not be repeated here.

[0086] Step a2: judging whether each latest length meets the target circuit layout requirement according to each latest slope.

[0087] In this embodiment, based on obtaining each latest slope, it is determined whether each latest length meets the target circuit layout requirement according to each latest slope. The specific execution method is similar to S301-S304 and will not be described in detail here.

[0088] Step a3: If yes, generate and output first circuit layout information according to the judgment result, so that the user can layout the target circuit according to the first circuit layout information according to the latest lengths.

[0089] In this embodiment, it is determined based on the latest slopes whether the latest lengths meet the target circuit layout requirements. If so, it means that after adjusting the preset lengths, the latest lengths corresponding to the preset sub-circuits meet the target circuit layout requirements. Then, first circuit layout information is generated and output based on the judgment result, so that the user can determine to layout the target circuit according to the latest lengths based on the content in the first circuit layout information. The specific execution method is similar to S204 and will not be repeated here.

[0090] Step a4: If not, execute the steps of obtaining the latest length corresponding to each preset sub-circuit to judging whether each latest length meets the layout requirements of the target circuit, until it is determined that each latest length meets the layout requirements of the target circuit, so that the user can layout the target circuit according to each latest length when the layout requirements are met.

[0091] In this embodiment, it is determined whether each latest length meets the target circuit layout requirement based on each latest slope. If not, it means that after adjusting each preset length, the latest length corresponding to each preset sub-circuit still does not meet the target circuit layout requirement, then steps a1 to a2 are executed repeatedly until it is finally determined that each latest length meets the target circuit layout requirement.

[0092] Then, based on the final determination that each latest length meets the target circuit layout requirement, the first circuit layout information is generated and output according to this result, so that the user can determine to layout the target circuit according to each latest length that meets the layout requirement based on the content in the first circuit layout information. The specific execution method is similar to S204 and will not be repeated here.

[0093] The circuit layout method provided in this embodiment, after determining that each preset length does not meet the target circuit layout requirements, if not, then obtain the latest length corresponding to each preset subcircuit, and determine each latest slope according to the preset generalization formula and each latest length; judge whether each latest length meets the target circuit layout requirements according to each latest slope; if so, generate and output the first circuit layout information according to the judgment result, so that the user can layout the target circuit according to each latest length according to the first circuit layout information; if not, execute the steps of obtaining the latest length corresponding to each preset subcircuit to judging whether each latest length meets the target circuit layout requirements, until it is determined that each latest length meets the target circuit layout requirements, so that the user can layout the target circuit according to each latest length when the layout requirements are met. Since each preset length may not meet the target circuit layout requirements, by obtaining the latest length corresponding to each preset subcircuit, each latest slope can be further determined according to the preset generalization formula and each latest length. And by judging whether each latest length meets the target circuit layout requirement according to each latest slope, the first circuit layout information can be generated and output according to the judgment result when it is determined that it meets the requirement, so that the user can layout the target circuit according to each latest length according to the first circuit layout information, and when it is determined that it is still not met, the steps of obtaining the latest length corresponding to each preset sub-circuit to judging whether each latest length meets the target circuit layout requirement are executed repeatedly until it is determined that each latest length meets the target circuit layout requirement, so that the user can layout the target circuit according to each latest length when the layout requirement is met, without the need for the user to frequently adjust the complete PCB circuit diagram, and without the need to frequently use simulation software to determine the insertion loss parameter curve, thereby further improving the layout efficiency and further saving computing resources.

[0094] As an optional embodiment, in this embodiment Figure 2 On the basis of the corresponding embodiment, after the first circuit layout information is generated and output according to the judgment result, the following steps are also included:

[0095] Step b1: Obtain a preset circuit optimization formula, and input each preset length into the preset circuit optimization formula respectively.

[0096] The preset circuit optimization formula is a pre-established formula for evaluating whether it is necessary to optimize the current wiring situation of the target circuit when the target circuit meets the preset bus design standard.

[0097] It is understandable that, since the insertion loss parameter curve fluctuates, when determining that each preset length meets the target circuit layout requirement based on the slope reflecting the trend of the insertion loss parameter curve, it is necessary to further evaluate whether each preset length needs to be optimized.

[0098] Based on this, after the first circuit layout information is generated and output according to the judgment result, a pre-stored preset circuit optimization formula is obtained, and each preset length is input into the preset circuit optimization formula respectively to evaluate whether each preset length needs to be optimized.

[0099] Step b2: outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, and determining whether each optimization evaluation value is greater than or equal to a preset threshold.

[0100] The optimization evaluation value is the value of the degree to which each preset length evaluated does not need to be optimized. The preset threshold is the maximum evaluation value that should be reached if each preset length is predetermined and does not need to be optimized.

[0101] In this embodiment, after each preset length is respectively input into the preset circuit optimization formula, each preset length is calculated based on the preset circuit optimization formula to obtain and output the optimization evaluation value corresponding to each preset length.

[0102] Based on this, a pre-stored preset threshold is obtained, and it is determined whether the optimization evaluation values ​​corresponding to each preset length are greater than or equal to the preset threshold.

[0103] Step b3: If yes, generate and output second circuit layout information according to the judgment result, so that the user can layout the target circuit according to the second circuit layout information according to each preset length.

[0104] Among them, the second circuit layout information is information that characterizes that each optimization evaluation value is greater than or equal to a preset threshold, for example, the field where "the optimization evaluation values ​​corresponding to each preset length are greater than or equal to the preset threshold" is located. This example is only an example and should not constitute a limitation on this application.

[0105] In this embodiment, it is determined whether the optimization evaluation values ​​corresponding to each preset length are greater than or equal to a preset threshold value. If so, it means that each preset length has reached the standard that does not require optimization, that is, there is no need to optimize each preset length. Then, the second circuit layout information is generated according to the judgment result, and the second circuit layout information is output, such as being displayed on the corresponding operation interface, so that the user can know that the preset lengths corresponding to each preset sub-circuit do not need to be optimized according to the results displayed on the corresponding operation interface, and layout the target circuit according to each preset length.

[0106] Step b4: If not, then generate optimization information according to the judgment result, so that the user can adjust each preset length according to the optimization information.

[0107] Among them, the optimization information is information that characterizes that there is at least one optimization evaluation value less than a preset threshold, for example, the field where "the optimization evaluation value corresponding to the length of A and the length of B is less than the preset threshold" is located. This example is only an example and should not constitute a limitation on this application.

[0108] In this embodiment, it is determined whether the optimization evaluation values ​​corresponding to each preset length are greater than or equal to a preset threshold. If not, it means that at least one preset length does not meet the standard that does not require optimization, that is, each preset length still needs to be optimized. Then, optimization information is generated according to the judgment result, so that the user can know the specific results of the optimization and the preset length based on the content in the optimization information.

[0109] It is understandable that after the user adjusts each preset length, the latest length corresponding to each preset sub-circuit is obtained. Then, in order to determine whether each latest length meets the target circuit layout requirements, or to evaluate whether each latest length needs to be optimized on the basis of meeting the target circuit layout requirements, it is necessary to execute steps a1 to a4 again based on the adjustment results, or further execute steps b1 to b4 on the basis of executing steps a1 to a4.

[0110] The circuit layout method provided in this embodiment, after generating and outputting the first circuit layout information according to the judgment result, further includes: obtaining a preset circuit optimization formula, and inputting each preset length into the preset circuit optimization formula respectively; outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, and judging whether each optimization evaluation value is greater than or equal to the preset threshold; if so, generating and outputting the second circuit layout information according to the judgment result, so that the user can layout the target circuit according to each preset length according to the second circuit layout information; if not, generating optimization information according to the judgment result, so that the user can adjust each preset length according to the optimization information. Since each preset length may need to be further optimized on the basis of meeting the circuit layout requirements, by obtaining the pre-stored preset circuit optimization formula, each preset length can be input into the preset circuit optimization formula respectively, and the optimization evaluation value corresponding to each preset length can be output based on the preset circuit optimization formula. By judging whether all optimization evaluation values ​​are greater than or equal to a preset threshold, the second circuit layout information can be generated and output when it is determined that they are all greater than the threshold, so that the user can layout the target circuit according to the preset lengths based on the second circuit layout information. When it is determined that there is at least one optimization evaluation value less than the threshold, optimization information is generated, so that the user can adjust the preset lengths according to the optimization information to improve the accuracy of the circuit layout.

[0111] As an optional embodiment, in this embodiment, based on the above embodiment, the preset circuit optimization formula includes a first sub-formula and a second sub-formula. When outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, step b2 specifically includes the following steps:

[0112] Step b21: Based on the first sub-formula, the square of the difference between the preset broken line formula and the preset bus design standard value is calculated according to each preset length to obtain the target difference corresponding to each preset length. The preset broken line formula is a formula established according to the preset generalized formula, including the corresponding relationship between the insertion loss value and the length and frequency.

[0113] In this embodiment, the preset circuit optimization formula includes a first sub-formula and a second sub-formula, wherein the first sub-formula is a formula for evaluating the difference between the insertion loss parameter curve at each preset length and the preset bus design standard based on the preset broken line formula. The second sub-formula is a formula for evaluating the ratio of the wiring area to the total area when the target circuit is laid out using each preset length.

[0114] The preset broken line formula is a broken line formula close to the insertion loss parameter curve, which is specifically established according to the preset generalized formula. The target difference is the value output by the first sub-formula.

[0115] It can be understood that since the preset generalized formula includes the corresponding relationship between length and slope, and the slope is the slope that characterizes the trend of the insertion loss parameter curve at a certain length, after the preset broken line formula is established based on the preset generalized formula, the preset broken line formula includes the corresponding relationship between the insertion loss value and the length and frequency.

[0116] Based on this, in response to outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, the insertion loss value of each preset length within the preset frequency range is output based on the preset broken line formula in the first sub-formula, and the square of the difference between each insertion loss value and the corresponding preset bus design standard value at the same frequency point is calculated to obtain the target difference corresponding to each preset length.

[0117] It can be understood that, on the basis that each preset length meets the target circuit layout requirements, the larger the difference between each insertion loss value in the insertion loss parameter curve corresponding to each preset length and the preset bus design standard value, the better, that is, the more it meets the preset bus design standard, the better. Therefore, the larger the target difference corresponding to each preset length, the better.

[0118] Step b22: Based on the second sub-formula, the ratio of the remaining area of ​​the target circuit to the total area is calculated according to each preset length to obtain the target ratio corresponding to each preset length.

[0119] The target circuit remaining area is the area remaining after the target circuit is laid out on the PCB board. The total area is the total area of ​​the PCB board to be laid out.

[0120] The target ratio is the value output by the second sub-formula.

[0121] Based on this, in response to the optimization evaluation value corresponding to each preset length output based on the preset circuit optimization formula, the area of ​​each preset subcircuit is calculated based on the bus width adopted by each preset length and each preset subcircuit in the second sub-formula, that is, the product of each preset length and the corresponding bus width, and the total area of ​​the PCB board is calculated, that is, the product of the width and width of the PCB board. Then the sum of the areas of each preset subcircuit is calculated to obtain the area of ​​the target circuit, and the difference is made between the above total area and the area of ​​the target circuit to obtain the remaining area of ​​the target circuit. Finally, the ratio of the remaining area of ​​the target circuit to the above total area is calculated to obtain the target ratio corresponding to each preset length.

[0122] It is understandable that, on the basis that each preset length meets the target circuit layout requirements, the smaller the ratio of the target circuit area to the total area, the better, that is, the larger the ratio of the target circuit remaining area to the total area, the better. Therefore, the larger the target ratio corresponding to each preset length, the better.

[0123] Step b23: Calculate the weighted sum of the target difference and the target ratio according to the weights corresponding to the target difference and the target ratio respectively, and determine the weighted sum as the optimization evaluation value corresponding to each preset length and output it.

[0124] It can be understood that in order to comprehensively evaluate the impact of the above two indicators on the target circuit layout, when establishing the preset circuit optimization formula, corresponding weights are set for the first sub-formula and the second sub-formula.

[0125] Based on this, after obtaining the target difference and target ratio corresponding to each preset length, the weighted sum of the target difference and the target ratio is calculated according to the weights corresponding to the target difference and the target ratio respectively, and the weighted sum is output as the optimization evaluation value corresponding to each preset length.

[0126] It can be understood that since the target difference and the target ratio are both the larger the better, the larger the optimization evaluation value corresponding to each preset length is, the better. That is, the larger the optimization evaluation value, the more the corresponding preset length meets the layout requirements, and the smaller the optimization evaluation value, the more the corresponding preset length may need further optimization.

[0127] In order to more clearly illustrate the process of outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula provided in this embodiment, the following formula is used for illustration:

[0128]

[0129] Where E is the output value, is the first subformula, is the third sub-formula.

[0130] In the first sub-formula, IL(f) is the preset bus design standard value, L(s,f) is the insertion loss value of a preset length at a certain frequency calculated using the preset broken line formula, s is a preset length, and f is a certain frequency. In the second sub-formula, S 总 is the total area, S 剩 is the remaining area of ​​the target circuit. α is the weight value of the first subformula, and γ is the weight value of the second subformula.

[0131] Furthermore, if the bus involved in the target circuit includes the GMSL bus and the MIPI bus, the above formula can also be expressed as:

[0132]

[0133] S 剩 =S 总 -(S MIPI +S GMSL ).

[0134] Where E is the output value, and is the first subformula, is the second sub-formula.

[0135] In the first subformula, in the first formula of the first subformula, IL(f) is the GMSL bus design standard value, L(s,f) is the insertion loss value of a preset length belonging to the GMSL bus at a certain frequency calculated using a preset broken line formula. In the second formula of the first subformula, IL(f) is the MIPI bus design standard value, L(s,f) is the insertion loss value of a preset length belonging to the MIPI bus at a certain frequency calculated using a preset broken line formula, s is a certain preset length, and f is a certain frequency. In the second subformula, S 总 is the total area, S 剩 is the remaining area of ​​the target circuit, S MIPI is the area corresponding to the MIPI bus, S GMSL is the area corresponding to the GMSL bus. α is the weight value of the first formula of the first subformula, β is the weight value of the second formula of the first subformula, and γ is the weight value of the second subformula.

[0136] In the circuit layout method provided in the present embodiment, the preset circuit optimization formula includes a first sub-formula and a second sub-formula; when outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, the square of the difference between the preset broken line formula and the preset bus design standard value is calculated based on the first sub-formula according to each preset length to obtain the target difference corresponding to each preset length; the preset broken line formula is a formula established based on a preset generalized formula, including the corresponding relationship between the insertion loss value and the length and frequency; based on the second sub-formula, the ratio of the remaining area of ​​the target circuit to the total area is calculated according to each preset length to obtain the target ratio corresponding to each preset length; according to the weights corresponding to the target difference and the target ratio, the weighted sum of the target difference and the target ratio is calculated, and the weighted sum is determined as the optimization evaluation value corresponding to each preset length and output. Since the preset circuit optimization formula includes a first sub-formula for calculating the difference between the insertion loss parameter curve and the bus design standard, and a second sub-formula for calculating the ratio of the remaining area of ​​the circuit to the total area, the first sub-formula can be used to calculate the square of the difference between the preset broken line formula including the corresponding relationship between the insertion loss value and the length and frequency and the preset bus design standard value according to each preset length, and obtain the target difference corresponding to each preset length. And through the second sub-formula, the ratio of the remaining area of ​​the target circuit to the total area can be calculated according to each preset length, and the target ratio corresponding to each preset length can be obtained, so that by calculating the weighted sum of the target difference and the target ratio according to the corresponding weight, the weighted sum can be output as the optimization evaluation value corresponding to each preset length, thereby improving the accuracy of the determined optimization evaluation value and further improving the accuracy of the circuit layout.

[0137] As an optional embodiment, based on the above-mentioned previous embodiment, after generating and outputting the second circuit layout information according to the judgment result, this embodiment further includes the following steps:

[0138] Step c1: Obtain a preset set, where the preset set includes insertion loss values ​​corresponding to minimum turning points of multiple historical lengths.

[0139] The preset set is a pre-stored set of insertion loss values ​​corresponding to minimum turning points of multiple historical lengths.

[0140] The historical length is the length of the historical subcircuit obtained by dividing the historical circuit. The historical circuit is a circuit that has been laid out before, and the historical subcircuit is a subcircuit formed by the segmentation obtained by dividing the historical circuit.

[0141] It can be understood that the stacking state of the historical circuit is consistent with that of the target circuit.

[0142] The minimum turning point is the point in the insertion loss parameter slope that is closest to the preset bus design standard, and the corresponding insertion loss value is the value that is closest to the preset bus design standard value.

[0143] In this embodiment, for the insertion loss parameter curve at any length, there will be a point in its fluctuation that is relatively extreme, that is, closest to the preset bus design standard. Therefore, after determining that each preset length meets the target circuit layout requirements and evaluating its optimization needs, it is necessary to further determine whether the minimum turning point in each preset length is within the range allowed by the standard.

[0144] Based on this, the user can obtain the historical lengths corresponding to multiple historical sub-circuits of the historical circuit in advance according to the layout of the historical circuit, and further obtain the insertion loss parameter curve under each historical length, find the minimum turning point in each insertion loss parameter curve, and determine the insertion loss value corresponding to each minimum turning point, so as to establish a mapping relationship between each historical length and the corresponding minimum turning point and the corresponding insertion loss value to form a preset set. Then, after the second circuit layout information is generated and output according to the judgment result, the pre-stored preset set is obtained.

[0145] Step c2: judging whether the insertion loss values ​​corresponding to the minimum turning points of the preset lengths are all greater than the preset bus design standard values ​​according to the preset set.

[0146] In this embodiment, based on determining that the optimization evaluation values ​​corresponding to each preset length are greater than or equal to the preset threshold, and obtaining a preset set, a historical length that is the same or similar to each preset length is searched in the preset set, and the minimum turning point and the corresponding insertion loss value corresponding to the historical length are obtained, and the insertion loss value corresponding to the minimum turning point of the historical length is used as the insertion loss value corresponding to the minimum turning point of each preset length.

[0147] Based on this, after obtaining the insertion loss value corresponding to the minimum turning point of each preset length, the insertion loss value is compared with the preset bus design standard value to determine whether the insertion loss value corresponding to the minimum turning point of each preset length is greater than the preset bus design standard value.

[0148] Step c3: If yes, generate and output third circuit layout information according to the judgment result, so that the user can layout the target circuit according to the third circuit layout information according to each preset length.

[0149] Among them, the third circuit layout information is information that characterizes that the insertion loss values ​​corresponding to the minimum turning points of each preset length are greater than the preset bus design standard value, for example, the field where "the insertion loss values ​​corresponding to the minimum turning points of each preset length are greater than the preset bus design standard value" is located. This example is only an example and should not constitute a limitation on this application.

[0150] In this embodiment, it is determined whether the insertion loss values ​​corresponding to the minimum turning points of the preset lengths are all greater than the preset bus design standard values. If so, it means that the minimum insertion loss values ​​of the insertion loss parameter curves corresponding to the preset lengths meet the standard requirements. Then, the third circuit layout information is generated according to the judgment result, and the third circuit layout information is output, such as displayed on the corresponding operation interface, so that the user can know that the insertion loss parameter curves corresponding to the preset lengths meet the minimum standard requirements according to the results displayed on the corresponding operation interface, and layout the target circuit according to the preset lengths.

[0151] Step c4: If not, generating turning point information according to the judgment result, so that the user can adjust each preset length according to the turning point information.

[0152] Among them, the turning point information is information that indicates that there is at least one minimum turning point of a preset length whose corresponding insertion loss value is less than the preset bus design standard value, for example, the field where "the minimum turning point corresponding insertion loss value of length A and length B is less than the preset bus design standard value" is located. This example is only an example and should not constitute a limitation on this application.

[0153] In this embodiment, it is determined whether the insertion loss values ​​corresponding to the minimum turning points of the preset lengths are all greater than the preset bus design standard values. If not, it means that there is at least one preset length corresponding to the insertion loss parameter curve whose minimum insertion loss value does not meet the standard requirements. Then, turning point information is generated according to the judgment result, so that the user can know the preset length that needs to be adjusted according to the content in the turning point information.

[0154] It can be understood that after the user adjusts each preset length, the latest length corresponding to each preset sub-circuit is obtained. Then, in order to determine whether each latest length meets the target circuit layout requirements, or to evaluate whether each latest length needs to be optimized on the basis of meeting the target circuit layout requirements, or to determine whether the insertion loss value corresponding to the minimum turning point of each latest length meets the standard requirements on the basis of meeting the target circuit layout requirements and evaluating that no optimization is needed, it is necessary to execute steps a1 to a4 again based on the adjustment results, or, execute steps a1 to a4 again and execute steps b1 to b4 based on the adjustment results, or, execute steps a1 to a4 again, execute steps b1 to b4, and execute steps c1 to c4 based on the adjustment results.

[0155] The circuit layout method provided in this embodiment, after generating and outputting the second circuit layout information according to the judgment result, obtains a preset set, the preset set including insertion loss values ​​corresponding to the minimum turning points of multiple historical lengths; judges whether the insertion loss values ​​corresponding to the minimum turning points of each preset length are all greater than the preset bus design standard value according to the preset set; if so, generates and outputs the third circuit layout information according to the judgment result, so that the user can layout the target circuit according to each preset length according to the third circuit layout information; if not, generates the turning point information according to the judgment result, so that the user can adjust each preset length according to the turning point information. Since each preset length, on the basis of satisfying the circuit layout requirements and not requiring optimization, needs to further determine whether the insertion loss value corresponding to the minimum turning point of its insertion loss parameter curve meets the standard requirements, by obtaining a preset set of insertion loss values ​​corresponding to the minimum turning points of multiple historical lengths, it is possible to determine whether the insertion loss values ​​corresponding to the minimum turning points of each preset length are all greater than the preset bus design standard value based on the preset set, and then generate and output the third circuit layout information when it is determined that they are all greater than, so that the user can layout the target circuit according to each preset length based on the third circuit layout information, and generate the turning point information when it is determined that there is a preset length with a minimum turning point corresponding to an insertion loss value less than, so that the user can adjust each preset length based on the turning point information, thereby further improving the accuracy of the circuit layout.

[0156] As an optional embodiment, in this embodiment Figure 2 On the basis of the corresponding embodiment, before obtaining the preset generalization formula, the following steps are also included:

[0157] Step d1: receiving a historical circuit splitting request sent by a user through a corresponding operation interface, wherein the historical circuit splitting request includes a historical circuit in a current stacking state, at least one historical sub-circuit identifier, and a historical length corresponding to each historical sub-circuit.

[0158] It is understandable that a prerequisite for the execution of this solution is to be able to successfully obtain the preset generalization formula. Therefore, before obtaining the preset generalization formula, it is necessary to first establish the preset generalization formula.

[0159] The historical circuit splitting request is a request for instructing the electronic device to split the historical circuit, which specifically includes the historical circuit in the current stacking state, at least one historical sub-circuit identifier, and the historical length corresponding to each historical sub-circuit.

[0160] The historical sub-circuit identifier is an identifier that represents the identity of the historical sub-circuit, such as the name and number of the historical sub-circuit.

[0161] In this embodiment, the user can obtain the historical circuit in advance, and divide it based on the historical circuit, and then configure the corresponding historical sub-circuit identifiers and the preset lengths of the historical sub-circuits for the historical circuit in the corresponding operation interface according to the division results, and trigger the historical circuit splitting component in the corresponding operation interface. Then, in response to the above component being triggered, a historical circuit splitting request is generated and sent to the electronic device.

[0162] Based on this, the electronic device receives a historical circuit splitting request, and obtains the historical circuit in the current stacking state, at least one historical sub-circuit identifier, and the historical length corresponding to each historical sub-circuit in the historical circuit splitting request.

[0163] Step d2: split the historical circuit into historical sub-circuits with corresponding historical lengths according to the historical circuit splitting request.

[0164] In this embodiment, based on obtaining a historical circuit, at least one historical sub-circuit identifier, and a historical length corresponding to each historical sub-circuit, the historical circuit is split according to each historical length to obtain each historical sub-circuit, and each historical sub-circuit is marked to obtain each historical sub-circuit whose mark corresponds to the historical sub-circuit identifier and has a corresponding historical length.

[0165] Step d3: using preset simulation software to simulate each historical sub-circuit, and determining the insertion loss parameter curve corresponding to each historical sub-circuit according to the simulation results.

[0166] Among them, the preset simulation software is pre-installed circuit simulation software.

[0167] In this embodiment, after obtaining each historical subcircuit marked with a corresponding historical subcircuit identifier and having a corresponding historical length, each historical subcircuit is simulated using a preset simulation software to obtain a scattering parameter corresponding to each historical subcircuit.

[0168] It can be understood that the scattering parameters are complex coefficients that describe the signals transmitted between ports in a high-frequency circuit, which include insertion loss parameters. Therefore, after simulating each historical sub-circuit, the insertion loss parameters can be obtained from the scattering parameters corresponding to each historical sub-circuit, and output based on the insertion loss parameters to obtain the insertion loss parameter curves corresponding to each historical sub-circuit.

[0169] Step d4: using a random sampling sequence improved algorithm to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit.

[0170] Among them, the improved random sampling sequence algorithm is an algorithm improved on the basis of the traditional random sampling sequence algorithm.

[0171] The historical slope is the slope of the fitting straight line obtained by fitting the insertion loss parameter curve of the historical length.

[0172] In this embodiment, the random sampling sequence improvement algorithm can be stored in advance. After the insertion loss parameter curve corresponding to each historical sub-circuit is obtained, the insertion loss parameter curve corresponding to each historical sub-circuit is sampled using the random sampling sequence improvement algorithm, and a straight line is fitted according to each sampling point to obtain a fitting straight line corresponding to each historical sub-circuit, thereby determining the slope of the corresponding fitting straight line as the historical slope corresponding to each historical sub-circuit.

[0173] Step d5: construct a corresponding relationship between the historical slope corresponding to each historical sub-circuit and the corresponding historical length to obtain a preset generalization formula.

[0174] In this embodiment, after obtaining the historical slope corresponding to each historical sub-circuit, a corresponding relationship is constructed between the historical length corresponding to each historical sub-circuit and the corresponding historical slope, that is, when the length is how much, the corresponding slope is how much, and this corresponding relationship is generalized into a formula, thereby obtaining a preset generalized formula and storing it.

[0175] The circuit layout method provided in this embodiment, before obtaining the preset generalization formula, receives a historical circuit splitting request sent by the user through the corresponding operation interface, the historical circuit splitting request includes the historical circuit in the current stacking state, at least one historical sub-circuit identifier and the historical length corresponding to each historical sub-circuit; splits the historical circuit into historical sub-circuits with corresponding historical lengths according to the historical circuit splitting request; uses the preset simulation software to simulate each historical sub-circuit, and determines the insertion loss parameter curve corresponding to each historical sub-circuit according to the simulation result; uses the random sampling sequence improvement algorithm to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit; and establishes a corresponding relationship between the historical slope corresponding to each historical sub-circuit and the corresponding historical length to obtain the preset generalization formula. Since the execution premise is that the preset generalization formula has been established, the historical circuit splitting request sent by the user through the corresponding operation interface, which includes the historical circuit in the current stacking state, at least one historical sub-circuit identifier and the historical length corresponding to each historical sub-circuit, can be split into historical sub-circuits with corresponding historical lengths according to the request. By simulating each historical sub-circuit using preset simulation software, the insertion loss parameter curve corresponding to each historical sub-circuit can be determined according to the simulation results, and the corresponding historical slope can be further determined according to each insertion loss parameter curve using a random sampling sequence improvement algorithm, thereby building a corresponding relationship between the historical slope corresponding to each historical sub-circuit and the corresponding historical length, and establishing a preset generalization formula based on the corresponding relationship, so that the preset generalization formula can be successfully obtained in the subsequent execution of circuit layout, thereby improving the success rate of circuit layout.

[0176] As an optional embodiment, based on the above embodiment, when the random sampling sequence improved algorithm is used to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit, step d4 specifically includes the following steps:

[0177] Step d41: performing second-order derivative calculation on each insertion loss parameter curve to obtain a corresponding second-order derivative curve.

[0178] It is understandable that each insertion loss parameter curve fluctuates, that is, there is a certain section with a strong upward trend, and there is also a certain section with a strong downward trend. Therefore, in order to make the characteristic points obtained by sampling more clearly reflect this trend change in each insertion loss parameter curve, it is necessary to calculate the second-order derivative of each insertion loss parameter curve, so as to obtain a point that can characterize the trend of the curve based on the calculation results.

[0179] The second-order derivative curve is a curve obtained by differentiating the insertion loss parameter curve.

[0180] Based on this, in response to using an improved algorithm for random sampling sequences to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit, each insertion loss parameter curve is obtained, and the second-order derivative of each insertion loss parameter curve is calculated to obtain the second-order derivative curve corresponding to each insertion loss parameter curve.

[0181] Step d42: determining at least one extreme point based on the second-order derivative curve, and determining the position of each extreme point in the insertion loss parameter curve.

[0182] In this embodiment, after obtaining the second-order derivative curves corresponding to each insertion loss parameter curve, each second-order derivative curve is calculated to obtain at least one extreme value point corresponding to each insertion loss parameter curve.

[0183] Based on this, each extreme value point and each insertion loss parameter curve are obtained, each extreme value point is placed in the corresponding insertion loss parameter curve, and the position of each extreme value point in the corresponding insertion loss parameter curve is determined.

[0184] Step d43: determining feature points corresponding to each extreme point around the location of each extreme point according to a preset neighboring threshold, so as to obtain a set of feature points corresponding to the insertion loss parameter curve.

[0185] The preset neighboring threshold is a predetermined value close to the extreme value point within a certain range.

[0186] The feature point set is a set consisting of multiple feature points.

[0187] In this embodiment, after determining the position of each extreme point in the corresponding insertion loss parameter curve, points within a certain range of each extreme point, that is, within a preset neighborhood threshold, are determined in the corresponding insertion loss parameter curve according to the position of each extreme point, and the points within the preset neighborhood threshold are determined as feature points corresponding to each extreme point, thereby forming a feature point set based on each extreme point and the corresponding feature points, and obtaining a feature point set corresponding to each insertion loss parameter curve.

[0188] Step d44: Random sampling is performed in the feature point set and the insertion loss parameter curve to obtain a sampling point set, and the corresponding historical slope is determined according to the sampling point set.

[0189] In this embodiment, after obtaining the characteristic point set corresponding to each insertion loss parameter curve, random sampling is performed in the corresponding characteristic point set and each insertion loss parameter curve, and the points obtained by random sampling are formed into a set to obtain the sampling point set corresponding to each insertion loss parameter curve, thereby determining the corresponding historical slope according to the sampling point set corresponding to each insertion loss parameter curve.

[0190] Specifically, a distance threshold and a number threshold can be set in advance. After obtaining the sampling point set corresponding to each insertion loss parameter curve, first connect each sampling point set into a straight line, and then in the corresponding insertion loss parameter curve, obtain the inner points whose distance from the above straight line is within the distance threshold, and then determine the number of these inner points, and record these inner points and the corresponding numbers. The above steps of randomly sampling to record the inner points and the corresponding numbers are executed repeatedly. When the execution threshold is reached, all the recorded inner points and the corresponding numbers are obtained, and the inner points with the largest number are selected as the points finally used to fit the corresponding insertion loss parameter curve. Based on this, the finally determined points corresponding to each insertion loss parameter curve are fitted to obtain the fitted straight line corresponding to each insertion loss parameter curve, and the slope corresponding to the fitted straight line is determined as the historical slope corresponding to each insertion loss parameter curve.

[0191] The distance threshold is a preset value that allows the maximum distance between a point in the insertion loss parameter curve and a straight line formed by the sampling point set. The number threshold is a preset value that allows the maximum number of times a loop action is executed.

[0192] It can be understood that in addition to extreme points, points that are not extreme points but have the characteristic of zero first-order derivative can also be determined based on the trend of the second-order derivative curve, and these points and the points around these points are used as feature points and placed in the feature point set to increase the number of feature points and improve the probability of feature points being selected.

[0193] The circuit layout method provided in this embodiment, when using the improved algorithm of random sampling sequence to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit, performs second-order derivative calculation on each insertion loss parameter curve to obtain the corresponding second-order derivative curve; determines at least one extreme point based on the second-order derivative curve, and determines the position of each extreme point in the insertion loss parameter curve; determines the feature points corresponding to each extreme point around the position where each extreme point is located according to the preset neighboring threshold value to obtain the feature point set corresponding to the insertion loss parameter curve; performs random sampling in the feature point set and the insertion loss parameter curve to obtain the sampling point set, and determines the corresponding historical slope according to the sampling point set. Since there are some points in the insertion loss parameter curve that can characterize the fluctuation trend, by performing second-order derivative calculation on each insertion loss parameter curve to obtain the corresponding second-order derivative curve, at least one extreme point can be determined based on the second-order derivative curve, and the position of each extreme point can be determined in the insertion loss parameter curve. By determining the feature points corresponding to each extreme point around the location of each extreme point according to the preset neighboring threshold, the feature point set corresponding to the insertion loss parameter curve is obtained, and random sampling can be performed in the feature point set and the insertion loss parameter curve to obtain a sampling point set, and then the corresponding historical slope is determined according to the sampling point set. When randomly sampling, the extreme point that can characterize the fluctuation trend of the insertion loss parameter curve and the points near the extreme point can be sampled as much as possible, so that the slope finally determined can maximize the characterization of the trend of the insertion loss parameter curve, and improve the accuracy of the determined historical slope.

[0194] As an optional embodiment, in this embodiment, based on any one of the above embodiments, the preset bus design standard values ​​include Gigabit Multimedia Serial Link (GMSL) bus design standard values, and / or, mobile industry processor interface (MIPI) bus design standard values.

[0195] The GMSL bus design standard value is a standard value set for a circuit designed based on the GMSL bus. The MIPI bus design standard value is a standard value set for a circuit designed based on the MIPI bus.

[0196] In this embodiment, the bus involved in the target circuit may be a GMSL bus, or a MIPI bus, or a GMSL bus and a MIPI bus, so that circuits using different bus designs can be laid out, thereby improving the flexibility of circuit layout.

[0197] In order to explain the implementation process of this program more clearly, Figure 4 As shown, a complete method flow chart of the circuit layout method provided by the present application is shown.

[0198] S401: Receive a historical circuit splitting request sent by a user through a corresponding operation interface.

[0199] The historical circuit splitting request includes the historical circuit in the current stacking state, at least one historical sub-circuit identifier, and the historical length corresponding to each historical sub-circuit.

[0200] S402: Split the historical circuit into historical sub-circuits with corresponding historical lengths according to the historical circuit splitting request.

[0201] S403, using preset simulation software to simulate each historical sub-circuit.

[0202] S404 , determining an insertion loss parameter curve corresponding to each historical sub-circuit according to the simulation result.

[0203] Wherein, when the random sampling sequence improved algorithm is used to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit, it is specifically used for:

[0204] Perform a second-order derivative calculation on each insertion loss parameter curve to obtain a corresponding second-order derivative curve. Determine at least one extreme point based on the second-order derivative curve, and determine the position of each extreme point in the insertion loss parameter curve. Determine the feature points corresponding to each extreme point around the position of each extreme point according to a preset neighboring threshold to obtain a feature point set corresponding to the insertion loss parameter curve. Perform random sampling in the feature point set and the insertion loss parameter curve to obtain a sampling point set, and determine the corresponding historical slope according to the sampling point set.

[0205] S405 , using a random sampling sequence improved algorithm to determine a corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit.

[0206] S406 , constructing a corresponding relationship between the historical slope corresponding to each historical sub-circuit and the corresponding historical length to obtain a preset generalization formula.

[0207] S407: Receive a target circuit layout request sent by the user through the corresponding operation interface.

[0208] The target circuit layout request includes a plurality of preset sub-circuit identifiers and a preset length corresponding to each preset sub-circuit.

[0209] S408: Obtain a preset generalization formula.

[0210] The preset generalized formula includes the corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve at a certain length.

[0211] S409, inputting each preset length into a preset generalization formula.

[0212] S410: Outputting preset slopes corresponding to each preset length based on a preset generalized formula.

[0213] S411 , judging whether each preset length meets the target circuit layout requirement according to each preset slope, if so, executing S412 , if not, executing S413 - S416 .

[0214] The insertion loss parameter curve includes the corresponding relationship between the insertion loss value and the frequency.

[0215] When judging whether each preset length meets the target circuit layout requirements according to each preset slope, it can be specifically as follows: the insertion loss value in the preset frequency range is estimated according to each preset slope, and the preset bus design standard value is obtained. It is judged whether the insertion loss values ​​in the preset frequency range are all greater than the preset bus design standard value. If so, it is determined that each preset length meets the target circuit layout requirements. If not, it is determined that each preset length does not meet the target circuit layout requirements.

[0216] Among them, the preset bus design standard values ​​include Gigabit Multimedia Serial Link GMSL bus design standard values, and / or mobile industry processor interface MIPI bus design standard values.

[0217] S412: Generate and output first circuit layout information according to the judgment result, so that the user can layout the target circuit according to the first circuit layout information and the preset lengths.

[0218] S413, obtaining the latest length corresponding to each preset sub-circuit.

[0219] S414, determining each latest slope according to a preset generalization formula and each latest length.

[0220] S415 , judging whether each latest length meets the target circuit layout requirement according to each latest slope, if so, executing S416 , if not, returning to S413 .

[0221] S416 . Generate and output first circuit layout information according to the judgment result, so that the user can layout the target circuit according to the first circuit layout information and the latest lengths.

[0222] Optionally, in S411 , it is determined according to each preset slope whether each preset length meets the target circuit layout requirement. If so, S417 - S422 may be further executed.

[0223] S417. Obtain a preset circuit optimization formula.

[0224] S418, inputting each preset length into a preset circuit optimization formula respectively.

[0225] S419: outputting optimization evaluation values ​​corresponding to each preset length based on a preset circuit optimization formula.

[0226] The preset circuit optimization formula includes a first sub-formula and a second sub-formula.

[0227] Among them, when outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, it can be specifically as follows: based on the first sub-formula, the square of the difference between the preset broken line formula and the preset bus design standard value is calculated according to each preset length to obtain the target difference corresponding to each preset length. The preset broken line formula is a formula established according to the preset generalized formula, including the corresponding relationship between the insertion loss value and the length and frequency. Based on the second sub-formula, the ratio of the remaining area of ​​the target circuit to the total area is calculated according to each preset length to obtain the target ratio corresponding to each preset length. According to the weights corresponding to the target difference and the target ratio, the weighted sum of the target difference and the target ratio is calculated, and the weighted sum is determined as the optimization evaluation value corresponding to each preset length and output.

[0228] S420: Determine whether each optimization evaluation value is greater than or equal to a preset threshold value. If so, execute S421; if not, execute S422.

[0229] S421. Generate and output second circuit layout information according to the judgment result, so that the user can layout the target circuit according to the second circuit layout information and each preset length.

[0230] S422: If not, generate optimization information according to the judgment result, so that the user can adjust each preset length according to the optimization information.

[0231] Optionally, in S420, it is determined whether each optimization evaluation value is greater than or equal to a preset threshold. If so, S423-S426 may also be executed.

[0232] S423. Obtain a preset set, where the preset set includes insertion loss values ​​corresponding to minimum turning points of multiple historical lengths.

[0233] S424, judging whether the insertion loss values ​​corresponding to the minimum turning points of the preset lengths are all greater than the preset bus design standard values ​​according to the preset set, if so, executing S425, if not, executing S426.

[0234] S425 , if yes, generate and output third circuit layout information according to the judgment result, so that the user can layout the target circuit according to the third circuit layout information according to each preset length.

[0235] S426: If not, generate turning point information according to the judgment result, so that the user can adjust each preset length according to the turning point information.

[0236] Figure 5 A schematic diagram of the structure of a circuit layout device provided in one embodiment of the present application; a receiving module 51, an acquisition module 52, an input module 53, an output module 54, a judgment module 55, and a generation module 56.

[0237] A receiving module 51 is used to receive a target circuit layout request sent by a user through a corresponding operation interface, wherein the target circuit layout request includes multiple preset sub-circuit identifiers and preset lengths corresponding to each preset sub-circuit; an obtaining module 52 is used to obtain a preset generalization formula; an input module 53 is used to input each preset length into a preset generalization formula; the preset generalization formula includes a corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve under a certain length; an output module 54 is used to output the preset slope corresponding to each preset length based on the preset generalization formula; a judging module 55 is used to judge whether each preset length meets the target circuit layout requirements according to each preset slope; a generating module 56 is used to generate first circuit layout information according to the judgment result if so; the output module 54 is also used to output the first circuit layout information, so that the user can layout the target circuit according to each preset length according to the first circuit layout information.

[0238] The circuit layout device provided in this embodiment can be implemented Figure 2 The specific implementation principles and technical effects of the method embodiments shown are similar and will not be repeated here.

[0239] Optionally, the insertion loss parameter curve includes a corresponding relationship between the insertion loss value and the frequency;

[0240] Accordingly, when judging whether each preset length meets the target circuit layout requirement according to each preset slope, the judging module 55 is specifically configured to:

[0241] Estimate the insertion loss value in the preset frequency range according to each preset slope, and obtain the preset bus design standard value; determine whether the insertion loss values ​​in the preset frequency range are all greater than the preset bus design standard value; if so, determine that each preset length meets the target circuit layout requirement; if not, determine that each preset length does not meet the target circuit layout requirement.

[0242] Optionally, the circuit layout device provided in this embodiment further includes: a determination module and an execution module.

[0243] Among them, the acquisition module 52 is also used for obtaining the latest length corresponding to each preset sub-circuit after the judgment module 55 determines that each preset length does not meet the target circuit layout requirement. If not, the determination module is used to determine each latest slope according to the preset generalization formula and each latest length; the judgment module 55 is also used to judge whether each latest length meets the target circuit layout requirement according to each latest slope; the generation module 56 is also used to generate the first circuit layout information according to the judgment result if so, and the output module 54 is also used to output the first circuit layout information so that the user can layout the target circuit according to each latest length according to the first circuit layout information; the execution module is used to execute the steps from obtaining the latest length corresponding to each preset sub-circuit to judging whether each latest length meets the target circuit layout requirement if not, until it is determined that each latest length meets the target circuit layout requirement, so that the user can layout the target circuit according to each latest length when the layout requirement is met.

[0244] Optionally, the acquisition module 52 is also used for the generation module 56 and the output module 54 to generate the first circuit layout information according to the judgment result and output it, and then obtain the preset circuit optimization formula. The input module 53 is also used to input each preset length into the preset circuit optimization formula respectively; the output module 54 is also used to output the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, and the judgment module 55 is also used to judge whether each optimization evaluation value is greater than or equal to a preset threshold; the generation module 56 is also used to generate the second circuit layout information according to the judgment result if so, and the output module 54 is also used to output the second circuit layout information so that the user can layout the target circuit according to each preset length according to the second circuit layout information; the generation module 56 is also used to generate the optimization information according to the judgment result if not, so that the user can adjust each preset length according to the optimization information.

[0245] Optionally, the preset circuit optimization formula includes a first sub-formula and a second sub-formula;

[0246] Accordingly, when the output module 54 outputs the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, it is specifically used to:

[0247] Based on the first sub-formula, the square of the difference between the preset broken line formula and the preset bus design standard value is calculated according to each preset length to obtain the target difference corresponding to each preset length; the preset broken line formula is a formula established according to the preset generalized formula, including the corresponding relationship between the insertion loss value and the length and frequency; based on the second sub-formula, the ratio of the remaining area of ​​the target circuit to the total area is calculated according to each preset length to obtain the target ratio corresponding to each preset length; according to the weights corresponding to the target difference and the target ratio, the weighted sum of the target difference and the target ratio is calculated, and the weighted sum is determined as the optimization evaluation value corresponding to each preset length and output.

[0248] Optionally, the acquisition module 52 is also used for the generation module 56 and the output module 54 to generate the second circuit layout information according to the judgment result and output it, and then obtain a preset set, the preset set including the insertion loss values ​​corresponding to the minimum turning points of multiple historical lengths; the judgment module 55 is also used for judging whether the insertion loss values ​​corresponding to the minimum turning points of each preset length are all greater than the preset bus design standard value according to the preset set; the generation module 56 is also used for generating the third circuit layout information according to the judgment result if so, and the output module 54 is also used for outputting the third circuit layout information, so that the user can layout the target circuit according to each preset length according to the third circuit layout information; the generation module 56 is also used for generating the turning point information according to the judgment result if not, so that the user can adjust each preset length according to the turning point information.

[0249] Optionally, the circuit layout device provided in this embodiment further includes: a splitting module, a simulation module, and a construction module.

[0250] Among them, the receiving module 51 receives a historical circuit splitting request sent by the user through the corresponding operation interface before the acquisition module 52 acquires the preset generalized formula, and the historical circuit splitting request includes the historical circuit in the current stacking state, at least one historical sub-circuit identifier and the historical length corresponding to each historical sub-circuit; the splitting module is used to split the historical circuit into historical sub-circuits with corresponding historical lengths according to the historical circuit splitting request; the simulation module is used to simulate each historical sub-circuit using preset simulation software, and the determination module is also used to determine the insertion loss parameter curve corresponding to each historical sub-circuit according to the simulation results; the random sampling sequence improved algorithm is used to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit; the construction module is used to construct a corresponding relationship between the historical slope corresponding to each historical sub-circuit and the corresponding historical length to obtain the preset generalized formula.

[0251] Optionally, the determination module, when using the random sampling sequence improved algorithm to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit, is specifically used to:

[0252] Perform a second-order derivative calculation on each insertion loss parameter curve to obtain a corresponding second-order derivative curve; determine at least one extreme point based on the second-order derivative curve, and determine the position of each extreme point in the insertion loss parameter curve; determine the feature points corresponding to each extreme point around the position of each extreme point according to a preset neighboring threshold to obtain a feature point set corresponding to the insertion loss parameter curve; perform random sampling in the feature point set and the insertion loss parameter curve to obtain a sampling point set, and determine the corresponding historical slope based on the sampling point set.

[0253] The circuit layout device provided in this embodiment can execute any one of the above method embodiments. The specific implementation principles and technical effects are similar and will not be repeated here.

[0254] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6 As shown, the electronic device 60 provided in this embodiment includes: a processor 61, a memory 62 and a transceiver 63 which are communicatively connected to the processor.

[0255] The memory 62 stores computer-executable instructions; the transceiver 63 is used to send and receive data; the processor 61 executes the computer-executable instructions stored in the memory to implement the circuit layout method provided by any embodiment of the mobile terminal. The relevant description can be understood by referring to the relevant descriptions and effects corresponding to the steps in the accompanying drawings, and no further details are given here.

[0256] The program may include program code, and the program code includes computer-executable instructions. The memory 62 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.

[0257] In this embodiment, the memory 62 and the processor 61 are connected via a bus. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0258] The embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the circuit layout method provided in any of the above embodiments. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.

[0259] An embodiment of the present application also provides a computer program product, including a computer program, which implements the circuit layout method provided in any one of the above embodiments when the computer program is executed by a processor.

[0260] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0261] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0262] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.

[0263] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.

[0264] If the integrated unit / module is implemented in the form of hardware, the hardware can be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. Unless otherwise specified, the artificial intelligence processor can be any appropriate hardware processor, such as CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit can be any appropriate magnetic storage medium or magneto-optical storage medium, such as resistive random access memory RRAM (Resistive Random Access Memory), dynamic random access memory DRAM (Dynamic Random Access Memory), static random access memory SRAM (Static Random-Access Memory), enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), high-bandwidth memory HBM (High-Bandwidth Memory), hybrid memory cube HMC (Hybrid Memory Cube), etc.

[0265] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0266] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0267] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0268] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A circuit layout method, characterized in that: The method comprises: Receiving a target circuit layout request sent by a user through a corresponding operation interface, wherein the target circuit layout request includes a plurality of preset sub-circuit identifiers and preset lengths corresponding to the preset sub-circuits; Obtaining a preset generalization formula, and inputting each preset length into the preset generalization formula; the preset generalization formula includes a corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve under a certain length; Outputting a preset slope corresponding to each preset length based on the preset generalized formula, and judging whether each preset length meets the target circuit layout requirement according to each preset slope; If so, first circuit layout information is generated and output according to the judgment result, so that the user can layout the target circuit according to the first circuit layout information according to each preset length.

2. The method according to claim 1, characterized in that The insertion loss parameter curve includes a corresponding relationship between insertion loss value and frequency; The step of judging whether each preset length meets the target circuit layout requirement according to each preset slope includes: Estimate the insertion loss value in the preset frequency range according to each preset slope, and obtain the preset bus design standard value; Determining whether the insertion loss values ​​in the preset frequency range are all greater than a preset bus design standard value; If so, determining that each preset length meets the target circuit layout requirements; If not, it is determined that each preset length does not meet the target circuit layout requirement.

3. The method according to claim 2, characterized in that After determining that each preset length does not meet the target circuit layout requirement, the method further includes: If not, then obtaining the latest length corresponding to each preset subcircuit, and determining each latest slope according to the preset generalization formula and each latest length; Determining whether each latest length meets the target circuit layout requirement according to each latest slope; If yes, generating and outputting first circuit layout information according to the judgment result, so that the user can layout the target circuit according to each latest length according to the first circuit layout information; If not, the steps of obtaining the latest length corresponding to each preset sub-circuit and judging whether each latest length meets the layout requirements of the target circuit are executed until it is determined that each latest length meets the layout requirements of the target circuit, so that the user can layout the target circuit according to each latest length when the layout requirements are met.

4. The method according to claim 1, characterized in that: After the first circuit layout information is generated and output according to the judgment result, the method further includes: Obtaining a preset circuit optimization formula, and inputting each preset length into the preset circuit optimization formula respectively; Outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula, and determining whether each optimization evaluation value is greater than or equal to a preset threshold; If yes, generating and outputting second circuit layout information according to the judgment result, so that the user can layout the target circuit according to each preset length according to the second circuit layout information; If not, optimization information is generated according to the judgment result, so that the user can adjust each preset length according to the optimization information.

5. The method according to claim 4, characterized in that The preset circuit optimization formula includes a first sub-formula and a second sub-formula; The outputting the optimization evaluation value corresponding to each preset length based on the preset circuit optimization formula includes: Based on the first sub-formula, the square of the difference between the preset broken line formula and the preset bus design standard value is calculated according to each preset length to obtain the target difference corresponding to each preset length; the preset broken line formula is a formula established according to the preset generalized formula, including the corresponding relationship between the insertion loss value and the length and frequency; Based on the second sub-formula, respectively calculating the ratio of the remaining area to the total area of ​​the target circuit according to each preset length, so as to obtain the target ratio corresponding to each preset length; According to the weights corresponding to the target difference and the target ratio respectively, a weighted sum of the target difference and the target ratio is calculated, and the weighted sum is determined as the optimization evaluation value corresponding to each preset length and output.

6. The method according to claim 4, characterized in that After the second circuit layout information is generated and output according to the judgment result, the method further includes: Acquire a preset set, where the preset set includes insertion loss values ​​corresponding to minimum turning points of multiple historical lengths; Determine, according to the preset set, whether the insertion loss values ​​corresponding to the minimum turning points of the preset lengths are all greater than the preset bus design standard values; If yes, generating and outputting third circuit layout information according to the judgment result, so that the user can layout the target circuit according to each preset length according to the third circuit layout information; If not, turning point information is generated according to the judgment result, so that the user can adjust each preset length according to the turning point information.

7. The method according to claim 1, characterized in that Before obtaining the preset generalization formula, the method further includes: Receiving a historical circuit splitting request sent by a user through a corresponding operation interface, wherein the historical circuit splitting request includes a historical circuit in a current stacking state, at least one historical sub-circuit identifier, and a historical length corresponding to each historical sub-circuit; Splitting the historical circuit into historical sub-circuits with corresponding historical lengths according to the historical circuit splitting request; Using preset simulation software to simulate each historical sub-circuit, and determining the insertion loss parameter curve corresponding to each historical sub-circuit according to the simulation results; The random sampling sequence improved algorithm is used to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit; A corresponding relationship is established between the history slope corresponding to each history subcircuit and the corresponding history length to obtain a preset generalization formula.

8. The method according to claim 7, characterized in that The method of using the random sampling sequence improved algorithm to determine the corresponding historical slope according to the insertion loss parameter curve corresponding to each historical sub-circuit includes: Performing second-order derivative calculation on each insertion loss parameter curve to obtain a corresponding second-order derivative curve; Determine at least one extreme point based on the second-order derivative curve, and determine the position of each extreme point in the insertion loss parameter curve; Determine the feature points corresponding to each extreme point around the location of each extreme point according to a preset neighboring threshold value, so as to obtain a set of feature points corresponding to the insertion loss parameter curve; Random sampling is performed in the feature point set and the insertion loss parameter curve to obtain a sampling point set, and a corresponding historical slope is determined according to the sampling point set.

9. A circuit layout device, characterized in that: The device comprises: A receiving module, configured to receive a target circuit layout request sent by a user through a corresponding operation interface, wherein the target circuit layout request includes a plurality of preset sub-circuit identifiers and preset lengths corresponding to the preset sub-circuits; An acquisition module, used to acquire a preset generalization formula; An input module, used to input each preset length into the preset generalized formula; the preset generalized formula includes the corresponding relationship between the length and the slope in the current stacking state, and the slope is used to characterize the trend of the insertion loss parameter curve under a certain length; An output module, used for outputting preset slopes corresponding to each preset length based on the preset generalized formula; A judgment module, used for judging whether each preset length meets the target circuit layout requirement according to each preset slope; a generating module, configured to generate first circuit layout information according to the determination result; The output module is further used to output the first circuit layout information, so that the user can layout the target circuit according to the first circuit layout information and the preset lengths.

10. An electronic device, characterized in that: include: A processor, a memory and a transceiver communicatively connected to the processor; The memory stores computer-executable instructions; the transceiver is used to send and receive data; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.

11. A computer-readable storage medium / computer program product, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer program product includes a computer program. When the computer-executable instructions / computer program are executed by a processor, they are used to implement the method according to any one of claims 1 to 8.