Integrated circuit design power consumption optimization method and device with multi-level clock gating inserted
By inserting multi-level clock gating devices into large-scale integrated circuits to absorb the common enable signals of registers and reduce the number of useless flips, the problem of high power consumption of registers is solved, and circuit power consumption is optimized and stability is improved.
Patent Information
- Application Number
- CN202411110613.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-14
AI Technical Summary
In the design of large-scale integrated circuits, the number of useless flips of registers leads to high power consumption, which affects the stability and service life of the circuit. It is difficult to effectively reduce the number of useless flips with existing technology, resulting in limited optimization of power consumption.
Through logical reorganization and insertion of multi-level clock gating devices, the common enable signal of the register is absorbed, the number of flips of the register is reduced, and the power consumption of the entire circuit is reduced. Specific methods include obtaining the clock signal and enable signal of the register, grouping and inserting clock gating devices, and implementing multi-level gating to reduce useless flips.
It effectively reduces the number of useless flips of the register, reduces the power consumption of the circuit, improves the stability and efficiency of the circuit, and extends the service life of the circuit.
Smart Images

Figure CN118643775B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of integrated circuits, and more specifically, relates to a method and device for optimizing power consumption of integrated circuit designs by inserting multi-level clock gating. Background Art
[0002] At present, with the continuous advancement of manufacturing technology, the size of circuit devices is getting smaller and smaller, and the complexity of large-scale integrated circuits is increasing. But at the same time, the large number of registers in the circuit brings extremely high power consumption. In order to achieve higher performance and stability of the product, power consumption optimization has become an indispensable link.
[0003] In the design of large-scale integrated circuits, long-term high-power operation of the designed products will accelerate the aging and wear of the devices, reduce the reliability and stability of the system, and also affect the service life of the product and user experience; in the process of large-scale integrated circuit design, the increase in logic complexity, the increase in load capacity and the impact of layout and routing will lead to increased power consumption. Among them, the flipping action of the register with the clock signal consumes a considerable part of the power. Regardless of whether the signal passes through this register, as long as the clock signal is connected to the register, the register will flip with the clock signal. Therefore, reducing the number of useless flips of the register is an effective way to reduce power consumption.
[0004] Chinese patent document CN116978436A discloses a shift register and a memory, wherein the shift register comprises: a trigger group, one or more triggers in each trigger group share a clock signal; N trigger groups are connected in sequence, and the clock input end of the nth trigger group inputs the nth clock signal, N is an integer greater than 1, and n is a positive integer less than or equal to N; wherein the number of edges of the nth clock signal is less than or equal to the number of edges of the n-1th clock signal. The present invention effectively reduces the number of clock flips and reduces power consumption by grouping the triggers.
[0005] Chinese patent document CN117311446A discloses a clock gating method, system, storage medium and device based on register grouping, the method includes: obtaining the clock signal flipping conditions of all registers in the clock network, and dividing multiple registers with high flipping synchronization into the same register group based on the flipping conditions of each clock signal to obtain multiple register groups, and judging whether the flipping synchronization value of each register group is within a preset numerical range; if the flipping synchronization values of several register groups are not within the preset numerical range, optimizing several register groups so that the flipping synchronization values of several register groups are within the preset numerical range, to obtain multiple optimal register groups, and judging whether the number of registers in the optimal register group is within the preset fan-out number range; if the number of registers in the optimal register group is within the preset fan-out number range, clock gating the optimal register group. The present invention can effectively reduce the redundant cycle of clock gating and effectively reduce power consumption.
[0006] Combining the above technologies, power consumption optimization in large-scale integrated circuit design is an important link. Reducing the number of useless flips of registers is an effective way to reduce power consumption. However, in practical applications, the methods of reducing the number of useless flips of registers vary according to different design situations, and further research and practice are needed.
[0007] Based on this, the present invention designs an integrated circuit design power consumption optimization method with multi-level clock gating inserted to reduce the number of register flips and reduce the power consumption of the entire circuit. Summary of the invention
[0008] The present invention aims to overcome at least one defect of the above-mentioned prior art and provides a method for optimizing power consumption of integrated circuit design by inserting multi-level clock gating. By absorbing the common enable signal of the register and inserting multi-level gated clock through reasonable logic reorganization, the number of register flips can be effectively reduced, thereby reducing the power consumption of the entire circuit.
[0009] The invention also discloses a device loaded with the integrated circuit design power consumption optimization method by inserting multi-level clock gating.
[0010] The detailed technical scheme of the present invention is as follows:
[0011] A method for optimizing power consumption of integrated circuit design by inserting multi-level clock gating, the method comprising:
[0012] S1. Obtain all registers in the netlist to be analyzed, and record the clock signals and enable signals driving the registers;
[0013] S2, grouping the registers driven by the same clock signal in the netlist to be analyzed to form a plurality of first register groups;
[0014] S3, regrouping the first register group based on a triggering mode to form a plurality of second register groups;
[0015] S4, regrouping the second register groups based on a common enable signal to form a plurality of third register groups;
[0016] S5. Filter out the third register group with the largest number of registers driven by the common enable signal from all the third register groups, and insert a first-level clock gating device before the third register group; then filter out the third register group with the largest number of registers driven by the common enable signal from the remaining third register groups, and insert a second-level clock gating device before the third register group; repeat this operation until there is no common enable signal driving multiple registers in the remaining third register groups.
[0017] Preferably, according to the present invention, in S2, the registers driven by the same clock signal in the netlist to be analyzed are grouped to form a plurality of first register groups, specifically including:
[0018] Starting from the external input clock signal end, search backward in the form of depth-first search until the register is found;
[0019] Record the searched register and the clock signal driving the register, so as to obtain the register driven by the same clock signal in the netlist to be analyzed;
[0020] The registers driven by the same clock signal are integrated to form a plurality of first register groups.
[0021] Preferably, according to the present invention, in S3, the first register group is regrouped based on the triggering mode to form a plurality of second register groups, specifically including:
[0022] Based on the edge triggering mode, the first register group is regrouped to form a plurality of second register groups including a rising edge triggering register group and a falling edge triggering register group.
[0023] Preferably, according to the present invention, in S4, the second register group is regrouped based on a common enable signal to form a plurality of third register groups, specifically including:
[0024] Traversing all enable signals of each register in the second register group;
[0025] Determine the common enable signal between registers;
[0026] All registers driven by a common enable signal are divided into one group, thereby forming a plurality of third register groups.
[0027] Preferably, according to the present invention, in S5, the insertion method of the first-level clock gating device is: its clock signal end is connected to the clock signal that drives the third register group, its enable signal end is connected to the corresponding common enable signal EN, and its output end is respectively connected to the clock signal end of each register in the third register group driven by it.
[0028] Preferably, according to the present invention, in S5, the multi-level clock gating device is inserted as follows: its clock signal end is connected to the output end of the clock gating device of the previous level, its enable signal end is connected to the corresponding common enable signal EN, and its output end is respectively connected to the clock signal end of each register in the third register group driven by it.
[0029] Preferably, according to the present invention, in S5, in the multi-stage clock gating circuit, when multiple registers in the third register group are driven by different common enable signals EN, the clock signal end of the register is connected to the output end of the clock gating device connected to its corresponding common enable signal EN.
[0030] In another aspect of the present invention, a device for implementing a method for optimizing power consumption of integrated circuit design by inserting multi-level clock gating is provided, the device comprising:
[0031] An acquisition module, used to acquire all registers in the netlist to be analyzed, and record the clock signals and enable signals driving the registers;
[0032] a grouping module, configured to group the registers driven by the same clock signal in the netlist to be analyzed to form a plurality of first register groups; and to regroup the first register groups based on a trigger mode to form a plurality of second register groups; and to regroup the second register groups based on a common enable signal to form a plurality of third register groups;
[0033] The gating insertion module is used to screen out the third register group with the largest number of registers driven by the common enable signal from all the third register groups, and insert a first-level clock gating device in front of the third register group; then screen out the third register group with the largest number of registers driven by the common enable signal from the remaining third register groups, and insert a second-level clock gating device in front of the third register group; repeat this operation until there is no common enable signal driving multiple registers in the remaining third register groups.
[0034] In another aspect of the present invention, there is also provided an electronic device, comprising:
[0035] At least one processor; and a memory storing instructions, which, when executed by the at least one processor, enable the at least one processor to execute the integrated circuit design power consumption optimization method of inserting multi-level clock gating as described above.
[0036] In another aspect of the present invention, a machine-readable storage medium is provided, which stores executable instructions, and when the instructions are executed, the machine executes the integrated circuit design power consumption optimization method inserting multi-level clock gating as described above.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The present invention provides an integrated circuit design power consumption optimization method for inserting multi-level clock gating, which traverses and searches for registers in a netlist, obtains a similar register group based on a clock signal and a trigger mode, and then further inserts a clock gating device by obtaining a common enable signal in the similar register group; and in this way, the insertion of a multi-level gating device is realized on the basis of clock gating, and the number of useless flips of the register is effectively reduced. Under the premise of not affecting the circuit function, the method greatly reduces the power consumption loss of the circuit, thereby improving the stability and efficiency of the circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 The present invention is a flowchart of the integrated circuit design power consumption optimization method with multi-level clock gating inserted.
[0040] Figure 2 It is a schematic diagram of a first register group formed based on clock signal grouping in Embodiment 1 of the present invention.
[0041] Figure 3 It is a schematic diagram of a second register group formed based on trigger mode grouping in Embodiment 1 of the present invention.
[0042] Figure 4 It is a schematic diagram of a third register group formed based on common enable signal grouping in Embodiment 1 of the present invention.
[0043] Figure 5 It is a schematic diagram of the structure after a clock gating device is inserted into one of the third register groups in Embodiment 1 of the present invention.
[0044] Figure 6 It is a schematic diagram of the structure of the target register group formed after the clock gating devices at each level are inserted in Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0045] The present disclosure is further described below in conjunction with the accompanying drawings and embodiments.
[0046] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present disclosure belongs.
[0047] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0048] In the absence of conflict, the embodiments in the present disclosure and the features in the embodiments may be combined with each other.
[0049] Embodiment 1,
[0050] Ginseng Figure 1 This embodiment provides an integrated circuit design power consumption optimization method by inserting multi-level clock gating. The method can be used to solve the problem of how to reduce power consumption in logic synthesis of digital EDA tools, realize low-power circuit design, and thus improve chip performance and efficiency.
[0051] The method comprises:
[0052] S1. Obtain all registers in the netlist to be analyzed, and record the clock signals and enable signals driving the registers.
[0053] That is, all registers in the netlist are traversed and obtained, and the clock signals driving them and the connection relationship of the enable signals are retained.
[0054] The register is an important component in the chip used to temporarily store data, like a memory unit, capable of storing binary data, usually composed of flip-flops. The register works under the control of the clock signal and stores and reads data according to a certain timing.
[0055] The clock signal refers to: the clock signal is the basis of sequential logic, used to determine when the state in the register is updated, and has a fixed period signal.
[0056] The enable signal refers to: the enable signal is a binary signal used to control a specific function or operation. It usually indicates enable or disable with a high level (logic 1) or a low level (logic 0). By changing the state of the enable signal, the working state of the corresponding module or device can be controlled. The enable signal mentioned in this embodiment specifically refers to the enable signal of the register device, which is used to enable or disable the register.
[0057] S2. Group the registers driven by the same clock signal in the netlist to be analyzed to form a plurality of first register groups.
[0058] Starting from the external input clock signal end, search backward in the form of depth-first search until the register is found and stop, record the register and the clock signal that drives the register, so that the grouping of registers driven by the same clock signal in the netlist to be analyzed can be obtained. Figure 2 shown.
[0059] Figure 2 A first register group consisting of all registers (registers 1 to 6) driven by clock signal 1 is shown in detail in FIG. 1 . The logical structure of the register driven by clock signal 2 is the same as that of clock signal 1 and is not shown in detail here.
[0060] In the subsequent steps, the register logic structure driven by the clock signal 1 will be taken as an example for detailed description.
[0061] S3. Regroup the first register groups based on a triggering mode to form a plurality of second register groups.
[0062] The registers mentioned in this embodiment are all based on edge triggering, which includes rising edge triggering and falling edge triggering. For edge-triggered registers, they only depend on the state of the input signal when the rising edge or falling edge of the CLK signal arrives, and changes in the input state before and after this have no effect on the state of the register.
[0063] Based on the edge triggering method, the first register group is regrouped. Figure 2 It can be seen from the triggering mode of each register driven by the clock signal 1 shown in the figure that registers 1 to 3 are rising edge triggered and registers 4 to 6 are falling edge triggered. Therefore, the first register group driven by the clock signal 1 can be further divided into a rising edge triggered register group composed of registers 1 to 3 and a falling edge triggered register group composed of registers 4 to 6, that is, two second register groups are formed.
[0064] In the following steps, the rising edge trigger register group consisting of registers 1 to 3 will be used as an example to explain in detail. Figure 3 shown.
[0065] S4. Regroup the second register groups based on a common enable signal to form a plurality of third register groups.
[0066] That is, all enable signals driving each register in the second register group are obtained, common enable signals between the registers are analyzed, and the registers are grouped based on the common enable signals.
[0067] Combination Figure 3 As shown, by traversing all the enable signals of each register in the second register group composed of registers 1 to 3, it can be seen that: register 1 is driven by enable signals EN1, EN2, and EN3; register 2 is driven by enable signals EN1, EN2, and EN4; register 3 is driven by enable signals EN1 and EN5.
[0068] Ginseng Figure 4 For these three registers, they have a common enable signal EN1; for register 1 and register 2, both have common enable signals EN1 and EN2.
[0069] Therefore, the above three registers can be further grouped into a third register group consisting of registers 1 to 3 driven by the common enable signal EN1 and a third register group consisting of registers 1 to 2 driven by the common enable signal EN2 according to their common enable signals.
[0070] S5. Filter out the third register group with the largest number of registers driven by the common enable signal from all the third register groups, and insert a first-level clock gating device before the third register group.
[0071] That is, firstly obtain the common enable signal with the largest number of driving registers from all the third register groups, and insert a first-level clock gating device before the third register group driven by it.
[0072] It should be understood that a clock gating device refers to: in the gated clock technology, a device that directly gates the register clock, which is an electronic device that is the same as a conventional AND, OR, or NOT gate logic device.
[0073] The clock gating device comprises a clock signal terminal for accessing a clock signal, an enable signal terminal for accessing an enable signal EN, and an output terminal.
[0074] The clock gating device is inserted as follows: the clock signal of the original register is connected to the clock signal terminal of the clock gating device, the common enable signal of the register group is connected to the enable signal terminal of the clock gating device, the clock signal of the original register is connected to the output terminal of the inserted clock gating device, and the enable signal terminal of the original register is disconnected from the common enable signal.
[0075] Specific reference Figure 5 As shown, the common enable signal that currently drives the largest number of registers is EN1, which drives registers 1 to 3. Therefore, a first-level clock gating device 1 can be inserted before registers 1 to 3.
[0076] The insertion method is as follows: the clock signal end of the inserted clock gating device 1 is driven by the clock signal 1 of the original driving register group, and the enable signal end is driven by the common enable signal EN1. Registers 1, 2, and 3 are disconnected from the original clock signal 1 and then connected to the output end of the clock gating device 1, disconnecting the connection relationship with the common enable signal EN1, and the original input port connection method remains unchanged.
[0077] Then, the third register group with the largest number of registers driven by the common enable signal is selected from the remaining third register groups, and a secondary clock gating device is inserted before the third register group; this operation is repeated until there is no common enable signal driving multiple registers in the remaining third register groups.
[0078] That is, after completing the insertion of a gating device, the remaining third register group is traversed again to obtain the common enable signal of the current register. If the common enable signal still exists, multiple levels of gating devices can be further inserted.
[0079] Combination Figure 4 , in the remaining third register group, register 1 is still driven by enable signals EN2 and EN3, and register 2 is driven by enable signals EN2 and EN4. For register 1 and register 2, both still have a common enable signal EN2. That is, the common enable signal that currently drives the largest number of registers is EN2, which drives registers 1~2, so the secondary clock gating device 2 can continue to be inserted before registers 1~2.
[0080] Ginseng Figure 6 As shown, for the clock gating device 2, the insertion method is: the clock signal end of the inserted clock gating device 2 is driven by the clock signal 1 of the original driving register group (that is, the output of the inserted first-level clock gating device 1), and the enable signal end is driven by the common enable signal EN2, registers 1 and 2 are disconnected from the original clock signal 1, and then connected to the output end of the clock gating device 2, and the connection relationship with the common enable signal EN2 is disconnected, and the original input port connection method remains unchanged.
[0081] At this point, it should be noted that since the register 3 is not driven by the common enable signal EN2, it is necessary to ensure that the register 3 is still driven by the clock gating device 1 and the enable signal EN5.
[0082] The above operation is repeated until there is no common enable signal driving multiple registers in the remaining third register group, and the insertion of the multi-stage clock gating device is completed.
[0083] In summary, the integrated circuit design power consumption optimization method with multi-level clock gating of the present invention is suitable for large-scale circuit design, high-performance processor and chip design, design iteration and debugging and other application scenarios. With the continuous increase in circuit scale and complexity, the integrated circuit design power consumption optimization method with multi-level clock gating can be used to turn off the clock of unnecessary working modules, reduce the number of register flips, and thus reduce the power consumption of the entire circuit, and improve the working performance and stability of the chip.
[0084] Embodiment 2,
[0085] This embodiment provides a device for implementing a method for optimizing power consumption of integrated circuit design by inserting multi-level clock gating, the device comprising:
[0086] An acquisition module, used to acquire all registers in the netlist to be analyzed, and record the clock signals and enable signals driving the registers;
[0087] a grouping module, configured to group the registers driven by the same clock signal in the netlist to be analyzed to form a plurality of first register groups; and to regroup the first register groups based on a trigger mode to form a plurality of second register groups; and to regroup the second register groups based on a common enable signal to form a plurality of third register groups;
[0088] The gating insertion module is used to screen out the third register group with the largest number of registers driven by the common enable signal from all the third register groups, and insert a first-level clock gating device in front of the third register group; then screen out the third register group with the largest number of registers driven by the common enable signal from the remaining third register groups, and insert a second-level clock gating device in front of the third register group; repeat this operation until there is no common enable signal driving multiple registers in the remaining third register groups.
[0089] Embodiment 3,
[0090] This embodiment also provides an electronic device, including:
[0091] At least one processor; and a memory storing instructions, which, when executed by the at least one processor, enable the at least one processor to execute the integrated circuit design power consumption optimization method of inserting multi-level clock gating as described above.
[0092] In this embodiment, the electronic device may include, but is not limited to: personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, tablet computers, cellular phones, personal digital assistants (PDAs), handheld devices, messaging devices, wearable computing devices, consumer electronic devices, and the like.
[0093] Embodiment 4,
[0094] This embodiment also provides a machine-readable storage medium storing executable instructions, which, when executed, enable the machine to execute the integrated circuit design power consumption optimization method by inserting multi-level clock gating as described above.
[0095] Specifically, a system or device equipped with a readable storage medium can be provided, on which software program codes that implement the functions of any of the above-mentioned embodiments are stored, and a computer or processor of the system or device can read and execute instructions stored in the readable storage medium.
[0096] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute part of this specification.
[0097] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD ROM, CD R, CD RW, DVD ROM, DVD RAM, DVD RW, DVD RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.
[0098] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, 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 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 code.
[0099] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to 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 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 device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing 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.
[0100] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture 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.
[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0102] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the technical solution of the present invention, and are not intended to limit the specific implementation methods of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the claims of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for optimizing power consumption of integrated circuit design by inserting multi-level clock gating, characterized in that: The method comprises: S1. Obtain all registers in the netlist to be analyzed, and record the clock signals and enable signals driving the registers; S2, grouping the registers driven by the same clock signal in the netlist to be analyzed to form a plurality of first register groups; S3, regrouping the first register group based on a triggering mode to form a plurality of second register groups; S4, regrouping the second register groups based on a common enable signal to form a plurality of third register groups; S5. Filter out the third register group with the largest number of registers driven by the common enable signal from all the third register groups, and insert a first-level clock gating device before the third register group; then filter out the third register group with the largest number of registers driven by the common enable signal from the remaining third register groups, and insert a second-level clock gating device before the third register group; repeat this operation until there is no common enable signal driving multiple registers in the remaining third register groups.
2. The integrated circuit design power consumption optimization method with multi-level clock gating inserted according to claim 1, characterized in that: In S2, the registers driven by the same clock signal in the netlist to be analyzed are grouped to form a plurality of first register groups, specifically including: Starting from the external input clock signal end, search backward in the form of depth-first search until the register is found; Record the searched register and the clock signal driving the register, so as to obtain the register driven by the same clock signal in the netlist to be analyzed; The registers driven by the same clock signal are integrated to form a plurality of first register groups.
3. The integrated circuit design power consumption optimization method with multi-level clock gating inserted according to claim 1, characterized in that: In S3, the first register group is regrouped based on the trigger mode to form a plurality of second register groups, specifically including: Based on the edge triggering mode, the first register group is regrouped to form a plurality of second register groups including a rising edge triggering register group and a falling edge triggering register group.
4. The method for optimizing power consumption of integrated circuit design by inserting multi-level clock gating according to claim 1, characterized in that: In S4, the second register group is regrouped based on the common enable signal to form a plurality of third register groups, specifically including: Traversing all enable signals of each register in the second register group; Determine the common enable signal between registers; All registers driven by a common enable signal are divided into one group, thereby forming a plurality of third register groups.
5. The integrated circuit design power consumption optimization method with multi-level clock gating inserted according to claim 1, characterized in that: In S5, the insertion method of the first-level clock gating device is: its clock signal end is connected to the clock signal that drives the third register group, its enable signal end is connected to the corresponding common enable signal EN, and its output end is respectively connected to the clock signal end of each register in the third register group driven by it.
6. The integrated circuit design power consumption optimization method with multi-level clock gating inserted according to claim 5, characterized in that: In S5, the multi-stage clock gating device is inserted in the following manner: its clock signal end is connected to the output end of the previous stage clock gating device, its enable signal end is connected to the corresponding common enable signal EN, and its output end is respectively connected to the clock signal end of each register in the third register group driven by it.
7. The integrated circuit design power consumption optimization method with multi-level clock gating inserted according to claim 6, characterized in that: In S5, in the multi-stage clock gating circuit, when multiple registers in the third register group are driven by different common enable signals EN, the clock signal end of the register is connected to the output end of the clock gating device connected to its corresponding common enable signal EN.
8. A device for implementing a method for optimizing power consumption of integrated circuit design by inserting multi-level clock gating, characterized in that: The device comprises: An acquisition module, used to acquire all registers in the netlist to be analyzed, and record the clock signals and enable signals driving the registers; a grouping module, configured to group the registers driven by the same clock signal in the netlist to be analyzed to form a plurality of first register groups; and to regroup the first register groups based on a trigger mode to form a plurality of second register groups; and to regroup the second register groups based on a common enable signal to form a plurality of third register groups; The gating insertion module is used to screen out the third register group with the largest number of registers driven by the common enable signal from all the third register groups, and insert a first-level clock gating device in front of the third register group; then screen out the third register group with the largest number of registers driven by the common enable signal from the remaining third register groups, and insert a second-level clock gating device in front of the third register group; repeat this operation until there is no common enable signal driving multiple registers in the remaining third register groups.
9. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory storing instructions, which, when executed by the at least one processor, enable the at least one processor to execute the integrated circuit design power consumption optimization method with multi-level clock gating inserted as described in any one of claims 1 to 7.
10. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores executable instructions, which, when executed, enable the machine to execute the integrated circuit design power consumption optimization method by inserting multi-level clock gating according to any one of claims 1 to 7.
Citation Information
Patent Citations
Shift register and memory
CN116978436A
Low-power-consumption processor register file control method
CN110609601A
Clock gating method and system based on register grouping, storage medium and equipment
CN117311446A
