WO2013159464A1 - Multiple core processor clock control device and control method - Google Patents
Multiple core processor clock control device and control method Download PDFInfo
- Publication number
- WO2013159464A1 WO2013159464A1 PCT/CN2012/078946 CN2012078946W WO2013159464A1 WO 2013159464 A1 WO2013159464 A1 WO 2013159464A1 CN 2012078946 W CN2012078946 W CN 2012078946W WO 2013159464 A1 WO2013159464 A1 WO 2013159464A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- clock
- core
- core processor
- monitoring unit
- interrupt signal
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3237—Power saving characterised by the action undertaken by disabling clock generation or distribution
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present invention relates to the field of mobile communication technologies, and in particular, to a multi-core processor clock control device and a control method.
- ARM Advanced RISC Machines
- DSP Digital Signal Processer
- the multi-core architecture solves the problem of insufficient resources on a single-core processor, but it also increases the power consumption of the chip. It is well known that the core processor in the entire terminal chip is the largest power consuming component. When the power consumption of the core processor is poorly controlled, the terminal battery life will be affected, and the user experience will become poor.
- each core processor has different tasks and different working hours. You can use this difference for power control management.
- One of the most direct ways is to use a power supply that does not work. Broken, so the power consumption of the core will be zero, but in practical applications, if the nuclear power is cut off, all information on the core processor will be lost if it is not specially processed, and it needs to be initialized or used again. It is to restore this information and also need to reload the software running on the core, so it is necessary to weigh the power-off operation and restore the power consumption relationship of the operation, otherwise it may not be worth the loss. Therefore, in multi-core processors, the most common method is to break the clock that does not use the core processor.
- the working basic clock is provided by an external crystal oscillator; when multiple cores are not working, the crystal oscillator that provides the clock for the working state of the chip can be turned off to achieve further power saving of the terminal; For the opening of the crystal, only one core needs to work. To turn on the clock of the external crystal and the working core, the clocks of other cores should still be off.
- the following takes a dual-core system as an example to illustrate how to implement chip core clock management in an existing software solution. As shown in Figure 1, the basic terminal communication function is implemented in a dual-core (ARM+DSP) system.
- Embodiments of the present invention provide a multi-core processor clock control apparatus and method, which solves the problem of large power consumption caused by inaccurate clock control methods.
- an embodiment of the present invention provides a multi-core processor clock control apparatus, including N core processors, where N is an integer greater than 1, the device further includes a clock management and control module; And the control module includes N core clock control units, the i-th core clock control unit is connected to the i-th core processor, i is an integer greater than zero; the clock management and control module further includes the N core clocks a clock monitoring unit to which the control units are connected;
- the core clock control unit is configured to receive a core clock shutdown request of a core processor connected thereto and notify the clock monitoring unit;
- the clock monitoring unit is configured to: receive a core clock shutdown request from the core clock control unit, and determine that the received core clock shutdown request is from a core processor of the last one of the N core processors that is in a working state, Turn off the high frequency crystal clock.
- the core clock control unit is further configured to: after receiving a core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, shutting down the core processor of the core processor after two clock cycles delay clock.
- the clock management and control module further includes an interrupt monitoring unit connected to the clock monitoring unit;
- the interrupt monitoring unit is configured to detect a core processor wake-up interrupt signal and detect the core Notifying the clock monitoring unit after the processor wakes up the interrupt signal;
- the clock monitoring unit is further configured to: after receiving the core processor wake-up interrupt signal, determine that the high-frequency crystal oscillator is in a closed state, turn on the high-frequency crystal oscillator, and determine a target core processor of the core processor wake-up interrupt signal, Transmitting the core processor wake-up interrupt signal to a core clock control unit of the target core processor;
- the core clock control unit is further configured to, after receiving the core processor wake-up interrupt signal, turn on the core-gated clock of the core processor connected to the core clock control unit.
- the clock monitoring unit is further configured to: after receiving the core processor wake-up interrupt signal, determine that the high-frequency crystal oscillator is in an on state, determine the target processor of the core processor wake-up interrupt signal, and wake up the core processor A signal is sent to the core clock control unit of the target core processor.
- the clock monitoring unit is further configured to turn on the low frequency crystal oscillator clock after turning off the high frequency crystal oscillator clock.
- the core processor is configured to: upon no task processing, or to determine a request to close the task of the pending task.
- An embodiment of the present invention further provides a multi-core processor clock control method, including: a core clock control unit receives a core clock shutdown request of a core processor connected thereto and notifies a clock monitoring unit, wherein the clock monitoring unit is from the core The clock control unit receives the core clock shutdown request, and determines that the core clock shutdown request is from the last core processor of the N core processors, and turns off the high frequency crystal oscillator clock.
- the method further includes: after receiving the core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, the core clock control unit turns off the core processor gate of the core processor after two clock cycles delay Control the clock.
- the method further includes: the interrupt monitoring unit detecting the core processor wake-up interrupt signal, and notifying the clock monitoring unit after detecting the core processor wake-up interrupt signal;
- the clock monitoring unit After receiving the core processor wake-up interrupt signal, the clock monitoring unit determines that the high-frequency crystal oscillator is in an off state, turns on the high-frequency crystal oscillator, and determines a target core processor that wakes up the interrupt signal of the core processor, and the core is a processor wake-up interrupt signal is sent to a core clock control unit of the target core processor; After receiving the core processor wake-up interrupt signal, the core clock control unit of the target core processor turns on the core-gated clock of the target core processor.
- the method further includes: after the clock monitoring unit receives the core processor wake-up interrupt signal, determining that the high-frequency crystal oscillator is in an on state, determining a target core processor of the core processor wake-up interrupt signal, and the core processor The wake-up interrupt signal is sent to the core clock control unit of the target core processor.
- FIG. 1 is a clock management structure diagram of a dual core system in the related art
- FIG. 2 is a structural diagram of a multi-core processor clock control apparatus in an embodiment of the present invention
- FIG. 3 is a schematic diagram of clock management failure caused by high frequency clock to low frequency clock conversion
- FIG. 4 is a timing diagram of a crystal clock when the clock is off in the embodiment of the present invention
- Fig. 5 is a timing chart showing the state of the crystal oscillator when the clock is turned on in the embodiment of the present invention. Preferred embodiment of the invention
- the multi-core processor clock control apparatus includes N core processors, N is an integer greater than 1, and further includes a clock management and control module, and the clock management and control module includes N core clock control units, the ith
- the core clock control unit is connected to the i-th core processor, i is an integer greater than zero, that is, each core processor is provided with a set of independent nuclear clock control units, and the independent nuclear clock control units can receive the corresponding core processor.
- the transmitted signal is controlled by an independent core clock according to the signal, for example: receiving a core clock off request of the core processor connected thereto and notifying the clock monitoring unit.
- the core clock monitoring unit and the core processor can be connected to each other through a hard wire, and only a simple signal flip is required to indicate the clock off signal.
- a nuclear clock shutdown request is sent to the nuclear clock control unit connected thereto.
- the clock management and control module further includes a clock monitor connected to the N core clock control units a measurement unit, the clock monitoring unit is configured to receive a core clock shutdown request from the core clock control unit, and determine that the core clock shutdown request is from a last core processor in the working state , Turn off the high-frequency crystal clock. That is, when the core processor is in a non-operating state, the high frequency crystal oscillator clock is turned off.
- the clock monitoring unit can save the state of each core processor.
- the apparatus also includes an interrupt monitoring unit coupled to the clock monitoring unit.
- the interrupt monitoring unit is configured to detect a core processor wake-up interrupt signal, and notify the clock monitoring unit after detecting the core processor wake-up interrupt signal; the clock monitoring unit is further configured to receive a core processor wake-up interrupt After the signal is determined, when the high-frequency crystal oscillator is in the off state, the high-frequency crystal oscillator is turned on, the target core processor that determines the core processor wake-up interrupt signal is sent, and the core processor wake-up interrupt signal is sent to the target core processing.
- the core clock control unit is configured to receive a core processor wake-up interrupt After the signal is determined, when the high-frequency crystal oscillator is in the off state, the high-frequency crystal oscillator is turned on, the target core processor that determines the core processor wake-up interrupt signal is sent, and the core processor wake-up interrupt signal is sent to the target core processing.
- the core clock control unit is configured to receive a core processor wake-up interrupt After the signal is determined, when the high-frequency crystal oscillator is in the off state, the high-frequency crystal oscil
- Interrupt signals can be keyboard interrupts, timer interrupts, plug-in interrupts for some peripheral devices, USB interrupts, and more.
- the core clock control unit is further configured to, upon receiving the core processor wake-up interrupt signal, turn on the core-gated clock of the core processor connected thereto.
- the wake-up interrupts of the clock management and control module and the multi-core processor are hooked.
- the wake-up interrupt arrives, the external high-frequency crystal oscillator is opened by the interrupt flip logic, and the interrupt core logic is used to identify the interrupted home core information. Turn on the clock for the corresponding core processor.
- the core clock control unit is further configured to receive a core clock off request of the core processor connected thereto and notify the clock monitoring unit, and then turn off the core processor gate clock of the core processor after two clock cycles delay .
- the control between the clock management and control module and the external crystal oscillator is implemented by hardware logic and is physically connected by hard wires, making the clock off control more precise and fast.
- Clock management and control module connection The external crystal oscillator has a low-frequency crystal oscillator (for example, 32khz) in addition to the high-frequency crystal oscillator.
- the high-frequency crystal oscillator clock and the low-frequency crystal oscillator clock work differently.
- the clock monitoring unit turns off the high-frequency crystal oscillator clock and turns on the low-frequency crystal oscillator clock. The clock switching is to meet the design. demand.
- the clock monitoring unit judges that the condition of turning off the high-frequency crystal oscillator clock is turned off and immediately turns off the external The crystal oscillator, as shown in Figure 3, the closing gate of the core clock of the last closed core processor (such as the core processor X) is actually ineffective.
- the subsequent high-frequency crystal oscillator is turned on, the above-mentioned core processor The clock must be turned on, resulting in an increase in overall processor power consumption.
- the core processor gated clock of the core processor is turned off after two clock cycles delay. In order to enable the signal to be transmitted.
- the clock control circuit and the device clock off timing diagram, the core processor X requests to turn off the core clock, and the send request signal is captured by the clock monitoring unit and judges that the multi-core processor does not need the high-frequency crystal clock, and immediately closes The high-frequency crystal clock is broken, and the core clock needs to be delayed for two clock cycles after the request signal is issued, so that the shutdown clock of the core clock is switched from bus clock 1 to bus clock 2 (32k low-frequency clock).
- the gated clock signal of the core processor X is finally turned off. As shown in FIG.
- the interrupt signal belonging to the core processor Y is captured by the interrupt monitoring unit in the clock control circuit, and it is determined that the external high-frequency clock crystal needs to be turned on, and the clock gating signal of the core processor Y is turned on.
- the core processor X is still inactive and the clock gating is off.
- the multi-core processor clock control method in the present solution includes: the core clock control unit receives a core clock shutdown request of the core processor connected thereto and notifies the clock monitoring unit, and the clock monitoring unit receives the core clock off from the core clock control unit.
- the request is made to close the high frequency crystal oscillator clock when the core clock shutdown request is from the last core processor of the N core processors.
- the method further includes: after receiving the core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, the core clock control unit turns off the core processor gate of the core processor after two clock cycles delay Control the clock.
- the core clock control unit executes two branches, the first branch: sends the core clock shutdown request to The clock monitoring unit, the trigger clock monitoring unit determines whether the core clock shutdown request is a nuclear clock shutdown request issued by the last core processor in operation, thereby triggering the operation of turning off the high frequency crystal oscillator; the second branch delays two clock cycles The core processor gated clock of the core processor is then turned off. If the external crystal oscillator is turned off, the clock sample signal is replaced with a low frequency clock signal to ensure that the clock gating of the last core processor in operation is valid.
- the flow of the core processor clock is: the interrupt monitoring unit detects the core processor wake-up interrupt signal, and notifies the clock monitoring unit after detecting the core processor wake-up interrupt signal; the clock monitoring unit receives the core processor wake-up After the signal is interrupted, when the high-frequency crystal oscillator is turned off, the high-frequency crystal oscillator is turned on (if the high-frequency crystal oscillator is turned on, the following process is directly executed), and the target core processor that determines the core processor wake-up interrupt signal is determined. And sending the core processor wake-up interrupt signal to the core clock control unit of the target core processor; after receiving the core processor wake-up interrupt signal, the target core clock control unit turns on the core-gated clock of the target core processor.
- the embodiments of the present invention save power consumption of the terminal by controlling the clock associated with the core processor.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Power Sources (AREA)
- Microcomputers (AREA)
Abstract
A multi-core processor clock control device and control method. The device comprises an N-number of core processors. The device also comprises a clock management and control module. The clock management and control module comprises an N-number of core clock control units, where the ith core clock control unit is connected to the ith core processor, and where i is an integer greater than zero. The clock management and control module also comprises a clock monitoring unit connected to all of the N-number of core clock control units. The core clock control units are set to receive from the core processor connected thereto a core clock shutdown request and to notify same to the clock monitoring unit. The clock monitoring unit is set to receive from the core clock control units the core clock shutdown request, and to shut down a high-frequency crystal oscillator clock when the core clock shutdown request is determined to have come from the last core processor that is in a working state among the N-number of core processors. The present solution is capable of conserving the power consumption of a terminal by means of controlling core processor-related clocks.
Description
一种多核处理器时钟控制装置及控制方法 Multi-core processor clock control device and control method
技术领域 Technical field
本发明涉及到移动通信技术领域, 尤其涉及一种多核处理器时钟控制装 置及控制方法。 The present invention relates to the field of mobile communication technologies, and in particular, to a multi-core processor clock control device and a control method.
背景技术 Background technique
随着终端硬件技术的不断发展, 芯片集成度的不断提高, 目前, 许多高 端手机的基带处理芯片都釆用多个核处理器架构来实现, 如两个 ARM(Advanced RISC Machines)和两个数字信号处理器(Digital Signal Processer, DSP)的架构。 其中一个 ARM和一个 DSP用来处理移动通信相关 的信令及数据而另外一个 ARM和 DSP则用来实现运用软件及音视频编解 码。 With the continuous development of terminal hardware technology and the continuous improvement of chip integration, many high-end mobile phone baseband processing chips are implemented by multiple core processor architectures, such as two ARM (Advanced RISC Machines) and two numbers. The architecture of the Signal Processor (Digital Signal Processer, DSP). One of the ARM and one DSP is used to process the signaling and data related to mobile communications, while the other ARM and DSP are used to implement software and audio and video codecs.
多核的架构解决了单核处理器资源不足的问题, 却也使得芯片功耗大大 增加。 众所周知整个终端芯片中核处理器是最大的耗电元件, 对核处理器的 功耗控制不佳时, 会影响终端电池寿命, 用户体验也会变得很差。 The multi-core architecture solves the problem of insufficient resources on a single-core processor, but it also increases the power consumption of the chip. It is well known that the core processor in the entire terminal chip is the largest power consuming component. When the power consumption of the core processor is poorly controlled, the terminal battery life will be affected, and the user experience will become poor.
对于多核系统来说, 每个核处理器的工作任务是不同的, 工作时间上存 在差异, 可以利用这种差异性进行功耗控制管理, 最直接的方式之一就是将 不工作的核的电源断掉,这样该核的功耗就将为零,但是在实际应用中来说, 如果将核电源断掉, 如果不特殊处理则该核处理器上所有信息都会丟失, 再 次使用时需要初始化或是恢复这些信息并且对运行在核上的软件也需要重新 加载, 因此需要权衡断电操作和恢复操作耗电关系, 否则可能得不偿失。 所 以, 在多核处理器中, 最常用的方法是断掉不使用核处理器的时钟, 这种方 式中, 虽然不工作核的功耗没有直降为零, 但是大部分的动态功耗已经不存 在 (没有时钟驱动信号翻转)而仅剩下芯片的漏电功耗, 这部分功耗在芯片设 计中进行保证, 力求符合工艺设计的最低功耗。 For multi-core systems, each core processor has different tasks and different working hours. You can use this difference for power control management. One of the most direct ways is to use a power supply that does not work. Broken, so the power consumption of the core will be zero, but in practical applications, if the nuclear power is cut off, all information on the core processor will be lost if it is not specially processed, and it needs to be initialized or used again. It is to restore this information and also need to reload the software running on the core, so it is necessary to weigh the power-off operation and restore the power consumption relationship of the operation, otherwise it may not be worth the loss. Therefore, in multi-core processors, the most common method is to break the clock that does not use the core processor. In this way, although the power consumption of the non-working core does not drop directly to zero, most of the dynamic power consumption is no longer There is no clock drive signal flipping and only the chip's leakage power is left. This part of the power consumption is guaranteed in the chip design to meet the minimum power consumption of the process design.
需要注意的是, 对于多核的芯片系统来说, 其工作基本时钟由一个外部 晶振提供; 当多个核都不工作时, 才能关闭为芯片工作状态提供时钟的晶振 达到终端进一步省电的目的; 而对于晶振的打开, 是仅一个核需要工作则需
要打开外部晶振和工作核的时钟,而其它核的时钟都应该仍然处于关闭状态。 下面以双核系统为例, 阐述一下现有软件方案中如何实现芯片核时钟管 理。 如图 1 所示, 以双核 ( ARM+DSP ) 系统实现基本的终端通信功能。 当 其中核处理器 X不工作时,将核处理器 X的状态通知至核处理器 Y,核处理 器 Y操作寄存器关闭核处理器 X的时钟, 而当核处理器 Y需要转为不工作 状态时, 通过 SPI口写寄存器关闭外部晶振。 这样的操作方式增加了额外的 功耗, 随着核处理器的增多, 软件的操作方式使得核间通信机制复杂, 芯片 总线设计复杂。 发明内容 It should be noted that for a multi-core chip system, the working basic clock is provided by an external crystal oscillator; when multiple cores are not working, the crystal oscillator that provides the clock for the working state of the chip can be turned off to achieve further power saving of the terminal; For the opening of the crystal, only one core needs to work. To turn on the clock of the external crystal and the working core, the clocks of other cores should still be off. The following takes a dual-core system as an example to illustrate how to implement chip core clock management in an existing software solution. As shown in Figure 1, the basic terminal communication function is implemented in a dual-core (ARM+DSP) system. When the core processor X is not working, the state of the core processor X is notified to the core processor Y, and the core processor Y operates to close the clock of the core processor X, and when the core processor Y needs to be turned into an inactive state When the SPI port is written to the register, the external crystal is turned off. This mode of operation adds extra power consumption. With the increase of the number of core processors, the operation mode of the software makes the inter-core communication mechanism complicated, and the chip bus design is complicated. Summary of the invention
本发明实施方式提供一种多核处理器时钟控制装置及方法, 解决对时钟 控制方法不精细而造成的功耗大的问题。 Embodiments of the present invention provide a multi-core processor clock control apparatus and method, which solves the problem of large power consumption caused by inaccurate clock control methods.
为了解决上述技术问题, 本发明实施方式提供了一种多核处理器时钟控 制装置, 包括 N个核处理器, N为大于 1的整数, 所述装置还包括时钟管理 和控制模块; 所述时钟管理和控制模块包括 N个核时钟控制单元, 第 i个核 时钟控制单元与第 i个核处理器相连, i为大于零的整数; 所述时钟管理和控 制模块还包括与所述 N个核时钟控制单元均相连的时钟监测单元; In order to solve the above technical problem, an embodiment of the present invention provides a multi-core processor clock control apparatus, including N core processors, where N is an integer greater than 1, the device further includes a clock management and control module; And the control module includes N core clock control units, the i-th core clock control unit is connected to the i-th core processor, i is an integer greater than zero; the clock management and control module further includes the N core clocks a clock monitoring unit to which the control units are connected;
所述核时钟控制单元设置为接收与其相连的核处理器的核时钟关闭请求 并通知至所述时钟监测单元; The core clock control unit is configured to receive a core clock shutdown request of a core processor connected thereto and notify the clock monitoring unit;
所述时钟监测单元设置为:从所述核时钟控制单元接收核时钟关闭请求, 判断所接收的核时钟关闭请求来自于所述 N个核处理器中最后一个处于工作 状态的核处理器时, 关闭高频晶振时钟。 The clock monitoring unit is configured to: receive a core clock shutdown request from the core clock control unit, and determine that the received core clock shutdown request is from a core processor of the last one of the N core processors that is in a working state, Turn off the high frequency crystal clock.
所述核时钟控制单元还设置为: 接收与其相连的核处理器的核时钟关闭 请求并通知至所述时钟监测单元后, 延迟两个时钟周期后关闭所述核处理器 的核处理器门控时钟。 The core clock control unit is further configured to: after receiving a core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, shutting down the core processor of the core processor after two clock cycles delay clock.
所述时钟管理和控制模块还包括与所述时钟监测单元相连的中断监测单 元; The clock management and control module further includes an interrupt monitoring unit connected to the clock monitoring unit;
所述中断监测单元设置为检测核处理器唤醒中断信号, 并在检测到核处
理器唤醒中断信号后通知至所述时钟监测单元; The interrupt monitoring unit is configured to detect a core processor wake-up interrupt signal and detect the core Notifying the clock monitoring unit after the processor wakes up the interrupt signal;
所述时钟监测单元还设置为: 收到核处理器唤醒中断信号后, 判断高频 晶振是关闭状态时, 开启所述高频晶振, 确定所述核处理器唤醒中断信号的 目标核处理器, 将所述核处理器唤醒中断信号发送至所述目标核处理器的核 时钟控制单元; The clock monitoring unit is further configured to: after receiving the core processor wake-up interrupt signal, determine that the high-frequency crystal oscillator is in a closed state, turn on the high-frequency crystal oscillator, and determine a target core processor of the core processor wake-up interrupt signal, Transmitting the core processor wake-up interrupt signal to a core clock control unit of the target core processor;
所述核时钟控制单元还设置为收到核处理器唤醒中断信号后, 开启与该 核时钟控制单元相连的核处理器的核门控时钟。 The core clock control unit is further configured to, after receiving the core processor wake-up interrupt signal, turn on the core-gated clock of the core processor connected to the core clock control unit.
所述时钟监测单元还设置为收到核处理器唤醒中断信号后, 判断高频晶 振是开启状态时, 确定所述核处理器唤醒中断信号的目标核处理器, 将所述 核处理器唤醒中断信号发送至所述目标核处理器的核时钟控制单元。 The clock monitoring unit is further configured to: after receiving the core processor wake-up interrupt signal, determine that the high-frequency crystal oscillator is in an on state, determine the target processor of the core processor wake-up interrupt signal, and wake up the core processor A signal is sent to the core clock control unit of the target core processor.
所述时钟监测单元还设置为关闭高频晶振时钟后开启低频晶振时钟。 所述核处理器设置为: 在无任务处理时, 或者在判断至待处理任务的执 钟关闭请求。 The clock monitoring unit is further configured to turn on the low frequency crystal oscillator clock after turning off the high frequency crystal oscillator clock. The core processor is configured to: upon no task processing, or to determine a request to close the task of the pending task.
本发明实施方式还提供一种多核处理器时钟控制方法, 其包括: 核时钟 控制单元接收与其相连的核处理器的核时钟关闭请求并通知至时钟监测单 元, 所述时钟监测单元从所述核时钟控制单元接收核时钟关闭请求, 判断所 述核时钟关闭请求来自于 N个核处理器中最后一个处于工作状态的核处理器 时, 关闭高频晶振时钟。 An embodiment of the present invention further provides a multi-core processor clock control method, including: a core clock control unit receives a core clock shutdown request of a core processor connected thereto and notifies a clock monitoring unit, wherein the clock monitoring unit is from the core The clock control unit receives the core clock shutdown request, and determines that the core clock shutdown request is from the last core processor of the N core processors, and turns off the high frequency crystal oscillator clock.
该方法还包括: 所述核时钟控制单元接收与其相连的核处理器的核时钟 关闭请求并通知至所述时钟监测单元后, 延迟两个时钟周期后关闭所述核处 理器的核处理器门控时钟。 The method further includes: after receiving the core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, the core clock control unit turns off the core processor gate of the core processor after two clock cycles delay Control the clock.
该方法还包括: 中断监测单元检测核处理器唤醒中断信号, 并在检测到 核处理器唤醒中断信号后通知至所述时钟监测单元; The method further includes: the interrupt monitoring unit detecting the core processor wake-up interrupt signal, and notifying the clock monitoring unit after detecting the core processor wake-up interrupt signal;
所述时钟监测单元收到核处理器唤醒中断信号后, 判断高频晶振是关闭 状态时, 开启所述高频晶振, 确定所述核处理器唤醒中断信号的目标核处理 器, 将所述核处理器唤醒中断信号发送至所述目标核处理器的核时钟控制单 元; 以及
所述目标核处理器的核时钟控制单元收到核处理器唤醒中断信号后, 开 启所述目标核处理器的核门控时钟。 After receiving the core processor wake-up interrupt signal, the clock monitoring unit determines that the high-frequency crystal oscillator is in an off state, turns on the high-frequency crystal oscillator, and determines a target core processor that wakes up the interrupt signal of the core processor, and the core is a processor wake-up interrupt signal is sent to a core clock control unit of the target core processor; After receiving the core processor wake-up interrupt signal, the core clock control unit of the target core processor turns on the core-gated clock of the target core processor.
该方法还包括: 所述时钟监测单元收到核处理器唤醒中断信号后, 判断 高频晶振是开启状态时, 确定所述核处理器唤醒中断信号的目标核处理器, 将所述核处理器唤醒中断信号发送至所述目标核处理器的核时钟控制单元。 The method further includes: after the clock monitoring unit receives the core processor wake-up interrupt signal, determining that the high-frequency crystal oscillator is in an on state, determining a target core processor of the core processor wake-up interrupt signal, and the core processor The wake-up interrupt signal is sent to the core clock control unit of the target core processor.
本方案可以通过对核处理器相关时钟的控制节省终端的功耗。 附图概述 This solution can save power consumption of the terminal by controlling the clock related to the core processor. BRIEF abstract
图 1是相关技术中双核系统的时钟管理结构图; 1 is a clock management structure diagram of a dual core system in the related art;
图 2是本发明实施例中多核处理器时钟控制装置的结构图; 2 is a structural diagram of a multi-core processor clock control apparatus in an embodiment of the present invention;
图 3是未进行高频时钟到低频时钟转换导致的时钟管理失效的示意图; 图 4是本发明实施例中晶振时钟关闭时的时序示意图; 3 is a schematic diagram of clock management failure caused by high frequency clock to low frequency clock conversion; FIG. 4 is a timing diagram of a crystal clock when the clock is off in the embodiment of the present invention;
图 5是本发明实施例中晶振时钟打开时的时序示意图。 本发明的较佳实施方式 Fig. 5 is a timing chart showing the state of the crystal oscillator when the clock is turned on in the embodiment of the present invention. Preferred embodiment of the invention
如图 2所示, 多核处理器时钟控制装置包括 N个核处理器, N为大于 1 的整数, 还包括时钟管理和控制模块, 时钟管理和控制模块包括 N个核时钟 控制单元,第 i个核时钟控制单元与第 i个核处理器相连, i为大于零的整数, 即为每个核处理器提供一套独立的核时钟控制单元, 这些独立的核时钟控制 单元能够接收相应核处理器发送的信号并且根据信号进行独立的核时钟的控 制, 例如: 接收与其相连的核处理器的核时钟关闭请求并通知至时钟监测单 元。 As shown in FIG. 2, the multi-core processor clock control apparatus includes N core processors, N is an integer greater than 1, and further includes a clock management and control module, and the clock management and control module includes N core clock control units, the ith The core clock control unit is connected to the i-th core processor, i is an integer greater than zero, that is, each core processor is provided with a set of independent nuclear clock control units, and the independent nuclear clock control units can receive the corresponding core processor. The transmitted signal is controlled by an independent core clock according to the signal, for example: receiving a core clock off request of the core processor connected thereto and notifying the clock monitoring unit.
核时钟监测单元与核处理器通过通过硬线相连, 仅需要简单的信号翻转 就能表示时钟关闭信号。 大于预设时间门限值时向与其相连的核时钟控制单元发送核时钟关闭请求。 The core clock monitoring unit and the core processor can be connected to each other through a hard wire, and only a simple signal flip is required to indicate the clock off signal. When the preset time threshold is greater than the preset time threshold, a nuclear clock shutdown request is sent to the nuclear clock control unit connected thereto.
时钟管理和控制模块还包括与所述 N个核时钟控制单元均相连的时钟监
测单元, 所述时钟监测单元设置为从所述核时钟控制单元接收核时钟关闭请 求,判断所述核时钟关闭请求来自于所述 Ν个核处理器中最后一个处于工作 状态的核处理器时, 关闭高频晶振时钟。 即在所述核处理器均处于非工作状 态时, 关闭高频晶振时钟。 时钟监测单元可以保存各个核处理器的状态。 The clock management and control module further includes a clock monitor connected to the N core clock control units a measurement unit, the clock monitoring unit is configured to receive a core clock shutdown request from the core clock control unit, and determine that the core clock shutdown request is from a last core processor in the working state , Turn off the high-frequency crystal clock. That is, when the core processor is in a non-operating state, the high frequency crystal oscillator clock is turned off. The clock monitoring unit can save the state of each core processor.
所述装置还包括与所述时钟监测单元相连的中断监测单元。 The apparatus also includes an interrupt monitoring unit coupled to the clock monitoring unit.
所述中断监测单元设置为检测核处理器唤醒中断信号, 并在检测到核处 理器唤醒中断信号后通知至所述时钟监测单元; 所述时钟监测单元还设置为 在收到核处理器唤醒中断信号后, 判断高频晶振是关闭状态时, 开启所述高 频晶振, 确定所述核处理器唤醒中断信号的目标核处理器, 将所述核处理器 唤醒中断信号发送至所述目标核处理器的核时钟控制单元。 当然, 所述中断 监测单元收到核处理器唤醒中断信号后, 判断高频晶振是开启状态时, 直接 确定所述核处理器唤醒中断信号的目标核处理器, 将所述核处理器唤醒中断 信号发送至所述目标核处理器的核时钟控制单元。 The interrupt monitoring unit is configured to detect a core processor wake-up interrupt signal, and notify the clock monitoring unit after detecting the core processor wake-up interrupt signal; the clock monitoring unit is further configured to receive a core processor wake-up interrupt After the signal is determined, when the high-frequency crystal oscillator is in the off state, the high-frequency crystal oscillator is turned on, the target core processor that determines the core processor wake-up interrupt signal is sent, and the core processor wake-up interrupt signal is sent to the target core processing. The core clock control unit. Of course, after receiving the core processor wake-up interrupt signal, the interrupt monitoring unit determines that the high-frequency crystal oscillator is in an on state, directly determines the target core processor of the core processor wake-up interrupt signal, and wakes up the core processor. A signal is sent to the core clock control unit of the target core processor.
中断信号可以是键盘中断、定时器中断、一些外围器件的插拔中断、 USB 中断等。 Interrupt signals can be keyboard interrupts, timer interrupts, plug-in interrupts for some peripheral devices, USB interrupts, and more.
所述核时钟控制单元还设置为在收到核处理器唤醒中断信号后, 开启与 其相连的核处理器的核门控时钟。 The core clock control unit is further configured to, upon receiving the core processor wake-up interrupt signal, turn on the core-gated clock of the core processor connected thereto.
时钟管理和控制模块和多核处理器的各个唤醒中断挂接, 当唤醒中断到 来时, 通过中断翻转逻辑实现外部提供工作时钟高频晶振的打开, 并且通过 中断翻转逻辑识别中断归属核信息, 从而可以打开对应核处理器的时钟。 这 些处理过程通过硬件信号线上的翻转逻辑实现, 不需要额外的时钟。 The wake-up interrupts of the clock management and control module and the multi-core processor are hooked. When the wake-up interrupt arrives, the external high-frequency crystal oscillator is opened by the interrupt flip logic, and the interrupt core logic is used to identify the interrupted home core information. Turn on the clock for the corresponding core processor. These processes are implemented by flip logic on the hardware signal line and do not require an additional clock.
所述核时钟控制单元还设置为接收与其相连的核处理器的核时钟关闭请 求并通知至所述时钟监测单元后, 延迟两个时钟周期后关闭所述核处理器的 核处理器门控时钟。 The core clock control unit is further configured to receive a core clock off request of the core processor connected thereto and notify the clock monitoring unit, and then turn off the core processor gate clock of the core processor after two clock cycles delay .
下面详细说明设置本功能的原因: The reasons for setting this function are detailed below:
时钟管理和控制模块和外部晶振间的控制通过硬件逻辑实现, 物理上由 硬线连接, 使得时钟关闭控制更加精细和快速。 时钟管理和控制模块连接的
外部晶振除了高频晶振外还有低频晶振(例如 32khz ) 。 高频晶振时钟和低 频晶振时钟不同时工作, 高频晶振时钟开启时本模块一直釆用高频时钟工作, 时钟监测单元关闭高频晶振时钟后开启低频晶振时钟, 时钟切换是为了满足 设计上的需求。 如果只使用高频晶振时钟, 当多核系统最后一个关闭的核处 理器通过核时钟控制单元将时钟关闭信号发送至时钟监测单元后, 时钟监测 单元判断满足关闭高频晶振时钟的条件则立即关闭外部晶振, 如图 3所示, 其中最后一个关闭的核处理器 (例如核处理器 X ) 的核时钟的关闭门控实际 上是没有起效的, 在后续高频晶振开启时, 上述核处理器的时钟必被开启, 导致整个处理器功耗增大。 所以本方案中设置核时钟控制单元接收与其相连 的核处理器的核时钟关闭请求并通知至所述时钟监测单元后, 延迟两个时钟 周期后关闭所述核处理器的核处理器门控时钟 ,是为了使信号能够传输完毕。 The control between the clock management and control module and the external crystal oscillator is implemented by hardware logic and is physically connected by hard wires, making the clock off control more precise and fast. Clock management and control module connection The external crystal oscillator has a low-frequency crystal oscillator (for example, 32khz) in addition to the high-frequency crystal oscillator. The high-frequency crystal oscillator clock and the low-frequency crystal oscillator clock work differently. When the high-frequency crystal oscillator clock is turned on, the module always uses the high-frequency clock to work. The clock monitoring unit turns off the high-frequency crystal oscillator clock and turns on the low-frequency crystal oscillator clock. The clock switching is to meet the design. demand. If only the high-frequency crystal oscillator clock is used, when the last-closed core processor of the multi-core system sends a clock-off signal to the clock monitoring unit through the core clock control unit, the clock monitoring unit judges that the condition of turning off the high-frequency crystal oscillator clock is turned off and immediately turns off the external The crystal oscillator, as shown in Figure 3, the closing gate of the core clock of the last closed core processor (such as the core processor X) is actually ineffective. When the subsequent high-frequency crystal oscillator is turned on, the above-mentioned core processor The clock must be turned on, resulting in an increase in overall processor power consumption. Therefore, in this solution, after setting the core clock control unit to receive the core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, the core processor gated clock of the core processor is turned off after two clock cycles delay. In order to enable the signal to be transmitted.
如图 4所示的时钟控制电路及装置时钟关闭时序图,核处理器 X请求关 闭核时钟, 发送出请求信号被时钟监测单元捕获并且判断此时多核处理器不 需要高频晶振时钟, 立即关断高频晶振时钟, 而核时钟则需要在发出请求信 号后再延迟两个时钟周期才能关断, 因此核时钟的关断釆样时钟从总线时钟 1切换到总线时钟 2(32k低频时钟), 从而最终关断核处理器 X的门控时钟信 号。 如图 5所示, 归属为核处理器 Y的中断信号被时钟控制电路中的中断监 测单元捕获, 判断需要打开外部高频时钟晶振, 并且打开核处理器 Y的时钟 门控信号, 此过程后核处理器 X仍然处于非工作状态, 时钟门控是关闭的。 从而解决了上述只有高频晶振导致的缺陷。 As shown in FIG. 4, the clock control circuit and the device clock off timing diagram, the core processor X requests to turn off the core clock, and the send request signal is captured by the clock monitoring unit and judges that the multi-core processor does not need the high-frequency crystal clock, and immediately closes The high-frequency crystal clock is broken, and the core clock needs to be delayed for two clock cycles after the request signal is issued, so that the shutdown clock of the core clock is switched from bus clock 1 to bus clock 2 (32k low-frequency clock). Thus, the gated clock signal of the core processor X is finally turned off. As shown in FIG. 5, the interrupt signal belonging to the core processor Y is captured by the interrupt monitoring unit in the clock control circuit, and it is determined that the external high-frequency clock crystal needs to be turned on, and the clock gating signal of the core processor Y is turned on. The core processor X is still inactive and the clock gating is off. Thereby, the above-mentioned defects caused only by the high-frequency crystal oscillator are solved.
本方案中多核处理器时钟控制方法包括: 核时钟控制单元接收与其相连 的核处理器的核时钟关闭请求并通知至时钟监测单元, 所述时钟监测单元从 所述核时钟控制单元接收核时钟关闭请求, 判断所述核时钟关闭请求来自于 N个核处理器中最后一个处于工作状态的核处理器时, 关闭高频晶振时钟。 The multi-core processor clock control method in the present solution includes: the core clock control unit receives a core clock shutdown request of the core processor connected thereto and notifies the clock monitoring unit, and the clock monitoring unit receives the core clock off from the core clock control unit. The request is made to close the high frequency crystal oscillator clock when the core clock shutdown request is from the last core processor of the N core processors.
本方法还包括: 所述核时钟控制单元接收与其相连的核处理器的核时钟 关闭请求并通知至所述时钟监测单元后, 延迟两个时钟周期后关闭所述核处 理器的核处理器门控时钟。 The method further includes: after receiving the core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, the core clock control unit turns off the core processor gate of the core processor after two clock cycles delay Control the clock.
核时钟控制单元接收与其相连的核处理器的核时钟关闭请求并通知至所 述时钟监测单元后, 执行两个分支, 第一分支: 将此核时钟关闭请求发送至
时钟监测单元, 触发时钟监测单元判断此核时钟关闭请求是否是最后一个处 于工作状态的核处理器发出的核时钟关闭请求, 从而触发关闭高频晶振的操 作; 第二分支,延迟两个时钟周期后关闭所述核处理器的核处理器门控时钟, 如果此时外部晶振关闭则时钟釆样信号换成低频时钟信号, 确保最后一个处 于工作状态的核处理器的时钟门控生效。 After receiving the core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, the core clock control unit executes two branches, the first branch: sends the core clock shutdown request to The clock monitoring unit, the trigger clock monitoring unit determines whether the core clock shutdown request is a nuclear clock shutdown request issued by the last core processor in operation, thereby triggering the operation of turning off the high frequency crystal oscillator; the second branch delays two clock cycles The core processor gated clock of the core processor is then turned off. If the external crystal oscillator is turned off, the clock sample signal is replaced with a low frequency clock signal to ensure that the clock gating of the last core processor in operation is valid.
核处理器时钟打开的流程包括: 中断监测单元检测核处理器唤醒中断信 号, 并在检测到核处理器唤醒中断信号后通知至所述时钟监测单元; 所述时 钟监测单元收到核处理器唤醒中断信号后, 判断高频晶振是关闭状态时, 开 启所述高频晶振(如果高频晶振是开启状态时, 则直接执行下面流程) , 确 定所述核处理器唤醒中断信号的目标核处理器, 将所述核处理器唤醒中断信 号发送至所述目标核处理器的核时钟控制单元; 目标核时钟控制单元收到核 处理器唤醒中断信号后, 开启目标核处理器的核门控时钟。 The flow of the core processor clock is: the interrupt monitoring unit detects the core processor wake-up interrupt signal, and notifies the clock monitoring unit after detecting the core processor wake-up interrupt signal; the clock monitoring unit receives the core processor wake-up After the signal is interrupted, when the high-frequency crystal oscillator is turned off, the high-frequency crystal oscillator is turned on (if the high-frequency crystal oscillator is turned on, the following process is directly executed), and the target core processor that determines the core processor wake-up interrupt signal is determined. And sending the core processor wake-up interrupt signal to the core clock control unit of the target core processor; after receiving the core processor wake-up interrupt signal, the target core clock control unit turns on the core-gated clock of the target core processor.
需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互任意组合。 It should be noted that the features in the embodiments and the embodiments of the present application may be arbitrarily combined with each other without conflict.
当然, 本申请还可有其他多种实施例, 在不背离本发明精神及其实质的 情况下, 熟悉本领域的技术人员可根据本申请作出各种相应的改变和变形, 但这些相应的改变和变形都应属于本申请所附的权利要求的保护范围。 There are a variety of other embodiments that can be made by those skilled in the art without departing from the spirit and scope of the invention. And modifications are intended to fall within the scope of the appended claims.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本申请不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. This application is not limited to any specific form of combination of hardware and software.
工业实用性 本发明实施方式通过对核处理器相关时钟的控制节省了终端的功耗。
Industrial Applicability The embodiments of the present invention save power consumption of the terminal by controlling the clock associated with the core processor.
Claims
1、 一种多核处理器时钟控制装置, 包括 N个核处理器, N为大于 1的 整数, 其特征在于, 所述装置还包括时钟管理和控制模块; 其中, A multi-core processor clock control device, comprising N core processors, wherein N is an integer greater than 1, wherein the device further comprises a clock management and control module;
所述时钟管理和控制模块包括 N个核时钟控制单元, 第 i个核时钟控制 单元与第 i个核处理器相连, i为大于零的整数; The clock management and control module includes N core clock control units, and the i-th core clock control unit is connected to the i-th core processor, where i is an integer greater than zero;
所述时钟管理和控制模块还包括与所述 N个核时钟控制单元均相连的时 钟监测单元; The clock management and control module further includes a clock monitoring unit connected to the N core clock control units;
所述核时钟控制单元设置为接收与其相连的核处理器的核时钟关闭请求 并通知至所述时钟监测单元; The core clock control unit is configured to receive a core clock shutdown request of a core processor connected thereto and notify the clock monitoring unit;
所述时钟监测单元设置为:从所述核时钟控制单元接收核时钟关闭请求, 判断所接收的核时钟关闭请求来自于所述 N个核处理器中最后一个处于工作 状态的核处理器时, 关闭高频晶振时钟。 The clock monitoring unit is configured to: receive a core clock shutdown request from the core clock control unit, and determine that the received core clock shutdown request is from a core processor of the last one of the N core processors that is in a working state, Turn off the high frequency crystal clock.
2、 如权利要求 1所述的装置, 其中, 2. The apparatus according to claim 1, wherein
所述核时钟控制单元还设置为: 接收与其相连的核处理器的核时钟关闭 请求并通知至所述时钟监测单元后, 延迟两个时钟周期后关闭所述核处理器 的核处理器门控时钟。 The core clock control unit is further configured to: after receiving a core clock shutdown request of the core processor connected thereto and notifying the clock monitoring unit, shutting down the core processor of the core processor after two clock cycles delay clock.
3、 如权利要求 1所述的装置, 其中, 3. The apparatus according to claim 1, wherein
所述时钟管理和控制模块还包括与所述时钟监测单元相连的中断监测单 元; The clock management and control module further includes an interrupt monitoring unit connected to the clock monitoring unit;
所述中断监测单元设置为检测核处理器唤醒中断信号, 并在检测到核处 理器唤醒中断信号后通知至所述时钟监测单元; The interrupt monitoring unit is configured to detect a core processor wake-up interrupt signal, and notify the clock monitoring unit after detecting the core processor wake-up interrupt signal;
所述时钟监测单元还设置为: 收到核处理器唤醒中断信号后, 判断高频 晶振是关闭状态时, 开启所述高频晶振, 确定所述核处理器唤醒中断信号的 目标核处理器, 将所述核处理器唤醒中断信号发送至所述目标核处理器的核 时钟控制单元; The clock monitoring unit is further configured to: after receiving the core processor wake-up interrupt signal, determine that the high-frequency crystal oscillator is in a closed state, turn on the high-frequency crystal oscillator, and determine a target core processor of the core processor wake-up interrupt signal, Transmitting the core processor wake-up interrupt signal to a core clock control unit of the target core processor;
所述核时钟控制单元还设置为收到核处理器唤醒中断信号后, 开启与该 核时钟控制单元相连的核处理器的核门控时钟。 The core clock control unit is further configured to, after receiving the core processor wake-up interrupt signal, turn on a core-gated clock of the core processor connected to the core clock control unit.
4、 如权利要求 3所述的装置, 其中, 4. The apparatus according to claim 3, wherein
所述时钟监测单元还设置为收到核处理器唤醒中断信号后, 判断高频晶 振是开启状态时, 确定所述核处理器唤醒中断信号的目标核处理器, 将所述 核处理器唤醒中断信号发送至所述目标核处理器的核时钟控制单元。 The clock monitoring unit is further configured to: after receiving the core processor wake-up interrupt signal, determine that the high-frequency crystal oscillator is in an on state, determine the target processor of the core processor wake-up interrupt signal, and wake up the core processor A signal is sent to the core clock control unit of the target core processor.
5、 如权利要求 1所述的装置, 其中, 5. The apparatus according to claim 1, wherein
所述时钟监测单元还设置为关闭高频晶振时钟后开启低频晶振时钟。 The clock monitoring unit is further configured to turn on the low frequency crystal oscillator clock after turning off the high frequency crystal oscillator clock.
6、 如权利要求 1所述的装置, 其中, 6. The apparatus according to claim 1, wherein
所述核处理器设置为: 在无任务处理时, 或者在判断至待处理任务的执 钟关闭请求。 The core processor is configured to: upon no task processing, or to determine a request to close the task of the pending task.
7、 一种多核处理器时钟控制方法, 其包括: 7. A multi-core processor clock control method, comprising:
核时钟控制单元接收与其相连的核处理器的核时钟关闭请求并通知至时 钟监测单元,所述时钟监测单元从所述核时钟控制单元接收核时钟关闭请求, 判断所述核时钟关闭请求来自于 N个核处理器中最后一个处于工作状态的核 处理器时, 关闭高频晶振时钟。 The core clock control unit receives a core clock shutdown request of the core processor connected thereto and notifies the clock monitoring unit, the clock monitoring unit receives a core clock shutdown request from the core clock control unit, and determines that the core clock shutdown request is from When the last of the N core processors is in the working core processor, the high frequency crystal clock is turned off.
8、 如权利要求 7所述的方法, 其还包括: 8. The method of claim 7 further comprising:
所述核时钟控制单元接收与其相连的核处理器的核时钟关闭请求并通知 至所述时钟监测单元后, 延迟两个时钟周期后关闭所述核处理器的核处理器 门控时钟。 After receiving the core clock off request of the core processor connected thereto and notifying the clock monitoring unit, the core clock control unit turns off the core processor gate clock of the core processor after two clock cycles.
9、 如权利要求 7所述的方法, 其还包括: 9. The method of claim 7 further comprising:
中断监测单元检测核处理器唤醒中断信号, 并在检测到核处理器唤醒中 断信号后通知至所述时钟监测单元; The interrupt monitoring unit detects the core processor wake-up interrupt signal, and notifies the clock monitoring unit after detecting the core processor wake-up interrupt signal;
所述时钟监测单元收到核处理器唤醒中断信号后, 判断高频晶振是关闭 状态时, 开启所述高频晶振, 确定所述核处理器唤醒中断信号的目标核处理 器, 将所述核处理器唤醒中断信号发送至所述目标核处理器的核时钟控制单 元; 以及 After receiving the core processor wake-up interrupt signal, the clock monitoring unit determines that the high-frequency crystal oscillator is in an off state, turns on the high-frequency crystal oscillator, and determines a target core processor that wakes up the interrupt signal of the core processor, and the core is a processor wake-up interrupt signal is sent to a core clock control unit of the target core processor;
所述目标核处理器的核时钟控制单元收到核处理器唤醒中断信号后, 开 启所述目标核处理器的核门控时钟。 After the core clock control unit of the target core processor receives the core processor wake-up interrupt signal, The core-gated clock of the target core processor is started.
10、 如权利要求 9所述的方法, 其还包括: 10. The method of claim 9 further comprising:
所述时钟监测单元收到核处理器唤醒中断信号后, 判断高频晶振是开启 状态时, 确定所述核处理器唤醒中断信号的目标核处理器, 将所述核处理器 唤醒中断信号发送至所述目标核处理器的核时钟控制单元。 After receiving the core processor wake-up interrupt signal, the clock monitoring unit determines that the high-frequency crystal oscillator is in an on state, determines a target core processor that wakes up the interrupt signal of the core processor, and sends the core processor wake-up interrupt signal to A core clock control unit of the target core processor.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210127746.XA CN103376877B (en) | 2012-04-26 | 2012-04-26 | A kind of multi-core processor clock control device and control method |
CN201210127746.X | 2012-04-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013159464A1 true WO2013159464A1 (en) | 2013-10-31 |
Family
ID=49462103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/078946 WO2013159464A1 (en) | 2012-04-26 | 2012-07-20 | Multiple core processor clock control device and control method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103376877B (en) |
WO (1) | WO2013159464A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105353827A (en) * | 2014-08-22 | 2016-02-24 | 中兴通讯股份有限公司 | Control method and apparatus and functional board |
CN104238413B (en) * | 2014-09-05 | 2017-02-01 | 四川和芯微电子股份有限公司 | External crystal oscillator judging circuit of SOC system chip |
CN106681472B (en) * | 2016-10-20 | 2019-08-23 | 南方电网科学研究院有限责任公司 | heterogeneous multi-core processor power consumption control device and power consumption control method thereof |
CN106774808B (en) * | 2016-12-22 | 2019-11-26 | 杭州朔天科技有限公司 | A kind of multistage low-power consumption administrative unit and its method of multi-core chip |
CN113776647A (en) * | 2021-10-14 | 2021-12-10 | 四川大学 | Wireless vibration monitoring device and monitoring method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1645955A (en) * | 2005-01-17 | 2005-07-27 | 上海贝豪通讯电子有限公司 | Power supply managing and electricity saving method for TD-SCDMA mobile phone |
CN101539797A (en) * | 2008-03-18 | 2009-09-23 | 联芯科技有限公司 | Method, system and device for controlling dynamic clock and power supply |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060212677A1 (en) * | 2005-03-15 | 2006-09-21 | Intel Corporation | Multicore processor having active and inactive execution cores |
US8954977B2 (en) * | 2008-12-09 | 2015-02-10 | Intel Corporation | Software-based thread remapping for power savings |
-
2012
- 2012-04-26 CN CN201210127746.XA patent/CN103376877B/en active Active
- 2012-07-20 WO PCT/CN2012/078946 patent/WO2013159464A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1645955A (en) * | 2005-01-17 | 2005-07-27 | 上海贝豪通讯电子有限公司 | Power supply managing and electricity saving method for TD-SCDMA mobile phone |
CN101539797A (en) * | 2008-03-18 | 2009-09-23 | 联芯科技有限公司 | Method, system and device for controlling dynamic clock and power supply |
Also Published As
Publication number | Publication date |
---|---|
CN103376877B (en) | 2017-12-01 |
CN103376877A (en) | 2013-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10268261B2 (en) | Methods and apparatus for managing power with an inter-processor communication link between independently operable processors | |
US11029748B2 (en) | Adaptive peripheral component interconnect express link substate initiation for optimal performance and power savings | |
CN101539797B (en) | Method, system and device for controlling dynamic clock and power supply | |
US6308279B1 (en) | Method and apparatus for power mode transition in a multi-thread processor | |
US10089263B2 (en) | Synchronization of interrupt processing to reduce power consumption | |
USRE46193E1 (en) | Distributed power control for controlling power consumption based on detected activity of logic blocks | |
KR20140025556A (en) | Method and apparatus to reduce idle link power in a platform | |
TW201643607A (en) | Methods and systems for coordination of operating states amongst multiple SOCs within a computing device | |
US9329658B2 (en) | Block-level sleep logic | |
WO2013159464A1 (en) | Multiple core processor clock control device and control method | |
CN106681472A (en) | Heterogeneous multi-core processor power consumption control device and power consumption control method thereof | |
CN105487638B (en) | Electronic circuit system and method for reducing power consumption | |
CN106063304B (en) | System and method for message-based fine-grained system-on-chip power gating | |
CN101581963A (en) | Method for reducing CPU power consumption and CPU | |
CN104750223A (en) | Method and system for reducing memory access power consumption of multi-core terminal | |
US7266708B2 (en) | System for idling a processor pipeline wherein the fetch stage comprises a multiplexer for outputting NOP that forwards an idle signal through the pipeline | |
CN103700184B (en) | The control method of multi-spectral money counting and checking machine machine in multilevel sleep mode | |
TWI873544B (en) | Dynamic management method and dynamic management system for active state power management mechanism | |
KR101896494B1 (en) | Power management in computing devices | |
CN118796291B (en) | Host awakening method | |
CN119536108A (en) | Programmable controller, electronic device and control method | |
CN113760092A (en) | A detection method applied to human-computer interaction in low-power mode | |
CN119536110A (en) | Programmable controller, electronic device and control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12875505 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12875505 Country of ref document: EP Kind code of ref document: A1 |