CN115167651A - Load balancing circuit and system for multi-core SOC reset - Google Patents
Load balancing circuit and system for multi-core SOC reset Download PDFInfo
- Publication number
- CN115167651A CN115167651A CN202211080066.7A CN202211080066A CN115167651A CN 115167651 A CN115167651 A CN 115167651A CN 202211080066 A CN202211080066 A CN 202211080066A CN 115167651 A CN115167651 A CN 115167651A
- Authority
- CN
- China
- Prior art keywords
- circuit
- load
- mos transistor
- reset
- channel power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000003990 capacitor Substances 0.000 claims description 11
- 238000000034 method Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 5
- 229920006395 saturated elastomer Polymers 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000010365 information processing Effects 0.000 description 2
- 230000035772 mutation Effects 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 230000000717 retained effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/30—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
- G06F1/305—Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations in the event of power-supply fluctuations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/24—Resetting means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2236—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
- G06F11/2242—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors in multi-processor systems, e.g. one processor becoming the test master
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Power Sources (AREA)
- Microcomputers (AREA)
Abstract
Description
技术领域technical field
本申请涉及SOC调试技术领域,尤其涉及一种多核SOC复位的负载均衡电路及系统。The present application relates to the technical field of SOC debugging, and in particular, to a load balancing circuit and system for resetting a multi-core SOC.
背景技术Background technique
CPU是中央处理器(Central Processing Unit)的英文简称,它具有控制和信息处理的能力,是电脑和智能设备的控制中枢。如果把传统CPU芯片中的封装和辅助电路(例如引脚的接口电路、电源电路和时钟电路等)排除在外,只保留完成控制和信息处理功能的核心电路,这部分电路就是CPU核心,也简称CPU核。一个CPU核心基本上是一个完全独立的处理器,它可以从内部存储器中读取指令,并执行指令指定的控制和计算任务。CPU is the English abbreviation of Central Processing Unit (Central Processing Unit). It has the ability to control and process information and is the control center of computers and smart devices. If the packaging and auxiliary circuits (such as pin interface circuits, power supply circuits and clock circuits, etc.) in the traditional CPU chip are excluded, only the core circuits that complete the control and information processing functions are retained. This part of the circuit is the CPU core, also referred to as CPU core. A CPU core is basically a completely independent processor that can read instructions from internal memory and perform control and computational tasks specified by the instructions.
如果把一个CPU核心和相关辅助电路封装在一个芯片中,这个芯片就是传统的单核心CPU芯片,简称单核CPU。如果把多个CPU核心和相关辅助电路封装在一个芯片中,这个芯片就是多核心CPU芯片,简称多核CPU。如果在多核心CPU芯片中再集成一些其它功能部件和接口电路,就形成了完整的系统,那么这个芯片就变成了多核心SOC芯片了,简称多核SOC。If a CPU core and related auxiliary circuits are packaged in one chip, the chip is a traditional single-core CPU chip, or single-core CPU for short. If multiple CPU cores and related auxiliary circuits are packaged in one chip, the chip is a multi-core CPU chip, abbreviated as a multi-core CPU. If some other functional components and interface circuits are integrated into the multi-core CPU chip to form a complete system, then the chip becomes a multi-core SOC chip, referred to as a multi-core SOC.
多核SOC芯片的内部集成了多个CPU,以满足日益增长的计算能力的需求。而在调试CPU过程中,在做不到每个内核CPU单独复位控制的情况下,通常只能让所有正常运行的内核CPU同时复位,多核CPU同时复位意味着负载突变,这样会导致输出电压出现上冲,严重的电压上冲将会导致一系列难以预测的后果。A multi-core SOC chip integrates multiple CPUs inside to meet the growing demand for computing power. In the process of debugging the CPU, if each core CPU cannot be individually reset and controlled, it is usually only possible to reset all the normal running core CPUs at the same time. Simultaneous reset of multi-core CPUs means a sudden change in the load, which will cause the output voltage to appear. Overshoot, severe voltage overshoot will lead to a series of unpredictable consequences.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供了一种多核SOC复位的负载均衡电路及系统,旨在解决现有技术中多核CPU同时复位导致输出电压出现上冲的问题。In view of this, embodiments of the present application provide a load balancing circuit and system for resetting a multi-core SOC, aiming to solve the problem of overshoot of output voltage caused by simultaneous resetting of multi-core CPUs in the prior art.
第一方面,本申请实施例提供了一种多核SOC复位的负载均衡电路,所述电路包括:所述电路包括:控制电路、第一负载电路、第二负载电路、控制点和保护电路;In a first aspect, an embodiment of the present application provides a load balancing circuit for multi-core SOC reset, the circuit includes: the circuit includes: a control circuit, a first load circuit, a second load circuit, a control point, and a protection circuit;
所述控制电路的输出端与所述控制点相连;所述第一负载电路的输出端与所述控制点相连;所述第二负载电路的输入端与所述控制点相连;所述保护电路与所述控制点相连;The output end of the control circuit is connected to the control point; the output end of the first load circuit is connected to the control point; the input end of the second load circuit is connected to the control point; the protection circuit connected to the control point;
所述控制电路控制所述第二负载电路在所述第一负载电路处于第一状态时不导通,在所述第一负载电路处于第二状态时导通;所述第一状态为CPU运行信号无效和/或调试信号无效,所述第二状态为所述调试信号有效、所述CPU运行信号有效且复位信号有效;The control circuit controls the second load circuit to be non-conductive when the first load circuit is in a first state, and to be turned on when the first load circuit is in a second state; the first state is that the CPU is running The signal is invalid and/or the debug signal is invalid, and the second state is that the debug signal is valid, the CPU running signal is valid, and the reset signal is valid;
所述保护电路为所述多核SOC复位的负载均衡电路提供保护;The protection circuit provides protection for the load balancing circuit of the multi-core SOC reset;
利用所述控制电路、所述第一负载电路、所述第二负载电路、所述控制点和所述保护电路控制多核SOC调试时负载的均衡。The control circuit, the first load circuit, the second load circuit, the control point and the protection circuit are used to control the load balance during multi-core SOC debugging.
可选的,所述第二负载电路包括第一N沟道功率MOS管和第一电阻,所述第一电阻与所述第一N沟道功率MOS管的源极连接,所述第一N沟道功率MOS管的漏极与电源连接;所述第一N沟道功率MOS管的栅极与所述控制点连接。Optionally, the second load circuit includes a first N-channel power MOS transistor and a first resistor, the first resistor is connected to the source of the first N-channel power MOS transistor, and the first N-channel power MOS transistor is connected. The drain of the channel power MOS transistor is connected to the power supply; the gate of the first N-channel power MOS transistor is connected to the control point.
可选的,所述控制电路包括P沟道功率MOS管、第二电阻和第三电阻;Optionally, the control circuit includes a P-channel power MOS transistor, a second resistor and a third resistor;
所述P沟道功率MOS管的栅极输入复位信号,并且与所述第三电阻相连,所述P沟道功率MOS管的漏极与所述控制点相连,所述P沟道功率MOS管的源极与所述第二电阻相连;The gate of the P-channel power MOS transistor is input with a reset signal and is connected to the third resistor, the drain of the P-channel power MOS transistor is connected to the control point, and the P-channel power MOS transistor is connected to the control point. The source is connected to the second resistor;
外接电源与所述第二电阻、所述第三电阻相连。An external power supply is connected to the second resistor and the third resistor.
可选的,所述第一负载电路包括与非门器件和第二N沟道功率MOS管;Optionally, the first load circuit includes a NAND gate device and a second N-channel power MOS transistor;
所述与非门器件第一端输入所述调试信号,第二端输入所述CPU运行信号;The debug signal is input to the first end of the NAND gate device, and the CPU operation signal is input to the second end;
所述第二N沟道功率MOS管的栅极与所述与非门器件的输出端相连,所述第二N沟道功率MOS管的漏极与所述控制点相连,所述第二N沟道功率MOS管的源极接地。The gate of the second N-channel power MOS transistor is connected to the output end of the NAND device, the drain of the second N-channel power MOS transistor is connected to the control point, and the second N-channel power MOS transistor is connected to the control point. The source of the channel power MOS transistor is grounded.
可选的,所述保护电路包括第四电阻和电容,所述第四电阻与所述控制点连接,所述第四电阻与所述电容并联。Optionally, the protection circuit includes a fourth resistor and a capacitor, the fourth resistor is connected to the control point, and the fourth resistor is connected in parallel with the capacitor.
可选的,设置第一N沟道功率MOS管的导通电流在预设范围内。Optionally, the on-current of the first N-channel power MOS transistor is set within a preset range.
可选的,电容用于控制第一N沟道功率MOS管的等效阻值。Optionally, the capacitor is used to control the equivalent resistance of the first N-channel power MOS transistor.
可选的,根据所述复位信号的宽度,通过调节第二电阻实现第二负载电路的运行时间与CPU复位所需时间的匹配。Optionally, according to the width of the reset signal, the running time of the second load circuit can be matched with the time required for CPU reset by adjusting the second resistance.
第二方面,本申请实施例提供了一种多核SOC复位的负载均衡系统,包括上述任一项所述的多核SOC复位的负载均衡电路。In a second aspect, an embodiment of the present application provides a load balancing system for resetting a multi-core SOC, including the load balancing circuit for resetting a multi-core SOC described above.
本申请实施例提供了一种多核SOC复位的负载均衡电路。所述电路包括:控制电路、第一负载电路、第二负载电路、控制点和保护电路;所述控制电路的输出端与所述控制点相连;所述第一负载电路的输出端与所述控制点相连;所述第二负载电路的输入端与所述控制点相连;所述保护电路与所述控制点相连;所述控制电路控制所述第二负载电路在所述第一负载电路处于第一状态时不导通,在所述第一负载电路处于第二状态时导通;所述第一状态为CPU运行信号无效和/或调试信号无效,所述第二状态为所述调试信号有效且所述CPU运行信号有效;所述保护电路为所述多核SOC复位的负载均衡电路提供保护;利用所述控制电路、所述第一负载电路、所述第二负载电路、所述控制点和所述保护电路控制多核SOC调试时负载的均衡。通过设置第二负载电路,并利用控制电路控制所述第二负载电路在CPU同时由运行状态切换为复位状态时接通,可以在多个CPU同时复位时利用第二负载电路发挥备用负载的作用,以避免多个CPU同时复位造成的负载突变,进而避免输出电压出现上冲的现象。The embodiment of the present application provides a load balancing circuit for resetting a multi-core SOC. The circuit includes: a control circuit, a first load circuit, a second load circuit, a control point and a protection circuit; the output end of the control circuit is connected to the control point; the output end of the first load circuit is connected to the The input end of the second load circuit is connected to the control point; the protection circuit is connected to the control point; the control circuit controls the second load circuit when the first load circuit is in the Not conducting in the first state, and conducting when the first load circuit is in the second state; the first state is that the CPU running signal is invalid and/or the debugging signal is invalid, and the second state is the debugging signal is valid and the CPU running signal is valid; the protection circuit provides protection for the load balancing circuit of the multi-core SOC reset; using the control circuit, the first load circuit, the second load circuit, the control point and the protection circuit to control load balance during multi-core SOC debugging. By arranging the second load circuit, and using the control circuit to control the second load circuit to be turned on when the CPUs are switched from the running state to the reset state at the same time, the second load circuit can be used to play the role of a backup load when multiple CPUs are reset at the same time , to avoid the sudden change of load caused by the simultaneous reset of multiple CPUs, thereby avoiding the phenomenon of overshoot of the output voltage.
附图说明Description of drawings
为更清楚地说明本实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present embodiment or the prior art, the following briefly introduces the accompanying drawings required in the description of the embodiment or the prior art. Obviously, the accompanying drawings in the following description are only For some embodiments of the present application, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本申请实施例提供的方案框架图;Fig. 1 is the scheme frame diagram that the embodiment of this application provides;
图2为本申请实施例提供的一种多核SOC复位的负载均衡电路图。FIG. 2 is a load balancing circuit diagram of a multi-core SOC reset provided by an embodiment of the present application.
具体实施方式Detailed ways
CPU是中央处理器(Central Processing Unit)的英文简称,它具有控制和信息处理的能力,是电脑和智能设备的控制中枢。如果把传统CPU芯片中的封装和辅助电路(例如引脚的接口电路、电源电路和时钟电路等)排除在外,只保留完成控制和信息处理功能的核心电路,这部分电路就是CPU核心,也简称CPU核。一个CPU核心基本上是一个完全独立的处理器,它可以从内部存储器中读取指令,并执行指令指定的控制和计算任务。CPU is the English abbreviation of Central Processing Unit (Central Processing Unit). It has the ability to control and process information and is the control center of computers and smart devices. If the packaging and auxiliary circuits (such as pin interface circuits, power supply circuits and clock circuits, etc.) in the traditional CPU chip are excluded, only the core circuits that complete the control and information processing functions are retained. This part of the circuit is the CPU core, also referred to as CPU core. A CPU core is basically a completely independent processor that can read instructions from internal memory and perform control and computational tasks specified by the instructions.
如果把一个CPU核心和相关辅助电路封装在一个芯片中,这个芯片就是传统的单核心CPU芯片,简称单核CPU。如果把多个CPU核心和相关辅助电路封装在一个芯片中,这个芯片就是多核心CPU芯片,简称多核CPU。如果在多核心CPU芯片中再集成一些其它功能部件和接口电路,就形成了完整的系统,那么这个芯片就变成了多核心SOC芯片了,简称多核SOC。If a CPU core and related auxiliary circuits are packaged in one chip, the chip is a traditional single-core CPU chip, or single-core CPU for short. If multiple CPU cores and related auxiliary circuits are packaged in one chip, the chip is a multi-core CPU chip, abbreviated as a multi-core CPU. If some other functional components and interface circuits are integrated into the multi-core CPU chip to form a complete system, then the chip becomes a multi-core SOC chip, referred to as a multi-core SOC.
多核SOC芯片的内部集成了多个CPU,以满足日益增长的计算能力的需求。而在调试CPU过程中,在做不到每个内核CPU单独复位控制的情况下,通常只能让所有正常运行的内核CPU同时复位,多核CPU同时复位意味着负载突变,这样会导致输出电压出现上冲,严重的电压上冲将会导致一系列难以预测的后果。A multi-core SOC chip integrates multiple CPUs inside to meet the growing demand for computing power. In the process of debugging the CPU, if each core CPU cannot be individually reset and controlled, it is usually only possible to reset all the normal running core CPUs at the same time. Simultaneous reset of multi-core CPUs means a sudden change in the load, which will cause the output voltage to appear. Overshoot, severe voltage overshoot will lead to a series of unpredictable consequences.
目前,多核CPU同时复位导致的负载突变,进而导致的电压出现上冲的现象,如果能够在多核CPU同时复位的过程中接通一个备用负载电路,如此就可以避免负载发生突变,进而也不会出现电压上冲的现象。由此,提出了本方案。At present, the load mutation caused by the simultaneous reset of the multi-core CPU, and then the voltage overshoot is caused. If a backup load circuit can be turned on during the simultaneous reset of the multi-core CPU, the load mutation can be avoided. The phenomenon of voltage overshoot occurs. Therefore, this proposal is proposed.
参见图1,图1为本申请实施例提供的方案框架图,本申请通过MOSFET管做备用负载电路,并通过控制电路控制备用负载电路在CPU同时由运行状态切换为复位状态时接通,可以在多个CPU同时复位时利用第二负载电路发挥备用负载的作用,以避免多个CPU同时复位造成的负载突变,进而避免输出电压出现上冲的现象。Referring to FIG. 1, FIG. 1 is a schematic diagram of a scheme provided by an embodiment of the present application. In the present application, a MOSFET tube is used as a backup load circuit, and the backup load circuit is controlled by a control circuit to be turned on when the CPU is switched from the running state to the reset state at the same time. When multiple CPUs are reset at the same time, the second load circuit is used to play the role of a backup load, so as to avoid the sudden change of the load caused by the simultaneous reset of the multiple CPUs, thereby avoiding the phenomenon of overshoot of the output voltage.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
参见图2,图2为本申请实施例提供的一种多核SOC复位的负载均衡电路图,此电路图的应用场景可以是多核SOC芯片测试多核CPU的场景,该电路包括:控制电路、第一负载电路、第二负载电路、控制点和保护电路。控制电路就是用于控制第二负载电路的开启与关断的;第一负载电路用于反应调试时调试状态以及CPU的运行状态的;第二负载电路相当于备用负载电路,在第一负载电路不工作时接通,在本方案中可以理解为在多个CPU同时进行复位的过程中,接通第二负载电路;控制点是向第二负载电路输入信号的节点;保护电路即避免负载电路出现安全故障。Referring to FIG. 2, FIG. 2 is a load balancing circuit diagram of a multi-core SOC reset provided by an embodiment of the present application. The application scenario of this circuit diagram may be a multi-core SOC chip testing multi-core CPU scenario. The circuit includes: a control circuit, a first load circuit , a second load circuit, a control point and a protection circuit. The control circuit is used to control the opening and closing of the second load circuit; the first load circuit is used to reflect the debugging state and the operating state of the CPU during debugging; the second load circuit is equivalent to a backup load circuit, and the first load circuit It is turned on when it is not working. In this scheme, it can be understood that the second load circuit is turned on during the process of resetting multiple CPUs at the same time; the control point is the node that inputs signals to the second load circuit; the protection circuit is to avoid the load circuit. A security failure has occurred.
第二负载电路包括第一N沟道功率MOS管和第一电阻,第一N沟道功率MOS管可以设置为N沟道功率MOSFET管,并设为Q1,第一电阻设为R1,R1与Q1的源极2相连,Q1的漏极3与电源VDD相连,Q1的栅极1与控制点连接,控制点用于输入信号控制第二负载电路的开启与关断。The second load circuit includes a first N-channel power MOS transistor and a first resistor, the first N-channel power MOS transistor can be set as an N-channel power MOSFET transistor and set as Q1, the first resistor is set as R1, and R1 and The
控制电路包括P沟道功率MOS管、第二电阻和第三电阻,并将P沟道功率MOS管设为Q2,第二电阻和第三电阻分别设为R2、R3,Q2的栅极输入复位信号CPU_RESET,并且Q2的栅极与R3相连,Q2的漏极与控制点相连,Q2的源极与R2相连,R2、R3并联,并且外接电源VEXT。The control circuit includes a P-channel power MOS transistor, a second resistor and a third resistor. The P-channel power MOS transistor is set as Q2, the second resistor and the third resistor are set as R2 and R3 respectively, and the gate input of Q2 is reset. Signal CPU_RESET, and the gate of Q2 is connected to R3, the drain of Q2 is connected to the control point, the source of Q2 is connected to R2, R2, R3 are connected in parallel, and the external power supply VEXT.
第一负载电路包括一个与非门器件和第二N沟道功率MOS管,将与非门器件设为U1,第二N沟道功率MOS管设为Q3;与非门器件的第一个输入端输入调试信号,本实施例以调试信号代表出现调试故障时的信号,并将该信号设为DEBUG信号;与非门器件的另一个输入端输入多核CPU的运行信号CPU_RUN,与非门的输出端与Q3的栅极1相连,只有当调试信号和多核CPU的运行信号都有效时,Q3才导通,并且只有在调试信号和多核CPU的运行信号都有效时,第二负载电路才会受到复位信号的控制。Q3的漏极3与控制点相连,Q3的源极2接地。The first load circuit includes a NAND gate device and a second N-channel power MOS transistor, the NAND gate device is set as U1, and the second N-channel power MOS transistor is set as Q3; the first input of the NAND gate device The debug signal is input to the terminal. In this embodiment, the debug signal is used to represent the signal when a debugging fault occurs, and the signal is set as the DEBUG signal; the other input terminal of the NAND gate device inputs the running signal CPU_RUN of the multi-core CPU, and the output of the NAND gate The terminal is connected to the gate 1 of Q3. Only when the debug signal and the running signal of the multi-core CPU are valid, Q3 is turned on, and only when the debug signal and the running signal of the multi-core CPU are both valid, the second load circuit will be affected. Control of the reset signal. The drain 3 of Q3 is connected to the control point, and the
保护电路包括第四电阻和电容,并将第四电阻设为R4,电容设为C1;R4与控制点连接,并且R4与C1并联。The protection circuit includes a fourth resistor and a capacitor, and the fourth resistor is set as R4, and the capacitor is set as C1; R4 is connected to the control point, and R4 is connected in parallel with C1.
控制电路的输出端与控制点相连;第一负载电路输出端与控制点相连;第二负载电路的输入端与控制点相连;保护电路与控制点相连;控制电路控制第二负载电路在CPU运行信号无效和/或调试信号无效时不导通,在第一负载电路处于调试信号有效、所述CPU运行信号有效且复位信号有效时导通;保护电路为多核SOC复位的负载均衡电路提供保护;利用控制电路、第一负载电路、第二负载电路、控制点和保护电路控制多核SOC调试时负载的均衡。具体实现过程如下:The output end of the control circuit is connected with the control point; the output end of the first load circuit is connected with the control point; the input end of the second load circuit is connected with the control point; the protection circuit is connected with the control point; the control circuit controls the second load circuit to run on the CPU When the signal is invalid and/or the debugging signal is invalid, it is not turned on, and the first load circuit is turned on when the debugging signal is valid, the CPU running signal is valid, and the reset signal is valid; the protection circuit provides protection for the load balancing circuit of the multi-core SOC reset; The control circuit, the first load circuit, the second load circuit, the control point and the protection circuit are used to control the load balance during multi-core SOC debugging. The specific implementation process is as follows:
当调试开始后,本实施例应用于调试过程出现故障的情况,也就是调试信号DEBUG_EN有效处于高电平的情况。After the debugging starts, this embodiment is applied to the case where a failure occurs in the debugging process, that is, the case where the debugging signal DEBUG_EN is effectively at a high level.
本申请实施例是为了在多核CPU运行时同时复位的过程中避免出现负载突变的现象,由此在第一负载电路中设置一个与非门,用于只有在调试过程中出现故障的情况,即DEBUG信号有效,并且多核CPU在运行的状态时,复位信号使能才会出现多核CPU同时复位的操作,这样才会出现负载突变,本实施例是在复位信号使能至多核CPU复位完成这个期间控制第二负载电路接通,也就是在第一负载电路不导通的情况下导通,作为备用负载电路避免负载突变。例如,只有在调试信号DEBUG_EN有效并且CPU已经运行时第二负载电路才受复位信号CPU_RESET的控制。否则,U1输出高电平,N沟道MOSFET管Q3导通,第二负载电路中Q1的栅极电压为零,第二负载电路不工作。In the embodiment of the present application, in order to avoid the phenomenon of sudden change of load during the simultaneous reset process of the multi-core CPU during operation, a NAND gate is set in the first load circuit, which is used only in the case of failure during the debugging process, that is, When the DEBUG signal is valid and the multi-core CPU is running, the reset signal enables the simultaneous reset operation of the multi-core CPU, so that a sudden change of load occurs. In this embodiment, the reset signal is enabled until the reset of the multi-core CPU is completed. The second load circuit is controlled to be turned on, that is, to be turned on when the first load circuit is not turned on, as a backup load circuit to avoid sudden load changes. For example, the second load circuit is controlled by the reset signal CPU_RESET only when the debug signal DEBUG_EN is active and the CPU is already running. Otherwise, U1 outputs a high level, the N-channel MOSFET transistor Q3 is turned on, the gate voltage of Q1 in the second load circuit is zero, and the second load circuit does not work.
在满足调试信号DEBUG_EN有效并且CPU运行的情况下,当复位信号CPU_RESET触发时,一般是下降沿触发,Q2导通,进而第二负载电路中Q1饱和导通,第二负载电路开始工作,同时CPU复位完成时第二负载电路停止运行。Under the condition that the debug signal DEBUG_EN is valid and the CPU is running, when the reset signal CPU_RESET is triggered, it is generally a falling edge trigger, Q2 is turned on, and then Q1 in the second load circuit is saturated and turned on, the second load circuit starts to work, and the CPU The second load circuit stops operating when the reset is completed.
当复位信号触发结束后,也就是多核CPU复位完成后,由于电容C1的存在,电容C1可以控制Q1的等效阻值在可变范围内,由此Q1的栅极电压不会立即消失而是缓慢下降,Q1先是脱离饱和导通区进入可变电阻区,最后C1放完电Q1截止。因此流经第二负载的电流逐渐下降到零。如此也可以实现第二负载电路不会发生负载突变的情况。When the reset signal is triggered, that is, after the reset of the multi-core CPU is completed, due to the existence of the capacitor C1, the capacitor C1 can control the equivalent resistance of Q1 within the variable range, so the gate voltage of Q1 will not disappear immediately but Slowly falling, Q1 first leaves the saturated conduction area and enters the variable resistance area, and finally C1 is discharged and Q1 is turned off. Therefore the current flowing through the second load gradually drops to zero. In this way, it can also be realized that the second load circuit does not have a sudden load change.
本申请实施例提供了一种多核SOC复位的负载均衡电路。所述电路包括:控制电路、第一负载电路、第二负载电路、控制点和保护电路;所述控制电路的输出端与所述控制点相连;所述第一负载电路的输出端与所述控制点相连;所述第二负载电路的输入端与所述控制点相连;所述保护电路与所述控制点相连;所述控制电路控制所述第二负载电路在所述第一负载电路处于第一状态时不导通,在所述第一负载电路处于第二状态时导通;所述第一状态为CPU运行信号无效和/或调试信号无效,所述第二状态为所述调试信号有效且所述CPU运行信号有效;所述保护电路为所述多核SOC复位的负载均衡电路提供保护;利用所述控制电路、所述第一负载电路、所述第二负载电路、所述控制点和所述保护电路控制多核SOC调试时负载的均衡。通过设置第二负载电路,并利用控制电路控制所述第二负载电路在CPU同时由运行状态切换为复位状态时接通,可以在多个CPU同时复位时利用第二负载电路发挥备用负载的作用,以避免多个CPU同时复位造成的负载突变,进而避免输出电压出现上冲的现象。The embodiment of the present application provides a load balancing circuit for resetting a multi-core SOC. The circuit includes: a control circuit, a first load circuit, a second load circuit, a control point and a protection circuit; the output end of the control circuit is connected to the control point; the output end of the first load circuit is connected to the The input end of the second load circuit is connected to the control point; the protection circuit is connected to the control point; the control circuit controls the second load circuit when the first load circuit is in the Not conducting in the first state, and conducting when the first load circuit is in the second state; the first state is that the CPU running signal is invalid and/or the debugging signal is invalid, and the second state is the debugging signal is valid and the CPU running signal is valid; the protection circuit provides protection for the load balancing circuit of the multi-core SOC reset; using the control circuit, the first load circuit, the second load circuit, the control point and the protection circuit to control load balance during multi-core SOC debugging. By arranging the second load circuit, and using the control circuit to control the second load circuit to be turned on when the CPUs are switched from the running state to the reset state at the same time, the second load circuit can be used to play the role of a backup load when multiple CPUs are reset at the same time , to avoid the sudden change of load caused by the simultaneous reset of multiple CPUs, thereby avoiding the phenomenon of overshoot of the output voltage.
本申请可选的实施例,第二负载电路中的第一N沟道功率MOS管,也就是实施例里面的Q1的导通电流需要设置在预设范围内,例如,可以设计Q1的饱和导通电流约等于CPU满载电流的70%-90%之间,具体取值的设定取决于具体电路设计,即R1的阻值大小。In an optional embodiment of the present application, the first N-channel power MOS transistor in the second load circuit, that is, the on-current of Q1 in the embodiment needs to be set within a preset range. For example, the saturation conduction of Q1 can be designed. The passing current is about 70%-90% of the full load current of the CPU. The specific value setting depends on the specific circuit design, that is, the resistance value of R1.
本申请可选的实施例,复位信号CPU_RESET一般是下降沿有效,而复位信号的宽度就是多核CPU复位过程所需的时间,本实施例中在多核CPU复位过程中相当于第一负载电路停止工作,这个时候需要接通第二负载电路,而在多核CPU复位完成后,相当于第一负载电路正常工作了,就不需要第二负载电路工作了,由此需要将第二负载电路的导通时间与复位信号CPU_RESET的宽度相匹配,即控制第二负载电路只在多核CPU复位过程中导通,这就可以通过调节R2来实现。R2越大,电容C1充电周期越长,Q1饱和导通的延迟时间越长,由此可以实现第二负载电路的导通时间与复位信号CPU_RESET的宽度的匹配。In an optional embodiment of the present application, the reset signal CPU_RESET is generally valid at the falling edge, and the width of the reset signal is the time required for the reset process of the multi-core CPU. In this embodiment, the reset process of the multi-core CPU is equivalent to that the first load circuit stops working , the second load circuit needs to be turned on at this time, and after the reset of the multi-core CPU is completed, it is equivalent to the normal operation of the first load circuit, and the second load circuit does not need to work, so the second load circuit needs to be turned on. The time matches the width of the reset signal CPU_RESET, that is, the second load circuit is controlled to be turned on only during the reset process of the multi-core CPU, which can be achieved by adjusting R2. The larger R2 is, the longer the charging period of the capacitor C1 is, and the longer the delay time of the saturated conduction of Q1 is, so that the conduction time of the second load circuit can be matched with the width of the reset signal CPU_RESET.
在上述实施例的基础上,本申请实施例还提供了一种多核SOC复位的负载均衡系统,包括如上述的多核SOC复位的负载均衡电路。On the basis of the foregoing embodiments, the embodiments of the present application further provide a load balancing system for resetting a multi-core SOC, including the above-mentioned load balancing circuit for resetting a multi-core SOC.
需要说明的是,本实施例中所提供的多核SOC复位的负载均衡系统具有与上述实施例中所提供的多核SOC复位的负载均衡电路相同的有益效果,并且对于本实施例中所涉及到的多核SOC复位的负载均衡电路的具体介绍请参照上述实施例,本申请在此不再赘述。It should be noted that the load balancing system for multi-core SOC reset provided in this embodiment has the same beneficial effects as the load balancing circuit for multi-core SOC reset provided in the foregoing embodiment, and for the For the specific introduction of the load balancing circuit for resetting the multi-core SOC, please refer to the above-mentioned embodiment, which will not be repeated in this application.
本申请实施例中提到的“第一负载电路”、“第二负载电路”等名称中的“第一”、“第二”只是用来做名字标识,并不代表顺序上的第一、第二。The "first" and "second" in the names of "first load circuit" and "second load circuit" mentioned in the embodiments of this application are only used for name identification, and do not represent the first, second.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于电路实施例,所以描述得比较简单,相关之处参见电路实施例的部分说明即可。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the circuit embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the circuit embodiment. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
以上所述仅是本申请示例性的实施方式,并非用于限定本申请的保护范围。The above descriptions are only exemplary embodiments of the present application, and are not intended to limit the protection scope of the present application.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211080066.7A CN115167651B (en) | 2022-09-05 | 2022-09-05 | A load balancing circuit and system for multi-core SOC reset |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211080066.7A CN115167651B (en) | 2022-09-05 | 2022-09-05 | A load balancing circuit and system for multi-core SOC reset |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115167651A true CN115167651A (en) | 2022-10-11 |
CN115167651B CN115167651B (en) | 2022-11-25 |
Family
ID=83481809
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211080066.7A Active CN115167651B (en) | 2022-09-05 | 2022-09-05 | A load balancing circuit and system for multi-core SOC reset |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115167651B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101581959A (en) * | 2009-07-02 | 2009-11-18 | 华为技术有限公司 | Method and equipment for resetting single core in multicore chip |
US20110193580A1 (en) * | 2010-02-08 | 2011-08-11 | League Christopher M | Fatal Failure Diagnostics Circuit and Methodology |
US20120151264A1 (en) * | 2010-12-09 | 2012-06-14 | Deniz Balkan | Debug Registers for Halting Processor Cores after Reset or Power Off |
CN111914497A (en) * | 2020-06-17 | 2020-11-10 | 中国航空工业集团公司洛阳电光设备研究所 | DSP core module fault recovery method |
CN114527857A (en) * | 2022-02-15 | 2022-05-24 | 深圳市航顺芯片技术研发有限公司 | Multi-core system resetting method, device and equipment and readable storage medium |
-
2022
- 2022-09-05 CN CN202211080066.7A patent/CN115167651B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101581959A (en) * | 2009-07-02 | 2009-11-18 | 华为技术有限公司 | Method and equipment for resetting single core in multicore chip |
US20110193580A1 (en) * | 2010-02-08 | 2011-08-11 | League Christopher M | Fatal Failure Diagnostics Circuit and Methodology |
US20120151264A1 (en) * | 2010-12-09 | 2012-06-14 | Deniz Balkan | Debug Registers for Halting Processor Cores after Reset or Power Off |
CN111914497A (en) * | 2020-06-17 | 2020-11-10 | 中国航空工业集团公司洛阳电光设备研究所 | DSP core module fault recovery method |
CN114527857A (en) * | 2022-02-15 | 2022-05-24 | 深圳市航顺芯片技术研发有限公司 | Multi-core system resetting method, device and equipment and readable storage medium |
Non-Patent Citations (2)
Title |
---|
张跃玲 等: "一种多核SoC的复位管理系统设计", 《单片机与嵌入式系统应用》 * |
杨旭 等: "一种面向多核处理器的通用可调试性架构", 《计算机辅助设计与图形学学报》 * |
Also Published As
Publication number | Publication date |
---|---|
CN115167651B (en) | 2022-11-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102310121B1 (en) | Integrated circuit having electrostatic discharge protection function and electronic system including the same | |
US20010054914A1 (en) | Integrated circuit device including CMOS tri-state drivers suitable for powerdown | |
TWI447896B (en) | Esd protection circuit | |
US9471278B2 (en) | Low area full adder with shared transistors | |
US20100325464A1 (en) | Computer system with delay circuit | |
CN210804315U (en) | Automatic power-on circuit and mainboard | |
CN115167651B (en) | A load balancing circuit and system for multi-core SOC reset | |
CN115220561B (en) | Load balancing circuit and system for multi-core SOC debugging | |
CN111630601B (en) | Security enhancement for memory controllers | |
EP0595748A1 (en) | Power up detection circuits | |
US8230251B2 (en) | Time sequence control circuit | |
TW201426287A (en) | Power on/off testing circuit | |
CN105515555A (en) | Start-up circuit for implementing power-on of main circuit in pulse trigger mode | |
JP4007250B2 (en) | Power-on reset circuit device | |
CN220173216U (en) | Reset circuit and electronic equipment | |
KR100247221B1 (en) | Test mode activation circuit | |
US12184277B2 (en) | Synthesis driven for minimum leakage with new standard cells | |
CN119322702A (en) | Reset circuit, chip and reset method | |
CN100361049C (en) | Computer system and method for clearing control circuit and clearing environment setting memory thereof | |
TWI703434B (en) | Semiconductor apparatus | |
KR100919567B1 (en) | exclusive-ORgate circuit | |
Lee | Performance of an ESD device model under normal operating conditions | |
CN114448247A (en) | VCCSA voltage output control circuit | |
CN116167324A (en) | Circuit simulation method and device | |
KR100192583B1 (en) | Output buffer circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20241121 Address after: 106A, 1st Floor, Building B-1, Zhongguancun Dongsheng Science and Technology Park, No. 66 Xixiaokou Road, Haidian District, Beijing, 100192 Patentee after: ZIGUANG TONGXIN MICROELECTRONICS CO.,LTD. Country or region after: China Address before: No. 1511-06, 15 / F, block D, Tsinghua Tongfang science and technology building, No. 1 courtyard, Wangzhuang Road, Haidian District, Beijing 100083 Patentee before: Beijing Ziguang Xinneng Technology Co.,Ltd. Country or region before: China |