[go: up one dir, main page]

CN100346268C - Dynamic power consumption management method in information safety SoC based on door control clock - Google Patents

Dynamic power consumption management method in information safety SoC based on door control clock Download PDF

Info

Publication number
CN100346268C
CN100346268C CNB2005100289120A CN200510028912A CN100346268C CN 100346268 C CN100346268 C CN 100346268C CN B2005100289120 A CNB2005100289120 A CN B2005100289120A CN 200510028912 A CN200510028912 A CN 200510028912A CN 100346268 C CN100346268 C CN 100346268C
Authority
CN
China
Prior art keywords
clock
mcu
module
area
modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005100289120A
Other languages
Chinese (zh)
Other versions
CN1752894A (en
Inventor
曾晓洋
吴敏
林一帆
韩军
吴永一
陈俊
张章
郭亚炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Weike Integrated Circuit Co Ltd
Fudan University
Original Assignee
Shanghai Weike Integrated Circuit Co Ltd
Fudan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Weike Integrated Circuit Co Ltd, Fudan University filed Critical Shanghai Weike Integrated Circuit Co Ltd
Priority to CNB2005100289120A priority Critical patent/CN100346268C/en
Publication of CN1752894A publication Critical patent/CN1752894A/en
Application granted granted Critical
Publication of CN100346268C publication Critical patent/CN100346268C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Microcomputers (AREA)

Abstract

本发明属集成电路技术领域,具体为一种信息安全SoC的动态功耗管理方法。信息安全SoC是计算密集型的专用集成电路,主要由微控制器MCU、密码运算单元、真随机数发生器、DMA控制器、存储器、USB接口控制器、总线控制器以及中断控制器、UART控制器和时钟管理模块等必要外设构成。其工作过程决定了并非每一个部件都同时参与工作。本发明根据信息安全SoC的工作过程将其构成模块划分为多个时钟区域,然后用DPM技术的嵌入式软件管理每个时钟区域的时钟供给:对于不参与当前工作的模块完全关闭其时钟输入,在需要参与工作时重新打开时钟供给。本发明中阐述的动态功耗管理技术能极大地降低信息安全SoC的系统功耗。

Figure 200510028912

The invention belongs to the technical field of integrated circuits, and specifically relates to a method for managing dynamic power consumption of an information security SoC. Information security SoC is a calculation-intensive application-specific integrated circuit, mainly controlled by microcontroller MCU, cryptographic operation unit, true random number generator, DMA controller, memory, USB interface controller, bus controller, interrupt controller, and UART Necessary peripherals such as registers and clock management modules. Its working process determines that not every component is involved in the work at the same time. The present invention divides its constituent modules into a plurality of clock regions according to the working process of the information security SoC, and then uses the embedded software of DPM technology to manage the clock supply of each clock region: completely close its clock input for modules not participating in the current work, Turn the clock supply back on when required to engage in work. The dynamic power consumption management technology described in the present invention can greatly reduce the system power consumption of the information security SoC.

Figure 200510028912

Description

Among the information security SoC based on the dynamic power management method of gated clock
Technical field
The invention belongs to technical field of integrated circuits, be specifically related to a kind of dynamic power management (Dynamic Power Management, DPM) method that in the digital integrated circuit system, makes things convenient for realization and performance brilliance.
Technical background
Follow the quickening of global IT application paces, network, especially wired, wireless internet network closely link to each other with people's life, become the indispensable carrier of message exchange in the modern society.Informationalizedly deeply also promoted various Network Based, business developments that electronic information is mutual with network universal, the most representative have ecommerce, E-Government, financial payment, intelligent transportation, interaction entertainment or the like.Popularizing of Network brought convenience for people's life, but brought more potential safety hazard also for simultaneously people's life.Today, the information security issue that produces in the network information exchange become to further promote IT application, accelerating network is badly in need of one of key issue that solves in using.
Information security SoC chip develops and becomes the basis of the chip-scale hardware safety of network information security system just rapidly under this background.And because the difference of application, information security SoC chip is also constantly developed on both direction in the world at present: the one, and the information security SoC chip that the curstomer-oriented end is used, as the USB-key that is used for the identity signature and authenticates; Other direction is towards high-end applications, as the high-end information security SoC chip of broadband network application.Though the safety chip of both direction is very different on arithmetic speed and data throughout, be consistent aspect the reduction system power dissipation.The power consumption that the former wishes chip is low as far as possible prolonging the service time of portable battery, and the latter wish the power consumption of chip low as far as possible with guarantee chip for a long time operate as normal with save heat sink (as fan, heat radiator etc.).
According to the CMOS theory, reduce power consumption, the especially dynamic power consumption of cmos circuit, mainly contain following several method: the upset probability that reduces equivalent capacity, reduction supply voltage, reduction frequency of operation and node.Generally speaking, it is very low to reduce this method of equivalent capacity availability in based on the ASIC of standard cell lib design; Reduce supply voltage and reduce these two kinds of methods of frequency of operation and then can have a negative impact the performance of system.And this method of upset probability of reduction node, the load capacitance of node is high more, and this method is just meaningful more.Two nodes of load maximum are exactly clock signal and global reset signal among the ASIC synchronously.And the probability that global reset signal is overturn in system work process very low (general just can overturn when only powering in system or when logic fault occurring), so the upset of control clock signal node is based on the very effective strategy that reduces power consumption among the SoC of CMOS standard block.
DPM can use minimum activating part (activecomponent) to satisfy demands of applications according to system's duty dynamic-configuration systematic parameter of now, and then improves the energy utilization efficiency of system.The DPM technology has important status in the low power dissipation design field, it is the research emphasis of a lot of colleges and universities, as Stanford Univ USA special DPM research group is arranged; Also be the technology that generally adopts in the present last word, as just having used DPM among the Centrino CPU of Intel.
DPM comprises software section and two aspects of hardware components.Software section is mainly analyzed the duty of current system and then the behavior in system future is made prediction; Hardware components is mainly supported the open and close of the clock signal in each clock zone.
Summary of the invention
The objective of the invention is to propose a kind of simple and dynamic power management method that reliability is high, it changes very little to existing hardware module and software module, and influences system performance hardly.
Information security SoC (System-on-Chip, SoC) be the special IC of computation-intensive, mainly by microcontroller MCU (Micro Controller Unit, MCU), the crypto-operation unit, real random number generator, DMA (Direct MemoryAccess, DMA) controller, storer, USB (Universal Serial Bus, USB) interface controller, bus controller and interruptable controller, (Clock Management Module, CMM) etc. necessary peripheral hardware constitutes for UART (Universal Asynchronous Receiver/Transceiver) controller and Clock management module.Its course of work has determined not to be that each parts all participates in work simultaneously.The present invention is divided into a plurality of clocks zone according to the course of work of information security SoC with its composition module, manage the clock supply in each clock zone then with the embedded software of DPM technology: close its clock input fully for the module that does not participate in work at present, when needs participation work, reopen clock and supply with.
The present invention generally requires certain regional module can be independent of some other (being not all) module work when dividing the clock zone; And the software-controllable scope is included in the clock input that will be subdivided into all modules in clock zone in.
Be complementary with above-mentioned embedded management software, the related hardware part of DPM among the information security SoC that the present invention proposes, comprise an above-mentioned software-accessible by Clock management module (Clock Management Module, CMM) and the microcontroller of an above-mentioned software-accessible (Micro Controller Unit, MCU) wrapper constitutes.The former is in charge of the clock of the functional module of other except MCU among the SoC; The latter is in charge of the clock of MCU itself.
The structure of CMM as shown in Figure 1.It comprises:
The control register assembly 1.1 of a CMM, MCU can and revise it by the APB interface accessing, and its value is closed corresponding clock output for ' 0 ' expression, and corresponding clock output is opened in ' 1 ' expression;
The effective latch assembly 1.2 of low level, it has guaranteed to have only the output when clock signal control registers group part 1.1 during for low level just may have influence on final n# clock output, thereby avoided on clock signal, introducing burr effectively, improved the stability of system;
Import and door assembly 1.3 for one two, it is the functional part of closing/opening clock output;
The functional module element 1.4 that rising edge triggers, for example RSA/ECC coprocessor, dma controller, a real random number generator etc.
For CMM, MCU is by rewriting the control register among the CMM, the clock in each clock zone in the On/Off system neatly.When microcontroller is in idle condition according to certain module of work at present status discovery of system, and this is in sky and closes block of state and still need not participation work in ensuing a period of time, and microcontroller can cut out the clock of this module by the state of a control register of revising the Clock management module so; When microcontroller according to system call algorithm or terminal user's request and needs certain when being in the module participation work of clock closed condition (being " hang-up ") to call the clock closed condition in the following text, microcontroller is at first opened the clock that this is in clock closed condition module by the state of a control register of revising the Clock management module, and then continues this module is operated.
The structure of MCU wrapper as shown in Figure 2.It comprises:
The control register assembly 2.1 of a MCU wrapper inside, it can be rewritten by system bus by MCU, and its state value has been controlled the action of finite state thermomechanical components 2.3, and then realize the clock of On/Off MCU;
An ahb bus controller assemblies 2.2, its constantly sample output control signal of MCU, and convert this control signal to meet the ahb bus agreement bus signals, it returns to MCU with operating result simultaneously;
The finite state thermomechanical components 2.3 of a control MCU wrapper operate as normal, its state exchange has reflected the duty of MCU, therefore this finite state thermomechanical components (2.3) can judge when can close/open the clock of MCU and can not cause misoperation, its output signal is directly received the D end of the effective latch assembly 2.4 of low level, and then realizes the Clock management of MCU;
The effective latch assembly 2.4 of low level, its effect are to guarantee just might close clock when the low level of clock, thereby avoid the burr that may occur;
Import and door assembly 2.5 for one two, it is the functional part of closing/opening clock output.
For MCU wrapper, its on the one hand as the bridge circuit that is connected between MCU and the system bus AHB, promptly converts the interface signal sequential of MCU to the AHB interface sequence, again connecting system bus AHB; Also be an AHB equipment on the other hand, MCU can visit or revise the control register of MCU wrapper inside---be used for closing the clock of MCU itself.If embedded software finds that MCU need not to participate in computing or control in a period of time, then can force MCU itself to hang up by the control register of writing among the MCUwrapper; After MCU was suspended, MCU wrapper began to monitor interrupt request singal; When interrupting request signal, MCU wrapper opens the clock of MCU again, makes MCU handling interrupt affairs in time; After interrupting finishing dealing with, thus scheduler program again the current state of inquiry system judge whether to force once more MCU to hang up.
From foregoing description as can be seen, this DPM method that the present invention proposes need not to change any functional module (as RSA/ECC coprocessor, dma controller, USB controller, TRNG or the like), only needs extra CMM of interpolation and slightly modified MCU wrapper to realize.Therefore it is fit to the SoC design based on standard cell lib (standard celllibrary) very much.
The inventive method be among a kind of information security SoC based on the dynamic power management method of gated clock, it can greatly reduce the system power dissipation of information security SoC.
Description of drawings
Fig. 1 is the structure of Clock management module CM M.
Fig. 2 is a MCU wrapper structural drawing.
Fig. 3 is the clock area dividing diagram of information security SoC.
Number in the figure: 1.1 is the control register assembly of CMM, and 1.2 is the effective latch assembly of low level, and 1.3 is two input and door assemblies, and 1.4 is functional module element; 2.1 be the control storage assembly of MCU wrapper inside, 2.2 is the ahb bus controller assemblies, 2.3 is the finite state thermomechanical components, and 2.4 is the effective latch assembly of low level, and 2.5 is two input and door assemblies; 3.1 be microcontroller, 3.2 be the PSA/ECC coprocessor, 3.3 be dma controller, 3.4 is the program storage module, 3.5 is the data-carrier store module, 3.6 be the real random number generator module, 3.7 be the usb interface controller module, 3.8 is universal asynchronous transfer bus controller module, 3.9 is interruptable controller, 3.10 be the Clock management module, 3.11 are the bridge of AHB to APB.
Embodiment
Further describe the present invention below by an object lesson.
1, at first whole information security SoC system divides is become 9 clock zones (as shown in Figure 3) according to the course of work of system.Wherein the clock of 8 shadow regions is software-controllable, and open all the time with the clock of exterior domain in 8 clock zones.Whether the clock that will make a concrete analysis of each parts among the information security SoC below can be included into the scope of management.
Parts 3.1 are core control part and the arithmetic units among the information security SoC: microcontroller (or MCU), and the numerical operation task is finished in it and program storage (ROM) and data-carrier store (SRAM) collaborative work together; Perhaps control other parts and finish the relevant task of information security algorithm.But for some transmission data tasks in enormous quantities, such as the data in the data-carrier store being transported in the data buffer of RSA/ECC coprocessor, the treatment effeciency of MCU can descend rapidly.At this time need dma controller to quicken the transformation task of batch data.And in the process of dma controller work, the only actually of MCU own is waiting for that DMA has carried all data, and therefore during DMA carrying data, MCU can select to close its clock.Given this process, the present invention independently is divided into clock zone 1 (hereinafter to be referred as zone 1) with MCU.Should be noted that MCU wrapper is not put under zone 1, this mainly is to consider that it is a module of finishing the clock control of MCU, and its circuit scale also very little (the power consumption contribution to entire circuit is very little) allows its clock remain the reliability that opening can improve circuit.
Parts 3.2 are core security engines of information security SoC: the RSA/ECC coprocessor, it comprises coprocessor microinstruction storage and coprocessor data-carrier store, can finish signature/verification and encrypt/decrypt task.Because only it just need participate in work when carrying out safe calculation task, the RSA/ECC coprocessor can be comprised that therefore coprocessor microinstruction storage and coprocessor data-carrier store include clock zone 2 (hereinafter to be referred as zone 2) in.
Parts 3.3 are dma controllers, and it is used for quickening the carrying work of batch data.Different with the dma controller on the ordinary meaning is that the work of the dma controller among the present invention is finished by MCU control fully.When scheduler program need to find the carrying batch data, MCU at first told the size of dma controller data source and destination address and data block, and then the work of startup dma controller---dma controller can the application system bus before this.In view of the course of work and the condition of dma controller, the present invention includes dma controller in clock zone 3 (hereinafter to be referred as zone 3).
Parts 3.6 are that (True Random Number Generator, TRNG) module mainly produce the random number that performance is very high at random and use for " safe calculation task " real random number generator.Information security SoC needs the situation of random number to have two kinds: when generating RSA PKI and private key; During the ECC signature.The working method of information security SoC has determined system in a single day to obtain effective random number, and the task of TRNG just declares to be finished thereupon.Therefore the TRNG most of the time all is in " dormancy " state, and the present invention includes it in clock zone 6 (hereinafter to be referred as zone 6).
Parts 3.4 are program storage modules, are used for embedded software---scheduler program, functional module driver and the disposition trace routine of canned data safety SoC; Can also deposit some specific data in addition.Dma controller also can be visited it under some situation, thus it should directly do not included in the zone 1 or the zone 3, and it should be included in separately one independently clock zone 4 (hereinafter to be referred as the zone 4).Zone 4 also comprises the program storage bridge.
Parts 3.5 are data-carrier store modules, and it is actually the primary memory of whole information security SoC, and it can be visited for MCU, also can visit for dma controller.With the program storage module class seemingly, the present invention with its include in independent clock zone 5 (hereinafter to be referred as the zone 5).Zone 5 also comprises the data-carrier store bridge.
Parts 3.7 and parts 3.8 are respectively usb interface controller module and universal asynchronous receiving-transmitting (transmission) (UniversalAsynchronous Receive Transfer, UART) bus controller module, they are two interfaces of communicating by letter with the external world of information security SoC.When scheduler program do not need to find their work, the clock that just can close them.Similarly, the present invention includes them in two independently clock zones respectively: clock zone 7 (hereinafter to be referred as zone 7) and clock zone 8 (hereinafter to be referred as zone 8).
Parts 3.9 are interruptable controllers, because it is bearing the task (summary of the invention has partly been described the process of MCU sleeping/waking) of waking MCU up, add that its circuit scale is very little, so the present invention does not control its clock supply.
Parts 3.10 are Clock management modules of one of key modules of realization DPM, since small, do not control its clock and supply with.
Similarly, the present invention does not control AHB yet and supplies with to APB bridge module 11 clocks.
Secondly 2, the power managed process of scheduler program described
(1) initialization:
When powering on, at first two external interface USB of initialization and UART, initialization miscellaneous part then.Because the function of information security SoC mainly is that the data that the external world transmits are into carried out encrypt/decrypt or signature/verification work, thereby after each module initialization of system finishes, if MCU finds USB and UART and does not receive any data transfer request, then close the clock in other clock zone outside closed region 1 (main control unit MCU), zone 7 and zone 8 (external interface circuit U SB and the UART) earlier, force MCU to enter " dormancy " state by writing control word (being the control register in the MCU bus bridge) then, wait for and interrupt arriving; If MCU finds USB or UART and has received extraneous operational order that then MCU continues its despatching work.
(2) disposition detects:
When the external world require to produce PKI/key to the time, MCU is the clock of opened areas 6 (TRNG) at first, and then forces MCU itself " dormancy ", the interruption of wait TRNG " data buffer is full ".After MCU was waken up by this interruption, MCU began to detect the random number that TRNG generates, if detect satisfactory prime number, the clock that closes closed region 6 is again supplied with, and MCU continues its scheduler task (such as carrying out other calculating again or result of calculation preserved etc.).After whole detection was finished, MCU entered " dormancy " state again, waited for next time interrupting.
(3) signature or checking:
When the external world required to finish signature or validation task, MCU is the clock of opened areas 2 (RSA/ECC coprocessor) at first, then the data buffer of the data transmission that receives from external interface (as USB, UART) to the RSA/ECC coprocessor.If under the hard-core situation of transmission speed, MCU itself just can finish data transfer task; If demanding transmission speed, MCU needs the clock of opened areas 3 (DMA), notify the first address and the data block size of the data block that DMA need carry then, restart DMA and force MCU itself to enter " dormancy " state, wait for the look-at-me that DMA carrying data are finished.After the data carrying was finished, MCU restarted the work of RSA/ECC coprocessor, and then entered " dormancy ", waited for RSA/ECC coprocessor look-at-me.After coprocessor was finished computing, MCU continued its scheduler task.

Claims (4)

1、信息安全SoC中基于门控时钟的动态功耗管理方法,其特征在于具体步骤如下:1. A dynamic power consumption management method based on a gated clock in an information security SoC, characterized in that the specific steps are as follows: 首先根据信息安全SoC的工作过程,将其构成模块划分为如下8个时钟区域:区域1为微控制器,区域2为RSA/ECC协处理器,区域3为DMA控制器,区域4为程序存储器模块,该程序存储器模块存储信息安全SoC的嵌入式软件,包括调度程序、功能模块驱动程序和素性检测程序;区域5为数据存储器模块,区域6为真随机数发生器模块,区域7为USB接口控制器模块,区域8为通用异步传输总线控制模块,其中,某个时钟区域的模块独立于其它一些模块工作,并且将划入时钟区域的所有模块的时钟输入纳入软件可控范围;First, according to the working process of the information security SoC, its constituent modules are divided into the following eight clock areas: area 1 is the microcontroller, area 2 is the RSA/ECC coprocessor, area 3 is the DMA controller, and area 4 is the program memory module, the program memory module stores the embedded software of information security SoC, including scheduler, function module driver and primality detection program; area 5 is the data memory module, area 6 is the true random number generator module, and area 7 is the USB interface The controller module, area 8 is a universal asynchronous transfer bus control module, wherein the modules in a certain clock area work independently of other modules, and the clock inputs of all modules classified into the clock area are included in the software controllable range; 然后采用DPM技术的嵌入式软件管理每个时钟区域的时钟供给:对于不参与当前工作的模块,完全关闭其时钟输入,在需要参与工作时,重新打开时钟供给;Then the embedded software using DPM technology manages the clock supply of each clock area: for the modules that do not participate in the current work, completely close their clock input, and reopen the clock supply when they need to participate in the work; 对应于所述DPM技术的嵌入式软件,DPM的相关硬件部分包括一个上述软件可访问的时钟管理模块和一个上述软件可访问的微控制器wrapper,前者负责管理SoC中除了MCU以外的其它功能模块的时钟,后者负责管理MCU本身的时钟;这里DPM指动态功耗管理,MCU指微控制器。Corresponding to the embedded software of the DPM technology, the relevant hardware part of the DPM includes a clock management module accessible by the above software and a microcontroller wrapper accessible by the above software, the former is responsible for managing other functional modules in the SoC except the MCU The clock of the latter is responsible for managing the clock of the MCU itself; here DPM refers to dynamic power management, and MCU refers to the microcontroller. 2、根据权利要求1所述的方法,其特征在于所述的时钟管理模块的组成包括:2. The method according to claim 1, characterized in that the composition of the clock management module includes: 一个控制寄存器组件(1.1),微控制器可以通过APB接口访问并修改它;A control register component (1.1), which can be accessed and modified by the microcontroller through the APB interface; 一个低电平有效锁存器组件(1.2),它保证只有当时钟信号为低电平时,控制寄存器组件(1.1)的输出才可能影响到最终的n#时钟输出;A low-level active latch component (1.2), which ensures that only when the clock signal is low, the output of the control register component (1.1) may affect the final n# clock output; 一个二输入与门组件(1.3),它是关闭/开启时钟输出的功能部件;A two-input AND gate component (1.3), which is a functional part for turning off/on the clock output; 一个上升沿触发的功能模块组件(1.4);A function module component (1.4) triggered by a rising edge; 当微控制器根据系统的当前工作状态发现某个模块处于空闲状态,并且在接下来的一段时间内这个处于空闭状态模块仍无需参与工作,那么微控制器通过修改时钟管理模块的控制状态寄存器来关闭这个处于空闭状态模块的时钟;当微控制器根据系统调度算法或者终端用户的请求而需要某个正处于时钟关闭状态的模块参与工作时,微控制器首先通过修改时钟管理模块的控制状态寄存器来打开此处于时钟关闭状态的模块的时钟,然后再继续对此模块进行操作。When the microcontroller finds that a certain module is idle according to the current working state of the system, and the module in the air-closed state does not need to participate in the work for a period of time, then the microcontroller modifies the control status register of the clock management module to turn off the clock of the module in the air-closed state; when the microcontroller needs a module that is in the clock-off state to participate in the work according to the system scheduling algorithm or the request of the end user, the microcontroller first modifies the control of the clock management module status register to turn on the clock to the module in the clock-off state before continuing to operate the module. 3、根据权利要求1所述的方法,其特征在于所述的微控制器wrapper的组成包括:3. The method according to claim 1, wherein the composition of the microcontroller wrapper comprises: 一个MCU wrapper内部的控制寄存器组件(2.1),它可以被MCU通过系统总线改写,而它的状态值控制了有限状态机组件(2.3)的动作,进而实现开启/关闭MCU的时钟;A control register component (2.1) inside the MCU wrapper, which can be rewritten by the MCU through the system bus, and its state value controls the action of the finite state machine component (2.3), and then realizes turning on/off the clock of the MCU; 一个AHB总线控制器组件(2.2),它不断采样MCU的输出控制信号,并将该控制信号转换成符合AHB总线协议的总线信号,同时它将操作结果返回给MCU;An AHB bus controller component (2.2), which continuously samples the output control signal of the MCU, converts the control signal into a bus signal conforming to the AHB bus protocol, and returns the operation result to the MCU; 一个控制MCU wrapper正常工作的有限状态机组件(2.3),其状态转换反映了MCU的工作状态,因此该有限状态机组件(2.3)可以判断何时可以关闭/开启MCU的时钟而不会导致误动作,它的一个输出信号直接接到低电平有效的锁存器组件(2.4)的D端,进而实现MCU的时钟管理;A finite state machine component (2.3) that controls the normal operation of the MCU wrapper, its state transition reflects the working state of the MCU, so the finite state machine component (2.3) can determine when the clock of the MCU can be turned off/on without causing errors Action, one of its output signals is directly connected to the D terminal of the low-level active latch component (2.4), thereby realizing the clock management of the MCU; 一个低电平有效的锁存器组件(2.4),它的作用是保证在时钟的低电平时才有可能关闭时钟,从而避免可能出现的毛刺;A low-level active latch component (2.4), its function is to ensure that the clock is only possible to turn off the clock when the clock is low, thereby avoiding possible glitches; 一个二输入与门组件(2.5),它是关闭/开启时钟输出的功能部件;A two-input AND gate component (2.5), which is a functional part for turning off/on the clock output; 若嵌入式软件发现在一段时间内MCU都无需参与运算或者控制,则通过写MCUwrapper中的控制寄存器迫使MCU本身挂起;当MCU被挂起之后,MCU wrapper开始监控中断请求信号;当中断请求信号来临,MCU wrapper重新开启MCU的时钟,使得MCU及时处理中断事务;当中断处理完成后,调度程序再查询系统的当前状态从而判断是否需要再次迫使MCU挂起。If the embedded software finds that the MCU does not need to participate in the operation or control for a period of time, it will force the MCU to hang up by writing the control register in the MCUwrapper; when the MCU is suspended, the MCU wrapper will start monitoring the interrupt request signal; when the interrupt request signal When it comes, the MCU wrapper restarts the clock of the MCU, so that the MCU can process the interrupt transaction in time; when the interrupt processing is completed, the scheduler will query the current state of the system to determine whether it is necessary to force the MCU to hang up again. 4、根据权利要求1所述的方法,其特征在于除了由信息安全SoC划分的8个软件可控的时钟区域外,其余的中断控制器模块、时钟管理模块、AHB到APB桥模块的时钟始终开启,不控制其时钟供给;4. The method according to claim 1, characterized in that except for the 8 software-controllable clock regions divided by the information security SoC, the clocks of the remaining interrupt controller modules, clock management modules, and AHB to APB bridge modules are always On, does not control its clock supply; 信息安全SoC中的动态功耗管理的过程如下:The process of dynamic power management in information security SoC is as follows: (1)初始化:(1) Initialization: 上电时,首先初始化两个对外接口USB和UART,然后初始化其他模块;系统各个模块初始化完成后,若MCU发现USB和UART没有接收到任何数据传输请求,则先关闭区域1、区域7和区域8之外的其它时钟区域的时钟,然后通过写控制字强迫MCU进入“休眠”状态,等待中断到来;若MCU发现USB或UART已经接收到外界的操作命令,则MCU继续其调度工作;这里USB指USB接口控制模块,UART指通用异步传输总线模块;When powering on, first initialize the two external interfaces USB and UART, and then initialize other modules; after the initialization of each module of the system is completed, if the MCU finds that the USB and UART have not received any data transmission requests, it will first turn off area 1, area 7 and area Clocks in other clock areas other than 8, and then force the MCU to enter the "sleep" state by writing the control word, waiting for the interrupt to arrive; if the MCU finds that the USB or UART has received an external operation command, the MCU continues its scheduling work; here the USB Refers to the USB interface control module, UART refers to the universal asynchronous transfer bus module; (2)素性检测:(2) Primality detection: 当外界要求产生公钥/密钥对时,MCU首先打开区域6的时钟,然后再强迫MCU本身“休眠”,等待TRNG“数据缓冲区已满”的中断;当MCU被此中断唤醒之后,MCU开始检测TRNG生成的随机数,如果检测到符合要求的素数,再关闭区域6的时钟供给,MCU继续其调度任务;当整个检测完成之后,MCU再进入“休眠”状态,等待下一次中断;这里TRNG指真随机数发生器;When the outside world requests to generate a public key/key pair, the MCU first turns on the clock in area 6, and then forces the MCU itself to "sleep", waiting for the TRNG "data buffer is full" interrupt; when the MCU is awakened by this interrupt, the MCU Start to detect the random number generated by TRNG. If a prime number that meets the requirements is detected, then turn off the clock supply in area 6, and the MCU will continue its scheduling tasks; when the entire detection is completed, the MCU will enter the "sleep" state and wait for the next interrupt; here TRNG means True Random Number Generator; (3)签名或验证:(3) Signature or verification: 当外界要求完成签名或验证任务时,MCU首先打开区域2的时钟,然后把从对外接口接收到的数据传输到RSA/ECC协处理器的数据缓冲区;如果在传输速度没有限制的情况下,MCU本身就可以完成数据传输任务;如果要求高的传输速度,MCU需要打开区域3的时钟,然后通知DMA需要搬运的数据块的首地址和数据块大小,再启动DMA并迫使MCU本身进入“休眠”状态,等待DMA搬运数据完成的中断信号;数据搬运完成之后,MCU再启动RSA/ECC协处理器工作,然后再进入“休眠”,等待RSA/ECC协处理器中断信号;当协处理器完成运算之后,MCU继续其调度任务。When the outside world requests to complete the signature or verification task, the MCU first turns on the clock in area 2, and then transmits the data received from the external interface to the data buffer of the RSA/ECC coprocessor; if the transmission speed is not limited, The MCU itself can complete the data transmission task; if a high transmission speed is required, the MCU needs to turn on the clock in area 3, and then notify the DMA of the first address and the size of the data block to be moved, and then start the DMA and force the MCU itself to enter "sleep" " state, waiting for the interrupt signal of the completion of the DMA transfer of data; after the data transfer is completed, the MCU starts the RSA/ECC coprocessor to work, and then enters "sleep", waiting for the RSA/ECC coprocessor interrupt signal; when the coprocessor completes After the calculation, the MCU continues its scheduling tasks.
CNB2005100289120A 2005-08-18 2005-08-18 Dynamic power consumption management method in information safety SoC based on door control clock Expired - Fee Related CN100346268C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100289120A CN100346268C (en) 2005-08-18 2005-08-18 Dynamic power consumption management method in information safety SoC based on door control clock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100289120A CN100346268C (en) 2005-08-18 2005-08-18 Dynamic power consumption management method in information safety SoC based on door control clock

Publications (2)

Publication Number Publication Date
CN1752894A CN1752894A (en) 2006-03-29
CN100346268C true CN100346268C (en) 2007-10-31

Family

ID=36679770

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100289120A Expired - Fee Related CN100346268C (en) 2005-08-18 2005-08-18 Dynamic power consumption management method in information safety SoC based on door control clock

Country Status (1)

Country Link
CN (1) CN100346268C (en)

Families Citing this family (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150137792A1 (en) * 2012-06-29 2015-05-21 Koninklijke Philips N.V. Power consumption monitoring apparatus
US8515499B1 (en) * 2012-09-10 2013-08-20 Google Inc. Estimating remaining use time of mobile computing devices
CN103838295A (en) * 2012-11-27 2014-06-04 中兴通讯股份有限公司 Low-speed external module integration method and device
US9395414B2 (en) * 2012-12-28 2016-07-19 Nvidia Corporation System for reducing peak power during scan shift at the local level for scan based tests
CN103091620B (en) * 2012-12-29 2014-12-10 江苏东大集成电路系统工程技术有限公司 Optimization method of capturing power consumption in scan test
CN103257940B (en) * 2013-03-27 2016-08-03 青岛中星微电子有限公司 A kind of SOC(system on a chip) SoC writes the method and device of data
CN104123117B (en) * 2013-04-28 2018-09-25 中国科学院微电子研究所 Microcontroller for improving electromagnetic compatibility characteristic of automobile electronic control system
CN103533573A (en) * 2013-09-30 2014-01-22 江苏大学 Wireless sensor network for monitoring greenhouse environment and energy-saving transmission method thereof
CN104021104B (en) * 2014-06-12 2017-11-07 国家电网公司 A kind of cooperative system and its communication means based on dual-bus structure
CN104111850B (en) * 2014-07-17 2018-05-29 阿里云计算有限公司 A kind of method and system for reducing micro-control unit MCU power consumptions
CN105468128A (en) * 2014-07-30 2016-04-06 比亚迪股份有限公司 Management method and management device for internal power consumption of SOC (System on Chip)
US10345882B2 (en) * 2015-03-30 2019-07-09 Mediatek Inc. Dynamic power meter with improved accuracy and single cycle resolution
CN105183432B (en) * 2015-08-26 2018-02-27 中国航天科工集团第三研究院第八三五七研究所 A kind of SoC systems towards health control
CN105388963B (en) * 2015-11-17 2018-07-27 西安紫光国芯半导体有限公司 A kind of gated clock control method based on DFI interfaces
CN106920329A (en) * 2015-12-28 2017-07-04 国家电网公司 A kind of charging electric vehicle charging control unit and method of work
CN107515662B (en) * 2016-06-15 2020-05-15 深圳市博巨兴微电子科技有限公司 Low-power-consumption management method in MCU chip for keying application
CN106371549A (en) * 2016-09-28 2017-02-01 深圳市博巨兴实业发展有限公司 Ultra-low power consumption clock control method applied to MCU (Micro-programmed Control Unit) system
CN107886166B (en) * 2016-09-29 2020-02-21 中科寒武纪科技股份有限公司 Device and method for executing artificial neural network operation
CN106774788B (en) * 2016-11-23 2020-01-17 深圳市博巨兴微电子科技有限公司 SOC based on MCU and kernel cooperation control unit thereof
CN109936441B (en) * 2019-01-28 2022-07-05 湖北大学 A hardware implementation method of pipeline SHA256 based on data storage
US10956356B1 (en) * 2019-11-27 2021-03-23 Robert Bosch Gmbh Clock control to increase robustness of a serial bus interface
CN112131175B (en) * 2020-08-28 2022-06-17 山东云海国创云计算装备产业创新中心有限公司 A SoC chip, power consumption control method and readable storage medium
CN112468148A (en) * 2020-11-09 2021-03-09 浙江大学 Multi-sampling-rate low-power-consumption micromechanical gyroscope digital signal processing method
CN112486245B (en) * 2020-12-17 2023-03-10 清华大学 Reconfigurable array clock gating control method, device, device and medium
CN115659419B (en) * 2022-12-27 2023-04-14 北京象帝先计算技术有限公司 A digital signature method, device, chip and electronic equipment
CN117850570B (en) * 2024-01-09 2024-08-09 广东高云半导体科技股份有限公司 Singlechip system
CN117608388B (en) * 2024-01-15 2024-06-21 珠海全志科技股份有限公司 Power consumption control method and device applied to SoC system and SoC system
CN118211277B (en) * 2024-05-22 2024-08-09 山东航天人工智能安全芯片研究院 Design circuit and design method of asymmetric encryption and decryption coprocessor
CN118605691A (en) * 2024-05-29 2024-09-06 海光云芯集成电路设计(上海)有限公司 Clock control method, device, electronic device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6158012A (en) * 1989-10-30 2000-12-05 Texas Instruments Incorporated Real-time power conservation and thermal management for computers
WO2004102363A2 (en) * 2003-05-07 2004-11-25 Apple Computer, Inc. Method and apparatus for dynamic power management in a processor system
CN1570809A (en) * 2003-07-24 2005-01-26 南京Lg同创彩色显示系统有限责任公司 Power supply manager mode control device for display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6158012A (en) * 1989-10-30 2000-12-05 Texas Instruments Incorporated Real-time power conservation and thermal management for computers
WO2004102363A2 (en) * 2003-05-07 2004-11-25 Apple Computer, Inc. Method and apparatus for dynamic power management in a processor system
CN1570809A (en) * 2003-07-24 2005-01-26 南京Lg同创彩色显示系统有限责任公司 Power supply manager mode control device for display

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"行为逻辑层上的SOC低功耗设计" 张宇弘,浙江大学博士学位论文 2004 *

Also Published As

Publication number Publication date
CN1752894A (en) 2006-03-29

Similar Documents

Publication Publication Date Title
CN100346268C (en) Dynamic power consumption management method in information safety SoC based on door control clock
CN102163072B (en) Software-based thread remapping for power savings
TWI622874B (en) Power efficient processor architecture
Xie et al. A survey of low-energy parallel scheduling algorithms
JP5865931B2 (en) Platform independent power management
US8423799B2 (en) Managing accelerators of a computing environment
US7529956B2 (en) Granular reduction in power consumption
US7788332B2 (en) Sensor-network processors using event-driven architecture
CN100474214C (en) Information processing device
EP3588288B1 (en) A multithreaded processor core with hardware-assisted task scheduling
US20100100716A1 (en) Conserving Power Using Predictive Modelling and Signaling
CN111512266A (en) System, apparatus, and method for handshake protocol for low power state transitions
US7886177B2 (en) Method and apparatus of collecting timer ticks
CN106063304B (en) System and method for message-based fine-grained system-on-chip power gating
CN100562864C (en) A method for implementing on-chip communication in an embedded heterogeneous multi-core system
US20090080442A1 (en) Conserving power in a multi-node environment
CN111292716A (en) Voice Chips and Electronic Devices
Culbert Low power hardware for a high performance PDA
CN1619467A (en) Computer system and power management state switching method
CN117980861A (en) Apparatus and method for efficiently transitioning to and from a reduced power state
Gregorek et al. A scalable hardware implementation of a best-effort scheduler for multicore processors
US20200409762A1 (en) Method and apparatus for servicing an interrupt
CN117940875A (en) Power savings through delayed message processing
CN115114377A (en) A large-scale distributed trusted data synchronization method and system
Eustache et al. RTOS extensions for dynamic hardware/software monitoring and configuration management.

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071031