A single-power-domain sensor chip wake-up scheduling device and method

By designing a wake-up scheduling device for a single-power-domain sensor chip, the problems of incomplete wake-up network and uncertain scheduling were solved, achieving the integrity of the wake-up network and the determinism of scheduling, while reducing hardware overhead and power consumption.

CN123114237APending Publication Date: 2026-11-17SHANDONG LUHAI EQUIPMENT GROUP RIZHAO CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611561035.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-10
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Single-power-domain sensor chips have incomplete wake-up networks and uncertain scheduling. Existing solutions cannot provide quantifiable latency guarantees and have complex hardware structures or high power consumption.

Method used

A wake-up scheduling device for a single-power-domain sensor chip is designed, comprising a wake-up configuration unit, a wake-up monitoring unit, a core clock gating unit, and an event processing execution unit. By monitoring the wake-up source and controlling the core clock through combinational logic circuits, the integrity of the wake-up network and the determinism of scheduling are achieved.

Benefits of technology

It achieves the integrity and deterministic scheduling of the wake-up network for single-power-domain sensor chips, reduces hardware overhead and average power consumption, and ensures the quantifiability of wake-up latency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123114237A_ABST
    Figure CN123114237A_ABST
Patent Text Reader

Abstract

This invention provides a wake-up scheduling device and method for a single-power-domain sensor chip, belonging to the field of integrated circuit design technology. The device includes: a wake-up configuration unit for providing wake-up permission information; a wake-up monitoring unit, whose first input is connected to the output of the wake-up configuration unit and whose second input is connected to multiple wake-up sources; a core clock gating unit, whose first control is connected to the output of the wake-up monitoring unit and whose second control is used to receive waiting instructions; and an event processing execution unit, connected to the clock output of the core clock gating unit and whose output is connected to the second control of the core clock gating unit. After the core clock is restored, the event processing execution unit performs instruction fetching and executes event processing corresponding to the wake-up source. After processing, it outputs a waiting instruction to the second control of the core clock gating unit. This solution achieves stable scheduling during the sleep period of the single-power-domain sensor chip and quantifiable wake-up latency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of integrated circuit design technology, and in particular to a wake-up scheduling device and method for a single-power-domain sensor chip. Background Technology

[0002] With the development of IoT and sensor node applications, microcontrollers are idle most of the time, requiring them to be able to sleep for as long as possible, wake up quickly, and return to sleep immediately after processing events. Existing low-power microcontrollers typically employ multi-power domains combined with multi-level sleep modes and a power management unit (PMU) to achieve tiered power management. For example, in shallow sleep mode, the processor disables the clocks of some peripheral modules through a clock control register, then executes a wait instruction to enter sleep mode, and is woken up by an external interrupt. In deep sleep mode, the PMU is activated, disabling the clocks of most modules except the oscillator, retaining only specific pin level changes as wake-up sources. Some solutions differentiate sleep depths through a deep sleep control register, maintaining clock operation during shallow sleep and gating the core clock during deep sleep. Other solutions use a programmable scheduler unit, along with timers and comparators, to implement event scheduling, but require an independent clock signal to drive the timers. These solutions generally rely on a phase-locked loop (PLL) or real-time clock for timing reference and on the PMU to coordinate the switching of multiple power domains, resulting in a complex hardware structure. Furthermore, some solutions aggregate external interrupts through an interrupt controller as wake-up sources; the processor executes a wait instruction and enters a low-power state, waiting for a wake-up event.

[0003] However, the above solutions have significant shortcomings in sensor chips with a single power domain, no PLL and real-time clock, and minimal hardware resources. The wake-up network for conventional wait instructions is incomplete; system tick timer interrupts and software interrupts are not included in the wake-up source, resulting in lost system ticks during chip sleep and disrupting the determinism of event scheduling. Wake-up latency is uncertain; the time from the wake-up source becoming valid to the processor resuming instruction fetching is affected by the interrupt controller and power domain switching, failing to provide quantifiable latency guarantees for real-time sensor response. While tick-free scheduling schemes relying on real-time operating systems can save on tick interrupt overhead, the kernel itself has excessive overhead on minimal microcontrollers, making it unsuitable for resource-constrained scenarios. Schemes with multiple power domains and a power management unit can achieve power consumption gradation, but introduce the hardware overhead of the power management unit and multiple power domains, violating the minimalist constraints of a single power domain. Software polling of status bits can replace re-executing wait instructions to sleep, but it sacrifices determinism and increases power consumption. Summary of the Invention

[0004] This invention provides a wake-up scheduling device and method for a single-power-domain sensor chip, which solves the problems of incomplete wake-up network and uncertain scheduling for single-power-domain sensor chips.

[0005] To solve the above-mentioned technical problems, the technical solution of the present invention is as follows:

[0006] This invention provides a single-power-domain sensor chip wake-up scheduling device, comprising:

[0007] The wake-up configuration unit is used to provide wake-up permission information;

[0008] A wake-up monitoring unit is provided, wherein the first input terminal of the wake-up monitoring unit is connected to the output terminal of the wake-up configuration unit, and the second input terminal of the wake-up monitoring unit is connected to multiple wake-up sources to receive request signals sent by multiple wake-up sources. The wake-up monitoring unit monitors the request signals according to the wake-up permission information and outputs a clock recovery signal when any wake-up source enabled by the wake-up permission information is valid.

[0009] The core clock gating unit has a first control terminal connected to the output terminal of the wake-up monitoring unit, and a second control terminal for receiving a wait command. When the wait command is valid, the core clock gating unit shuts down the core clock and keeps the peripheral clock and system timer time base counting. When the clock recovery signal is received, the core clock is released.

[0010] An event processing execution unit is connected to the clock output terminal of the core clock gating unit. The output terminal of the event processing execution unit is connected to the second control terminal of the core clock gating unit. After the core clock is restored, the event processing execution unit performs an instruction fetch operation and executes the event processing corresponding to the wake-up source. After the processing is completed, it outputs a waiting instruction to the second control terminal of the core clock gating unit.

[0011] Optionally, the wake-up configuration unit includes:

[0012] A bitmap register includes multiple register bits, the number of which is the same as the number of wake-up sources, and each register bit corresponds to one wake-up source; the output of each register bit is connected to the first input of the wake-up monitoring unit; each register bit is used to store the wake-up enable bit of the corresponding wake-up source, where the wake-up enable bit is at a first level and the corresponding wake-up source is allowed to wake up, and the wake-up enable bit is at a second level and the corresponding wake-up source is prohibited from waking up.

[0013] Optionally, the wake-up monitoring unit includes:

[0014] First logic OR gate and multiple first logic AND gates;

[0015] The first input of each first AND gate is connected to the output of the corresponding register bit in the wake-up configuration unit, the second input of each first AND gate receives the request signal of the corresponding wake-up source, and the output of each first AND gate is connected to one input of the first OR gate.

[0016] The output of the first OR gate is connected to the first control terminal of the core clock gating unit, and the first OR gate outputs the clock recovery signal when any of the first AND gate outputs a valid signal.

[0017] Optionally, the core clock gating unit includes:

[0018] Second logic OR gate, latch, and second logic AND gate;

[0019] The first input of the second logic OR gate is connected to the output of the wake-up monitoring unit, the second input of the second logic OR gate is used to receive the inverted signal of the waiting instruction, and the output of the second logic OR gate is connected to the data input of the latch.

[0020] The clock input of the latch is connected to the core clock source, and the output of the latch is connected to the first input of the second logic AND gate.

[0021] The second input of the second AND gate is connected to the core clock source, and the output of the second AND gate is connected to the clock terminal of the event processing execution unit.

[0022] The latch transmits the signal provided by the output of the second logic OR gate to the second logic AND gate during the first level of the core clock source, and keeps the signal unchanged during the second level of the core clock source. The second logic AND gate performs a logical AND operation between the output of the latch and the core clock source to obtain the gated core clock.

[0023] Optionally, the core clock gating unit further includes:

[0024] An inverter, the input of which is connected to the second control terminal of the core clock gating unit, and the output of which is connected to the second input of the second logic OR gate.

[0025] Optionally, the event processing execution unit includes:

[0026] The processor has its clock terminal connected to the clock output terminal of the core clock gating unit, and its output terminal connected to the second control terminal of the core clock gating unit. The processor is used to perform instruction fetching operations and execute event processing corresponding to the wake-up source after the core clock is restored. After processing, it outputs a waiting instruction to the second control terminal of the core clock gating unit.

[0027] This invention also provides a wake-up scheduling method for a single-power-domain sensor chip, applied to the aforementioned wake-up scheduling device for a single-power-domain sensor chip, the method comprising:

[0028] Acquire wake-up permission information, request signals from multiple wake-up sources, and waiting instructions;

[0029] The wake-up request is obtained by monitoring the request signal based on the wake-up permission information;

[0030] When the waiting instruction is valid, the core clock is controlled according to the wake-up request; when the wake-up request is invalid, the core clock is stopped while the peripheral clock and system timer time base continue counting; when the wake-up request is valid, the core clock is released and instruction fetching operation is resumed.

[0031] After resuming the instruction fetching operation, the event handling corresponding to the wake-up source is executed, and the event handling result is obtained;

[0032] Based on the event processing result, a wait instruction is executed and the core clock is gated to obtain scheduling status data.

[0033] Optionally, the wake-up request is obtained by monitoring the request signal based on the wake-up permission information, including:

[0034] Based on the wake-up permission information, determine the total number of wake-up sources and the wake-up permission bits of the wake-up sources;

[0035] Based on the request signal, determine the valid flag of the wake-up source;

[0036] The wake-up request value is determined based on the total number of wake-up sources, the wake-up permission bit, and the valid flag;

[0037] When the wake-up request value equals a preset value, the wake-up request is determined to be valid, and a wake-up request is obtained.

[0038] Optionally, when the wait instruction is valid, controlling the core clock according to the wake-up request includes:

[0039] Get the valid flag for the waiting instruction;

[0040] The gate control value is determined based on the valid flag of the waiting instruction and the wake-up request value;

[0041] During the first level of the core clock source, the gate control value is latched to obtain a latched value, which remains unchanged during the second level of the core clock source.

[0042] A logical AND operation is performed on the core clock source and the latch value to obtain the gated core clock. The gated core clock stops when the wake-up request is invalid and is released when the wake-up request is valid.

[0043] Optionally, based on the event processing result, a wait instruction is executed and the core clock is gated to obtain scheduling status data, including:

[0044] Execute the waiting instruction based on the event processing result to obtain the waiting instruction signal;

[0045] The core clock is gated according to the waiting instruction signal to stop the core clock, while the peripheral clock and system timer time base continue to count, thus obtaining scheduling status data.

[0046] The technical solution of the present invention has at least the following effects:

[0047] The single-power-domain sensor chip wake-up scheduling device proposed in this invention includes: a wake-up configuration unit for providing wake-up permission information; a wake-up monitoring unit, wherein a first input terminal of the wake-up monitoring unit is connected to the output terminal of the wake-up configuration unit, and a second input terminal of the wake-up monitoring unit is connected to multiple wake-up sources to receive request signals from multiple wake-up sources, the wake-up monitoring unit monitors the request signals according to the wake-up permission information, and outputs a clock recovery signal when any wake-up source enabled by the wake-up permission information is valid; and a core clock gating unit, wherein a first control terminal of the core clock gating unit is connected to the output terminal of the wake-up monitoring unit, and a second control terminal of the core clock gating unit is used to receive waiting instructions. The core clock gating unit shuts down the core clock when the waiting instruction is valid, while maintaining the counting of peripheral clocks and system timers. It releases the core clock upon receiving the clock recovery signal. An event processing execution unit is connected to the clock output of the core clock gating unit, and its output is connected to the second control terminal of the core clock gating unit. After the core clock recovers, the event processing execution unit fetches instructions and executes event processing corresponding to the wake-up source. Upon completion of processing, it outputs a waiting instruction to the second control terminal of the core clock gating unit. This achieves a complete wake-up network for the single-power-domain sensor chip, deterministic scheduling, and quantifiable wake-up latency. Attached Figure Description

[0048] Figure 1This is a structural diagram of the single-power-domain sensor chip wake-up scheduling device provided in an embodiment of the present invention;

[0049] Figure 2 This is a flowchart of the single-power-domain sensor chip wake-up scheduling method provided in an embodiment of the present invention;

[0050] Figure 3 This is a schematic diagram of the combinational logic circuit of the wake-up monitoring unit provided in an embodiment of the present invention;

[0051] Figure 4 This is a schematic diagram of the working timing of the core clock gating unit provided in an embodiment of the present invention;

[0052] Figure 5 This is a closed-loop scheduling timing diagram of the single-power-domain sensor chip wake-up scheduling method provided in an embodiment of the present invention. Detailed Implementation

[0053] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

[0054] like Figure 1 As shown, an embodiment of the present invention proposes a single-power-domain sensor chip wake-up scheduling device, comprising:

[0055] The wake-up configuration unit is used to provide wake-up permission information;

[0056] A wake-up monitoring unit is provided, wherein its first input is connected to the output of the wake-up configuration unit, and its second input is connected to multiple wake-up sources to receive request signals from these sources. The wake-up monitoring unit monitors the request signals according to the wake-up permission information and outputs a clock recovery signal when any wake-up source enabled by the wake-up permission information is valid. The multiple wake-up sources include external event interrupts aggregated by the interrupt controller, as well as signals directly from system timer interrupts and software interrupts. The unit outputs a clock recovery signal when any enabled wake-up source is valid.

[0057] The core clock gating unit has a first control terminal connected to the output terminal of the wake-up monitoring unit, and a second control terminal for receiving a wait command. When the wait command is valid, the core clock gating unit shuts down the core clock and keeps the peripheral clock and system timer time base counting. When the clock recovery signal is received, the core clock is released.

[0058] An event processing execution unit is connected to the clock output terminal of the core clock gating unit. The output terminal of the event processing execution unit is connected to the second control terminal of the core clock gating unit. After the core clock is restored, the event processing execution unit performs an instruction fetch operation and executes the event processing corresponding to the wake-up source. After the processing is completed, it outputs a waiting instruction to the second control terminal of the core clock gating unit.

[0059] This invention proposes the above-mentioned technical solution, which consists of four parts: wake-up configuration, core clock gating, wake-up monitoring, and event processing execution. When the event processing execution unit executes the wait instruction, only the core clock is turned off, while the peripheral clock and system timer time base continue to run. Combinational logic is used to monitor the wake-up source. External event interrupts are aggregated through the interrupt controller, and system timer interrupts and software interrupts are directly sent to the event processing execution unit. When any wake-up source allowed by the wake-up mask is valid, the core clock is immediately released, the event processing execution unit resumes the instruction fetching operation and processes the corresponding event, and after processing, the wait instruction is executed again to return to the low-power state. This achieves that the system tick is not lost during sleep, the scheduling remains deterministic, the wake-up path is short and the latency is quantifiable, and it does not rely on multiple power domains and power management units, reducing hardware overhead and lowering average power consumption.

[0060] In an optional embodiment of the present invention, the wake-up configuration unit may include:

[0061] A bitmap register includes multiple register bits, the number of which is the same as the number of wake-up sources, and each register bit corresponds to one wake-up source; the output of each register bit is connected to the first input of the wake-up monitoring unit; each register bit is used to store the wake-up enable bit of the corresponding wake-up source, where the wake-up enable bit is at a first level and the corresponding wake-up source is allowed to wake up, and the wake-up enable bit is at a second level and the corresponding wake-up source is prohibited from waking up.

[0062] In this embodiment, the wake-up configuration unit in the single-power-domain sensor chip wake-up scheduling device includes a bitmap register. The bitmap register is a register that stores wake-up enable bits bit by bit. It includes multiple register bits, the number of which is the same as the number of wake-up sources. Each register bit corresponds to one wake-up source, so that each wake-up source has an independent enable bit. Each register bit is used to store the wake-up enable bit of the corresponding wake-up source. The first level is a logic high level, and the second level is a logic low level. When the wake-up enable bit of a certain register bit is at the first level, the register bit allows its corresponding wake-up source to participate in the wake-up. When the wake-up enable bit of a certain register bit is at the second level, the register bit prohibits its corresponding wake-up source from participating in the wake-up. The output terminal of each register bit is connected to the first input terminal of the wake-up monitoring unit, so that the wake-up enable bits stored in each register bit can be sent to the wake-up monitoring unit in parallel in the form of a bitmap, thereby enabling the wake-up monitoring unit to determine whether each wake-up source is allowed to be woken up.

[0063] During device operation, the corresponding register bits in the bitmap register are configured according to whether each wake-up source needs to participate in the wake-up process: for wake-up sources that need to participate, their corresponding register bits are written to the first level; for wake-up sources that do not need to participate, their corresponding register bits are written to the second level. After configuration, the bitmap register outputs either the first or second level in parallel to the first input of the wake-up monitoring unit through the output of each register bit. The wake-up monitoring unit monitors multiple wake-up sources based on the levels received at the first input. For wake-up sources with the wake-up enable bit at the first level, the wake-up monitoring unit includes them in the wake-up request when their request signal is valid. For wake-up sources with the wake-up enable bit at the second level, the wake-up monitoring unit ignores their request signal. When it is necessary to change whether a wake-up source participates in the wake-up process, only the level of the register bit corresponding to that wake-up source needs to be rewritten, while the levels of other register bits remain unchanged, thereby achieving independent enabling and disabling of multiple wake-up sources.

[0064] In other optional embodiments of the present invention, the bitmap register can also be implemented by multiple independent wake-up enable registers, each wake-up enable register corresponding to a wake-up source. By writing enable values ​​to the corresponding wake-up enable registers by software, the same source-by-source independent enable function as the bitmap register can be achieved. Compared with the bitmap register, the independent enable register occupies more register address space, but it is easier for the software to manage the wake-up source in groups. The two can be selected for use according to the register resources of the chip.

[0065] It should be noted that the first AND gate and the first OR gate in the wake-up monitoring unit can also be implemented by a combination of logic gates such as NAND gates and NOR gates, or can be automatically mapped to standard cells in the technology library by the logic synthesis tool during the synthesis stage. This application does not limit the specific implementation method of the logic gates.

[0066] In an optional embodiment of the present invention, the wake-up monitoring unit may include:

[0067] First logic OR gate and multiple first logic AND gates;

[0068] The first input of each first AND gate is connected to the output of the corresponding register bit in the wake-up configuration unit, the second input of each first AND gate receives the request signal of the corresponding wake-up source, and the output of each first AND gate is connected to one input of the first OR gate.

[0069] The output of the first OR gate is connected to the first control terminal of the core clock gating unit, and the first OR gate outputs the clock recovery signal when any of the first AND gate outputs a valid signal.

[0070] In this embodiment, the wake-up monitoring unit includes a first OR gate and multiple first AND gates. Each first AND gate has a first input, a second input, and an output. Its first input is connected to the output of the corresponding register bit in the wake-up configuration unit to receive the wake-up enable bit stored in that register bit. Its second input receives the request signal from the corresponding wake-up source, and its output is connected to one input of the first OR gate. The first AND gate performs a logical AND operation on the wake-up enable bit and the request signal. When the wake-up enable bit is at a first level and the request signal is valid, its output outputs a valid level. When the wake-up signal is active, its output outputs a valid level. When the enable bit is at the second level or the request signal is invalid, its output terminal outputs an invalid level; the first logic OR gate has multiple input terminals and one output terminal, with its multiple input terminals connected one-to-one with the output terminals of multiple first logic AND gates, and its output terminal connected to the first control terminal of the core clock gating unit; the first logic OR gate is used to perform a logical OR operation on the outputs of multiple first logic AND gates. As long as the output terminal of any first logic AND gate outputs a valid level, the output terminal of the first logic OR gate outputs a clock recovery signal, thereby converting any enabled and valid wake-up source into a wake-up request to the core clock gating unit.

[0071] During device operation, each register bit in the wake-up configuration unit sends its respective wake-up enable bit in parallel to the first input of the corresponding first AND gate. Simultaneously, each wake-up source sends its respective request signal to the second input of the corresponding first AND gate. Each first AND gate performs a logical AND operation on the wake-up enable bit received at its first input and the request signal received at its second input. Only when the wake-up enable bit is at the first level and the request signal is valid will the first AND gate output a valid level to the first OR gate. The first OR gate performs a logical OR operation on the outputs of all first AND gates. As long as one first AND gate outputs a valid level, the first OR gate outputs a clock recovery signal to the first control terminal of the core clock gating unit. After receiving the clock recovery signal, the core clock gating unit releases the core clock, enabling the event processing execution unit to resume instruction fetching and execute the event processing corresponding to the wake-up source. The instruction fetching operation refers to the processor first sending the instruction address in the program counter to the memory, then reading the instruction from the memory and placing it into the instruction register to prepare for the next step of decoding and execution.

[0072] like Figure 3 As shown, in a specific embodiment of the present invention, the wake-up monitoring unit is composed of multiple first logic AND gates "&" and one first logic OR gate "≥1". The output of each register bit in the wake-up configuration unit is connected one-to-one with the first input of each first logic AND gate, the request signal of each wake-up source is connected one-to-one with the second input of each first logic AND gate, and the output of each first logic AND gate is connected to multiple inputs of the first logic OR gate. For the i-th wake-up source, when its wake-up enable bit is at the first level and its request signal valid flag is at the first level, the corresponding first logic AND gate outputs the first level; the first logic OR gate outputs the first level when any first logic AND gate outputs the first level, thereby validating the wake-up request; conversely, if the wake-up enable bit of the wake-up source is at the second level, then regardless of the value of its request signal valid flag, the corresponding first logic AND gate outputs the second level, and the wake-up source is shielded and does not participate in the wake-up decision.

[0073] In the above specific embodiments, the request signals of the first type of wake-up source are aggregated by the interrupt controller and sent to the second input terminal of the corresponding first logic AND gate. For example, interrupt events such as temperature limit over-limit interrupts and system timer interrupts are arbitrated and aggregated by the interrupt controller to form a unified request signal. The request signals of the second type of wake-up source are directly connected to the second input terminal of the corresponding first logic AND gate. For example, software interrupt requests generated by the system software actively writing to the register. Through the above pure combinational logic circuit, the wake-up monitoring unit can complete the parallel monitoring of all wake-up sources in a single cycle without relying on the processor. The wake-up decision delay is only the propagation delay of the logic AND gate and logic OR gate, thereby further reducing the wake-up response time.

[0074] In practical applications, the number of wake-up sources can be expanded according to the application requirements of the chip. For example, three wake-up sources can be set in the temperature sensing node: temperature over-limit interrupt, system timer interrupt, and software interrupt. In application scenarios with more wake-up sources, the bit width of the bitmap register and the number of first logic AND gates are increased accordingly. Since wake-up monitoring adopts parallel combinational logic, the increase in the number of wake-up sources will not introduce additional serial decision delay, but only increase a small amount of logic gate hardware overhead, thus maintaining good scalability.

[0075] In an optional embodiment of the present invention, the core clock gating unit may include:

[0076] Second logic OR gate, latch, and second logic AND gate;

[0077] The first input of the second logic OR gate is connected to the output of the wake-up monitoring unit, the second input of the second logic OR gate is used to receive the inverted signal of the waiting instruction, and the output of the second logic OR gate is connected to the data input of the latch.

[0078] The clock input of the latch is connected to the core clock source, and the output of the latch is connected to the first input of the second logic AND gate.

[0079] The second input of the second AND gate is connected to the core clock source, and the output of the second AND gate is connected to the clock terminal of the event processing execution unit.

[0080] During the first level of the core clock source, the latch transmits the signal provided by the output of the second logic OR gate to the second logic AND gate, and keeps the signal unchanged during the second level of the core clock source. The second logic AND gate performs a logical AND operation between the output of the latch and the core clock source to obtain the gated core clock.

[0081] The core clock gating unit may also include:

[0082] An inverter, the input of which is connected to the second control terminal of the core clock gating unit, and the output of which is connected to the second input of the second logic OR gate.

[0083] In this embodiment, the core clock gating unit includes a second logic OR gate, a latch, a second logic AND gate, and an inverter. The second logic OR gate has a first input, a second input, and an output. Its first input is connected to the output of the wake-up monitoring unit to receive a clock recovery signal. Its second input is connected to the output of the inverter to receive an inverted signal of a wait instruction. Its output is connected to the data input of the latch. The input of the inverter is connected to the second control terminal of the core clock gating unit to receive a wait instruction and invert the wait instruction before outputting an inverted signal. The clock input of the latch is connected to the core clock source. The output of the latch is connected to the first input of the second AND gate; the second input of the second AND gate is connected to the core clock source, and the output of the second AND gate is connected to the clock of the event processing execution unit; the latch transmits the signal provided by the output of the second OR gate to the second AND gate during the first level of the core clock source, and keeps the signal unchanged during the second level of the core clock source, where the first level is low and the second level is high; the second AND gate performs a logical AND operation between the output of the latch and the core clock source to obtain the gated core clock, and outputs it to the clock of the event processing execution unit.

[0084] During device operation, the inverter receives a wait instruction from the second control terminal of the core clock gating unit, inverts the wait instruction, and outputs it to the second input of the second logic OR gate. The first input of the second logic OR gate receives the clock recovery signal output by the wake-up monitoring unit. When the wait instruction is valid, the inverter outputs a low level, and the second logic OR gate outputs an equal clock recovery signal. If the clock recovery signal is low at this time, the second logic OR gate outputs a low level, and the latch transmits this low level to the first input of the second logic AND gate when the core clock source is low. The second logic AND gate outputs a low level, and the core clock stops. When the clock recovery signal is high, the second logic OR gate outputs a high level. When the core clock source is low, the latch passes this high level to the first input of the second logic AND gate, which outputs the core clock, and the core clock is released. When the waiting instruction is invalid, the inverter outputs a high level, the second logic OR gate outputs a high level, and the latch passes this high level to the first input of the second logic AND gate when the core clock source is low. The second logic AND gate outputs the core clock, and the core clock operates normally. The latch maintains its output unchanged when the core clock source is high, thus avoiding glitches in the gated core clock.

[0085] like Figure 4As shown, in a specific embodiment of the present invention, the operating timing of the core clock gating unit involves the core clock source signal core_clk, the wait instruction signal wfi, the gated core clock signal core_clk_gated, the wakeup event signal wakeup_evt, the clock recovery signal clk_restore, and the fetch recovery signal fetch_resume. Before the processor enters the low-power state, core_clk_gated follows the output of core_clk, and the processor fetches instructions normally. When the processor executes the wait instruction, the wait instruction signal wfi becomes valid, is inverted by an inverter, and is sent to the second logic OR gate. The output of the second logic OR gate is pulled high, and the latch latches this high level during the first level of core_clk. The second logic AND gate is closed, core_clk_gated is gated to a low level, the processor stops fetching instructions, and enters the low-power state. During the gating period, even if an invalid glitch or an unenabled wakeup source request occurs, core_clk_gated remains closed because the latch value remains high, thus avoiding clock glitches.

[0086] When an enabled wake-up source generates a wake-up event `wakeup_evt`, the wake-up monitoring unit outputs a clock recovery signal `clk_restore`. The latch releases its latched value during the next first level of `core_clk`, the second logic AND gate resumes its output, and `core_clk_gated` resumes following `core_clk`. After the processor regains the core clock, it resumes instruction fetching and outputs a fetch recovery signal `fetch_resume`, starting execution from the entry point of the interrupt service routine or event handler corresponding to the wake-up event. Through the level-sensitive nature of the latch, the gating logic is immune to `core_clk` glitches, ensuring no clock glitches occur during the switching between gating deactivation and wake-up recovery, avoiding processor metastability or false triggering, and guaranteeing the reliability of wake-up scheduling.

[0087] In other alternative embodiments of the present invention, the processor may also be other types of processors that support wait instructions, such as RISC-V processors or ARM processors that support WFI or WFE wait instructions. The specific mnemonic and encoding of the wait instructions can be determined according to the instruction set of the selected processor, and this application does not limit this.

[0088] In an optional embodiment of the present invention, the event processing execution unit may include:

[0089] The processor has its clock terminal connected to the clock output terminal of the core clock gating unit, and its output terminal connected to the second control terminal of the core clock gating unit. The processor is used to perform instruction fetching operations and execute event processing corresponding to the wake-up source after the core clock is restored. After processing, it outputs a waiting instruction to the second control terminal of the core clock gating unit.

[0090] In this embodiment, the event processing execution unit includes a processor that supports wait instructions. The processor has a clock terminal and an output terminal. The clock terminal of the processor is connected to the clock output terminal of the core clock gating unit to receive the gated core clock. The output terminal of the processor is connected to the second control terminal of the core clock gating unit to output a wait instruction to the core clock gating unit. The processor is used to perform instruction fetching operations after the core clock is restored and to execute event processing corresponding to the wake-up source. After the processing is completed, the wait instruction is executed again, thereby causing the core clock gating unit to turn off the core clock through the wait instruction at the output terminal, so that the processor stops instruction fetching operations and enters a low-power state. The wait instruction is an instruction that causes the processor to stop instruction fetching operations and wait for wake-up. After the processor executes the wait instruction, although its clock terminal stops receiving the core clock, the core clock gating unit still keeps the peripheral clock and system timer time base counting.

[0091] When the device is running, after the wake-up monitoring unit outputs a clock recovery signal, the core clock gating unit releases the core clock, the processor's clock input regains the core clock, and the processor resumes instruction fetching. Based on the currently valid wake-up source, the processor executes the event processing corresponding to that wake-up source. After event processing is complete, the processor outputs a wait instruction to the second control input of the core clock gating unit through its output. Upon receiving the wait instruction, the core clock gating unit shuts down the core clock, the processor stops instruction fetching, and re-enters a low-power state. During this low-power state, if a wake-up source with wake-up permission information is valid, the wake-up monitoring unit outputs a clock recovery signal again, the core clock gating unit releases the core clock again, and the processor resumes instruction fetching and event processing. This cycle repeats, forming a closed-loop scheduling of event wake-up, rapid processing, and immediate sleep.

[0092] like Figure 2 As shown, this embodiment of the invention also provides a single-power-domain sensor chip wake-up scheduling method, applied to the above-mentioned single-power-domain sensor chip wake-up scheduling device. The method may include:

[0093] Step 21: Obtain wake-up permission information, request signals from multiple wake-up sources, and waiting instructions;

[0094] Step 22: Monitor the request signal based on the wake-up permission information to obtain a wake-up request;

[0095] Step 23: When the waiting instruction is valid, control the core clock according to the wake-up request; when the wake-up request is invalid, stop the core clock and keep the peripheral clock and system timer time base counting; when the wake-up request is valid, release the core clock and resume instruction fetching operation.

[0096] Step 24: After resuming the instruction fetching operation, execute the event handling corresponding to the wake-up source and obtain the event handling result;

[0097] Step 25: Based on the event processing result, execute the wait instruction and perform gating processing on the core clock to obtain scheduling status data.

[0098] The technical solution described in this embodiment acquires wake-up permission information, multiple wake-up source request signals, and waiting instructions. Based on the wake-up permission information, it monitors the request signals to obtain wake-up requests. When the waiting instructions are valid, it controls the core clock according to the wake-up request. When the wake-up request is invalid, the core clock stops while the peripheral clock and system timer continue counting. When the wake-up request is valid, it releases the core clock and resumes instruction fetching. After the instruction fetching operation, it executes the corresponding event processing to obtain the event processing result. Then, based on the event processing result, it executes the waiting instructions and performs gating processing on the core clock to obtain scheduling status data. This achieves that the system clock cycle is not lost during sleep, the event scheduling remains deterministic, and the wake-up latency is quantifiable. It also achieves closed-loop scheduling of event wake-up, fast processing, and immediate sleep under a single power domain, relying solely on clock gating, thereby reducing average power consumption and hardware overhead.

[0099] In an optional embodiment of the present invention, step 21, obtaining wake-up permission information, request signals from multiple wake-up sources, and waiting instructions, may include:

[0100] Wake-up permission information is provided by the wake-up configuration unit. The wake-up source refers to the event source that can wake up the processor from a low-power state, including external event interrupts aggregated by the interrupt controller and signals directly from system timer interrupts and software interrupts without going through the interrupt controller. External events refer to asynchronous events that occur outside the sensor chip and are unrelated to the chip's current operating state, such as external sensor triggers, pin level changes, or interrupt requests issued by external devices. These external events are aggregated by the interrupt controller and sent to the wake-up monitoring unit as the first type of wake-up source. System timer interrupts and software interrupts are sent directly to the wake-up monitoring unit as the second type of wake-up source without going through the interrupt controller. The waiting instruction is output by the event processing execution unit to the second control terminal of the core clock gating unit after processing.

[0101] In an optional embodiment of the present invention, step 22, monitoring the request signal based on the wake-up permission information to obtain a wake-up request, may include:

[0102] Step 221: Determine the total number of wake-up sources and the wake-up permission bits of each wake-up source based on the wake-up permission information;

[0103] Step 222: Determine the valid flag of the wake-up source based on the request signal;

[0104] Step 223: Determine the wake-up request value based on the total number of wake-up sources, the wake-up permission bit, and the valid flag;

[0105] Step 224: When the wake-up request value is equal to the preset value, the wake-up request is determined to be valid, and the wake-up request is obtained.

[0106] In step 221 of this embodiment, the total number of wake-up sources and the wake-up permission bit of each wake-up source are determined according to the wake-up permission information. The wake-up permission information is provided by the wake-up configuration unit, which indicates in bitmap form whether each wake-up source is allowed to participate in wake-up. Therefore, the total number of wake-up sources can be directly obtained from this information. and the Wake-up enable bit for each wake-up source , The wake-up source sequence number takes a value from 1 to... , When it is the first level, it indicates the first One wake-up source is allowed to participate in the wake-up process. When it is the second level, it indicates the first One wake-up source is prohibited from participating in wake-up;

[0107] In step 222, the request signal is used to determine the first... A valid indicator of a wake-up source The request signal is sent by multiple wake-up sources and received through the second input terminal of the wake-up monitoring unit. Each wake-up source corresponds to one request signal. When the first wake-up source sends a request signal, the request signal is sent to the second input terminal of the wake-up monitoring unit. When the wake-up request signal from a wake-up source is valid, its validity flag is... For the first value, when the... When the wake-up request signal from a wake-up source is invalid, its validity flag is... The second value is used; in this embodiment, the first value is 1 and the second value is 0.

[0108] In step 223, based on the total number of wake-up sources, each wake-up enable bit, and each valid flag, the following steps are taken: Determine the wake-up request value ,in, To the total number of wake-up sources, For the first Wake-up enable bit for each wake-up source For the first A valid indicator of a wake-up source To wake up the requested value, the product term in the formula This means calculating each wake-up source individually, when the... When a wake-up source is allowed and the request is valid and All are 1, the product factor is 0, at this time When all wake-up sources are not allowed or the request is invalid, each product factor is 1. ;therefore, This indicates that there is at least one allowed and valid wake-up source;

[0109] In step 224, the preset value is 1, and the wake-up request value is... When the value equals the preset value, the wake-up request is determined to be valid, and the wake-up request is obtained. This wake-up request serves as the basis for subsequent control of the core clock.

[0110] In an optional embodiment of the present invention, step 23, when the waiting instruction is valid, controlling the core clock according to the wake-up request, may include:

[0111] Step 231: Obtain the valid flag for the waiting instruction;

[0112] Step 232: Determine the gate control value based on the valid waiting instruction flag and the wake-up request value;

[0113] Step 233: During the first level of the core clock source, the gate control value is latched to obtain a latched value, which remains unchanged during the second level of the core clock source.

[0114] Step 234: Perform a logical AND operation on the core clock source and the latch value to obtain the gated core clock. The gated core clock stops when the wake-up request is invalid and is released when the wake-up request is valid.

[0115] In step 231 of this embodiment, the valid flag of the waiting instruction is obtained. Waiting for the instruction to be valid. The wait command received from the second control terminal of the core clock gating unit determines the time when the wait command is valid. The value is 1, indicating that the waiting instruction is invalid. The value is 0;

[0116] In step 232, based on the waiting instruction validity flag... and wake-up request value ,according to: Determine the gate control value ,in, This is the gate control value; it is used when the waiting instruction is invalid. When it is 0, A value of 1 always indicates that the core clock should remain running, waiting for a valid instruction. When it is 1, equal That is, the gating control value is determined by the wake-up request value;

[0117] In step 233, during the first level of the core clock source, the gate control value is... Latch, obtain the latched value latch value The latch remains unchanged during the second level of the core clock source, while the first level is low and the second level is high. The latch transparently transmits during the low level. The output remains unchanged during the high-level period, thus avoiding glitches in the core clock after gating;

[0118] In step 234, the core clock source... and latch value Perform logical AND operations according to: Obtain the core clock after gating ,in, As the core clock source, For the core clock after gating, when When it is 1 equal The core clock is outputting normally when When it is 0 When the value is 0, the core clock stops; when the waiting instruction is valid and the wake-up request is invalid, =0, When the value is 0, the core clock stops after gating. This occurs when both the waiting instruction and the wake-up request are valid. =1, When the value is 1, the core clock is released after gating. This occurs when the waiting instruction is invalid. The value is always 1. After gating, the core clock operates normally. Therefore, the core clock after gating stops when the wake-up request is invalid and is released when the wake-up request is valid.

[0119] In an optional embodiment of the present invention, step 24, after resuming the instruction fetch operation, involves performing event processing corresponding to the wake-up source to obtain the event processing result, which may include:

[0120] The processor reads the relevant data or status of the wake-up source corresponding to the wake-up request, executes the event processing corresponding to the wake-up source, and obtains the event processing result. The event processing result refers to the completion flag or status data generated by the processor after completing this event processing, which is used to indicate that the event processing corresponding to this wake-up has ended, and serves as the basis for the processor to execute the wait instruction again.

[0121] In an optional embodiment of the present invention, step 25, based on the event processing result, executing a wait instruction and gating the core clock to obtain scheduling status data, may include:

[0122] Step 251: Execute a waiting instruction based on the event processing result to obtain a waiting instruction signal;

[0123] Step 252: Gating the core clock according to the waiting instruction signal to stop the core clock, while keeping the peripheral clock and system timer time base counting, to obtain scheduling status data.

[0124] In step 251 of this embodiment, the event processing result is generated by the processor after completing the event processing corresponding to the wake-up source, indicating that the current event processing has ended; the processor executes the wait instruction again based on the event processing result, and the wait instruction is sent to the second control terminal of the core clock gating unit through the processor's output terminal to make the wait instruction valid. Set it to 1 to obtain a wait command signal, which is used to request the core clock to be turned off;

[0125] In step 252, the core clock is gating according to the waiting instruction signal. Specifically, the waiting instruction signal is sent to the second logic OR gate after being inverted, and the gating control value is determined by combining it with the wake-up request value. When the waiting instruction is valid and the wake-up request is invalid, the gating control value is 0. After passing through the latch, the latch value is 0. A logical AND operation is performed on the core clock source and the latch value to obtain the gating core clock as 0, and the core clock stops. At the same time, the peripheral clock and the system timer time base do not pass through this gating path and continue to count, so the system tick is not lost. The scheduling status data is obtained from this. The scheduling status data indicates that the core clock has stopped, the peripheral clock and the system timer time base continue to run, and the current event processing is completed and the system enters the next wake-up waiting scheduling state, forming a closed-loop scheduling of event wake-up, fast processing, and immediate sleep.

[0126] like Figure 5As shown, in a specific embodiment of the present invention, the working timing of the single-power-domain sensor chip wake-up scheduling method within a complete low-power scheduling cycle involves the core clock signal clk, the wait instruction signal wfi, the wake-up request signal wakeup, the event processing signal process, and the system timer time base signal tick_time. Initially, the processor runs the application program, and clk toggles normally. When the application program completes its current transaction and enters an idle wait state, the processor executes the wait instruction, wfi goes high, the core clock gating unit closes clk, and the processor enters a low-power state. At this time, the system timer time base tick_time continues counting, and the peripheral clock remains running. When an enabled wake-up source generates a wake-up request, wakeup goes high, the core clock gating unit restores clk, the processor completes instruction fetching and context restoration after wake-up, and enters the event processing stage, where process is valid. After the processor completes the event processing corresponding to the wake-up source, it executes the wait instruction again based on the event processing result, wfi goes high again, clk is gated and closed again, and the system re-enters a low-power state, thus forming a closed-loop scheduling of "running—low power—wake-up—processing—re-low power". In this closed loop, the system timer time base tick_time keeps counting throughout, providing a time reference for timer wake-up requests and ensuring that the processor can still obtain a consistent time reference after multiple wake-up-sleep cycles, avoiding time drift caused by core clock gating; the peripheral and system timer time bases continue to run during sleep, ticks are not lost, and scheduling determinism is maintained.

[0127] To verify the effectiveness of the above technical solution, register-transfer level RTL modeling of the wake-up scheduling device for a single-power-domain sensor chip was performed using the Verilog hardware description language. Cross-simulation verification of the same RTL design was conducted using both the Verilog and Verilator simulators. A total of 59 check cases were set up, covering: read / write and reset behavior of bitmap registers in the wake-up configuration unit; independent enable and masking functions of each wake-up source; combinational logic decision of the wake-up monitoring unit; latching and gating timing of the core clock gating unit; clock stop and recovery after waiting for instruction execution; instruction fetch recovery and event handling process after wake-up; and convergence behavior when multiple wake-up sources are active simultaneously. The 59 check cases yielded consistent simulation results in both the Verilog and Verilator simulators. Simulation results show that, under the typical configuration of three wake-up sources—temperature over-limit interrupt, system timer interrupt, and software interrupt—the wake-up latency from the occurrence of the wake-up event to the recovery of the core clock is approximately 0.75 microseconds, meeting the real-time requirements of low-power sensor nodes.

[0128] The single-power-domain sensor chip wake-up scheduling device and method of this invention can be widely applied to power-sensitive battery-powered scenarios such as IoT sensor nodes, wearable devices, environmental monitoring, industrial sensing, and smart homes. Taking an IoT temperature sensor node as an example, the node is in a low-power sleep state most of the time, and is only woken up to perform sampling, processing, and reporting when the temperature exceeds the limit or when a timed reporting is required. The wake-up scheduling device achieves precise gating and fast recovery of the core clock with minimal hardware overhead, significantly reducing the average power consumption of the node and extending battery life. Since this solution is based on a single power domain, there is no need to configure level conversion circuits and isolation logic for different power domains. The chip area and static power consumption are small, making it particularly suitable for minimally sized clock solutions without phase-locked loops or real-time clocks. For example, a configuration using a 32768Hz RC oscillator as the time base and a processor operating frequency of 4MHz can be used to easily achieve low-power wake-up scheduling at low cost.

[0129] A specific embodiment of the single-power-domain sensor chip wake-up scheduling method provided in this invention is as follows:

[0130] Step 1: Obtain wake-up permission information, request signals from multiple wake-up sources, and waiting instructions;

[0131] This embodiment applies to a single-power-domain temperature sensing node. The node chip is based on the Hummingbird E203 processor core. The Hummingbird E203 core is an ultra-low-power two-stage pipelined processor that supports the RISC-V instruction set. Its typical operating power consumption is less than 100μW, making it suitable for applications such as sensor nodes and wearable devices. This node chip uses a single-power-domain supply, with a core voltage of 1.8V and an input / output voltage of 3.3V. It does not have a phase-locked loop or real-time clock; the system timer base is obtained by frequency division from an internal RC oscillator at a frequency of 32768Hz, and the processor clock frequency is 4MHz. The bitmap register in the wake-up configuration unit has 3 bits, corresponding to 3 wake-up sources: the first wake-up source is an over-limit interrupt from an external temperature sensor aggregated by the interrupt controller; the second wake-up source is a system timer interrupt; and the third wake-up source is a software interrupt. In this embodiment, the bitmap register is configured as follows: , , This means that temperature limit exceedance interrupts and system timer interrupts are allowed to participate in wake-up, while software interrupts are prohibited from participating in wake-up. Regarding request signals, the current temperature limit exceedance interrupt is valid, and its validity flag is... The system timer interrupt has not yet expired, and its validity flag is still active. The software interrupt is invalid; its validity flag is invalid. The wait instruction is output by the processor after the previous event has been processed. The current wait instruction is valid, and the wait instruction validity flag is displayed. .

[0132] Step 2: Monitor the request signal based on the wake-up permission information to obtain the wake-up request;

[0133] according to: Calculate wake-up request value ,in, To the total number of wake-up sources, For the first Wake-up enable bit for each wake-up source For the first A valid indicator of a wake-up source To wake up the request value. Substitute it. , , , , , , ,get , , ,therefore The default value is 1, which is the wake-up request value. If the value equals the preset value, the wake-up request is deemed valid and a wake-up request is received.

[0134] Step 3: When the waiting instruction is valid, control the core clock according to the wake-up request; when the wake-up request is invalid, stop the core clock and keep the peripheral clock and system timer time base counting; when the wake-up request is valid, release the core clock and resume instruction fetching operation.

[0135] Specifically, according to: Calculate the gate control value ,in, This is a flag indicating that the instruction is valid. To wake up the requested value, This is the gate control value. In this embodiment... , ,therefore, At the core clock source The first level period will Latch, obtain the latched value The latch value It remains unchanged during the second level of the core clock source; the first level is low, and the second level is high. According to: For the core clock source and latch value Perform a logical AND operation to obtain the gated core clock. Equal to core clock source The core clock is released at a frequency of 4MHz, and the processor resumes instruction fetching. The wake-up delay is a fixed combinational logic delay from the time the temperature limit interrupt is valid to the time the processor resumes instruction fetching. In this embodiment, this delay is 3 core clock cycles, or 0.75μs. The peripheral clock and system timer time base continue counting at 32768Hz, and no clock cycle loss occurs.

[0136] Step 4: After resuming the instruction fetching operation, execute the event handling corresponding to the wake-up source and obtain the event handling result;

[0137] After the core clock recovers, the processor performs instruction fetching. Based on the valid wake-up source corresponding to the wake-up request, in this embodiment, the first wake-up source, namely the temperature over-limit interrupt, is allowed and the request is valid. The processor reads the relevant data or status of the temperature sensor and performs temperature over-limit event processing. The processing includes reading the temperature value, determining the over-limit level, and updating the status register. After the event processing is completed, the processor obtains the event processing result. The event processing result refers to the completion flag or status data generated by the processor after completing this event processing. For example, the completion flag is set to 1 to indicate that the event processing corresponding to this wake-up has ended, and serves as the basis for the processor to execute the waiting instruction again.

[0138] Step 5: Based on the event processing result, execute the wait instruction and perform gating processing on the core clock to obtain scheduling status data.

[0139] The processor executes the wait instruction again based on the event processing result. The wait instruction is sent to the core clock gating unit via the output terminal to enable the wait instruction validity flag. The system receives a waiting instruction signal. At this point, the temperature over-limit interrupt has been processed and cleared, the system timer interrupt has not yet expired, there are no new valid wake-up sources, the wake-up request is invalid, and the wake-up request value is... .according to: Calculate the gate control value ,get At the core clock source The first level period will Latch, obtain the latched value And it remains so during the second level. According to: Perform a logical AND operation to obtain the gated core clock. When the core clock stops, the processor stops fetching instructions; simultaneously, the peripheral clock and system timer base continue counting at 32768Hz, ensuring no system clock cycle is lost. This yields scheduling state data indicating that the core clock has stopped, the peripheral clock and system timer base continue running, the current temperature exceedance event has been processed, and the system is entering a wait state for the next wake-up, forming a closed-loop scheduling process of event wake-up, rapid processing, and immediate sleep. Subsequently, when the system timer count reaches a preset value, the system timer interrupt becomes the second wake-up source. Once the wake-up request becomes valid again, the core clock is released again, the processor resumes instruction fetching and executes timed event processing, and so on.

[0140] The single-power-domain sensor chip wake-up scheduling method proposed in this invention acquires wake-up permission information, request signals from multiple wake-up sources, and waiting instructions. It calculates the wake-up request value based on the wake-up permission information and request signals. When the waiting instruction is valid, it calculates the gating control value based on the wake-up request value and performs a logical AND operation on the core clock source and latch value to obtain the gating core clock. This enables the core clock to stop when the wake-up request is invalid and release when the wake-up request is valid, while maintaining the counting of peripheral clocks and system timer time bases. This achieves no loss of system tick during sleep, deterministic scheduling, quantifiable wake-up delay, and forms a closed-loop scheduling of event wake-up, rapid processing, and immediate sleep revert.

[0141] The above are preferred embodiments of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A single-power-domain sensor chip wake-up scheduling device, characterized in that, include: The wake-up configuration unit is used to provide wake-up permission information; A wake-up monitoring unit is provided, wherein the first input terminal of the wake-up monitoring unit is connected to the output terminal of the wake-up configuration unit, and the second input terminal of the wake-up monitoring unit is connected to multiple wake-up sources to receive request signals sent by multiple wake-up sources. The wake-up monitoring unit monitors the request signals according to the wake-up permission information and outputs a clock recovery signal when any wake-up source enabled by the wake-up permission information is valid. The core clock gating unit has a first control terminal connected to the output terminal of the wake-up monitoring unit, and a second control terminal for receiving a wait command. When the wait command is valid, the core clock gating unit shuts down the core clock and keeps the peripheral clock and system timer time base counting. When the clock recovery signal is received, the core clock is released. An event processing execution unit is connected to the clock output terminal of the core clock gating unit. The output terminal of the event processing execution unit is connected to the second control terminal of the core clock gating unit. After the core clock is restored, the event processing execution unit performs an instruction fetch operation and executes the event processing corresponding to the wake-up source. After the processing is completed, it outputs a waiting instruction to the second control terminal of the core clock gating unit.

2. The single-power-domain sensor chip wake-up scheduling device according to claim 1, characterized in that, The wake-up configuration unit includes: A bitmap register includes multiple register bits, the number of which is the same as the number of wake-up sources, and each register bit corresponds to one wake-up source; the output of each register bit is connected to the first input of the wake-up monitoring unit; each register bit is used to store the wake-up enable bit of the corresponding wake-up source, where the wake-up enable bit is at a first level and the corresponding wake-up source is allowed to wake up, and the wake-up enable bit is at a second level and the corresponding wake-up source is prohibited from waking up.

3. The single-power-domain sensor chip wake-up scheduling device according to claim 2, characterized in that, The wake-up monitoring unit includes: First logic OR gate and multiple first logic AND gates; The first input of each first AND gate is connected to the output of the corresponding register bit in the wake-up configuration unit, the second input of each first AND gate receives the request signal of the corresponding wake-up source, and the output of each first AND gate is connected to one input of the first OR gate. The output of the first OR gate is connected to the first control terminal of the core clock gating unit, and the first OR gate outputs the clock recovery signal when any of the first AND gate outputs a valid signal.

4. The single-power-domain sensor chip wake-up scheduling device according to claim 1, characterized in that, The core clock gating unit includes: Second logic OR gate, latch, and second logic AND gate; The first input of the second logic OR gate is connected to the output of the wake-up monitoring unit, the second input of the second logic OR gate is used to receive the inverted signal of the waiting instruction, and the output of the second logic OR gate is connected to the data input of the latch. The clock input of the latch is connected to the core clock source, and the output of the latch is connected to the first input of the second logic AND gate. The second input of the second AND gate is connected to the core clock source, and the output of the second AND gate is connected to the clock terminal of the event processing execution unit. The latch transmits the signal provided by the output of the second logic OR gate to the second logic AND gate during the first level of the core clock source, and keeps the signal unchanged during the second level of the core clock source. The second logic AND gate performs a logical AND operation between the output of the latch and the core clock source to obtain the gated core clock.

5. The single-power-domain sensor chip wake-up scheduling device according to claim 4, characterized in that, The core clock gating unit also includes: An inverter, the input of which is connected to the second control terminal of the core clock gating unit, and the output of which is connected to the second input of the second logic OR gate.

6. The single-power-domain sensor chip wake-up scheduling device according to claim 1, characterized in that, The event processing execution unit includes: The processor has its clock terminal connected to the clock output terminal of the core clock gating unit, and its output terminal connected to the second control terminal of the core clock gating unit. The processor is used to perform instruction fetching operations and execute event processing corresponding to the wake-up source after the core clock is restored. After processing, it outputs a waiting instruction to the second control terminal of the core clock gating unit.

7. A wake-up scheduling method for a single-power-domain sensor chip, characterized in that, The method, applied to the single-power-domain sensor chip wake-up scheduling device according to any one of claims 1 to 6, comprises: Acquire wake-up permission information, request signals from multiple wake-up sources, and waiting instructions; The wake-up request is obtained by monitoring the request signal based on the wake-up permission information; When the waiting instruction is valid, the core clock is controlled according to the wake-up request; when the wake-up request is invalid, the core clock is stopped while the peripheral clock and system timer time base continue counting; when the wake-up request is valid, the core clock is released and instruction fetching operation is resumed. After resuming the instruction fetching operation, the event handling corresponding to the wake-up source is executed, and the event handling result is obtained; Based on the event processing result, a wait instruction is executed and the core clock is gated to obtain scheduling status data.

8. The single-power-domain sensor chip wake-up scheduling method according to claim 7, characterized in that, Based on the wake-up permission information, the request signal is monitored to obtain a wake-up request, including: Based on the wake-up permission information, determine the total number of wake-up sources and the wake-up permission bits of the wake-up sources; Based on the request signal, determine the valid flag of the wake-up source; The wake-up request value is determined based on the total number of wake-up sources, the wake-up permission bit, and the valid flag; When the wake-up request value equals a preset value, the wake-up request is determined to be valid, and a wake-up request is obtained.

9. The single-power-domain sensor chip wake-up scheduling method according to claim 8, characterized in that, When the waiting instruction is valid, control the core clock according to the wake-up request, including: Get the valid flag for the waiting instruction; The gate control value is determined based on the valid flag of the waiting instruction and the wake-up request value; During the first level of the core clock source, the gate control value is latched to obtain a latched value, which remains unchanged during the second level of the core clock source. A logical AND operation is performed on the core clock source and the latch value to obtain the gated core clock. The gated core clock stops when the wake-up request is invalid and is released when the wake-up request is valid.

10. The single-power-domain sensor chip wake-up scheduling method according to claim 7, characterized in that, Based on the event processing result, a wait instruction is executed and the core clock is gated to obtain scheduling status data, including: Execute the waiting instruction based on the event processing result to obtain the waiting instruction signal; The core clock is gated according to the waiting instruction signal to stop the core clock, while the peripheral clock and system timer time base continue to count, thus obtaining scheduling status data.