Low-power-consumption control method of chip and chip

By introducing low-power management module, handshake module and bus monitoring module into the chip, the function clock is turned off when there is no data transmission after detecting the data transmission situation, the chip system problem caused by the function module turning off the clock is solved, and the reliability of the chip is improved and power consumption management.

CN119200807APending Publication Date: 2024-12-27BEIJING SEMIDRIVE TECHNOLOGY LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411239581.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In chip design, turning off the functional clock of the functional module may cause the chip system to hang up or make errors, reducing the reliability of the chip, especially when the functional module is still working or being accessed.

Method used

The chip introduces low-power management module, handshake module and bus monitoring module. By detecting the bus and internal data transmission, the function clock is turned off only in response to low-power requests when there is no data transmission, ensuring that the function module enters a low-power state. It does not affect system stability.

Benefits of technology

It effectively avoids chip system hangs or errors caused by shutting off the functional module clock, and improves the chip's operating reliability and power consumption management efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119200807A_ABST
    Figure CN119200807A_ABST
Patent Text Reader

Abstract

The invention discloses a low-power-consumption control method of a chip and the chip, and the method comprises the steps: responding to a low-power-consumption request received from a low-power-consumption management module, and enabling a function module to determine whether bus data transmission corresponding to the function module exists on a bus or not; if bus data transmission does not exist on the bus, the functional module sends a first low-power-consumption confirmation instruction to the bus monitoring module by using a handshake module, so that the bus monitoring module blocks an access request on the bus for the functional module; and if the internal data transmission does not exist in the functional module, the functional module uses the handshake module to close each functional clock corresponding to the functional module, so that the functional module enters a low-power-consumption state. Therefore, chip system hanging or errors caused by closing of the functional clock of the functional module are avoided, the functional module reliably enters a low-power-consumption state, and the operation reliability of the chip is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip technology, and in particular to a low power consumption control method and a chip. Background Art

[0002] In the chip design process, it is often necessary to use various functional modules and circuit components, such as processor cores, memory controllers, peripheral interfaces, etc. These functional modules can be obtained through purchase or licensing, without having to be designed and implemented from scratch. Therefore, these available functional modules are also called IP (intellectual property) modules, which are independent modules with specific functions.

[0003] The functional module may include one or more functional clocks, and the functional module can be put into a low power state by turning off the functional clock. When the functional module needs to be put into a low power state, if the functional module is still working or some processing cores are still accessing the functional module, turning off the functional clock of the functional module may cause the chip system to hang or fail, reducing the reliability of the chip. Summary of the invention

[0004] The embodiment of the present application provides a low-power control method and chip of a chip, so that the functional module will respond to a low-power request to shut down the corresponding functional clocks only when there is no bus data transmission on the corresponding bus and there is no data transmission inside the functional module, so as to improve the operating reliability of the chip.

[0005] In a first aspect, a low-power control method for a chip is provided, wherein the chip is provided with a low-power management module and at least one functional module, wherein the functional module is provided with a handshake module, and a bus monitoring module is provided on a bus connected to the functional module, wherein the method comprises: in response to receiving a low-power request from the low-power management module, the functional module determines whether there is bus data transmission corresponding to itself on the bus; if there is no bus data transmission on the bus, the functional module uses the handshake module to send a first low-power confirmation instruction to the bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus; if there is no internal data transmission in the functional module, the functional module uses the handshake module to shut down each functional clock corresponding to itself, so that the functional module enters a low-power state.

[0006] In some embodiments, each of the functional clocks is controlled to be turned on and off by its own corresponding gated clock module, and the functional module uses the handshake module to turn off each of the functional clocks corresponding to itself, including: the functional module uses the handshake module to send a second low-power confirmation instruction to each of the gated clock modules respectively, so that each of the gated clock modules turns off each of the functional clocks.

[0007] In some embodiments, the functional module receives the low power consumption request through the handshake module, and the functional module uses the handshake module to send a second low power consumption confirmation instruction to each of the gated clock modules respectively, including: the functional module sends a transmission idle message to the handshake module, so that the handshake module sends the second low power consumption confirmation instruction to each of the gated clock modules respectively according to the low power consumption request and the transmission idle message.

[0008] In some embodiments, the functional module receives the low power consumption request through the handshake module, and the functional module uses the handshake module to send a first low power consumption confirmation instruction to the bus monitoring module, including: the functional module sends a bus idle message to the handshake module, so that the handshake module sends the first low power consumption confirmation instruction to the bus monitoring module based on the low power consumption request and the bus idle message.

[0009] In some embodiments, after putting itself into a low power consumption state, it also includes: in response to the low power consumption request becoming an invalid state, the functional module uses the handshake module to make the bus monitoring module stop blocking the access request; the functional module uses the handshake module to start each of the functional clocks to exit the low power consumption state.

[0010] In some embodiments, before using the handshake module to shut down the corresponding functional clocks, it also includes: in response to the low power request becoming invalid, the functional module uses the handshake module to make the bus monitoring module stop blocking the access request.

[0011] In some embodiments, after the functional module determines whether there is bus data transmission corresponding to itself on the bus, it also includes: if the bus data transmission exists on the bus, the functional module waits for the bus data transmission to be completed, and then uses the handshake module to send the first low power confirmation instruction to the bus monitoring module.

[0012] In some embodiments, after the bus monitoring module blocks the access request to the functional module on the bus, it also includes: if the functional module has internal data transmission, the functional module waits for the internal data transmission to be completed, and then uses the handshake module to turn off each functional clock.

[0013] In a second aspect, a chip is provided, wherein the chip is provided with a low power management module and at least one functional module, wherein the functional module is provided with a handshake module, and a bus monitoring module is provided on a bus connected to the functional module, and the functional module is configured to: in response to receiving a low power request from the low power management module, determine whether there is bus data transmission corresponding to itself on the bus; if the bus data transmission does not exist on the bus, use the handshake module to send a first low power confirmation instruction to the bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus; if the functional module does not have internal data transmission, use the handshake module to shut down each functional clock corresponding to itself, so that itself enters a low power state.

[0014] In some embodiments, each of the functional clocks is controlled to be turned on and off by its corresponding gated clock module, and the functional module is specifically configured to: use the handshake module to send a second low-power confirmation instruction to each of the gated clock modules respectively, so that each of the gated clock modules turns off each of the functional clocks.

[0015] By applying the above technical solution, in response to receiving a low-power request from the low-power management module, the functional module determines whether there is bus data transmission corresponding to itself on the bus; if there is no bus data transmission on the bus, the functional module uses the handshake module to send a first low-power confirmation instruction to the bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus; if there is no internal data transmission in the functional module, the functional module uses the handshake module to turn off each functional clock corresponding to itself, so that it enters a low-power state. The functional module responds to the low-power request to turn off each functional clock corresponding to itself only when there is no bus data transmission on the corresponding bus and there is no data transmission inside the functional module, thereby avoiding the chip system hanging or error caused by turning off the functional clock of the functional module, and making the functional module reliably enter the low-power state, thereby improving the operational reliability of the chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0017] Figure 1 A flowchart of a low power consumption control method of a chip according to an embodiment of the present application;

[0018] Figure 2 A flowchart of a low power consumption control method of a chip according to another embodiment of the present application;

[0019] Figure 3 A flowchart of a low power consumption control method of a chip according to another embodiment of the present application;

[0020] Figure 4 A schematic diagram of the principle of a low power consumption control method for a chip according to an embodiment of the present application;

[0021] Figure 5 A timing diagram corresponding to the low power consumption control method of the chip according to an embodiment of the present application;

[0022] Figure 6 This is a schematic diagram of the interface of the handshake module of an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the internal state transition of the handshake module of an embodiment of the present application;

[0024] Figure 8 This is a structural block diagram of the chip according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0026] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0027] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0028] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0029] It should also be understood that although the present application has been described with reference to some specific examples, those skilled in the art will be able to readily implement many other equivalent forms of the present application.

[0030] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0031] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0032] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0033] The low-power control method of the chip in the embodiment of the present application sets a handshake module in the functional module, and sets a bus monitoring module on the bus connected to the functional module, so that the functional module responds to the low-power request to shut down the corresponding functional clocks only when there is no bus data transmission on the corresponding bus and no data transmission inside the functional module, thereby avoiding the chip system hanging or error caused by shutting down the functional clock of the functional module, allowing the functional module to reliably enter the low-power state, thereby improving the operation reliability of the chip.

[0034] The chip is provided with a low power consumption management module and at least one functional module, the functional module is provided with a handshake module, and a bus monitoring module is provided on the bus connected to the functional module. Figure 1 As shown, the method comprises the following steps:

[0035] Step S101 , in response to receiving a low power consumption request from the low power consumption management module, the functional module determines whether there is bus data transmission corresponding to itself on the bus.

[0036] In this embodiment, the chip may be a SoC (System on Chip) or other types of chips. The functional module is also called an IP module, which is an independent module with specific functions, such as a memory controller, a peripheral interface, etc. in the chip. The functional module includes multiple functional clocks, such as a data setting clock, a data transmission clock, etc. A handshake module is provided in the functional module, which can be used to complete a bus handshake related to low power consumption. The functional module is connected to a bus, and the processing core on the chip can send an access request to the functional module through the bus. A bus monitoring module is provided on the bus, which is used to block the access request to the functional module on the bus when the functional module receives a low power consumption request and there is no corresponding bus data transmission on the bus. Among them, each functional module may correspond to a bus, one end of each bus is connected to the corresponding functional module, and the other end is connected to the bus matrix.

[0037] When the function module in the chip needs to enter a low power consumption state to reduce the power consumption of the chip, the low power consumption management module sends a low power consumption request to the function module. In response to the low power consumption request, the function module determines whether there is bus data transmission corresponding to itself on the bus.

[0038] It should be noted that in order to save computing resources in the chip and ensure the reliability of the chip, the low-power management module, handshake module and bus monitoring module in the embodiment of the present application are all hardware modules.

[0039] Step S102: If the bus data transmission does not exist on the bus, the functional module uses the handshake module to send a first low power confirmation instruction to the bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus.

[0040] In this embodiment, when there is no bus data transmission corresponding to the functional module on the bus, it means that the bus connecting the functional module is idle. At this time, the handshake module is used to send a first low-power confirmation instruction to the corresponding bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus. The access request can be an access request from the processing core in the chip to the functional module.

[0041] Step S103: If the functional module does not have internal data transmission, the functional module uses the handshake module to turn off each function clock corresponding to itself, so that the functional module enters a low power consumption state.

[0042] After using the bus monitoring module to block the access request to the functional module on the bus, it is determined whether there is internal data transmission in the functional module. If there is no internal data transmission, it means that the functional module is in an idle state. At this time, the function uses the handshake module to turn off the corresponding functional clocks of itself and put itself into a low-power state, thereby reducing the power consumption of the chip and achieving the purpose of saving power.

[0043] The low-power control method of the chip of the embodiment of the present application, in response to receiving the low-power request of the low-power management module, the functional module determines whether there is bus data transmission corresponding to itself on the bus; if there is no bus data transmission on the bus, the functional module uses the handshake module to send a first low-power confirmation instruction to the bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus; if there is no internal data transmission in the functional module, the functional module uses the handshake module to turn off each functional clock corresponding to itself, so that it enters a low-power state. The functional module is made to respond to the low-power request to turn off each functional clock corresponding to itself only when there is no bus data transmission on the corresponding bus and there is no data transmission inside the functional module, thereby avoiding the chip system hanging or error caused by turning off the functional clock of the functional module, so that the functional module reliably enters the low-power state, thereby improving the operational reliability of the chip.

[0044] In some embodiments of the present application, each of the functional clocks is turned on and off by a corresponding gated clock module, and the functional module uses the handshake module to turn off each of its corresponding functional clocks, including:

[0045] The functional module uses the handshake module to send a second low power consumption confirmation instruction to each of the gated clock modules, so that each of the gated clock modules turns off each of the functional clocks.

[0046] In this embodiment, each functional clock of the functional module corresponds to a gated clock module (CG, clock gate), and the gated clock module is used to turn on or off the corresponding functional clock. In the case that there is no internal data transmission in the functional module, the functional module uses the handshake module to send a second low-power confirmation instruction to each gated clock module, and each gated clock module turns off the corresponding functional clock according to the received second low-power confirmation instruction, thereby realizing more reliable turning off of each functional clock of the functional module.

[0047] In some embodiments of the present application, the functional module receives the low power consumption request through the handshake module, and the functional module uses the handshake module to send a second low power consumption confirmation instruction to each of the gated clock modules, including:

[0048] The functional module sends a transmission idle message to the handshake module, so that the handshake module sends the second low power confirmation instruction to each of the gated clock modules according to the low power request and the transmission idle message.

[0049] In this embodiment, the functional module receives a low-power request through the handshake module. When the low-power request of the low-power management module reaches the functional module, the handshake module can directly detect the low-power request. When there is no internal data transmission in the functional module, the functional module sends a transmission idle message to the handshake module, so that the handshake module sends a second low-power confirmation instruction to each gated clock module according to the low-power request and the transmission idle message, thereby ensuring the accuracy of the second low-power confirmation instruction, and then more reliably shutting down each functional clock of the functional module.

[0050] In some embodiments of the present application, the function module receives the low power consumption request through the handshake module, and the function module uses the handshake module to send a first low power consumption confirmation instruction to the bus monitoring module, including:

[0051] The functional module sends a bus idle message to the handshake module, so that the handshake module sends the first low power consumption confirmation instruction to the bus monitoring module according to the low power consumption request and the bus idle message.

[0052] In this embodiment, the functional module receives a low-power request through the handshake module. When the low-power request of the low-power management module reaches the functional module, the handshake module can directly detect the low-power request. When there is no bus data transmission on the corresponding bus, the functional module sends a bus idle message to the handshake module, so that the handshake module sends a first low-power confirmation instruction to the bus monitoring module according to the low-power request and the bus idle message, thereby ensuring the accuracy of the first low-power confirmation instruction, and then more reliably enabling the bus monitoring module to block the access request to the functional module on the bus.

[0053] Optionally, the low power consumption request may also be sent to the functional module first, and then the functional module forwards the low power consumption request to the handshake module, so that the handshake module performs subsequent operations.

[0054] In some embodiments of the present application, after putting itself into a low power consumption state, such as Figure 2 As shown, the following steps are also included:

[0055] Step S104 , in response to the low power consumption request becoming invalid, the functional module uses the handshake module to make the bus monitoring module stop blocking the access request.

[0056] In this embodiment, when it is necessary to make the functional module exit the low power state, the low power request can be changed to an invalid state. For example, the low power request is valid at a high level and invalid at a low level. If the low power request changes from a high level to a low level, the low power request becomes invalid. In response to the low power request becoming invalid, the functional module restores its own functional clock and exits the low power state. Specifically, the functional module first uses the handshake module to make the bus monitoring module stop blocking the access request and restore the processing core's access to the functional module.

[0057] Step S105 , the functional module uses the handshake module to start each functional clock to exit the low power consumption state.

[0058] In this embodiment, the functional module uses the handshake module to start each functional clock, so that the functional module exits the low power consumption state and enters the normal working state. Specifically, the handshake module uses each gated clock module to start each functional clock.

[0059] Optionally, step S104 and step S105 may be performed sequentially or in parallel.

[0060] By making the low power request invalid, the functional module recovers the corresponding bus transmission and each functional clock, so that the functional module recovers to the normal state quickly, thereby improving the reliability of the chip.

[0061] In some embodiments of the present application, before the handshake module is used to shut down each function clock corresponding to itself, such as Figure 3 As shown, the following steps are also included:

[0062] Step S106 , in response to the low power consumption request becoming invalid, the functional module uses the handshake module to cause the bus monitoring module to stop blocking the access request.

[0063] In this embodiment, before using the handshake module to shut down the corresponding functional clocks, the bus monitoring module has blocked the access request to the functional module on the bus. At this time, if the low-power request becomes invalid, it means that there is no need to make the functional module continue to enter the low-power state. The functional module uses the handshake module to make the bus monitoring module stop blocking the access request. In this way, when the access request to the functional module on the bus has been blocked, the functional module can resume the bus transmission in time, thereby improving the reliability of the chip.

[0064] It is understandable that after executing step S106, it is no longer determined whether there is internal data transmission in the functional module, and step S103 is no longer executed.

[0065] In some embodiments of the present application, after the functional module determines whether there is bus data transmission corresponding to itself on the bus, the method further includes:

[0066] If the bus data transmission exists on the bus, the functional module waits for the bus data transmission to be completed, and then uses the handshake module to send the first low power consumption confirmation instruction to the bus monitoring module.

[0067] In this embodiment, when a low-power request is received, the functional module determines whether there is a bus data transmission corresponding to itself on the bus. If so, it means that the access request to the functional module on the bus cannot be directly blocked at this time. The functional module waits for the bus data transmission to be completed, and then uses the handshake module to send a first low-power confirmation instruction to the bus monitoring module to block the access request to the functional module on the bus, thereby ensuring that the access request is blocked after the bus completes the data transmission, avoiding system hangs or errors, and improving the reliability of the chip.

[0068] In some embodiments of the present application, after enabling the bus monitoring module to block the access request to the functional module on the bus, the method further includes:

[0069] If the functional module has the internal data transmission, the functional module waits for the internal data transmission to be completed and then uses the handshake module to turn off each functional clock.

[0070] In this embodiment, after blocking the access request to the functional module on the bus, if the functional module still has internal data transmission, it means that the functional module is still in a working state. The functional module waits for the internal data transmission to be completed, and then uses the handshake module to turn off each functional clock, thereby ensuring that the functional clock is turned off after the internal data transmission is completed, avoiding system hangs or errors, and improving the reliability of the chip.

[0071] In order to further explain the technical idea of ​​the present application, the technical solution of the present application is now described in combination with specific application scenarios.

[0072] The present application embodiment provides a low power consumption control method for a chip, such as Figure 4As shown, the chip is provided with a low power management module and multiple functional modules (IP1...IPN), a handshake module (HS B, HandshakeBlock) is provided in the functional module, a bus monitoring module (BUS mon1...BUS monN) is provided on the bus connected to the functional module, and the functional module includes multiple functional clocks (IP clk), each functional clock is generated by a clock control module, each functional clock corresponds to a gated clock module (CG, clock gate), each functional module corresponds to a bus, one end of each bus is connected to the corresponding functional module, and the other end is connected to the bus matrix. The following takes the functional module IP1 as an example to illustrate the low power control method of the chip.

[0073] When the chip system enters low power consumption and needs to turn off the function clock of the function module IP1, the low power management module first sends a low power request to the function module IP1. In response to the low power request, the function module IP1 first determines whether there is a bus data transmission corresponding to itself on the bus. If not, the handshake module HS B is used to send a first low power confirmation instruction to the bus monitoring module BUS mon1, so that the bus monitoring module BUS mon1 blocks the access request to the function module IP1 on the bus. Then the function module IP1 completes its own internal data transmission, and uses the handshake module HS B to send a second low power confirmation instruction to each gated clock module (CG11, CG12...CG1N) respectively, so that each gated clock module turns off each functional clock (IP1 clk1, IP1 clk2...IP1 clkN), and the function module IP1 enters a low power state to achieve the purpose of power saving.

[0074] After the functional module IP1 enters the low power state, if the chip exits the low power state and needs to turn on the functional clock of the functional module IP1, the low power request becomes invalid. In response to the low power request becoming invalid, the functional module IP1 uses the handshake module HS B to make the bus monitoring module BUS mon1 stop blocking the access request. At the same time, the functional module IP1 uses the handshake module HS B to make each gated clock module turn on each functional clock to exit the low power state.

[0075] Before the function module IP1 uses the handshake module HS B to shut down the corresponding function clocks, if the low power request becomes invalid, the function module IP1 stops entering the low power state. The function module IP1 uses the handshake module HS B to make the bus monitoring module BUS mon1 stop blocking access requests.

[0076] The low power consumption control methods of the chips corresponding to other functional modules are similar to those of the functional module IP1 and will not be described in detail here.

[0077] like Figure 5 The figure shows a timing diagram corresponding to the low power control method of the chip of the embodiment of the present application. The low power request is in an invalid state at a low level and in a valid state at a high level. The low power confirmation instruction includes a first low power confirmation instruction and a second low power confirmation instruction. When the low power request changes from a low level to a high level, the functional module performs Transfer OFF (blocks access requests to the functional module on the bus) and CLK OFF (turns off the corresponding functional clocks) from the Power On state through the first low power confirmation instruction of the handshake module and the second low power confirmation instruction of the handshake module. When the low power request changes from a high level to a low level, the functional module recovers from the CLK OFF state to the Power On state. Among them, Figure 5 In the figure, 00, 01, and 11 are two binary characters, corresponding to Power On, Transfer OFF, and CLK OFF states, respectively. 2 represents two characters, and b represents the use of binary.

[0078] like Figure 6 The interface diagram of the handshake module of the embodiment of the present application is shown. The handshake module HS B receives its own clock signal, as well as a low-power request, a bus idle message and a transmission idle message. The handshake module HS B outputs a low-power confirmation instruction, including a first low-power confirmation instruction and a second low-power confirmation instruction. After the bus monitoring module blocks the access request to the functional module on the bus, the functional module sends a bus idle message to the handshake module HS B, so that the handshake module sends a first low-power confirmation instruction to the bus monitoring module according to the low-power request and the bus idle message. When there is no internal data transmission in the functional module, the functional module sends a transmission idle message to the handshake module HS B, so that the handshake module HS B sends a second low-power confirmation instruction to each gated clock module according to the low-power request and the transmission idle message.

[0079] like Figure 7 The figure is a schematic diagram of the internal state transition of the handshake module of the embodiment of the present application. The handshake module includes three states: IDLE (idle), BUS OFF (bus off) and CLOCK OFF (clock off).

[0080] When receiving lowpower req&bus idle (i.e., low power request and bus idle message), the handshake module changes from IDLE state to BUS OFF state, and the handshake module sends a first low power confirmation instruction to the bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus; if in the BUS OFF state, lowpower req==0 (i.e., the low power request becomes invalid), the handshake module changes from BUS OFF state to IDLE state, so that the bus monitoring module stops blocking the access request to the functional module on the bus.

[0081] In the BUS OFF state, if lowpower req&trans idle (i.e. low power request and transmission idle message) is received, the handshake module changes from the BUS OFF state to the CLOCK OFF state, and each gated clock module of the handshake module sends a second low power confirmation instruction respectively to turn off each functional clock of the functional module. If in the CLOCK OFF state, lowpower req==0 (i.e. low power request becomes invalid), the handshake module changes from the CLOCK OFF state to the IDLE state, so that the bus monitoring module stops blocking the access request to the functional module on the bus, and turns on each functional clock of the functional module.

[0082] The present application also provides a chip, such as Figure 8 As shown, the chip is provided with a low-power management module and at least one functional module, the functional module is provided with a handshake module, and a bus monitoring module is provided on the bus connected to the functional module, and the functional module is configured to: in response to receiving a low-power request from the low-power management module, determine whether there is bus data transmission corresponding to itself on the bus; if there is no bus data transmission on the bus, use the handshake module to send a first low-power confirmation instruction to the bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus; if there is no internal data transmission in the functional module, use the handshake module to turn off the corresponding functional clocks of itself, so that itself enters a low-power state.

[0083] The chip of the embodiment of the present application is provided with a handshake module in the functional module, and a bus monitoring module is provided on the bus connected to the functional module, so that the functional module responds to a low-power request to shut down its corresponding functional clocks only when there is no bus data transmission on the corresponding bus and no data transmission inside the functional module, thereby avoiding the chip system hanging or error caused by shutting down the functional clock of the functional module, allowing the functional module to reliably enter the low-power state, thereby improving the operating reliability of the chip.

[0084] In a specific application scenario, each of the functional clocks is controlled to be turned on and off by its corresponding gated clock module, and the functional module is specifically configured to: use the handshake module to send a second low-power confirmation instruction to each of the gated clock modules respectively, so that each of the gated clock modules turns off each of the functional clocks.

[0085] In a specific application scenario, the functional module receives the low power consumption request through the handshake module, and the functional module is also specifically configured to: send a transmission idle message to the handshake module, so that the handshake module sends the second low power consumption confirmation instruction to each of the gated clock modules according to the low power consumption request and the transmission idle message.

[0086] In a specific application scenario, the functional module receives the low power consumption request through the handshake module, and the functional module is also specifically configured to: send a bus idle message to the handshake module, so that the handshake module sends the first low power consumption confirmation instruction to the bus monitoring module based on the low power consumption request and the bus idle message.

[0087] In a specific application scenario, the functional module is also configured to: after putting itself into a low power consumption state, in response to the low power consumption request becoming an invalid state, use the handshake module to make the bus monitoring module stop blocking the access request; use the handshake module to start each of the functional clocks to exit the low power consumption state.

[0088] In a specific application scenario, the functional module is also configured to: before using the handshake module to shut down the corresponding functional clocks, in response to the low power request becoming invalid, use the handshake module to make the bus monitoring module stop blocking the access request.

[0089] In a specific application scenario, the functional module is further configured to: if the bus data transmission exists on the bus, after waiting for the bus data transmission to be completed, use the handshake module to send the first low power consumption confirmation instruction to the bus monitoring module.

[0090] In a specific application scenario, the functional module is further configured as follows: if the functional module has internal data transmission, the functional module waits for the internal data transmission to be completed and then uses the handshake module to turn off each functional clock.

[0091] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0092] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A low power consumption control method for a chip, characterized in that: The chip is provided with a low power management module and at least one functional module, the functional module is provided with a handshake module, and a bus monitoring module is provided on a bus connected to the functional module. The method comprises: In response to receiving the low power consumption request from the low power consumption management module, the functional module determines whether there is bus data transmission corresponding to itself on the bus; If the bus data transmission does not exist on the bus, the functional module sends a first low power consumption confirmation instruction to the bus monitoring module by using the handshake module, so that the bus monitoring module blocks the access request to the functional module on the bus; If there is no internal data transmission in the functional module, the functional module uses the handshake module to turn off each function clock corresponding to itself, so that the functional module enters a low power consumption state.

2. The low power consumption control method of a chip as claimed in claim 1, characterized in that: Each of the functional clocks is turned on and off by a corresponding gated clock module, and the functional module uses the handshake module to turn off each of its corresponding functional clocks, including: The functional module uses the handshake module to send a second low power consumption confirmation instruction to each of the gated clock modules, so that each of the gated clock modules turns off each of the functional clocks.

3. The low power consumption control method of a chip as claimed in claim 2, characterized in that: The function module receives the low power consumption request through the handshake module, and the function module uses the handshake module to send a second low power consumption confirmation instruction to each of the gated clock modules, including: The functional module sends a transmission idle message to the handshake module, so that the handshake module sends the second low power confirmation instruction to each of the gated clock modules according to the low power request and the transmission idle message.

4. The low power consumption control method of a chip as claimed in claim 1, characterized in that: The function module receives the low power consumption request through the handshake module, and the function module uses the handshake module to send a first low power consumption confirmation instruction to the bus monitoring module, including: The functional module sends a bus idle message to the handshake module, so that the handshake module sends the first low power consumption confirmation instruction to the bus monitoring module according to the low power consumption request and the bus idle message.

5. The low power consumption control method of a chip as claimed in claim 1, characterized in that: After putting itself into a low-power state, it also includes: In response to the low power consumption request becoming invalid, the functional module uses the handshake module to make the bus monitoring module stop blocking the access request; The functional module uses the handshake module to start each functional clock so as to exit the low power consumption state.

6. The low power consumption control method of a chip as claimed in claim 1, characterized in that: Before using the handshake module to shut down each function clock corresponding to itself, it also includes: In response to the low power consumption request becoming invalid, the functional module uses the handshake module to enable the bus monitoring module to stop blocking the access request.

7. The low power consumption control method of a chip as claimed in claim 1, characterized in that: After the functional module determines whether there is a bus data transmission corresponding to itself on the bus, the function module further includes: If the bus data transmission exists on the bus, the functional module waits for the bus data transmission to be completed, and then uses the handshake module to send the first low power consumption confirmation instruction to the bus monitoring module.

8. The low power consumption control method of a chip as claimed in claim 1, characterized in that: After enabling the bus monitoring module to block the access request to the functional module on the bus, the method further includes: If the functional module has the internal data transmission, the functional module waits for the internal data transmission to be completed and then uses the handshake module to turn off each functional clock.

9. A chip, characterized in that: The chip is provided with a low power consumption management module and at least one functional module, the functional module is provided with a handshake module, a bus monitoring module is provided on a bus connected to the functional module, and the functional module is configured as follows: In response to receiving the low power consumption request from the low power consumption management module, determining whether there is bus data transmission corresponding to itself on the bus; If the bus data transmission does not exist on the bus, using the handshake module to send a first low power confirmation instruction to the bus monitoring module, so that the bus monitoring module blocks the access request to the functional module on the bus; If the functional module does not have internal data transmission, the handshake module is used to turn off the corresponding functional clocks of itself, so that the module enters a low power consumption state.

10. The chip according to claim 9, characterized in that Each of the functional clocks is turned on and off by a corresponding gated clock module, and the functional modules are specifically configured as follows: The handshake module is used to send a second low power consumption confirmation instruction to each of the gated clock modules, so that each of the gated clock modules turns off each of the functional clocks.

Citation Information

Cited By

  • Chip power consumption control method and device, equipment and medium

    CN119987525A

  • Chip, electronic device, and low-power control method

    WO2026145833A1