Multi-core processor circuits, control methods, and multi-core processors
By introducing a ground bounce detection module and a task migration module into a multi-core processor, ground bounce phenomena can be detected in real time and the processor state can be frozen, thus solving the data corruption problem caused by ground bounce noise and achieving the stability of the multi-core processor and the reliability of task execution.
Patent Information
- Application Number
- CN202611174528.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-04
- Publication Date
- 2026-11-10
AI Technical Summary
In existing technologies, the ground bounce noise of multi-core processors running under high load is difficult to respond to in a timely manner, leading to silent data corruption and pipeline stalls. Existing intervention methods cannot guarantee system stability.
A multi-core processor circuit is adopted, including a ground bounce detection module, a task migration module, and a processor module. By detecting ground bounce phenomena in real time and sending alarm signals, the processor state is frozen, and the task is migrated to the processor module where ground bounce phenomena have not occurred. A hardware detection link is constructed using sampling resistors, differential amplifiers, and Schmitt triggers to achieve nanosecond-level response and task migration.
It effectively avoids silent data corruption, improves the stability of multi-core processors and the reliability of task execution, and ensures the reliability of system operation and the continuity of tasks.
Smart Images

Figure CN123068221A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of hardware monitoring, and in particular to a multi-core processor circuit, control method, and multi-core processor. Background Technology
[0002] In applications highly sensitive to computing power density, such as artificial intelligence training, high-performance computing, and large-scale data centers, multi-core processors are often driven to operate at full load for extended periods under extreme conditions, near their threshold voltage. However, when multiple cores concurrently execute high-density instructions, the extremely high transient current change rate generates significant ground bounce noise on the parasitic impedance of the chip package and on-chip power and ground loops. Ground bounce noise causes potential reference drift in local logic cells, which can easily lead to silent data corruption or microarchitecture-level pipeline stalls.
[0003] To mitigate the risks posed by ground-bounce noise, existing technologies generally intervene by reducing the frequency or forcibly stripping high-load tasks when the core temperature is detected to be too high. However, the nanosecond-level damage caused by ground-bounce noise is extremely rapid, making it difficult for existing monitoring methods to respond in a timely manner, and the intervention methods cannot guarantee system stability. Summary of the Invention
[0004] The main objective of this invention is to propose a multi-core processor circuit, control method, and multi-core processor, aiming to solve the problem that the existing technologies for dealing with ground bounce noise cannot meet the system stability requirements.
[0005] To achieve the above objectives, the present invention provides a multi-core processor circuit, comprising multiple processor modules, a grounding detection module, and a task migration module; the processor modules and the grounding detection modules are configured in a one-to-one correspondence; the ground terminal of each processor module is connected to a corresponding power ground, the detection terminal of each grounding detection module is connected between the ground terminal of the processor module and the power ground, the output terminal of each grounding detection module is connected to the clock control terminal of the processor module, the output terminal of each grounding detection module is also connected to the input terminal of the task migration module, and the task migration module is connected to the register terminal of each processor module; wherein: The ground bounce detection module is used to detect the electrical signal between the ground terminal of the processor module and the power ground to determine whether a ground bounce phenomenon has occurred, and when a ground bounce phenomenon occurs, to send an alarm signal to the clock control terminal of the processor module and the task migration module. The processor module is used to perform a state freeze operation after receiving the alarm signal at the clock control terminal; The task migration module is used to migrate the tasks of the processor module that experienced the ground bounce phenomenon to the processor module that did not experience the ground bounce phenomenon after receiving the alarm signal.
[0006] Optionally, the ground ball detection module includes a sampling resistor unit, a differential amplifier, and a Schmitt trigger; wherein: The ground terminal of the processor module is connected to the corresponding power ground through the sampling resistor; The two ends of the sampling resistor unit are respectively connected to the two input terminals of the differential amplifier, the output terminal of the differential amplifier is connected to the input terminal of the Schmitt trigger, and the output terminal of the Schmitt trigger serves as the output terminal of the ground ball detection module.
[0007] Optionally, the sampling resistor unit includes multiple polysilicon resistors connected in parallel.
[0008] Optionally, the processor module includes a processor unit, a clock gating unit, and a register unit; the first input terminal of the clock gating unit is connected to a clock signal terminal, the second input terminal of the clock gating unit serves as the clock control terminal of the processor module and is connected to the output terminal of the ground ball detection module, and the output terminal of the clock gating unit is connected to the clock terminal of the processor unit; the register unit is connected to the register terminal of the processor unit, and the register unit is communicatively connected to the task migration module; wherein: The clock gating unit is used to stop outputting the clock signal to the processor unit after receiving the alarm signal; The task migration module is used to migrate the data in the register unit to the register unit in the processor module where no ground bounce has occurred after receiving the alarm signal.
[0009] Optionally, the register unit includes a main register and a shadow register; the word ends of the main register and the shadow register are connected to the same word line, and the bit ends of the main register and the shadow register are connected to the same bit line; the main register is communicatively connected to the processor unit, and the shadow register is communicatively connected to the task migration module.
[0010] Furthermore, to achieve the above objectives, the present invention also provides a multi-core processor control method, which is applied to the multi-core processor circuit described above; the multi-core processor control method includes: Receive alarm signal, which is sent when the ground bounce detection module detects the electrical signal between the ground terminal of the processor module and the power ground and determines that a ground bounce phenomenon has occurred. The tasks of the processor module that experienced the ground bounce phenomenon are migrated to the target processor module that did not experience the ground bounce phenomenon.
[0011] Optionally, migrating the tasks of the processor module where a ground bounce event occurs to the processor module where a ground bounce event does not occur includes: In the processor modules where ground bounce does not occur, the power domain corresponding to each processor module is determined; Determine the power domain of the processor module where the ground bounce phenomenon occurred; Optional processor modules whose power domain is not the ground spring power domain; The target processor module for task migration is determined in the optional processor modules.
[0012] Optionally, migrating the task of the processor module where the ground bounce phenomenon occurred to the target processor module where the ground bounce phenomenon did not occur includes: In processor modules where no ground bounce has occurred, the stabilization time since the last ground bounce in each processor module is determined; The processor module whose stable duration is greater than the preset stable threshold is selected as the optional processor module; The target processor module for task migration is determined in the optional processor modules.
[0013] Optionally, migrating the task of the processor module where the ground bounce phenomenon occurred to the target processor module where the ground bounce phenomenon did not occur includes: In the processor modules where no ground bounce phenomenon has occurred, determine the current activity level of each processor module; Determine the selection priority corresponding to the current activity level, wherein the selection priority is negatively correlated with the current activity level; The target processor module is determined based on the selection priority.
[0014] In addition, to achieve the above objectives, the present invention also provides a multi-core processor, the multi-core processor including a multi-core processor circuit, the multi-core processor circuit being configured as described above.
[0015] This invention proposes a multi-core processor circuit, control method, and multi-core processor. The multi-core processor circuit includes multiple processor modules, a ground bounce detection module, and a task migration module. The processor modules and the ground bounce detection module are configured in a one-to-one correspondence. The ground terminal of each processor module is connected to its corresponding power ground. The detection terminal of the ground bounce detection module is connected between the ground terminal of the processor module and the power ground. The output terminal of the ground bounce detection module is connected to the clock control terminal of the processor module. The output terminal of the ground bounce detection module is also connected to the input terminal of the task migration module. The task migration module is connected to the register terminal of each processor module. Specifically: the ground bounce detection module detects the electrical signal between the ground terminal of the processor module and the power ground to determine whether a ground bounce has occurred. When a ground bounce occurs, it sends an alarm signal to the clock control terminal of the processor module and the task migration module. The processor module performs a state freeze operation after receiving the alarm signal at the clock control terminal. The task migration module migrates the task of the processor module experiencing the ground bounce to the processor module that has not experienced a ground bounce after receiving the alarm signal. By detecting the electrical signal between the processor module and the power ground, the current of the power ground can be monitored in real time. When a ground bounce occurs, the occurrence of the ground bounce can be quickly identified, and the processor module can be frozen to prevent the corruption of silent data in the processor module. At the same time, the tasks of the processor module are migrated to the processor module that has not experienced a ground bounce, thereby ensuring the execution of tasks and improving the stability of multi-core processors. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0017] Figure 1 This is a functional block diagram of an embodiment of the multi-core processor circuit of the present invention; Figure 2 This is a flowchart illustrating the first embodiment of the multi-core processor control method of the present invention. Figure 3 This is a schematic diagram of the overall process of the multi-core processor control method of the present invention; Figure 4 This is a schematic diagram illustrating the selection of target processor modules in the multi-core processor control method of the present invention; Figure 5 This is a block diagram of the multi-core processor of the present invention.
[0018] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings.
[0019] Explanation of icon numbers: Detailed Implementation
[0020] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0022] It should be noted that in the description of this invention, the orientation descriptions, such as up, down, front, back, left, right, etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.
[0023] Furthermore, in the description of this invention, "several" means one or more, "multiple" means two or more, and "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. In this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of indicated technical features. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.
[0024] This invention provides a multi-core processor circuit, applied in multi-core processors. Please refer to [link / reference]. Figure 1 , Figure 1This is a functional block diagram of an embodiment of the multi-core processor circuit of the present invention. In this embodiment, the multi-core processor circuit includes multiple processor modules 100, a grounding detection module 200, and a task migration module; the processor modules 100 and the grounding detection modules 200 are configured in a one-to-one correspondence; the ground terminal of the processor module 100 is connected to the corresponding power ground, the detection terminal of the grounding detection module 200 is connected between the ground terminal of the processor module 100 and the power ground, the output terminal of the grounding detection module 200 is connected to the clock control terminal of the processor module 100, the output terminal of the grounding detection module 200 is also connected to the input terminal of the task migration module, and the task migration module is connected to the register terminal of each processor module 100; wherein: The ground bounce detection module 200 is used to detect the electrical signal between the ground terminal of the processor module 100 and the power ground to determine whether a ground bounce phenomenon has occurred, and when a ground bounce phenomenon occurs, to send an alarm signal to the clock control terminal of the processor module 100 and the task migration module. The processor module 100 is used to perform a state freeze operation after receiving the alarm signal at the clock control terminal; The task migration module is used to migrate the task of the processor module 100 that has experienced a ground bounce phenomenon to the processor module 100 that has not experienced a ground bounce phenomenon after receiving the alarm signal.
[0025] The computing portion of the multi-core processor is provided by multiple computing cores corresponding to processor modules 100; each processor module 100 corresponds to one computing core.
[0026] A ground ball detection module 200 is set up for each processor module 100.
[0027] The ground terminal of processor module 100 is used to input a power ground signal; the power ground is used to provide a reference potential for processor module 100. It is understood that in a multi-core processor, multiple power grounds can be set, and different power grounds can be connected to the ground terminals of one or more processor modules 100 respectively.
[0028] The ground bounce detection module 200 is a module for detecting whether a ground bounce phenomenon occurs in the power ground connected to the ground terminal of the processor module 100.
[0029] Ground bounce is a transient electrical phenomenon in which the internal ground potential of the chip core and the ideal 0V power supply ground of the system package are briefly raised and fluctuated violently due to a sudden change in transient large current and the instantaneous voltage difference induced by the parasitic inductance of the circuit. In other words, when ground bounce occurs, the power supply ground rises, causing a change in the reference potential of the processor module 100.
[0030] Understandably, when ground bounce occurs, the voltage rise between the ground terminal of the processor module 100 and the connected power ground will also be significant due to the rise in power ground. Therefore, by detecting the connection channel between the ground terminal of the processor module 100 and the power ground, the ground bounce phenomenon can be responded to in a timely manner.
[0031] When a ground bounce phenomenon is detected in processor module 100, it indicates that the processor module 100 has a problem with silent data corruption. Therefore, at this time, the state of the processor module 100 is frozen through the clock control terminal to cut off the core clock of the processor module 100, stop the timing logic flipping of the pipeline and the main register 130 pile, thereby avoiding the loss of data and operation state.
[0032] The task migration module is a device that performs task migration; specifically, the task migration module can be an independently configured arbitration decision engine, or it can be another processor module 100 that has not experienced ground bounce.
[0033] It is understandable that when a ground bounce occurs, the corresponding processor module 100 cannot execute the corresponding task. Therefore, in order to ensure the execution of the task, in this embodiment, the task migration module migrates the task to be executed by the processor module 100 that has experienced a ground bounce to the processor module 100 that has not experienced a ground bounce, thereby enabling the execution of the task and ensuring the operational reliability of the multi-core processor.
[0034] This embodiment detects the electrical signal between the processor module 100 and the power ground, enabling real-time monitoring of the power ground current. When a ground bounce occurs, it quickly identifies the occurrence of the ground bounce and triggers the freezing of the processor module 100 to prevent the corruption of silent data in the processor module 100. At the same time, it migrates the tasks of the processor module 100 to the processor module 100 that has not experienced a ground bounce, thereby ensuring the execution of tasks and improving the stability of the multi-core processor.
[0035] Furthermore, the ground ball detection module 200 includes a sampling resistor unit, a differential amplifier Q1, and a Schmitt trigger T1; wherein: The ground terminal of the processor module 100 is connected to the corresponding power ground through the sampling resistor; The two ends of the sampling resistor unit are respectively connected to the two input terminals of the differential amplifier Q1, the output terminal of the differential amplifier Q1 is connected to the input terminal of the Schmitt trigger T1, and the output terminal of the Schmitt trigger T1 serves as the output terminal of the ground ball detection module 200.
[0036] The sampling resistor unit is used to sample the electrical signal on the path between the ground terminal and the power supply ground of the processor module 100.
[0037] Differential amplifier Q1 is a device that amplifies the difference between two input voltages; the specific amplification parameters of differential amplifier Q1 can be set according to actual needs, such as amplifying to a programmable voltage value of 50~500mV.
[0038] The Schmitt trigger T1 is an analog-to-digital converter shaping unit with dual threshold hysteresis, which can convert analog fluctuating voltages with gentle edges and glitches into digital pulse signals with steep edges and stable levels.
[0039] When no ground bounce occurs, the voltage difference across the sampling resistor is amplified by the differential amplifier Q1 and is less than the threshold voltage of the Schmitt trigger T1, so the Schmitt trigger T1 outputs a low level.
[0040] Understandably, the sampling resistor is connected between the ground terminal of the processor module 100 and the power supply ground. When ground bounce occurs, it will cause a sudden current change in the power supply ground loop, such as a current change rate di / dt > 100A / μs. This sudden current change causes a significant increase in the voltage difference across the sampling resistor. The voltage difference across the sampling resistor is amplified by the differential amplifier Q1 and output to the Schmitt trigger T1. When the voltage output by the differential amplifier Q1 reaches the threshold voltage of the Schmitt trigger T1, the Schmitt trigger T1 outputs a high-level signal to generate an alarm signal. The width of the high-level output by the Schmitt trigger T1 is consistent with the duration of the ground bounce, such as a typical value of 1ns.
[0041] In this embodiment, a fully hardware-based approach is used to detect ground bounce, which greatly reduces the response delay and enables the output of an alarm signal within 0.5ns of the ground bounce occurring.
[0042] This embodiment constructs a detection link for ground bomb sampling and pulse generation; it captures transient changes in the power supply ground loop in real time through a sampling resistor, and generates a hardware pulse, i.e., an alarm signal, through differential amplification and Schmitt trigger T1 shaping, thereby enabling timely alarm signal output and timely triggering of freeze state and task migration.
[0043] Furthermore, the sampling resistor unit includes multiple polysilicon resistors R1 connected in parallel.
[0044] When a single resistor carries a large transient ground bounce current through its core, it generates significant heat, and its resistance value drifts dramatically with temperature. This causes distortion in the ground bounce sampling voltage difference, which can easily lead to misjudgments of the ground bounce phenomenon.
[0045] The polycrystalline silicon resistor R1 is formed by photolithography etching of a fixed length and width of a doped polycrystalline silicon thin film as the conductive layer. The specific parameters of the polycrystalline silicon resistor R1 can be set according to actual needs, such as using a 5mΩ polycrystalline silicon resistor R1.
[0046] In this embodiment, multiple polysilicon resistors R1 are connected in parallel. The specific number of polysilicon resistors R1 connected in parallel can be set according to actual needs, such as connecting 16 polysilicon resistors R1 in parallel to form a polysilicon resistor R1 array.
[0047] In this embodiment, by connecting multiple polysilicon resistors R1 in parallel, the transient ground bounce current will be diverted to multiple polysilicon resistors R1 when ground bounce occurs, thereby reducing the current on a single polysilicon resistor R1, reducing the degree of heat generation, and avoiding sampling deviation caused by excessive temperature rise of the polysilicon resistor R1.
[0048] Further, the processor module 100 includes a processor unit 110, a clock gating unit 120, and a register unit; the first input terminal of the clock gating unit 120 is connected to a clock signal terminal, the second input terminal of the clock gating unit 120 serves as the clock control terminal of the processor module 100 and is connected to the output terminal of the ground ball detection module 200, and the output terminal of the clock gating unit 120 is connected to the clock terminal of the processor unit 110; the register unit is connected to the register terminal of the processor unit 110, and the register unit is communicatively connected to the task migration module; wherein: The clock gating unit 120 is used to stop outputting the clock signal to the processor unit 110 after receiving the alarm signal; The task migration module is used to migrate the data in the register unit to the register unit in the processor module 100 where no ground bounce has occurred after receiving the alarm signal.
[0049] ICG (Integrated Clock Gating) is a timing control hardware unit that controls whether the system master clock is transmitted to downstream timing circuits through an enable signal.
[0050] During normal operation, the timing gating unit sends the clock signal provided by the clock signal terminal to the clock terminal of the processor unit 110 to provide a clock signal for the processor unit 110.
[0051] The specific structure of the clock gating unit 120 can be set according to actual needs. For example, the timing control hardware unit can be composed of a two-input AND gate, i.e., AND2 gate + SR latch. When the ground bullet detection module 200 does not output an alarm signal, the clock gating unit 120 outputs a clock signal to the processor unit 110 normally. When the ground bullet detection module 200 outputs an alarm signal, the clock gating unit 120 stops outputting a clock signal to the processor unit 110. At this time, the processor unit 110 is frozen, and the PC (Program Counter) / GPRs (General Purpose Registers) state is 100% maintained, without triggering pipeline flush.
[0052] By directly receiving alarm signals in hardware through the clock gating unit 120, the clock of the processor unit 110 is cut off at the nanosecond level. The kernel of the processor unit 110 is frozen before the ground bounce phenomenon causes data corruption, without flushing the pipeline or losing intermediate operation states, thus greatly reducing the probability of silent data corruption.
[0053] The register unit is the kernel context memory array of processor unit 110.
[0054] During normal operation, the register unit provides a read / write cache for the processor unit 110.
[0055] When the ground bounce detection module 200 does not output an alarm signal, the register unit normally provides data to the processor unit 110. When the ground bounce detection module 200 outputs an alarm signal, the corresponding processor unit 110 experiences a ground bounce and is frozen, unable to continue executing the task. At this time, the task migration module migrates the data in the register unit to the register unit in the processor module 100 that has not experienced a ground bounce, so that the migrated processor module 100 can continue to execute the task based on the existing data.
[0056] Furthermore, the register unit includes a main register 130 and a shadow register 140; the word ends of the main register 130 and the shadow register 140 are connected to the same word line, and the bit ends of the main register 130 and the shadow register 140 are connected to the same bit line; the main register 130 is communicatively connected to the processor unit 110, and the shadow register 140 is communicatively connected to the task migration module.
[0057] The main register 130 is the native context storage array of the processor unit 110 core; the specific structure of the main register 130 can be set according to actual needs.
[0058] Shadow register 140 is a dedicated backup storage array that maps one-to-one with main register 130, and mirrors all storage bits of main register 130 in parallel via hardware.
[0059] Word lines are the control lines for the address decoding of register files. One word line corresponds to all the register bit units in a row. When a word line is active, all memory units in that row are turned on, allowing data to be read / written through the bit lines.
[0060] A single word line connects both word 130 of the main register and word 140 of the shadow register. There is only one address decoder, so there is no need for repeated decoding.
[0061] The bit line is a data transmission signal line for the bit register file, divided into read bit lines and write bit lines. Each column of bit units shares one bit line, which is used to transmit single-bit read and write data.
[0062] Each bit line is simultaneously connected to the corresponding column master register 130 bit end and shadow register 140 bit end; during the capture phase, the bit lines are bidirectionally turned on, and the storage level of master register 130 is synchronously split to the latch unit of shadow register 140.
[0063] By sharing the same set of word lines, bit lines, and address decoding circuits between the main register 130 and the shadow register 140, the address selection and data reading timing of the two arrays are completely synchronized, eliminating timing offset, ensuring 100% context consistency, and completely avoiding data migration errors.
[0064] This invention also protects a multi-core processor control method, which is applied to the multi-core processor circuit described above; see reference. Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the multi-core processor control method of the present invention. The method includes the following steps: Step S10: Receive an alarm signal. The alarm signal is sent when the ground bounce detection module detects the electrical signal between the ground terminal of the processor module and the power ground and determines that a ground bounce phenomenon has occurred. Step S20: Transfer the task of the processor module that experienced the ground bounce phenomenon to the target processor module that did not experience the ground bounce phenomenon.
[0065] A ground bounce detection module is set up for each processor module.
[0066] The ground terminal of the processor module is used to input the power ground signal; the power ground is used to provide a reference potential for the processor module. It is understood that in a multi-core processor, multiple power grounds can be set, and different power grounds can be connected to the ground terminals of one or more processor modules respectively.
[0067] The ground bounce detection module is a module that detects whether ground bounce occurs in the power ground connected to the ground terminal of the processor module.
[0068] Ground bounce is a transient electrical phenomenon where the internal ground potential of the chip core and the ideal 0V power supply ground of the system package are briefly raised and fluctuated violently due to a sudden change in transient large current and the instantaneous voltage difference induced by the parasitic inductance of the circuit. In other words, when ground bounce occurs, the power supply ground rises, causing a change in the reference potential of the processor module.
[0069] Understandably, when ground bounce occurs, the voltage rise between the processor module's ground terminal and the connected power ground will also be significant due to the power ground rise. Therefore, by detecting the connection channel between the processor module's ground terminal and the power ground, a timely response to ground bounce can be achieved.
[0070] See Figure 3 When a ground bounce phenomenon is detected in the processor module, it indicates that the processor module has a problem with silent data corruption. Therefore, at this time, the state of the processor module is frozen through the clock control terminal to cut off the core clock of the processor module, stop the timing logic flipping of the pipeline and the main register file, thereby avoiding the loss of data and operation state.
[0071] The task migration module is the device that performs task migration; specifically, the task migration module can be an independently configured arbitration decision engine, or it can be other processor modules that do not exhibit ground bounce.
[0072] It is understandable that when a ground bounce occurs, the corresponding processor module cannot execute the corresponding task. Therefore, in order to ensure the execution of the task, in this embodiment, the task migration module migrates the task to be executed by the processor module that has a ground bounce to the processor module that has not a ground bounce, thereby enabling the execution of the task and ensuring the operational reliability of the multi-core processor.
[0073] This embodiment detects the electrical signal between the processor module and the power ground, enabling real-time monitoring of the power ground current. When a ground bounce occurs, it quickly identifies the occurrence of the ground bounce and triggers the freezing of the processor module to prevent the corruption of silent data in the processor module. At the same time, it migrates the tasks of the processor module to the processor module that has not experienced the ground bounce, thereby ensuring the execution of tasks and improving the stability of the multi-core processor.
[0074] Further, see Figure 4 Step S20 includes the following steps: Step S21: In the processor modules where ground bounce does not occur, determine the power domain corresponding to each processor module. Step S22: Determine the power domain of the processor module where the ground bounce phenomenon occurred; Step S23: Determine the optional processor module whose power domain is not the ground bounce power domain; Step S24: Determine the target processor module for task migration among the optional processor modules.
[0075] Understandably, in practical applications, there may be multiple processor modules connected to a power domain. If a task is migrated to a processor module corresponding to the same power domain, that processor module will also be affected by the ground bounce phenomenon and will be unable to execute the task.
[0076] To address this issue, the power domain of the processor module is determined in this embodiment.
[0077] The power domain is an independent power supply partition within the chip. All processor modules within the same power domain share a set of power and ground interconnection loops, and there is strong electrical coupling between the cores within the domain. The power supply and ground loops of processor modules in different power domains are physically isolated, and cross-domain core ground bounce noise does not conduct or interfere with each other.
[0078] The ground bounce power domain is the power domain partition to which the processor module that experienced the ground bounce phenomenon belongs.
[0079] It is understandable that a ground bounce phenomenon occurred in the ground bounce power domain. Therefore, all processor modules contained in the ground bounce power domain will be affected by the ground bounce phenomenon. Therefore, in this embodiment, processor modules located in the ground bounce power domain are excluded from the scope of task migration consideration.
[0080] The optional processor module is a processor module located in a power domain where ground bounce does not occur.
[0081] Once the ground ball detection module detects ground ball noise generated by any processor module and outputs an alarm signal, it initiates a screening process. First, it retrieves the power domain number information corresponding to all processor modules that have not experienced ground ball phenomena from the Island Mask ROM hard-coded in the metal layer. Then, it retrieves the power domain bound to the source processor module that generated the ground ball and marks it as the ground ball power domain. Subsequently, it traverses all normal processor modules in parallel and filters out the kernels whose power domain numbers do not match the ground ball power domain numbers to form a set of selectable processor modules. Finally, it selects the target processor module to be migrated out from the set of selectable processor modules. Specifically, it can use number priority or other selection conditions to determine the selection.
[0082] This embodiment uses power domain isolation as a hardware screening condition to preemptively eliminate processor modules that share the same power supply partition as the fault source. This avoids the superposition of transient currents after task migration, which exacerbates ground bounce noise and ensures the electrical safety of migration operations from the bottom layer. It also reduces the occurrence rate of false equalization from over 60% to below 5%.
[0083] Further, step S20 includes the following steps: Step S25: In the processor modules where no ground bounce phenomenon has occurred, determine the stable time since the last ground bounce phenomenon in each processor module; Step S26: Select the processor module whose stable duration is greater than the preset stable threshold as the optional processor module; Step S27: Determine the target processor module for task migration among the optional processor modules.
[0084] Some processor modules frequently exhibit ground bounce noise, and the electrical state of the core power supply and ground circuit is unstable. If tasks are migrated to such cores, ground bounce is easily triggered again, repeatedly causing data corruption, pipeline freezing, and frequent interruptions to business calculations.
[0085] To avoid this problem, the processor modules in this embodiment are screened based on stability.
[0086] The stable duration is the duration of a processor module from the end of the last ground bounce event to the current moment. Each processor module is equipped with an independent hardware counter, which is reset to zero each time a ground bounce occurs, and continuously incremented when there is no ground bounce.
[0087] Understandably, the longer the stability time, the higher the stability of the processor module, and therefore the higher the stability of migrating tasks to the processor module.
[0088] The preset stability threshold is a pre-set threshold for distinguishing reliability; the specific value of the preset stability threshold can be set based on actual needs.
[0089] If the stability duration is greater than the preset stability threshold, the stability of the processor module is considered to meet the migration requirements, and therefore it is an optional target processor module; if the stability duration is less than or equal to the preset stability threshold, the stability of the processor module is considered to not meet the migration requirements, and therefore it is excluded from the scope of task migration consideration.
[0090] Once the ground ball detection module detects ground ball noise generated by any processor module and outputs an alarm signal, it iterates through all processor modules that do not currently have ground ball alarms. It then reads the stable duration of each processor module since the last ground ball event using the independent timing circuit associated with each core. Each stable duration is then compared to a preset stability threshold. Only processor modules with stable durations exceeding the preset stability threshold are grouped into a selectable processor module set. Finally, the target processor module for migration is selected from the selectable processor module set; this can be determined using priority numbering or other selection criteria.
[0091] In this embodiment, a stable duration is set as the screening criterion for target processor modules. Processor modules that have recently experienced frequent ground bounces or unstable electrical states are filtered out to avoid triggering ground bounce noise again after task migration, and the probability of secondary silent data corruption and pipeline freezing is greatly reduced.
[0092] Further, step S20 includes the following steps: Step S28: In the processor modules where no ground bounce phenomenon has occurred, determine the current activity level of each processor module. Step S29: Determine the selection priority corresponding to the current activity level, wherein the selection priority is negatively correlated with the current activity level; Step S210: Determine the target processor module based on the selection priority.
[0093] Randomly selecting a target processor module can easily lead to the selection of a high-load processor module, resulting in task overlap, computing power congestion, and a false balance where one core is overloaded and neighboring cores are idle.
[0094] To address this issue, the activity level of the processor module is determined in this embodiment.
[0095] Current activity is a hardware quantification indicator that quantifies the real-time load of the processor module. Current activity can be set according to actual needs, such as using the number of instructions issued by the kernel per unit clock cycle as current activity. The higher the current activity, the heavier the current computing load of the processing module.
[0096] Priority is selected as the migration candidate weight assigned to each optional processor module, which is used to characterize the priority of the kernel being selected as the task migration target.
[0097] It is understandable that the higher the current activity level, the heavier the current load on the processor module. Therefore, the pressure after the data is migrated in is also greater. Therefore, in order to avoid the migration causing excessive pressure on other processor modules, this embodiment sets the selection priority to be negatively correlated with the current activity level, so that the processor module with the lower current activity level is selected as the target processor module.
[0098] This embodiment automatically prioritizes low-load idle cores by using logic that is negatively correlated with activity level and selection priority. This avoids migrating tasks to high-load cores and causing computing power congestion, reducing the pseudo-balance ratio of "one core overloaded and neighboring cores idle" to below 5%, thus achieving true multi-core load balancing.
[0099] In practical applications, the final target processor module can be determined by combining the ground ballistic power domain, stabilization time, and selection priority.
[0100] The overall implementation principle of this application is explained below: This application develops a hardware-based decision-making inter-core migration method triggered by ground bounce noise. During the detection phase, the system uses a 5mΩ polysilicon sampling resistor and a CML differential amplifier to capture power-to-ground loop transients in real time, generating hardware pulses. A clock gating unit freezes the source core instruction execution path 100%, and a shadow register captures context data. Through hard-coded power domain masks in the metal layer and parallel silent score calculation, the optimal target core is accurately arbitrated based on multi-dimensional criteria such as potential difference, power domain isolation, and instantaneous activity. Combined with a direct bridge and shadow register takeover mechanism, lossless task migration and seamless recovery are achieved. Simultaneously, the system possesses hardware-level electrical safety awareness capabilities, automatically avoiding the risk of migration between cores in the same power domain, ensuring 100% data consistency, and completely eliminating the "blind migration" dilemma.
[0101] This technology can enhance the computing power of multi-core systems, significantly reduce data center operation and maintenance costs and energy consumption, and promote the development of AI training and high-performance computing platforms towards extreme energy efficiency and high reliability. It has significant technological advancements and broad industrial application value.
[0102] Invention Point 1: Ground Bounce Noise Triggering Pulse Generation Circuit A ground bounce noise trigger pulse generation circuit is proposed. The hardware relies on a 5mΩ polysilicon sampling resistor, a CML (Current Mode Logic) differential amplifier, and a Schmitt trigger. Its core lies in constructing a real-time link of "ground bounce sampling—pulse generation—execution freeze—task migration." The system captures power-ground loop transients in real time through the polysilicon sampling resistor, and generates a hardware pulse, i.e., an alarm signal, after differential amplification and shaping. The alarm signal directly triggers the clock gating unit to freeze the source core's execution state; synchronously, it triggers a hard switch of the task to the target processor module, preventing silent data corruption at the source and eliminating performance drops.
[0103] Invention Point 2: Ground Bomb Triggered Electrical Safety Migration Election Strategy A novel electrical safety migration election strategy is proposed under ground bounce noise pulse triggering. Its core lies in constructing a three-level criterion chain: "power domain isolation – ground bounce history screening – activity quantification." After pulse activation, the system first eliminates candidate cores sharing the power domain with the source core based on the metal-layer hard-coded Island Mask ROM; secondly, it prioritizes cores that have not experienced ground bounce noise in the ground bounce history screening; finally, among the undamaged cores, it quantifies the instantaneous activity through periodic instruction issuance counting, selecting the core with the lowest activity as the target. This completely eliminates the false balance of "one core overloaded, neighboring cores idle," achieving true and effective load balancing across multiple cores.
[0104] This invention is a ground bounce noise trigger pulse generation circuit, such as... Figure 1 As shown, the hardware structure of this method relies on a 5mΩ polysilicon sampling resistor, a differential amplifier, and a Schmitt trigger; as Figure 3 As shown, its core lies in constructing a real-time link of "ground bomb sampling - pulse generation - execution freeze - context capture" to achieve nanosecond-level response to ground bomb noise. The system is based on a multi-core processor SoC and supports nanosecond-level real-time response.
[0105] The system enters standby mode after power-on. When multiple cores execute high-density instructions concurrently, such as matrix multiplication and addition or high-bandwidth memory access, transients occur in the power supply ground loop, with a current surge rate di / dt > 100A / μs. A 5mΩ polysilicon sampling resistor is connected in series between the processor module's ground terminal Core A VSS_core and the power supply ground VSS_package to capture the voltage drop across the VSS pin. This voltage is amplified by a CML differential amplifier to a programmable threshold of 50~500mV, and then shaped by a Schmitt trigger into a GND_Spike hardware pulse, i.e., an alarm signal. The pulse width equals the ground bounce duration, with a typical value of 1ns. The pulse directly drives the clock gating unit, which consists of an AND2 gate and an SR latch. The clock input CLK_IN is connected to the system master clock, and the test enable TE is connected to the inverted GND_Spike signal. The clock gating unit shuts off the Core A clock at T0+0.5ns and freezes the execution state at T0+1.0ns. The shadow register is activated synchronously, capturing the original read data from the main register file within T0+1.5ns~3.0ns.
[0106] The system is based on a multi-core processor SoC and ensures accuracy through the following physical implementations: The sampling resistor layout is a polysilicon resistor array with 16 units connected in parallel to reduce the temperature coefficient (ΔR / R=±50ppm / °C, where ΔR is the change in resistance value and R is the nominal resistance value).
[0107] CML differential amplifiers employ a symmetrical differential pair tube layout, with a matching error of <0.5%. Clock gating: ICG cells are placed adjacent to Core A, with a clock tree delay of <0.2ns. The shadow register shares word lines / bit lines with the main register, and the write timing is strictly synchronized.
[0108] A complete hardware-level response chain is formed by capturing ground bounce transients with a 5mΩ sampling resistor, generating high-precision pulses with a CML differential amplifier, achieving nanosecond-level freezing with a clock gating unit, and capturing the original context with a shadow register. The system requires no software intervention, has a response latency of <1ns, 100% freezing accuracy with no data loss, a pulse width of 1.0ns ± 0.1ns, and a data acquisition latency of 1.5ns.
[0109] In AI training and data center scenarios, the probability of silent data corruption is reduced from >0.1% to <0.001%, performance jitter is eliminated by more than 95%, and the performance drop caused by traditional DVFS is completely eradicated. It provides ultimate energy efficiency and reliability for high-density computing platforms, and has outstanding technological advancement and industrial application value.
[0110] The ground-bomb-triggered electrical safety migration election strategy is based on the ground-bomb noise trigger pulse generation circuit, such as... Figure 4 As shown. After the pulse is generated and the source core is frozen and the context is captured, this strategy is activated. It is responsible for determining which target core to migrate the task to, ensuring that the migration process is safe and efficient, and avoiding the false balance problem of "one core overloaded and neighboring cores idle".
[0111] Step 1: Power domain isolation screening (eliminating electrical risks); Decision-making logic: Prioritize excluding cores that share the same power domain as the source core (high electrical coupling risk) to ensure that the migration will not exacerbate ground bounce noise.
[0112] Physical mechanism: The metal layer hard-coded ROM reads the power domain topology of the source core and candidate core in real time (e.g., the source core is in domain 0 and the candidate core is in domain 1), and automatically excludes cores in the same domain.
[0113] Step 2: Historical screening of landmines (avoiding damage to the core); Decision-making logic: Prioritize nuclear sites that have not experienced recent landmine incidents, and avoid migrating missions to damaged nuclear sites.
[0114] Physical mechanism: The hardware detects the nuclear warhead history markers in real time and automatically resets them through an RC delay circuit.
[0115] Step 3: Active metric (select low-load cores); Decision-making logic: Among the undamaged cores, select the core with the lowest instantaneous activity to ensure that the target core can efficiently receive the task.
[0116] By isolating electrical risks through power island isolation, screening for damaged cores based on grounding history, and selecting low-load cores through activity quantification, a complete three-level criterion chain is formed. The system requires no software scheduling, has a decision latency of <1.5ns, 100% electrical isolation accuracy, and 100% lossless migration rate. In AI training and data center scenarios, the false balance rate of "one core overloaded, neighboring cores idle" is reduced from >60% to <5%, completely breaking the blind migration dilemma of traditional scheduling and providing ultimate energy efficiency and high reliability for high-density computing platforms.
[0117] This invention also protects a multi-core processor, which includes a multi-core processor circuit. The structure of the multi-core processor circuit can be referred to in the above embodiments, and will not be repeated here. Accordingly, since the multi-core processor of this embodiment adopts the technical solution of the above-described multi-core processor circuit, it has all the beneficial effects of the above-described multi-core processor circuit.
[0118] Reference Figure 5 In terms of hardware structure, the multi-core processor may include components such as a communication module 10, a memory 20, and a processor 30. In the multi-core processor, the processor 30 is connected to both the memory 20 and the communication module 10. The memory 20 stores a computer program, which is executed by the processor 30. When the computer program is executed, it implements the steps of the above-described method embodiment.
[0119] The communication module 10 can connect to external communication devices via a network. The communication module 10 can receive requests from the external communication devices and can also send requests, instructions, and information to the external communication devices. The external communication devices can be other multi-core processors, servers, or IoT devices, such as televisions, etc.
[0120] The memory 20 can be used to store software programs and various data. The memory 20 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as migrating the task of a processor module experiencing a ground bounce to a target processor module that has not experienced a ground bounce), etc. The data storage area may include a database and may store data or information created based on system usage. Furthermore, the memory 20 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0121] Processor 30 is the control center of the multi-core processor. It connects various parts of the multi-core processor via various interfaces and lines. By running or executing software programs and / or modules stored in memory 20, and by calling data stored in memory 20, it performs various functions and processes data of the multi-core processor, thereby providing overall monitoring of the multi-core processor. Processor 30 may include one or more processing units; optionally, processor 30 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into processor 30.
[0122] although Figure 5 Not shown, but the aforementioned multi-core processor may also include a circuit control module, which is connected to a power supply to ensure the normal operation of other components. Those skilled in the art will understand that... Figure 5 The multi-core processor architecture shown does not constitute a limitation on multi-core processors and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0123] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element. The sequence numbers of the above-described embodiments are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0124] In the description of this invention, unless otherwise explicitly defined, terms such as "set up," "install," and "connect" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.
[0125] In the description of this invention, the terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0126] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A multi-core processor circuit, characterized in that, The multi-core processor circuit includes multiple processor modules, a grounding detection module, and a task migration module; the processor modules and the grounding detection modules are configured in a one-to-one correspondence; the ground terminal of each processor module is connected to its corresponding power ground, the detection terminal of each grounding detection module is connected between the ground terminal of the processor module and the power ground, the output terminal of each grounding detection module is connected to the clock control terminal of the processor module, the output terminal of each grounding detection module is also connected to the input terminal of the task migration module, and the task migration module is connected to the register terminal of each processor module; wherein: The ground bounce detection module is used to detect the electrical signal between the ground terminal of the processor module and the power ground to determine whether a ground bounce phenomenon has occurred, and when a ground bounce phenomenon occurs, to send an alarm signal to the clock control terminal of the processor module and the task migration module. The processor module is used to perform a state freeze operation after receiving the alarm signal at the clock control terminal; The task migration module is used to migrate the tasks of the processor module that experienced the ground bounce phenomenon to the processor module that did not experience the ground bounce phenomenon after receiving the alarm signal.
2. The multi-core processor circuit as described in claim 1, characterized in that, The ground ball detection module includes a sampling resistor unit, a differential amplifier, and a Schmitt trigger; wherein: The ground terminal of the processor module is connected to the corresponding power ground through the sampling resistor; The two ends of the sampling resistor unit are respectively connected to the two input terminals of the differential amplifier, the output terminal of the differential amplifier is connected to the input terminal of the Schmitt trigger, and the output terminal of the Schmitt trigger serves as the output terminal of the ground ball detection module.
3. The multi-core processor circuit as described in claim 2, characterized in that, The sampling resistor unit includes multiple polysilicon resistors connected in parallel.
4. The multi-core processor circuit as described in claim 1, characterized in that, The processor module includes a processor unit, a clock gating unit, and a register unit. The first input terminal of the clock gating unit is connected to a clock signal terminal, and the second input terminal of the clock gating unit serves as the clock control terminal of the processor module and is connected to the output terminal of the ground ball detection module. The output terminal of the clock gating unit is connected to the clock terminal of the processor unit. The register unit is connected to the register terminal of the processor unit and is communicatively connected to the task migration module. Wherein: The clock gating unit is used to stop outputting the clock signal to the processor unit after receiving the alarm signal; The task migration module is used to migrate the data in the register unit to the register unit in the processor module where no ground bounce has occurred after receiving the alarm signal.
5. The multi-core processor circuit as described in claim 4, characterized in that, The register unit includes a main register and a shadow register; the word ends of the main register and the shadow register are connected to the same word line, and the bit ends of the main register and the shadow register are connected to the same bit line; the main register is communicatively connected to the processor unit, and the shadow register is communicatively connected to the task migration module.
6. A multi-core processor control method, characterized in that, The multi-core processor control method is applied to the multi-core processor circuit as described in any one of claims 1 to 5; The multi-core processor control method includes: Receive alarm signal, which is sent when the ground bounce detection module detects the electrical signal between the ground terminal of the processor module and the power ground and determines that a ground bounce phenomenon has occurred. The tasks of the processor module that experienced the ground bounce phenomenon are migrated to the target processor module that did not experience the ground bounce phenomenon.
7. The multi-core processor control method as described in claim 6, characterized in that, The process of migrating tasks from the processor module where a ground bounce event occurred to the processor module where a ground bounce event did not occur includes: In the processor modules where ground bounce does not occur, the power domain corresponding to each processor module is determined; Determine the power domain of the processor module where the ground bounce phenomenon occurred; Optional processor modules whose power domain is not the ground spring power domain; The target processor module for task migration is determined in the optional processor modules.
8. The multi-core processor control method as described in claim 6, characterized in that, The process of migrating the tasks of the processor module that experienced the ground bounce phenomenon to the target processor module that did not experience the ground bounce phenomenon includes: In processor modules where no ground bounce has occurred, the stabilization time since the last ground bounce in each processor module is determined; The processor module whose stable duration is greater than the preset stable threshold is selected as the optional processor module; The target processor module for task migration is determined in the optional processor modules.
9. The multi-core processor control method as described in claim 6, characterized in that, The process of migrating the tasks of the processor module that experienced the ground bounce phenomenon to the target processor module that did not experience the ground bounce phenomenon includes: In the processor modules where no ground bounce phenomenon has occurred, determine the current activity level of each processor module; Determine the selection priority corresponding to the current activity level, wherein the selection priority is negatively correlated with the current activity level; The target processor module is determined based on the selection priority.
10. A multi-core processor, characterized in that, The multi-core processor includes the multi-core processor circuit as described in any one of claims 1 to 5.
