Power consumption control device and method for memory in chip and chip
By introducing a fuse controller and a power consumption control module into the chip, the memory is divided into multiple areas to achieve smaller-granularity disabling control of SRAM, solving the problem of difficulty in reducing static power consumption in the existing technology, and achieving flexibility and efficiency. power consumption management.
Patent Information
- Application Number
- CN202410749858.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult to effectively reduce the static power consumption of the SRAM in the chip with the existing technology. It can only reduce the dynamic power consumption, and after the SRAM is disabled, the entire SRAM cannot be read or written.
By introducing a fuse controller and a power consumption control module into the chip, the memory is divided into multiple areas, and the configuration signal is used to output power-off and power-on signals to the target area and non-target area respectively to achieve smaller-granularity disable control and reduce static power consumption.
It achieves flexible and efficient power consumption control of the memory, reduces static power consumption, and allows non-target areas to alternately enter power-off and active modes after disabling the target area, further reducing power consumption.
Smart Images

Figure CN118607422A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of chip design, and in particular to a power consumption control device, method and chip for an on-chip memory. Background Art
[0002] In chips, the size of memory is usually controlled by a fuse mechanism, for example, allowing users to disable certain SRAM (Static Random-Access Memory) according to their needs. Since the disabled SRAM cannot store data, this can save system resources and improve overall performance.
[0003] Currently, SRAM can be disabled by gating the clock to turn off the clock signal of the SRAM controller, or by disabling the reset signal of the SRAM controller. However, the above disabling methods will cause the entire SRAM to be unable to read or write, and the above disabling methods can only reduce the dynamic power consumption of the SRAM, but cannot reduce the static power consumption caused by leakage current. Summary of the invention
[0004] The embodiments of the present application provide a power consumption control device, method and chip for an on-chip memory, which utilize a fuse controller and a power consumption control module to implement smaller-granularity disabling control of the memory, so as to control the power consumption of the memory more flexibly and efficiently.
[0005] In a first aspect, a power consumption control device for an on-chip memory is provided, wherein the memory is divided into a plurality of areas, at least one of each of the areas being a target area that needs to be disabled, the device comprising a fuse controller and a power consumption control module, the fuse controller being used to provide a configuration signal to the power consumption control module and a memory controller of the memory in response to a power-on signal to the chip, the configuration signal characterizing a target area that needs to be disabled and a non-target area that does not need to be disabled in the memory; the power consumption control module being used to output a first power-on signal to a domain where the memory is located, a first power-off signal to the target area, and a second power-on signal to the non-target area according to the configuration signal, so as to configure the target area to a power-off mode and the non-target area to an active mode.
[0006] In a second aspect, a method for controlling power consumption of a memory in a chip is provided, wherein the memory is divided into a plurality of areas, at least one of each of the areas is a target area that needs to be disabled, and a fuse controller and a power consumption control module are provided in the chip, the method comprising: in response to a power-on signal to the chip, using the fuse controller to provide a configuration signal to the power consumption control module and a memory controller of the memory, wherein the configuration signal represents a target area that needs to be disabled and a non-target area that does not need to be disabled in the memory; using the power consumption control module to output a first power-on signal to the domain where the memory is located, a first power-off signal to the target area, and a second power-on signal to the non-target area in each of the areas except the target area, so as to configure the target area to a power-off mode and the non-target area to an active mode.
[0007] According to a third aspect, a chip is provided, comprising a processor, a memory, and a power consumption control device for the on-chip memory as described in the first aspect.
[0008] By applying the above technical solution, the fuse controller and the power consumption control module are used to implement smaller granularity disabling control of the memory, and the static power consumption of the memory can be reduced, thereby achieving more flexible and efficient power consumption control of the memory. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] 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.
[0010] Figure 1 A schematic diagram of the structure of a power consumption control device for an on-chip memory according to an embodiment of the present application;
[0011] Figure 2 A flowchart of a method for controlling power consumption of an on-chip memory according to an embodiment of the present application;
[0012] Figure 3 A flowchart of a method for controlling power consumption of an on-chip memory according to another embodiment of the present application;
[0013] Figure 4 The principle of the power consumption control method of the on-chip memory of the embodiment of the present application is shown as follows Figure 1 ;
[0014] Figure 5 The principle of the power consumption control method of the on-chip memory of the embodiment of the present application is shown as follows Figure 2 ;
[0015] Figure 6 A timing diagram of controlling a target area to enter a power-off mode according to an embodiment of the present application;
[0016] Figure 7 This is a timing diagram for controlling a non-target area to alternately enter a power-off mode and an active mode in a low power consumption mode in an embodiment of the present application;
[0017] Figure 8 This is a structural block diagram of the chip according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] Various aspects and features of the present application are described herein with reference to the accompanying drawings.
[0019] 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 the embodiments. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.
[0020] 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.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] 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.
[0025] 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.
[0026] A power consumption control device for an on-chip memory in an embodiment of the present application divides the memory into multiple areas, utilizes a fuse controller and a power consumption control module to implement smaller-granularity disabling control of the memory, and can reduce the static power consumption of the memory, thereby achieving more flexible and efficient power consumption control of the memory.
[0027] The memory is divided into a plurality of regions, at least one of which is a target region to be disabled, such as Figure 1 As shown, the device includes a fuse controller 10 and a power consumption control module 20.
[0028] The fuse controller 10 is used to provide a configuration signal to the power consumption control module 20 and the memory controller of the memory 30 in response to a power-on signal to the chip, wherein the configuration signal represents a target area that needs to be disabled and a non-target area that does not need to be disabled in the memory 30;
[0029] The power consumption control module 20 is used to output a first power-on signal to the domain where the memory 30 is located, output a first power-off signal to the target area, and output a second power-on signal to the non-target area according to the configuration signal, so as to configure the target area to a power-off mode and the non-target area to an active mode.
[0030] In this embodiment, the memory 30 is divided into a plurality of regions, and the sizes of the regions can be the same or different. One or more regions can be set as target regions to be disabled, and the target regions will be configured in a power-off mode after the chip is powered on, thereby reducing the static power consumption of the memory 30.
[0031] The power-on signal of the chip can be triggered automatically or manually by the user. In response to the power-on signal, the fuse controller 10 provides a configuration signal to the power consumption control module 20 and the memory controller of the memory 30, so that the power consumption control module 20 and the memory controller determine the target area that needs to be disabled and the non-target area that does not need to be disabled in the memory 30. After that, the power consumption control module 20 outputs a first power-on signal to the domain where the memory 30 is located according to the configuration signal to power on the domain where the memory 30 is located; outputs a first power-off signal to the target area to configure the target area to a power-off mode; and outputs a second power-on signal to the non-target area to configure the non-target area to an active mode. Among them, the domain where the memory 30 is located is the hardware domain where the memory 30 is located. The hardware domain is a collection of a group of hardware resources. There may be multiple hardware domains in the chip.
[0032] For example, if the memory 30 includes four areas, namely area 0, area 1, area 2 and area 3, among which area 0 is the target area that needs to be disabled and the other areas are non-target areas, the power consumption control module 20 outputs a first power-on signal to the domain where the memory 30 is located according to the configuration signal to power on the domain where the memory 30 is located; outputs a first power-off signal to area 0 to configure area 0 to the power-off mode; and outputs a second power-on signal to area 1, area 2 and area 3 to configure area 1, area 2 and area 3 to the active mode.
[0033] It is understandable that when the target area is in the power-off mode, it is in a disabled state and cannot be read or written to, and when the non-target area is in the active mode, it is in a non-disabled state and can be read or written to.
[0034] The power consumption control device of the on-chip memory of the embodiment of the present application includes a fuse controller and a power consumption control module. The fuse controller is used to respond to the power-on signal of the chip and provide a configuration signal to the power consumption control module and the memory controller of the memory. The configuration signal represents the target area that needs to be disabled and the non-target area that does not need to be disabled in the memory; the power consumption control module is used to output a first power-on signal to the domain where the memory is located, output a first power-off signal to the target area, and output a second power-on signal to the non-target area according to the configuration signal, so as to configure the target area to a power-off mode and the non-target area to an active mode. The fuse controller and the power consumption control module are used to realize the disabling control of the memory with a smaller granularity, and reduce the static power consumption of the memory, thereby realizing more flexible and efficient power consumption control of the memory.
[0035] In some embodiments of the present application, the power consumption control module 20 is further used to:
[0036] In response to the low power control signal for entering the low power mode, the second power-off signal and the first power-on signal are alternately output to the domain where the memory 30 is located according to a preset timing, and the first power-off signal and the second power-on signal are alternately output to the non-target area to control the non-target area to alternately enter the power-off mode and the active mode.
[0037] In order to further reduce the power consumption of the memory 30, after disabling the target area, the memory 30 can also be put into a low power consumption mode. The low power consumption control signal can be automatically triggered when the trigger condition is met, or it can be manually triggered by the user. In response to the low power consumption control signal, the power consumption control module 20 alternately outputs the second power-off signal and the first power-on signal to the domain where the memory 30 is located according to a preset timing, and alternately outputs the first power-off signal and the second power-on signal to the non-target area, so as to control the non-target area to alternately enter the power-off mode and the active mode.
[0038] For example, if the memory 30 includes four areas, namely area 0, area 1, area 2 and area 3, among which area 0 is the target area that needs to be disabled and the other areas are non-target areas, then after area 0 enters the power-off mode, in response to the low-power control signal, the power consumption control module 20 alternately outputs the second power-off signal and the first power-on signal to the domain where the memory 30 is located according to a preset timing, and alternately outputs the first power-off signal and the second power-on signal to area 1, area 2 and area 3, so as to control area 1, area 2 and area 3 to synchronously alternately enter the power-off mode and the active mode.
[0039] By making the non-target area that is not disabled enter the power-off mode and the active mode alternately, the memory 30 enters the low power consumption mode, thereby further reducing the power consumption of the memory 30.
[0040] In some embodiments of the present application, the power consumption control module 20 is used to output a first power-off signal to the non-target area, and then the enable signal of the domain where the memory 30 is located is set high, and then the power consumption control module 20 is used to output a second power-off signal to the domain where the memory 30 is located, so that the non-target area enters the power-off mode;
[0041] The power consumption control module 20 is used to output a first power-on signal to the domain where the memory 30 is located, and then the power consumption control module 20 is used to output a second power-on signal to the non-target area, and then the enable signal of the domain where the memory 30 is located is set low, so that the non-target area enters the active mode.
[0042] In this embodiment, when the memory 30 enters the low power consumption mode, the power consumption control module 20 is first used to output a first power-off signal to the non-target area to power off the non-target area, and then the enable signal of the domain where the memory 30 is located is set high to clamp the signal output by the domain where the memory 30 is located to other domains in the chip to a certain value, and then the power consumption control module 20 is used to output a second power-off signal to the domain where the memory 30 is located to power off the domain where the memory 30 is located, so that the non-target area can reliably enter the power-off mode.
[0043] The power consumption control module 20 is first used to output a first power-on signal to the domain where the memory 30 is located, so that the domain where the memory 30 is located is powered on, and then the power consumption control module 20 is used to output a second power-on signal to the non-target area, so that the non-target area is powered on, and then the enable signal of the domain where the memory 30 is located is set low to release the clamp on the signal output by the domain where the memory 30 is located to other areas, so that the non-target area can reliably enter the active mode.
[0044] In some embodiments of the present application, the memory 30 is a static random access memory 30, the second power-on signal is determined by a low-level first sub-signal and a high-level second sub-signal and a third sub-signal, and the first power-off signal is determined by a high-level first sub-signal, a second sub-signal and a third sub-signal.
[0045] In this embodiment, the memory 30 is a static random access memory, i.e., SRAM, and the second power-on signal and the first power-off signal are determined by the first sub-signal, the second sub-signal, and the third sub-signal. The second sub-signal and the third sub-signal are always at a high level, and when the first sub-signal is at a low level, the second power-on signal is obtained, and when the first sub-signal is at a high level, the first power-off signal is obtained, thereby improving the reliability of the second power-on signal and the first power-off signal.
[0046] It should be noted that the type of the above memory 30 and the method of determining the second power-on signal and the first power-off signal are only a specific implementation method of the embodiment of the present application. Those skilled in the art may also adopt other types of memory 30 and determine the matching second power-on signal and the first power-off signal according to different types of memory 30.
[0047] In the specific application scenario of the present application, taking the TSMC 22ULL-GL SRAM memory as an example, the first signal is sram_pg_en, the second signal is sram_ret1n, and the third signal is sram_ret2n.
[0048] In some embodiments of the present application, each area is configured with a first power switch, the first power-off signal is used to disconnect the first power switch of the target area, and the second power-on signal is used to close the first power switch of the non-target area.
[0049] In this embodiment, by providing the first power switch in each area, more flexible and efficient power consumption control can be achieved by controlling the on and off of the first power switches in different areas.
[0050] In some embodiments of the present application, a second power switch is provided in the domain where the memory 30 is located, the second power-off signal is used to disconnect the second power switch, and the first power-on signal is used to close the second power switch.
[0051] In this embodiment, the second power switch is the power switch of the domain where the memory 30 is located. When the second power switch is closed, the domain where the memory 30 is located is powered on. When the second power switch is opened, the domain where the memory 30 is located is powered on and off. By setting the second power switch, more reliable control of powering on and off of the domain where the memory 30 is located can be achieved.
[0052] The embodiment of the present application also proposes a method for controlling power consumption of a memory in a chip, wherein the memory is divided into a plurality of regions, at least one of the regions is a target region to be disabled, and a fuse controller and a power consumption control module are provided in the chip, such as Figure 2 As shown, the method comprises the following steps:
[0053] Step S101, in response to a power-on signal to the chip, using the fuse controller to provide a configuration signal to the power consumption control module and the memory controller of the memory, wherein the configuration signal represents a target area in the memory that needs to be disabled and a non-target area that does not need to be disabled.
[0054] In this embodiment, the memory is divided into multiple areas, and the sizes of the areas can be the same or different. One or more areas can be set as target areas that need to be disabled, and the target areas will be configured in power-off mode after the chip is powered on, thereby reducing the static power consumption of the memory.
[0055] The power-on signal of the chip can be triggered automatically or manually by the user. In response to the power-on signal, the fuse controller is used to provide a configuration signal to the power consumption control module and the memory controller of the memory, so that the power consumption control module and the memory controller determine the target area in the memory that needs to be disabled and the non-target area that does not need to be disabled.
[0056] Step S102, using the power consumption control module to output a first power-on signal to the domain where the memory is located, a first power-off signal to the target area, and a second power-on signal to the non-target area, so as to configure the target area to a power-off mode and the non-target area to an active mode.
[0057] In this embodiment, according to the configuration signal, the power consumption control module is used to output a first power-on signal to the domain where the memory is located to power on the domain where the memory is located; a first power-off signal is output to the target area to configure the target area to a power-off mode; and a second power-on signal is output to the non-target area to configure the non-target area to an active mode.
[0058] The power consumption control method of the on-chip memory of the embodiment of the present application divides the memory into multiple areas, utilizes a fuse controller and a power consumption control module to implement smaller-granularity disabling control of the memory, and can reduce the static power consumption of the memory, thereby achieving more flexible and efficient power consumption control of the memory.
[0059] In some embodiments of the present application, Figure 3 As shown, the following steps are also included:
[0060] Step S103, in response to the low power control signal for entering the low power mode, the power consumption control module is used to alternately output the second power-off signal and the first power-on signal to the domain where the memory is located according to a preset timing, and alternately output the first power-off signal and the second power-on signal to the non-target area, so as to control the non-target area to alternately enter the power-off mode and the active mode.
[0061] In this embodiment, in order to further reduce the power consumption of the memory, after disabling the target area, the memory can also be put into a low power consumption mode. The low power consumption control signal can be automatically triggered when the trigger condition is met, or it can be manually triggered by the user. In response to the low power consumption control signal, the power consumption control module is used to alternately output the second power-off signal and the first power-on signal to the domain where the memory is located according to a preset timing, and alternately output the first power-off signal and the second power-on signal to the non-target area, so as to control the non-target area to alternately enter the power-off mode and the active mode.
[0062] The memory is put into a low power mode by alternately placing the non-target areas that are not disabled into a power-down mode and an active mode, thereby further reducing the power consumption of the memory.
[0063] In some embodiments of the present application, the power consumption control module is used to alternately output the second power-off signal and the first power-on signal to the domain where the memory is located according to a preset timing, and alternately output the first power-off signal and the second power-on signal to the non-target area, so as to control the non-target area to alternately enter the power-off mode and the active mode, including:
[0064] By using the power consumption control module to output a first power-off signal to the non-target area, then setting the enable signal of the domain where the memory is located high, and then using the power consumption control module to output a second power-off signal to the domain where the memory is located, the non-target area enters a power-off mode;
[0065] The power consumption control module is used to output a first power-on signal to the domain where the memory is located, and then the power consumption control module is used to output a second power-on signal to the non-target area, and then the enable signal of the domain where the memory is located is set low, so that the non-target area enters the active mode.
[0066] In this embodiment, when the memory enters the low power consumption mode, the power consumption control module is first used to output a first power-off signal to the non-target area to power off the non-target area, and then the enable signal of the domain where the memory is located is set high to clamp the signal output by the domain where the memory is located to other domains in the chip to a certain value, and then the power consumption control module is used to output a second power-off signal to the domain where the memory is located to power off the domain where the memory is located, thereby allowing the non-target area to reliably enter the power-off mode.
[0067] The power consumption control module is first used to output a first power-on signal to the domain where the memory is located, so that the domain where the memory is located is powered on, and then the power consumption control module is used to output a second power-on signal to the non-target area, so that the non-target area is powered on, and then the enable signal of the domain where the memory is located is set low to release the clamp on the signal output by the domain where the memory is located to other areas, so that the non-target area can reliably enter the active mode.
[0068] In some embodiments of the present application, the memory is a static random access memory, the second power-on signal is determined by a low-level first sub-signal and a high-level second and third sub-signals, and the first power-off signal is determined by a high-level first sub-signal, a second sub-signal, and a third sub-signal.
[0069] In this embodiment, the memory is a static random access memory, i.e., SRAM, and the second power-on signal and the first power-off signal are determined by the first sub-signal, the second sub-signal, and the third sub-signal. The second sub-signal and the third sub-signal are always at a high level, and when the first sub-signal is at a low level, the second power-on signal is obtained, and when the first sub-signal is at a high level, the first power-off signal is obtained, thereby improving the reliability of the second power-on signal and the first power-off signal.
[0070] It should be noted that the above memory type and the method of determining the second power-on signal and the first power-off signal are only a specific implementation method of the embodiment of the present application. Those skilled in the art may also adopt other types of memory and determine the matching second power-on signal and the first power-off signal according to different types of memory.
[0071] In some embodiments of the present application, it also includes:
[0072] In response to an access request to the target area, the memory controller is used to output an interrupt signal indicating illegal access to a processor of the chip.
[0073] In this embodiment, since the memory controller receives the configuration signal output from the fuse controller, the memory controller can determine the disabled target area. When receiving an access request to the target area, since the target area is a disabled area and cannot be read or written, the memory controller is used to output an interrupt signal representing illegal access to the processor of the chip, so that the processor determines that the access to the target area is an illegal access.
[0074] In order to further explain the technical idea of the present application, the technical solution of the present invention is now described in combination with specific application scenarios.
[0075] The present application embodiment provides a power consumption control device for a memory in a chip, using a static random access memory as a memory, such as Figure 4 As shown, the power consumption control device includes fuse crtl (i.e., fuse controller) and Lp_ctrl (i.e., power consumption control module), the memory is sram, and the memory controller is sramc. Figure 5As shown, the memory is divided into four areas: sram0, sram1, sram2 and sram3, and sram0 is the area that needs to be disabled. Sram0, sram1, sram2 and sram3 are respectively provided with a first power switch pwr, and the area where the memory is located is also provided with a second power switch psw.
[0076] The working process of the power consumption control device is as follows:
[0077] Step S1, in response to a power-on signal to the chip, fuse crtl provides sram_fuse_dis (ie, a configuration signal) indicating disabling sram0 to Lp_ctrl and sramc.
[0078] Step S2, Lp_ctrl outputs pwr_ctrl signal to the memory according to sram_fuse_dis. Specifically, Lp_ctrl outputs pwr_gate (i.e., the first power-on signal) to the domain where the memory is located to close the psw, outputs pwr_crtl0 (i.e., the first power-off signal) to sram0 to disconnect the pwr of sram0, and outputs pwr_crtl1, pwr_crtl2, pwr_crtl3 (i.e., the second power-on signals) to sram1, sram2 and sram3 respectively to close the corresponding pwr, thereby configuring sram0 to the power-off mode and configuring sram1, sram2 and sram3 to the active mode.
[0079] Taking the TSMC 22ULL-GL SRAM memory as an example, pwr_crtl0, pwr_crtl1, pwr_crtl2, and pwr_crtl3 are determined by sram_pg_en, sram_ret1n, and sram_ret2n. Figure 6 As shown, when the chip is powered on, Lp_ctrl makes sram_pg_en_0, sram_ret1n_0 and sram_ret2n_0 corresponding to pwr_crtl0 all high, so that sram0 enters power-down mode, thereby disabling sram0.
[0080] If a low power control signal for entering a low power mode is received, sram1, sram2 and sram3 are alternately put into a power-off mode and an active mode.
[0081] like Figure 7As shown, when the power is off, Lp_ctrl first sets sram_pg_en corresponding to sram1, sram2 and sram3 to 1, and the default values of sram_ret1n and sram_ret2n are 1, so that sram1, sram2 and sram3 are powered off, and then sets the enable signal (iso_en) of the domain where the memory is located high to clamp the signal output by the domain where the memory is located to other domains in the chip to a certain value, and then sets pwr_gate high to disconnect psw, so that sram1, sram2 and sram3 enter the power-off mode;
[0082] When powered on, Lp_ctrl first pulls pwr_gate low to close psw, and then sets sram_pg_en corresponding to sram1, sram2 and sram3 to 0, and the default values of sram_ret1n and sram_ret2n are 1, so that sram1, sram2 and sram3 are powered on, and then pulls iso_en low to release the clamp on the signal output from the domain where the memory is located to other areas, so that sram1, sram2 and sram3 enter active mode.
[0083] In addition, if an access request to sram0 is received, such as Figure 4 As shown, sramc is used to output an interrupt signal access_err_int representing illegal access to the processor of the chip.
[0084] It can be understood that if the memory is not in low power mode, sram1, sram2 and sram3 can be kept in active mode by keeping pwr_gate low, keeping sram_pg_en corresponding to sram1, sram2 and sram3 at 0, and keeping iso_en low.
[0085] By applying the above technical solution, the memory is divided into multiple areas, and the fuse controller and the power consumption control module are used to implement smaller granularity disabling control of the memory, thereby reducing the static power consumption of the memory, thereby achieving the purpose of minimizing power consumption. At the same time, since the number of areas that need to be disabled can be configured, more flexible power consumption control can be achieved.
[0086] The present application also provides a chip, such as Figure 8 As shown, it includes a processor 201, a memory 202 and a power consumption control device 203 of the on-chip memory of each embodiment of the present application.
[0087] The memory may include a RAM (Random Access Memory) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0088] The above-mentioned processor can be a general-purpose processor, including CPU, NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0089] 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.
[0090] 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 power consumption control device for a memory on a chip, characterized in that: The memory is divided into a plurality of regions, at least one of the regions is a target region that needs to be disabled, and the device includes a fuse controller and a power consumption control module. The fuse controller is used to provide a configuration signal to the power consumption control module and the memory controller of the memory in response to a power-on signal to the chip, wherein the configuration signal represents a target area in the memory that needs to be disabled and a non-target area that does not need to be disabled; The power consumption control module is used to output a first power-on signal to the domain where the memory is located, output a first power-off signal to the target area, and output a second power-on signal to the non-target area according to the configuration signal, so as to configure the target area to a power-off mode and the non-target area to an active mode.
2. The power consumption control device of the on-chip memory according to claim 1, characterized in that: The power consumption control module is also used for: In response to a low power control signal for entering a low power mode, a second power-off signal and a first power-on signal are alternately output to the domain where the memory is located according to a preset timing, and a first power-off signal and a second power-on signal are alternately output to the non-target area to control the non-target area to alternately enter a power-off mode and an active mode.
3. The power consumption control device of the on-chip memory according to claim 1, characterized in that: The memory is a static random access memory, the second power-on signal is determined by a low-level first sub-signal and high-level second and third sub-signals, and the first power-off signal is determined by high-level first, second and third sub-signals.
4. The power consumption control device of the on-chip memory according to claim 1, characterized in that: Each of the regions is configured with a first power switch, the first power-off signal is used to turn off the first power switch of the target region, and the second power-on signal is used to turn on the first power switch of the non-target region.
5. A method for controlling power consumption of an on-chip memory, characterized in that: The memory is divided into a plurality of areas, at least one of the areas is a target area that needs to be disabled, a fuse controller and a power consumption control module are provided in the chip, and the method includes: In response to a power-on signal to the chip, using the fuse controller to provide a configuration signal to the power consumption control module and the memory controller of the memory, wherein the configuration signal represents a target area in the memory that needs to be disabled and a non-target area that does not need to be disabled; The power consumption control module is used to output a first power-on signal to the domain where the memory is located, a first power-off signal to the target area, and a second power-on signal to the non-target area, so as to configure the target area to a power-off mode and the non-target area to an active mode.
6. The method for controlling power consumption of an on-chip memory according to claim 5, wherein: Also includes: In response to a low power control signal for entering a low power mode, the power consumption control module is used to alternately output a second power-off signal and a first power-on signal to the domain where the memory is located according to a preset timing, and alternately output a first power-off signal and a second power-on signal to the non-target area, so as to control the non-target area to alternately enter a power-off mode and an active mode.
7. The method for controlling power consumption of an on-chip memory according to claim 6, wherein: The power consumption control module is used to alternately output a second power-off signal and a first power-on signal to the domain where the memory is located according to a preset timing, and alternately output a first power-off signal and a second power-on signal to the non-target area, so as to control the non-target area to alternately enter a power-off mode and an active mode, including: By using the power consumption control module to output a first power-off signal to the non-target area, then setting the enable signal of the domain where the memory is located high, and then using the power consumption control module to output a second power-off signal to the domain where the memory is located, the non-target area enters a power-off mode; The power consumption control module is used to output a first power-on signal to the domain where the memory is located, and then the power consumption control module is used to output a second power-on signal to the non-target area, and then the enable signal of the domain where the memory is located is set low, so that the non-target area enters the active mode.
8. The method for controlling power consumption of an on-chip memory as claimed in claim 5, characterized in that: The memory is a static random access memory, the second power-on signal is determined by a low-level first sub-signal and high-level second and third sub-signals, and the first power-off signal is determined by high-level first, second and third sub-signals.
9. The method for controlling power consumption of an on-chip memory according to claim 5, wherein: Also includes: In response to an access request to the target area, the memory controller is used to output an interrupt signal indicating illegal access to a processor of the chip.
10. A chip, characterized in that: The invention comprises a processor, a memory and a power consumption control device of the on-chip memory as claimed in any one of claims 1 to 4.
