Chip layout method, device, electronic device and readable storage medium
By setting an independent voltage domain for each clock in the chip layout, the problem that the voltage domain voltage in the prior art cannot flexibly adjust the chip clock frequency, and the reduction of power consumption and the improvement of timing analysis efficiency are achieved.
Patent Information
- Application Number
- CN202011177717.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-28
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2040-10-28
AI Technical Summary
The prior art cannot flexibly adjust the clock frequency of the circuit module in the chip by adjusting the voltage domain voltage, resulting in an increase in chip power consumption and affecting reliability and performance.
By obtaining the circuit design files and constraint files, determine all circuit modules corresponding to each clock, and combine them into one circuit module, generate the reorganized circuit design files, set an independent voltage domain for each clock, only if needed Adjust the voltage in the corresponding voltage domain.
This avoids the increase in chip power consumption, improves the energy consumption ratio, and simplifies the timing analysis process and improves the analysis efficiency.
Smart Images

Figure CN114417773B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated circuits, and in particular to a chip layout method, device, electronic equipment and readable storage medium. Background Art
[0002] With the development of integrated circuits, the functions of chips are becoming more and more complex, and the power consumption of chips is also increasing. The increase in power consumption not only increases the loss of electrical energy, but also leads to a series of problems, such as shortened battery life, reduced chip reliability, and increased packaging and heat dissipation costs.
[0003] At present, in order to ensure chip performance and effectively reduce power consumption, the multi-voltage domain and multi-clock domain methods are mainly used to design chips. In the chip design process, different clocks are set for each circuit module according to the function of each circuit module in the chip, and higher power supply voltages are allocated to circuit modules on critical paths to maintain chip performance, and lower power supply voltages are allocated to circuit modules on non-critical paths to reduce chip power consumption. In the division of voltage domains, adjacent circuit modules are divided into the same voltage domain according to the relative position relationship of each circuit module.
[0004] When the voltage domains are divided according to the relative position of each circuit module, when the clock of a circuit module is increased by adjusting the voltage of the voltage domain, the voltage of other voltage domains will be increased at the same time, which greatly increases the power consumption of the entire chip and reduces the reliability of the chip. Therefore, it is impossible to flexibly adjust the clock of the circuit module in the chip and improve the chip performance by adjusting the voltage of the voltage domain. Summary of the invention
[0005] In view of the above problems, an embodiment of the present invention is proposed to provide a chip layout method that overcomes the above problems or at least partially solves the above problems, so as to solve the problem that the clock frequency of the circuit module in the chip cannot be flexibly adjusted by adjusting the voltage domain voltage.
[0006] Correspondingly, an embodiment of the present invention further provides a chip layout device, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0007] In order to solve the above problems, an embodiment of the present invention discloses a chip layout method, including:
[0008] Obtain circuit design files and corresponding constraint files;
[0009] Determine, according to the circuit design file and the constraint file, all circuit modules corresponding to each clock in the circuit design file;
[0010] According to all the circuit modules corresponding to each of the clocks, the circuit design file is reorganized to obtain a reorganized circuit design file, a first layout is generated according to the reorganized circuit design file, and a corresponding voltage domain is set for each first target circuit module in the first layout;
[0011] The first target circuit module is obtained by combining all circuit modules corresponding to the target clock in the circuit design file, and the target clock is any one of all the clocks.
[0012] Optionally, the reorganizing the circuit design file according to all circuit modules corresponding to each clock to obtain a reorganized circuit design file includes:
[0013] For each target clock, the following operations are performed: determining the logical connection information of each circuit module corresponding to the target clock; combining all circuit modules corresponding to the target clock according to the logical connection information of each circuit module corresponding to the target clock to obtain the first target circuit module and the logical connection information of the first target circuit module;
[0014] The logical connection information of the circuit design file is adjusted according to the logical connection information of all the first target circuit modules to obtain the reorganized circuit design file.
[0015] Optionally, generating a first layout according to the reorganized circuit design file, and setting a corresponding voltage domain for each first target circuit module in the first layout, respectively, includes:
[0016] Performing logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and performing logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist;
[0017] Generate a first target layout corresponding to the first target circuit module according to the first gate-level netlist;
[0018] Generate the first layout according to the second gate-level netlist and all the first target layouts;
[0019] A corresponding voltage domain is set for each of the first target circuit modules in the first layout.
[0020] Optionally, generating a first layout according to the reorganized circuit design file, and setting a corresponding voltage domain for each first target circuit module in the first layout, respectively, includes:
[0021] Performing logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and performing logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist;
[0022] Generate a third gate-level netlist based on all of the first gate-level netlists and the second gate-level netlists;
[0023] Generate the first layout according to the third gate-level netlist;
[0024] A corresponding voltage domain is set for each of the first target circuit modules in the first layout.
[0025] Optionally, also include:
[0026] Determine a second target circuit module for which a through-line logic needs to be created according to the first layout;
[0027] In the reorganized circuit design file, the wire-passing logic is added to the second target circuit module to generate a second layout according to the circuit design file after adding the wire-passing logic, and a corresponding voltage domain is set for each of the first target circuit modules in the second layout.
[0028] The embodiment of the present invention further discloses a chip layout device, including:
[0029] An acquisition module, used to acquire circuit design files and corresponding constraint files;
[0030] A determination module, used to determine all circuit modules corresponding to each clock in the circuit design file according to the circuit design file and the constraint file;
[0031] a reorganization module, configured to reorganize the circuit design file according to all circuit modules corresponding to each clock, to obtain a reorganized circuit design file, to generate a first layout according to the reorganized circuit design file, and to set a corresponding voltage domain for each first target circuit module in the first layout;
[0032] The first target circuit module is obtained by combining all circuit modules corresponding to the target clock in the circuit design file, and the target clock is any one of all the clocks.
[0033] Optionally, the reorganization module is specifically used to perform the following operations for each target clock: determine the logical connection information of each circuit module corresponding to the target clock; combine all circuit modules corresponding to the target clock according to the logical connection information of each circuit module corresponding to the target clock to obtain the first target circuit module and the logical connection information of the first target circuit module; adjust the logical connection information of the circuit design file according to the logical connection information of all the first target circuit modules to obtain the reorganized circuit design file.
[0034] Optionally, also include:
[0035] a first synthesis module, configured to perform logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and to perform logic synthesis on circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist;
[0036] A first generating module, configured to generate a first target layout corresponding to the first target circuit module according to the first gate-level netlist;
[0037] A second generating module, configured to generate the first layout according to the second gate-level netlist and all the first target layouts;
[0038] The first setting module is used to set a corresponding voltage domain for each of the first target circuit modules in the first layout.
[0039] Optionally, also include:
[0040] a second synthesis module, configured to perform logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and to perform logic synthesis on circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist;
[0041] A third generating module, configured to generate a third gate-level netlist according to all of the first gate-level netlists and the second gate-level netlists;
[0042] A fourth generating module, configured to generate the first layout according to the third gate-level netlist;
[0043] The second setting module is used to set a corresponding voltage domain for each of the first target circuit modules in the first layout.
[0044] Optionally, also include:
[0045] A creation module, used for determining a second target circuit module for which a through-line logic needs to be created according to the first layout;
[0046] An adding module is used to add the line-passing logic to the second target circuit module in the reorganized circuit design file, so as to generate a second layout according to the circuit design file after adding the line-passing logic, and set a corresponding voltage domain for each of the first target circuit modules in the second layout.
[0047] The embodiment of the present invention further discloses an electronic device including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0048] Obtain circuit design files and corresponding constraint files;
[0049] Determine, according to the circuit design file and the constraint file, all circuit modules corresponding to each clock in the circuit design file;
[0050] According to all the circuit modules corresponding to each of the clocks, the circuit design file is reorganized to obtain a reorganized circuit design file, a first layout is generated according to the reorganized circuit design file, and a corresponding voltage domain is set for each first target circuit module in the first layout;
[0051] The first target circuit module is obtained by combining all circuit modules corresponding to the target clock in the circuit design file, and the target clock is any one of all the clocks.
[0052] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute one or more chip layout methods described in the embodiment of the present invention.
[0053] The embodiments of the present invention include the following advantages:
[0054] Obtain the circuit design file and the corresponding constraint file, determine all the circuit modules corresponding to each clock in the circuit design file according to the circuit design file and the constraint file, combine all the circuit modules corresponding to each clock into one circuit module, and obtain the reorganized circuit design file. When performing layout design according to the reorganized circuit design file, an independent voltage domain can be set for each first target circuit module, so that each clock corresponds to only one voltage domain. When adjusting the voltage of the voltage domain where a circuit module is located, only the voltage of the voltage domain needs to be adjusted, and the voltage of other voltage domains does not need to be adjusted. When improving the performance of the chip by adjusting the voltage of the voltage domain where a circuit module is located, a large increase in chip power consumption can be avoided, thereby improving the chip's energy efficiency ratio, and simplifying the timing analysis process in the chip sign-off stage, improving the efficiency of timing analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 A structural diagram of a circuit design file in the prior art is shown;
[0056] Figure 2 A flowchart showing a chip layout method embodiment of the present invention;
[0057] Figure 3 A structural diagram of a reorganized circuit design file of the present invention is shown;
[0058] Figure 4 A flowchart showing another chip layout method embodiment of the present invention is shown;
[0059] Figure 5 A structural block diagram of a chip layout device embodiment of the present invention is shown;
[0060] Figure 6 The invention is a structural block diagram of an electronic device for chip layout according to an exemplary embodiment. DETAILED DESCRIPTION
[0061] In order to more clearly introduce the technical solution of the present invention, a chip layout method in the prior art is first briefly introduced.
[0062] Reference Figure 1, shows a structural diagram of a circuit design file in the prior art, in which the chip 100 includes circuit module A, circuit module B, circuit module C, circuit module D and circuit module E, and circuit module B includes submodule B1 and submodule B2. Among them, the clock of circuit module A and submodule B1 is the first clock (the clock frequency of the first clock is, for example, 3kHz), the clock of circuit module C and submodule B2 is the second clock (the clock frequency of the second clock is, for example, 5kHz), and the clock of circuit module D and circuit module E is the third clock (the clock frequency of the third clock is, for example, 7kHz). When the layout of chip 100 is generated according to the circuit design file, since submodule B1 and submodule B2 are located in circuit module B, submodule B1 and submodule B2 will be laid out in the same area in the layout, so that submodule B1 and submodule B2 are adjacent. When the voltage domains are divided for each circuit module in the layout, the adjacent submodules B1 and submodule B2 will be divided into the same voltage domain.
[0063] After the chip 100 is manufactured according to the layout, during the operation of the chip 100, the clock frequency of a certain circuit module in the chip 100 can be increased by increasing the voltage of the voltage domain where the circuit module is located, thereby improving the overall performance of the chip 100. For example, the voltage of the voltage domain where the circuit module A is located can be increased. When the voltage of the voltage domain where the circuit module A is located is increased, the clock frequency of the first clock is increased, the operating frequency of the circuit module A is increased, the overall performance of the chip 100 is improved, and the power consumption of the corresponding circuit module A is also increased. If the circuit module A and the submodule B1 are not in the same voltage domain, the voltage of the voltage domain where the submodule B1 is located needs to be increased at the same time to ensure that the clock frequencies of the submodule B1 and the circuit module A are the same (the clock frequency of the first clock). Accordingly, since the voltage of the voltage domain where the submodule B1 is located is increased, the clock frequency of the submodule B2 (the clock frequency of the second clock) is also increased, and the power consumption of the submodule B1 and the submodule B2 increases at the same time. Similarly, if the circuit module C and the submodule B2 are not in the same voltage domain, in order to ensure that the clock frequencies of the submodule B2 and the circuit module C are the same, the voltage of the voltage domain where the circuit module C is located needs to be increased at the same time, and the power consumption of the circuit module C also increases. It can be seen that when the voltage of the voltage domain where the circuit module A is located is increased, it will not only cause the power consumption of the submodule B1 with the same clock frequency as the circuit module A to increase, but also cause the power consumption of the submodule B2 and the circuit module C to increase, so that the power consumption of the entire chip 100 is greatly increased and the energy efficiency ratio is reduced. Therefore, during the operation of the chip, when it is necessary to ensure the power consumption of the chip, it is impossible to flexibly adjust the voltage of the voltage domain, and it is impossible to adjust the clock frequency of each circuit module in the chip by adjusting the voltage of the voltage domain to improve the overall performance of the chip.
[0064] At the same time, during the timing analysis process of the chip 100, when performing timing analysis on two circuit modules with the same clock frequency, if the two circuit modules are in different voltage domains, a voltage conversion unit needs to be set, and the voltage conversion unit is used to make the voltage of the signal transmitted from one circuit module to another circuit module the same as the voltage of the other circuit module before the timing analysis can be performed. The operation of the timing analysis is cumbersome and inefficient. For example, when performing timing analysis on the circuit module A and the submodule B1 under the first clock, since the circuit module A and the submodule B1 are in different voltage domains, a voltage conversion unit needs to be set, and the voltage of the signal transmitted from the circuit module A to the submodule B1 is the same as the voltage of the submodule B1 before the timing analysis can be performed.
[0065] One of the core concepts of the embodiments of the present invention is to reorganize the circuit design file, combine circuit modules with the same clock frequency into the same circuit module, so that each clock in the circuit design file corresponds to only one circuit module, and when performing layout design according to the reorganized circuit design file, divide the circuit module corresponding to each clock into separate voltage domains, so that when adjusting the voltage of the voltage domain where a circuit module is located, it is only necessary to adjust the voltage of the voltage domain where the circuit module is located, and there is no need to adjust the voltages of other voltage domains, which can avoid a large increase in chip power consumption, thereby improving the energy consumption ratio of the chip, simplifying the timing analysis process of the chip, and improving the efficiency of timing analysis.
[0066] It should be noted that the chip layout method provided in the embodiment of the present invention can be applied in electronic devices, such as computers, and can solve the above technical problems while implementing chip layout, thereby achieving the purpose of reducing chip power consumption and improving chip energy efficiency.
[0067] In order to solve the above problems, this embodiment provides a chip layout method, and the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0068] Reference Figure 2 , shows a flowchart of a chip layout method embodiment of the present invention, which is applied to electronic devices and may include the following steps:
[0069] Step 201: Obtain circuit design files and corresponding constraint files.
[0070] Among them, the circuit design file can be a circuit schematic diagram drawn by a user through a circuit diagram drawing software (such as Virtuso), or a logic code describing the circuit principle of the chip written in a hardware description language (such as HDL, Hardware Description Language). The specific form of the circuit design file can be selected according to needs. The constraint file is used to describe the circuit characteristics in the circuit design file. For example, the constraint file can include information related to the clock in the circuit design file, such as the clock frequency of each clock, the clock port corresponding to each clock (the clock port is the port connected to the clock signal in the circuit module) and other information. For the understanding of the circuit design file and the constraint file, reference can be made to the prior art, and this embodiment does not limit this.
[0071] In this embodiment, the electronic device can receive circuit design files and constraint files input by the user, or receive circuit design files and constraint files sent by other electronic devices. The process of the electronic device obtaining circuit design files and constraint files can refer to the existing technology, and this embodiment does not limit this.
[0072] Step 202: Determine all circuit modules corresponding to each clock in the circuit design file according to the circuit design file and the constraint file.
[0073] In this embodiment, after acquiring the circuit design file and the corresponding constraint file, the electronic device can determine all clocks included in the circuit design file, the circuit modules corresponding to each clock, and the clock frequency of each clock according to the circuit design file and the constraint file.
[0074] For example, after obtaining the constraint file of chip 100, the electronic device can scan the constraint file to determine all clock-related information included in the constraint file, the clock frequency of each clock, and the clock port corresponding to each clock. For example, the electronic device can scan the constraint file of chip 100 to determine the identifier of the first clock and the clock frequency (3kHz) of the first clock, and determine that the clock port corresponding to the first clock is port A and port B1. At the same time, the electronic device can scan the logic code of chip 100 to determine each circuit module in the logic code and the clock port of each circuit module. For example, the clock port of circuit module A is determined to be port A, and the clock port of submodule B1 is determined to be port B1. The electronic device can determine all circuit modules corresponding to the first clock, that is, circuit module A and submodule B1, based on the correspondence between port A and port B1 and the first clock in the constraint file, and the clock ports of circuit module A and submodule B1 in the circuit design file. Similarly, circuit module C and submodule B2 corresponding to the second clock, and circuit module D and circuit module E corresponding to the third clock can be determined.
[0075] The above are only illustrative examples. In actual applications, other methods may be used to determine all circuit modules corresponding to each clock in the circuit design file according to the circuit design file and the constraint file. This embodiment does not limit this.
[0076] Step 203: reorganize the circuit design file according to all circuit modules corresponding to each clock to obtain a reorganized circuit design file.
[0077] In this embodiment, the electronic device can reorganize the circuit design file according to all circuit modules corresponding to each clock in the circuit design file, and combine all circuit modules corresponding to each clock in the circuit design file into one circuit module, namely, the first target circuit module.
[0078] For example, Figure 3 As shown, Figure 3 A structural diagram of a reorganized circuit design file of the present invention is shown, combined with Figure 1 and Figure 3 After determining the circuit module A and submodule B1 corresponding to the first clock, the circuit module C and submodule B2 corresponding to the second clock, and the circuit module D and circuit module E corresponding to the third clock, the electronic device can combine the circuit module A and submodule B1 into a first target circuit module X, combine the circuit module C and submodule B2 into a first target circuit module Y, and combine the circuit module D and circuit module E into a first target circuit module Z to obtain a reorganized circuit design file.
[0079] After obtaining the reorganized circuit design file, a layout design can be performed according to the reorganized circuit design file to obtain a first layout corresponding to the reorganized circuit design file, that is, a layout of chip 100. And in the process of dividing the voltage domain, an independent voltage domain is set for each first target circuit module in the first layout. For example, in the first layout, a first voltage domain can be set for the first target circuit module X, a second voltage domain can be set for the first target circuit module Y, and a third voltage domain can be set for the first target circuit module Z. Among them, the layout design and voltage domain division process of the circuit design file and the reorganization process of the circuit design file can be performed by the same electronic device, or by different electronic devices.
[0080] Combining the above examples, Figure 3In the reorganized circuit design file shown, when it is necessary to increase the voltage of the voltage domain where the circuit module A is located to increase the clock frequency of the circuit module A (the clock frequency of the first clock), increasing the voltage of the first voltage domain can synchronously increase the clock frequency of the circuit module A and the submodule B1. At the same time, since the second voltage domain and the third voltage domain do not include the circuit module corresponding to the first clock, it is not necessary to adjust the voltage of the second voltage domain and the third voltage domain. When the clock frequency of the circuit module A is increased, only the power consumption of the circuit module A and the submodule B1 increases, and the power consumption of the submodule B2 and the circuit module C does not increase, thereby avoiding a large increase in chip power consumption, thereby improving the chip's energy efficiency ratio. In addition, since the circuit module A and the submodule B1 corresponding to the first clock are both located in the first voltage domain, when the circuit module A and the submodule B1 are subjected to timing analysis, the voltages of the circuit module A and the submodule B1 are the same, and there is no need to set a voltage conversion unit, which can simplify the timing analysis process in the chip sign-off stage and improve the efficiency of timing analysis.
[0081] In summary, in this embodiment, a circuit design file and a corresponding constraint file are obtained, and all circuit modules corresponding to each clock in the circuit design file are determined according to the circuit design file and the constraint file, and all circuit modules corresponding to each clock are combined into one circuit module to obtain a reorganized circuit design file. When performing layout design according to the reorganized circuit design file, an independent voltage domain can be set for each circuit module, so that each clock corresponds to only one voltage domain. When adjusting the voltage of a voltage domain where a circuit module is located, only the voltage of the voltage domain needs to be adjusted, and the voltage of other voltage domains does not need to be adjusted. When improving the performance of the chip by adjusting the voltage of the voltage domain where a circuit module is located, a large increase in chip power consumption can be avoided, thereby improving the chip's energy efficiency ratio, and simplifying the timing analysis process in the chip sign-off stage, thereby improving the efficiency of timing analysis.
[0082] Reference Figure 4 , shows a flow chart of another chip layout method embodiment of the present invention, the method may specifically include the following steps:
[0083] Step 401: Obtain circuit design files and corresponding constraint files.
[0084] Step 402: Determine all circuit modules corresponding to each clock in the circuit design file according to the circuit design file and the constraint file.
[0085] Step 403: Determine the logical connection information of each circuit module corresponding to the target clock.
[0086] The target clock is any one of all the clocks. The logical connection information describes the connection status of the ports in the circuit module. Figure 1, taking circuit module A and circuit module B as examples, the logical connection information of submodule B1 can describe the connection state that the port of submodule B1 is connected to port 1 of chip 100 through port 1 of circuit module B, and the logical connection information of submodule B2 can describe the connection state that the port of submodule B2 is connected to port 2 of chip 100 through port 2 of circuit module B. Similarly, the logical connection information of circuit module A can describe the connection state that the port of circuit module A is connected to port 3 of chip 100. In actual applications, the specific content included in the logical connection information of each circuit module is determined according to the connection state of each port in the circuit module, and this embodiment does not limit this.
[0087] In this embodiment, after all circuit modules corresponding to each clock in the circuit design file are determined according to the circuit design file and the constraint file, each circuit module corresponding to the target clock and the logical connection information of each circuit module can be determined. For example, the circuit module A and the submodule B1 corresponding to the first clock, as well as the logical connection information of the circuit module A and the logical connection information of the submodule B1 are determined.
[0088] Step 404: Combine all circuit modules corresponding to the target clock according to the logic connection information of each circuit module corresponding to the target clock to obtain a first target circuit module and the logic connection information of the first target circuit module.
[0089] In this embodiment, after determining the logical connection information of each circuit module corresponding to the target clock, all circuit modules corresponding to the target clock can be combined into a first target circuit module according to the logical connection information of each circuit module corresponding to the target clock, and the logical connection information of the first target circuit module can be obtained.
[0090] For example, after determining the circuit module A and submodule B1 corresponding to the first clock, as well as the logical connection information of the circuit module A and the logical connection information of the submodule B1, it can be determined that two groups of ports need to be set in the first target circuit module X obtained by combining the circuit module A and the submodule B1, one group of ports is used to connect the port of the circuit module A with the port 3 of the chip 100, and one group of ports is used to connect the port of the submodule B1 with the port 1 of the chip 100. In the process of combining the circuit module A and the submodule B1 into the first target circuit module X, a group of ports W and another group of ports Y can be established in the first target circuit module X, the port W is used to connect the port of the circuit module A with the port 3 of the chip 100, and the port Y is used to connect the port of the submodule B1 with the port 1 of the chip 100. Similarly, the first target circuit module Y and the first target circuit module Z can be combined.
[0091] Step 405: Adjust the logic connection information of the circuit design file according to the logic connection information of all first target circuit modules to obtain a reorganized circuit design file.
[0092] In this embodiment, after all circuit modules corresponding to the target clock are combined into the first target circuit module and the logical connection information of the first target circuit module is generated, the logical connection information of the circuit design file can be adjusted according to the logical connection information of all the first target circuit modules to obtain the reorganized circuit design file. Specifically, in combination with step 404, the logical connection information of the first target circuit module X describes the connection state of the port of the circuit module A in the first target circuit module X connected to the port 3 of the chip 100 through the port W of the first target circuit module X, and the connection state of the port of the submodule B1 in the first target circuit module X connected to the port 1 of the chip 100 through the port Y of the first target circuit module X. At this time, the logical connection information of the chip 100 can be updated. In the updated logical connection information of the chip 100, the port 3 of the chip 100 is connected to the port W in the first target circuit module X, and the port 1 of the chip 100 is connected to the port Y in the first target circuit module X. The process of adjusting the logic connection information of the chip 100 according to the logic connection information of the first target circuit module Y and the first target circuit module Z may refer to the first target circuit module X, which will not be described in detail in this embodiment.
[0093] Step 406: perform logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and perform logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist.
[0094] In this embodiment, after obtaining the reorganized circuit design file, each first target circuit module can first be logically synthesized to generate a first gate-level netlist corresponding to each first target circuit module, and the circuit modules other than the first target circuit modules in the reorganized circuit design file can be logically synthesized to obtain a second gate-level netlist.
[0095] For example, a logic synthesis tool (such as Design Compiler) can be used to set timing constraints and area constraints, perform logic synthesis on the first target circuit module X, compile the first target circuit module X from the logic code of the register transfer level (RTL) into corresponding circuit function blocks and the topological structure between the circuit function blocks, and perform logic reorganization and optimization on the compilation results according to the set timing constraints and area constraints; further, according to the logic reorganization and optimization results, the circuit units (such as RAM units, I / O pin units) corresponding to each circuit function block are determined from the preset target process library through the set timing constraints and area constraints to form the first gate-level netlist corresponding to the first target circuit module X. Similarly, the first gate-level netlists corresponding to the first target circuit module Y and the first target circuit module Z can be obtained.
[0096] At the same time, logic synthesis can be performed on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist. In practical applications, in addition to the first target circuit module, the reorganized circuit design file can also include other RTL-level logic codes, such as port 1, port 2, and port 3 of chip 100. Logic synthesis can be performed on the circuit modules other than all the first target circuit modules at the same time to obtain the corresponding second gate-level netlist. The specific content included in the circuit modules other than the first target circuit module in the reorganized circuit design file can be set according to demand, and this embodiment does not limit this.
[0097] Step 407: Generate a first target layout corresponding to the first target circuit module according to the first gate-level netlist.
[0098] In this embodiment, after performing logic synthesis on the first target circuit module and obtaining the first gate-level netlist corresponding to the first target circuit module, layout design can be performed according to the first gate-level netlist. For example, a layout and wiring tool (such as IC Compiler) can be used to perform layout planning, determine the size of the first target circuit module, and the placement position of each circuit unit in the first gate-level netlist corresponding to the first target circuit module, and then perform wiring to determine the circuit connection lines between the circuit units, and generate the first target layout corresponding to the first gate-level netlist. The process of performing layout design according to the first gate-level netlist and obtaining the first target layout can be set according to requirements, and this embodiment does not limit this.
[0099] Step 408: Generate a first layout according to the second gate-level netlist and all first target layouts.
[0100] In this embodiment, after obtaining the first target layout corresponding to each first target circuit module, the first layout can be generated according to the second gate-level netlist and all the first target layouts. Specifically, the area of the chip 100 can be determined according to the second gate-level netlist and all the first target layouts, and then the position of the circuit unit in the second gate-level netlist in the chip is determined according to the second gate-level netlist, and the position of each first target layout in the chip is determined, and finally, the wiring between the circuit modules in the chip is determined according to the logical connection information of each first target circuit module and the logical connection information of the chip. In combination with the above example, port W in the first target circuit module X is connected to port 3 in chip 100, and port Y in the first target circuit module X is connected to port 1 in chip 100. In the process of generating the first layout according to the second gate-level netlist and all the first target layouts, the size of chip 100 can be determined first, and then the circuit units in the second gate-level netlist and the position of each first target layout in chip 100 can be determined. Finally, port 3 in the chip and port 1 in the first target layout are connected, and port 1 in the chip and port 2 in the first target layout are connected to generate the first layout. The specific process of generating the first layout according to the second gate-level netlist and all the first target layouts can refer to the prior art, and this embodiment does not limit this.
[0101] Step 409: Set a corresponding voltage domain for each first target circuit module in the first layout.
[0102] In this embodiment, after all the first gate-level netlists and the second gate-level netlists are obtained, layout design is performed according to each first gate-level netlist to obtain the first target layout corresponding to each first target circuit module, and then the first layout is generated according to the second gate-level netlist and all the first target layouts. Performing logic synthesis and layout design on each first target circuit module can reduce the difficulty of logic synthesis and layout design, and when the number of first target circuit modules is large, the efficiency of logic synthesis and layout design can be improved.
[0103] In summary, in this embodiment, a circuit design file and a corresponding constraint file are obtained, and all circuit modules corresponding to each clock in the circuit design file are determined according to the circuit design file and the constraint file, and all circuit modules corresponding to each clock are combined into one circuit module to obtain a reorganized circuit design file. When performing layout design according to the reorganized circuit design file, an independent voltage domain can be set for each first target circuit module, so that each clock corresponds to only one voltage domain. When adjusting the voltage of a voltage domain where a circuit module is located, only the voltage of the voltage domain needs to be adjusted, and the voltage of other voltage domains does not need to be adjusted. When improving the performance of the chip by adjusting the voltage of the voltage domain where a circuit module is located, a large increase in chip power consumption can be avoided, thereby improving the chip's energy efficiency ratio, and simplifying the timing analysis process in the chip sign-off stage, improving the efficiency of timing analysis.
[0104] Optionally, the step of generating a first layout according to the reorganized circuit design file and setting a corresponding voltage domain for each first target circuit module in the first layout can also be implemented in the following manner:
[0105] Performing logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and performing logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist;
[0106] generating a third gate-level netlist based on all the first gate-level netlists and the second gate-level netlists;
[0107] Generate a first layout according to the third gate-level netlist;
[0108] A corresponding voltage domain is set for each first target circuit module in the first layout.
[0109] In this embodiment, after generating the first gate-level netlist and the second gate-level netlist corresponding to each first target circuit module, a third gate-level netlist can be generated based on all the first gate-level netlists and the second gate-level netlists, and then a layout design is performed based on the third gate-level netlist to obtain a first layout.
[0110] In practical applications, when the number of first target circuit modules is small, a third gate-level netlist including all circuit modules can be generated first, and then a layout design is performed based on the third gate-level netlist to generate a first layout. By uniformly performing layout design on multiple circuit modules, the efficiency of layout design can be improved.
[0111] Optionally, the method may further include:
[0112] Determine a second target circuit module for which a through-line logic needs to be created according to the first layout;
[0113] In the reorganized circuit design file, a wire-passing logic is added to the second target circuit module, so as to generate a second layout according to the circuit design file after the wire-passing logic is added, and a corresponding voltage domain is set for each first target circuit module in the second layout.
[0114] In this embodiment, after the first layout is generated, the second target circuit module for which the through-line logic needs to be created can be determined in each first target circuit module according to the port position of each first target circuit module and the port position of the chip. Wherein, the through-line logic is a logic code that needs to be added in the circuit design file, which is used to describe the circuit connection line set in the second target circuit module, and the circuit connection line is used to connect other circuit modules except the second target circuit module. For example, if in the first layout, the first target circuit module Z is located between the first target circuit module X and the first target circuit module Y, and there is a circuit connection line between the first target circuit module X and the first target circuit module Y, it can be determined that the through-line logic needs to be created in the first target circuit module Z (the second target circuit module), so as to perform wiring through the through-line logic in the layout design to connect the first target circuit module X and the first target circuit module Y. When it is necessary to create the through-line logic, the through-line logic can be added to the first target circuit module Z in the reorganized circuit design file to obtain the circuit design file after the through-line logic is added, so as to perform layout design according to the circuit design file after the through-line logic is added, generate the second layout, and divide the voltage domain. In actual applications, the second target circuit module that needs to create the pass-through logic is determined based on the first layout, the pass-through logic is added to the reorganized circuit design file, and the layout is designed again based on the circuit design file with the added pass-through logic to generate the second layout. The reorganized circuit design file can be adjusted to reasonably layout the various circuit modules in the chip.
[0115] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, 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 preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0116] Reference Figure 5 , shows a structural block diagram of a chip layout device embodiment of the present invention, the device 500 is arranged in an electronic device, and specifically may include the following modules:
[0117] The acquisition module 501 is used to acquire a circuit design file and a corresponding constraint file.
[0118] The determination module 502 is used to determine all circuit modules corresponding to each clock in the circuit design file according to the circuit design file and the constraint file.
[0119] The reorganization module 503 is used to reorganize the circuit design file according to all circuit modules corresponding to each clock to obtain a reorganized circuit design file, generate a first layout according to the reorganized circuit design file, and set a corresponding voltage domain for each first target circuit module in the first layout.
[0120] The first target circuit module is obtained by combining all circuit modules corresponding to a target clock in the circuit design file, and the target clock is any one of all the clocks.
[0121] Optionally, the reorganization module 503 is specifically used to determine the logical connection information of each circuit module corresponding to the target clock; according to the logical connection information of each circuit module corresponding to the target clock, all circuit modules corresponding to the target clock are combined to obtain a first target circuit module and the logical connection information of the first target circuit module; according to the logical connection information of all first target circuit modules, the logical connection information of the circuit design file is adjusted to obtain a reorganized circuit design file.
[0122] Optionally, the apparatus 500 may further include:
[0123] The first synthesis module is used to perform logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and to perform logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist.
[0124] The first generating module is used to generate a first target layout corresponding to a first target circuit module according to the first gate-level netlist.
[0125] The second generating module is used to generate the first layout according to all the first target layouts.
[0126] The first setting module is used to set a corresponding voltage domain for each first target circuit module in the first layout.
[0127] Optionally, the apparatus 500 may further include:
[0128] The second synthesis module is used to perform logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and to perform logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist.
[0129] The third generating module is used to generate a third gate-level netlist according to all the first gate-level netlists and the second gate-level netlists.
[0130] The fourth generation module is used to generate a first layout according to the third gate-level netlist.
[0131] The second setting module is used to set a corresponding voltage domain for each first target circuit module in the first layout.
[0132] Optionally, the apparatus 500 may further include:
[0133] A creation module is used to determine a second target circuit module for which a through-line logic needs to be created according to the first layout.
[0134] An adding module is used to add a wire-passing logic to a second target circuit module in the reorganized circuit design file, so as to generate a second layout according to the circuit design file after adding the wire-passing logic, and to set a corresponding voltage domain for each first target circuit module in the second layout.
[0135] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0136] Figure 6 6 is a block diagram of an electronic device for chip layout according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0137] Reference Figure 6 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0138] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0139] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0140] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.
[0141] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0142] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0143] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0144] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0145] The communication component 616 is configured to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 614 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 614 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0146] In an exemplary embodiment, the electronic device 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0147] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0148] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal, enables the terminal to execute a method for starting an application, the method comprising:
[0149] Get the circuit design file and the corresponding constraint file.
[0150] According to the circuit design file and the constraint file, all circuit modules corresponding to each clock in the circuit design file are determined.
[0151] According to all circuit modules corresponding to each clock, the circuit design file is reorganized to obtain a reorganized circuit design file, so as to generate a first layout according to the reorganized circuit design file, and set a corresponding voltage domain for each first target circuit module in the first layout.
[0152] The first target circuit module is obtained by combining all circuit modules corresponding to a target clock in the circuit design file, and the target clock is any one of all the clocks.
[0153] Optionally, the circuit design file is reorganized according to all circuit modules corresponding to each clock to obtain a reorganized circuit design file, including:
[0154] For each target clock, the following operations are performed: determining the logical connection information of each circuit module corresponding to the target clock; combining all circuit modules corresponding to the target clock according to the logical connection information of each circuit module corresponding to the target clock to obtain a first target circuit module and the logical connection information of the first target circuit module.
[0155] The logical connection information of the circuit design file is adjusted according to the logical connection information of all the first target circuit modules to obtain a reorganized circuit design file.
[0156] Optionally, generating a first layout according to the reorganized circuit design file, and setting a corresponding voltage domain for each first target circuit module in the first layout respectively, includes:
[0157] Performing logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and performing logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist.
[0158] A first target layout corresponding to the first target circuit module is generated according to the first gate-level netlist.
[0159] A first layout is generated according to the second gate-level netlist and all the first target layouts.
[0160] A corresponding voltage domain is set for each first target circuit module in the first layout.
[0161] Optionally, generating a first layout according to the reorganized circuit design file, and setting a corresponding voltage domain for each first target circuit module in the first layout respectively, includes:
[0162] Performing logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and performing logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist.
[0163] A third gate-level netlist is generated according to all the first gate-level netlists and the second gate-level netlists.
[0164] Generate a first layout based on the third gate-level netlist.
[0165] A corresponding voltage domain is set for each first target circuit module in the first layout.
[0166] Optionally, it may also include:
[0167] A second target circuit module requiring creation of a through-line logic is determined according to the first layout.
[0168] In the reorganized circuit design file, a wire-passing logic is added to the second target circuit module, so as to generate a second layout according to the circuit design file after the wire-passing logic is added, and a corresponding voltage domain is set for each first target circuit module in the second layout.
[0169] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0170] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0171] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0172] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a predictable manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0173] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0174] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0175] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0176] The above is a detailed introduction to a chip layout method and device, an electronic device and a storage medium provided by the present invention. Specific examples are used in this article to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A chip layout method, characterized in that: include: Obtain circuit design files and corresponding constraint files; Determine, according to the circuit design file and the constraint file, all circuit modules corresponding to each clock in the circuit design file; According to all the circuit modules corresponding to each of the clocks, the circuit design file is reorganized to obtain a reorganized circuit design file, a first layout is generated according to the reorganized circuit design file, and a corresponding voltage domain is set for each first target circuit module in the first layout; The first target circuit module is obtained by combining all circuit modules corresponding to the target clock in the circuit design file, and the target clock is any one of all the clocks.
2. The method according to claim 1, characterized in that The circuit design file is reorganized according to all circuit modules corresponding to each clock to obtain a reorganized circuit design file, including: For each of the target clocks, the following operations are performed: determining the logical connection information of each circuit module corresponding to the target clock; combining all circuit modules corresponding to the target clock according to the logical connection information of each circuit module corresponding to the target clock to obtain the first target circuit module and the logical connection information of the first target circuit module; The logical connection information of the circuit design file is adjusted according to the logical connection information of all the first target circuit modules to obtain the reorganized circuit design file.
3. The method according to claim 1, characterized in that The step of generating a first layout according to the reorganized circuit design file and setting a corresponding voltage domain for each first target circuit module in the first layout respectively includes: Performing logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and performing logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist; Generate a first target layout corresponding to the first target circuit module according to the first gate-level netlist; Generate the first layout according to the second gate-level netlist and all the first target layouts; A corresponding voltage domain is set for each of the first target circuit modules in the first layout.
4. The method according to claim 1, characterized in that: The step of generating a first layout according to the reorganized circuit design file and setting a corresponding voltage domain for each first target circuit module in the first layout respectively includes: Performing logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and performing logic synthesis on the circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist; Generate a third gate-level netlist based on all of the first gate-level netlists and the second gate-level netlists; Generate the first layout according to the third gate-level netlist; A corresponding voltage domain is set for each of the first target circuit modules in the first layout.
5. The method according to claim 3 or 4, characterized in that: Also includes: Determine a second target circuit module for which a through-line logic needs to be created according to the first layout; In the reorganized circuit design file, the wire-passing logic is added to the second target circuit module to generate a second layout according to the circuit design file after adding the wire-passing logic, and a corresponding voltage domain is set for each of the first target circuit modules in the second layout.
6. A chip layout device, characterized in that: include: An acquisition module, used to acquire circuit design files and corresponding constraint files; A determination module, used to determine all circuit modules corresponding to each clock in the circuit design file according to the circuit design file and the constraint file; a reorganization module, configured to reorganize the circuit design file according to all circuit modules corresponding to each clock, to obtain a reorganized circuit design file, to generate a first layout according to the reorganized circuit design file, and to set a corresponding voltage domain for each first target circuit module in the first layout; The first target circuit module is obtained by combining all circuit modules corresponding to the target clock in the circuit design file, and the target clock is any one of all the clocks.
7. The device according to claim 6, characterized in that The reorganization module is specifically used to perform the following operations for each of the target clocks: determining the logical connection information of each circuit module corresponding to the target clock; combining all circuit modules corresponding to the target clock according to the logical connection information of each circuit module corresponding to the target clock to obtain the first target circuit module and the logical connection information of the first target circuit module; adjusting the logical connection information of the circuit design file according to the logical connection information of all the first target circuit modules to obtain the reorganized circuit design file.
8. The device according to claim 6, characterized in that Also includes: a first synthesis module, configured to perform logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and to perform logic synthesis on circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist; A first generating module, configured to generate a first target layout corresponding to the first target circuit module according to the first gate-level netlist; A second generating module, configured to generate the first layout according to the second gate-level netlist and all the first target layouts; The first setting module is used to set a corresponding voltage domain for each of the first target circuit modules in the first layout.
9. The device according to claim 6, characterized in that Also includes: a second synthesis module, configured to perform logic synthesis on the first target circuit module to obtain a first gate-level netlist corresponding to the first target circuit module, and to perform logic synthesis on circuit modules other than the first target circuit module in the reorganized circuit design file to obtain a second gate-level netlist; A third generating module, configured to generate a third gate-level netlist according to all of the first gate-level netlists and the second gate-level netlists; A fourth generating module, configured to generate the first layout according to the third gate-level netlist; The second setting module is used to set a corresponding voltage domain for each of the first target circuit modules in the first layout.
10. The device according to claim 8 or 9, characterized in that Also includes: A creation module, used for determining a second target circuit module for which a through-line logic needs to be created according to the first layout; An adding module is used to add the line-passing logic to the second target circuit module in the reorganized circuit design file, so as to generate a second layout according to the circuit design file after adding the line-passing logic, and set a corresponding voltage domain for each of the first target circuit modules in the second layout.
11. An electronic device, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, wherein the one or more programs include instructions for performing the following operations: Obtain circuit design files and corresponding constraint files; Determine, according to the circuit design file and the constraint file, all circuit modules corresponding to each clock in the circuit design file; According to all the circuit modules corresponding to each of the clocks, the circuit design file is reorganized to obtain a reorganized circuit design file, a first layout is generated according to the reorganized circuit design file, and a corresponding voltage domain is set for each first target circuit module in the first layout; The first target circuit module is obtained by combining all circuit modules corresponding to the target clock in the circuit design file, and the target clock is any one of all the clocks.
12. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the chip layout method as described in one or more of method claims 1-5.
