[go: up one dir, main page]

CN103326712B - A kind of clock multiselect one circuit and multiselect one method - Google Patents

A kind of clock multiselect one circuit and multiselect one method Download PDF

Info

Publication number
CN103326712B
CN103326712B CN201310163697.XA CN201310163697A CN103326712B CN 103326712 B CN103326712 B CN 103326712B CN 201310163697 A CN201310163697 A CN 201310163697A CN 103326712 B CN103326712 B CN 103326712B
Authority
CN
China
Prior art keywords
clock
state
clock signal
detection
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310163697.XA
Other languages
Chinese (zh)
Other versions
CN103326712A (en
Inventor
熊剑平
晏坚
张震
张媛
马骋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tsinghua University
Original Assignee
Tsinghua University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tsinghua University filed Critical Tsinghua University
Priority to CN201310163697.XA priority Critical patent/CN103326712B/en
Publication of CN103326712A publication Critical patent/CN103326712A/en
Application granted granted Critical
Publication of CN103326712B publication Critical patent/CN103326712B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Manipulation Of Pulses (AREA)

Abstract

本发明公开了属于航天电子系统中的时钟选择技术领域的一种时钟多选一电路及多选一方法。该时钟多选一电路由时钟计数器模块、时钟选择信号发生器模块和时钟选择器模块串联组成;利用现场可编程逻辑门阵列实现自主可靠地对同频多时钟源进行筛选。时钟计数器模块对每路输入时钟信号进行循环计数,由时钟选择信号发生器模块检测时钟信号有效性并输出时钟选择信号,时钟选择器模块对输入时钟信号进行选择并输出其中一路时钟信号。本发明对电路中的寄存器使用三模冗余技术,增强了发生单粒子翻转效应时电路的可靠性,解决了目前技术中进行同频时钟的多对一检测时存在错检的问题,降低了系统成本、复杂度和耦合度,提高了系统效能和可靠性。

The invention discloses a clock multi-select one circuit and a multi-select one method, which belong to the technical field of clock selection in aerospace electronic systems. The clock multi-selection circuit is composed of a clock counter module, a clock selection signal generator module and a clock selector module in series; the field programmable logic gate array is used to independently and reliably screen multiple clock sources of the same frequency. The clock counter module performs cycle counting on each input clock signal, the clock selection signal generator module detects the validity of the clock signal and outputs the clock selection signal, and the clock selector module selects the input clock signal and outputs one of the clock signals. The present invention uses triple-mode redundancy technology for the registers in the circuit, which enhances the reliability of the circuit when the single event reversal effect occurs, solves the problem of false detection in the current technology when performing many-to-one detection of the same frequency clock, and reduces the System cost, complexity and coupling degree improve system efficiency and reliability.

Description

一种时钟多选一电路及多选一方法A clock multiple selection one circuit and multiple selection one method

技术领域technical field

本发明属于航天电子系统中的时钟选择技术领域,特别涉及利用现场可编程逻辑门阵列(FPGA)实现的一种时钟多选一电路及多选一方法。The invention belongs to the technical field of clock selection in aerospace electronic systems, and in particular relates to a clock multiple selection circuit and a multiple selection method realized by using a field programmable logic gate array (FPGA).

背景技术Background technique

由于航天技术的高可靠性要求,为保障航天电子系统的性能,通常会采取1+1备份的方案,对某些重要的单元,如FPGA的时钟,其运行状态关系到系统能否正常工作,还会采用多备份的方案。对于从FPGA的多时钟源中选择一个作为有效时钟的技术而言,要求FPGA能够不依靠其他系统单元的辅助而自动进行,以达到降低系统的复杂度和耦合度,增强可靠性的目的。Due to the high reliability requirements of aerospace technology, in order to ensure the performance of aerospace electronic systems, a 1+1 backup scheme is usually adopted. For some important units, such as FPGA clocks, their operating status is related to whether the system can work normally. Multiple backups will also be used. For the technology of selecting one of the multiple clock sources of the FPGA as an effective clock, the FPGA is required to be able to do it automatically without the assistance of other system units, so as to reduce the complexity and coupling of the system and enhance the reliability.

由于航天电子系统工作在太空环境,面临高能粒子的影响,当其冲击到系统内部存储器时,可能会发生单粒子翻转(SEU),即系统内部存储器某些数据位从0变为1或从1变为0。当SEU发生在某些关键数据位时,便会影响航天器的工作状态,如改变磁力矩器的控制量,进而影响到航天器的控制力矩,最终导致航天器姿态偏差。所以,对某些关键存储器还需采取抗SEU的防护措施。Since the aerospace electronic system works in a space environment and is affected by high-energy particles, when it impacts the internal memory of the system, a single event upset (SEU) may occur, that is, some data bits in the internal memory of the system change from 0 to 1 or from 1 becomes 0. When SEU occurs in certain key data bits, it will affect the working state of the spacecraft, such as changing the control amount of the magnetic torque device, which in turn affects the control torque of the spacecraft, and finally leads to the attitude deviation of the spacecraft. Therefore, it is necessary to take anti-SEU protection measures for some key memories.

同频时钟选择技术的主要功能是在互为备份的时钟中选择有效时钟作为系统时钟,从而避免某一时钟失效时带来的影响,增强系统的可靠性。目前常用的时钟选择技术主要有两种方案:The main function of the same-frequency clock selection technology is to select an effective clock as the system clock from the mutually backup clocks, so as to avoid the impact of a certain clock failure and enhance the reliability of the system. Currently, there are two main schemes for clock selection techniques:

第一种方案是利用系统其它单元的辅助对时钟进行选择。The first scheme is to use the assistance of other units in the system to select the clock.

此方案根据实现方法的不同,可大致分为主要依靠硬件辅助和主要依靠软件辅助两种途径。According to different implementation methods, this scheme can be roughly divided into two ways: mainly relying on hardware assistance and mainly relying on software assistance.

主要依靠硬件辅助的实现方法是在待选时钟之外,添加一个高可靠性时钟用以检测各路时钟信号是否有效,之后选择有效时钟作为系统时钟。The implementation method mainly relying on hardware assistance is to add a high-reliability clock in addition to the clock to be selected to detect whether each clock signal is valid, and then select the valid clock as the system clock.

此方法的弊端在于要求添加的检测时钟有足够高的可靠性,提高了成本,同时其本身也存在备份和选择的问题,增加了系统复杂度。The disadvantage of this method is that the added detection clock is required to have a sufficiently high reliability, which increases the cost. At the same time, it also has the problem of backup and selection, which increases the complexity of the system.

主要依靠软件辅助的实现方法通过操作系统和FPGA的相互配合来完成,在FPGA内部开设由被检时钟信号(即被检测时钟信号)周期性置位,操作系统周期性复位的标志寄存器,操作系统复位的周期大于被检时钟信号置位的周期,此时若被检时钟信号有效,则在操作系统下一次复位之前被检时钟信号已对标志寄存器进行置位,这样只需操作系统在每次复位前读取标志寄存器状态便可检测出该路时钟信号是否有效,之后选择有效时钟作为系统时钟。Mainly rely on the software-assisted implementation method to complete through the cooperation of the operating system and the FPGA. A flag register that is periodically set by the detected clock signal (that is, the detected clock signal) and periodically reset by the operating system is set inside the FPGA. The operating system The period of reset is greater than the period of setting of the detected clock signal. If the detected clock signal is valid at this time, the detected clock signal has already set the flag register before the next reset of the operating system. Read the status of the flag register before reset to detect whether the clock signal of this channel is valid, and then select the valid clock as the system clock.

此方法的弊端在于增加了中央处理器(CPU)的工作量和系统耦合度,加大了系统负担,降低了工作效能。The disadvantage of this method is that it increases the workload of the central processing unit (CPU) and the degree of system coupling, increases the burden on the system, and reduces the work efficiency.

第二种方案是根据上述主要依靠软件辅助方法的原理,将两路时钟信号进行分频互检,从而检测出两路时钟信号的工作状态,之后选择有效时钟作为系统时钟。The second solution is to perform frequency division and mutual inspection of the two clock signals according to the above-mentioned principle mainly relying on the software-assisted method, so as to detect the working status of the two clock signals, and then select an effective clock as the system clock.

该方法概述如下:第一路时钟信号每个时钟周期内对第一标志寄存器进行一次置位,第二路时钟信号每个时钟周期内对第二标志寄存器进行一次置位,将两路时钟信号分别进行分频后对应得到第一复位信号和第二复位信号,第一复位信号每个复位周期内对第二标志寄存器进行一次复位,第二复位信号每个复位周期内对第一标志寄存器进行一次复位,复位周期大于时钟信号的置位周期,此时,若在第二复位信号每次复位前检出第一标志寄存器已被置位,则表明第一时钟信号有效,否则表明第一时钟信号无效,第二时钟信号有效性的检测同理,最后根据检测结果选择有效时钟作为系统时钟。The method is outlined as follows: the first clock signal sets the first flag register once in each clock cycle, the second clock signal sets the second flag register once in each clock cycle, and the two clock signals After frequency division, the first reset signal and the second reset signal are correspondingly obtained. The first reset signal resets the second flag register once in each reset cycle, and the second reset signal resets the first flag register in each reset cycle. Once reset, the reset period is greater than the set period of the clock signal. At this time, if it is detected that the first flag register has been set before each reset of the second reset signal, it indicates that the first clock signal is valid, otherwise it indicates that the first clock signal is valid. The signal is invalid, and the detection of the validity of the second clock signal is the same, and finally an effective clock is selected as the system clock according to the detection result.

此方法虽然摆脱了对其他系统单元的依赖,但在待选时钟数目超过2时会出现检测错误,如待选时钟数为3,用其中两路时钟信号对另一路时钟信号进行检测,两路时钟信号产生的复位信号作用于不同时刻,若两个复位信号时间间隔小于被检时钟周期,就可能在前一复位信号复位完成后,被检时钟信号还未对标志寄存器进行置位,后一复位信号复位前发现被检标志寄存器未被置位,从而错误地判断被检时钟信号无效。Although this method gets rid of the dependence on other system units, a detection error will occur when the number of clocks to be selected exceeds 2. For example, if the number of clocks to be selected is 3, two clock signals are used to detect the other clock signal. The reset signal generated by the clock signal acts at different times. If the time interval between the two reset signals is less than the period of the detected clock, it is possible that the detected clock signal has not set the flag register after the reset of the previous reset signal is completed. It is found that the checked flag register is not set before the reset signal is reset, so it is wrongly judged that the checked clock signal is invalid.

综上所述,第一种方案不能自主进行时钟选择,需要额外的系统单元进行辅助,增加了系统成本、复杂度和耦合度,未能有效提高系统可靠性,第二种方案在进行同频时钟多对一检测时存在错检,同时,上述两种方案没有突出抗SEU的设计。To sum up, the first solution cannot independently select the clock, and requires additional system units to assist, which increases system cost, complexity and coupling, and fails to effectively improve system reliability. There are false detections in the many-to-one detection of the clock, and at the same time, the above two solutions do not highlight the anti-SEU design.

发明内容Contents of the invention

本发明的目的是针对现有技术中存在的不足,提供了一种时钟多选一电路及多选一方法,通过该电路可以自主可靠地对同频多时钟源进行筛选,具有可靠性高、独立性强、具备单粒子翻转效应容错能力的优点;其特征在于:所述时钟多选一电路由时钟计数器模块、时钟选择信号发生器模块和时钟选择器模块串联组成;其中,时钟计数器模块,用于对每路输入时钟信号进行循环计数;时钟选择信号发生器模块,用于检测时钟信号有效性并输出时钟选择信号;时钟选择器模块用于对输入时钟信号进行选择,该时钟选择器模块包含一个多路选择器,其输入为所有待选时钟信号,由时钟选择信号控制选择某一路作为输出时钟信号;该时钟多选一电路设置m路输入时钟信号,且m≥2,第1路时钟信号至第m路时钟信号分别记为clk1至clkm;该时钟多选一电路利用FPGA实现自主从同频的两路或两路以上输入时钟信号中选择一路有效时钟信号作为输出时钟信号,电路中所用寄存器使用三模冗余技术进行抗SEU防护;所述三模冗余技术为常用的容错技术,即三个模块进行同样的操作,输出采用三取二,只要同样的错误不同时发生在其中两个模块,就能屏蔽掉故障模块的影响。The object of the present invention is to aim at the deficiencies in the prior art, and provide a clock multi-choice circuit and a multi-choice method, through which the circuit can autonomously and reliably screen multiple clock sources of the same frequency, with high reliability, It has the advantages of strong independence and single event reversal effect fault tolerance; it is characterized in that: the clock multi-selection circuit is composed of a clock counter module, a clock selection signal generator module and a clock selector module in series; wherein, the clock counter module, It is used to count the cycle of each input clock signal; the clock selection signal generator module is used to detect the validity of the clock signal and output the clock selection signal; the clock selector module is used to select the input clock signal, the clock selector module Contains a multiplexer, the input of which is all the clock signals to be selected, and a certain channel is selected as the output clock signal controlled by the clock selection signal; the clock multi-selection circuit sets m input clock signals, and m≥2, the first channel The clock signal to the m-th clock signal are respectively denoted as clk1 to clkm; the clock multi-selection circuit uses FPGA to independently select one effective clock signal from two or more than two input clock signals of the same frequency as the output clock signal, and the circuit The registers used in use three-mode redundancy technology for anti-SEU protection; the three-mode redundancy technology is a commonly used fault-tolerant technology, that is, three modules perform the same operation, and the output adopts two out of three, as long as the same error does not occur at the same time Two of the modules can shield the influence of the faulty module.

所述时钟计数器模块包含m个循环计数器,称为时钟计数器,用于对每路输入时钟信号进行从0到n的循环计数,且n为大于2的任意整数,;其中循环计数器为上升沿触发模式,即输入时钟信号的上升沿触发一次计数,计数器加1。The clock counter module includes m cycle counters, called clock counters, which are used to count cycles from 0 to n for each input clock signal, and n is any integer greater than 2; wherein the cycle counter is triggered by a rising edge Mode, that is, the rising edge of the input clock signal triggers a count, and the counter adds 1.

所述时钟选择信号发生器模块包含一个主状态机和m-1个分状态机,主状态机用于控制检测状态的转换,分状态机用于执行对某一路时钟信号有效性的检测;在运行过程中,所述主状态机和分状态机的所处状态相互匹配。The clock selection signal generator module includes a main state machine and m-1 sub-state machines, the main state machine is used to control the conversion of the detection state, and the sub-state machine is used to perform the detection of the validity of a certain clock signal; During operation, the states of the main state machine and the sub-state machines match each other.

所述主状态机由clk1检测、clk2检测至clk(m-1)检测、clkm选择等m个状态组成,每个状态下输出一个时钟选择信号,该信号与被检时钟信号匹配,用于控制时钟选择器模块选择被检时钟信号作为输出时钟信号;当某一路时钟信号检测到被检时钟信号处于无效状态时发生状态转移,即状态机状态转换条件为m-1个分状态机中任意一个进入到下一状态中,其状态转换顺序依次为clk1检测、clk2检测至clk(m-1)检测、clkm选择;其中clkm选择状态为终止状态,状态转换方向不可逆、非循环。The main state machine is composed of m states such as clk1 detection, clk2 detection to clk(m-1) detection, and clkm selection, and outputs a clock selection signal in each state, which matches the detected clock signal and is used to control The clock selector module selects the detected clock signal as the output clock signal; when a certain clock signal detects that the detected clock signal is in an invalid state, a state transition occurs, that is, the state transition condition of the state machine is any one of the m-1 sub-state machines Entering the next state, the state transition sequence is clk1 detection, clk2 detection to clk(m-1) detection, and clkm selection; the clkm selection state is the termination state, and the state transition direction is irreversible and acyclic.

所述m-1个分状态机分别由时钟信号clk2至clkm驱动,当某一路时钟信号无效时,对应的分状态机停留在该时钟信号失效时状态;对应于某一路时钟信号clkx的分状态机有x个状态,2≤x≤m;当检测到被检时钟无效或主状态机进入下一状态时发生状态转移,按转换顺序依次为clk1检测、clk2检测至clk(x-1)检测、clkx选择,其中clkx选择状态为终止状态,状态转换方向不可逆、非循环。The m-1 sub-state machines are respectively driven by clock signals clk2 to clkm, and when a certain road clock signal is invalid, the corresponding sub-state machine stays in the state when the clock signal fails; corresponding to the sub-state of a certain road clock signal clkx The machine has x states, 2≤x≤m; when it is detected that the detected clock is invalid or the main state machine enters the next state, a state transition occurs, and the transition sequence is clk1 detection, clk2 detection to clk(x-1) detection , clkx selection, wherein the clkx selection state is the termination state, and the state transition direction is irreversible and acyclic.

所述主状态机处于某一路时钟信号clkx检测状态时,使用时钟信号clk(x+1)至clkm驱动对应的分状态机对clkx状态进行检测。When the main state machine is in the detection state of a certain clock signal clkx, the clock signal clk(x+1) to clkm is used to drive the corresponding sub-state machine to detect the state of clkx.

所述分状态机包含第一比较寄存器、第二比较寄存器和被检时钟无效计数器。The sub-state machine includes a first comparison register, a second comparison register and a detected clock invalid counter.

所述第一比较寄存器和第二比较寄存器用于寄存间隔两个时钟周期的被检时钟信号对应的时钟计数寄存器的取值;其中,第一比较寄存器在每个状态下,当驱动分状态机的时钟信号对应的驱动时钟计数寄存器的取值为0时,存储被检时钟计数寄存器的取值;第二比较寄存器在每个状态下,当驱动时钟计数寄存器取值为2时,存储被检时钟计数寄存器的取值。The first comparison register and the second comparison register are used to register the value of the clock count register corresponding to the detected clock signal at intervals of two clock cycles; wherein, the first comparison register is in each state, when driving the sub-state machine When the value of the driving clock count register corresponding to the clock signal of the clock signal is 0, store the value of the detected clock count register; in each state, when the value of the driving clock count register is 2, store the value of the detected clock count register The value of the clock count register.

所述被检时钟无效计数器用于记录被检时钟信号在受检过程中连续出现无效的次数,并设有计数上限值,当连续被检无效次数达到计数上限值时,认定被检时钟信号处于无效状态。The invalid counter of the detected clock is used to record the number of times that the detected clock signal is continuously invalid during the inspection process, and is provided with a counting upper limit value. The signal is in an invalid state.

所述被检时钟无效计数器初始值为0,状态转移时清零,当驱动时钟计数寄存器值为3、其自身取值小于计数上限值且所在分状态机状态未被主状态机驱动转移时,若第一比较寄存器取值与第二比较寄存器相同,则认定被检时钟信号出现一次受检无效,被检时钟无效计数器加1,若不同,则被检时钟无效计数器取0。The initial value of the invalid counter of the detected clock is 0, and it is cleared when the state is transferred. When the value of the driving clock count register is 3, its own value is less than the counting upper limit and the state of the sub-state machine is not driven by the main state machine. , if the value of the first comparison register is the same as that of the second comparison register, it is determined that the detected clock signal is invalid once, and the detected clock invalid counter is increased by 1; if they are different, the detected clock invalid counter is 0.

所述分状态机检测到被检时钟信号无效或主状态机进入下一状态时发生状态转移,即状态转移条件为主状态机进入下一状态或被检时钟无效计数器计数值累加至计数上限值。When the sub-state machine detects that the detected clock signal is invalid or the main state machine enters the next state, a state transition occurs, that is, the state transition condition is that the main state machine enters the next state or the count value of the detected clock invalid counter is accumulated to the counting upper limit value.

所述时钟多选一电路中时钟计数寄存器、主状态机状态寄存器、分状态机状态寄存器、时钟选择器、第一比较寄存器、第二比较寄存器和被检时钟无效计数器均采用三模冗余技术。The clock counting register, the main state machine state register, the sub-state machine state register, the clock selector, the first comparison register, the second comparison register and the invalid counter of the detected clock in the clock multi-choice circuit all adopt triple-mode redundancy technology .

一种时钟多选一电路中时钟多选一的方法,该方法包含以下步骤:A method for multiple selection of one clock in a clock multiple selection circuit, the method comprises the following steps:

1)设输入时钟信号数为m,其优先选择顺序依次为clk1、clk2至clkm,检测逻辑设计为用优先级低的时钟对优先级高的时钟进行检测,即对某一路时钟信号clkx进行检测时,使用clk(x+1)至clkm对clkx状态进行检测;将待选m路时钟信号分别触发一个n+1进制计数器,间隔大于1小于3个时钟周期的时间各取一次计数器取值,比较两次取值的异同,若相同,则表示在一次检测中被检时钟信号无效,若不同,则表示在一次检测中被检时钟信号有效;1) Assuming that the number of input clock signals is m, the priority selection sequence is clk1, clk2 to clkm, and the detection logic is designed to use a clock with a low priority to detect a clock with a high priority, that is, to detect a certain clock signal clkx , use clk(x+1) to clkm to detect the state of clkx; respectively trigger an n+1 base counter with m clock signals to be selected, and take the value of the counter each time the interval is greater than 1 and less than 3 clock cycles , compare the similarities and differences of the two values, if they are the same, it means that the detected clock signal is invalid in one detection, and if they are different, it means that the detected clock signal is valid in one detection;

2)由一个主状态机控制检测状态从clk1检测、clk2检测至clk(m-1)检测、clkm选择,每个状态下输出一个时钟选择信号控制时钟选择器模块选择被检时钟信号作为输出时钟信号,由clk2至clkm分别驱动一个分状态机在不同状态下对相应的被检时钟信号进行检测,对应于某一时钟信号clkx的分状态机由clk1检测、clk2检测直到clk(x-1)检测、clkx选择等x个状态构成;2) A main state machine controls the detection state from clk1 detection, clk2 detection to clk(m-1) detection, clkm selection, and outputs a clock selection signal in each state to control the clock selector module to select the detected clock signal as the output clock Signal, from clk2 to clkm to drive a sub-state machine to detect the corresponding detected clock signal in different states, the sub-state machine corresponding to a certain clock signal clkx is detected by clk1, clk2 until clk (x-1) detection, clkx selection and other x states constitute;

3)主状态机的状态转移由某一分状态机的状态转移带动,主状态机的状态转移驱动其余分状态机的状态转移,主状态机和分状态机运行过程中所处状态相互匹配,状态转换方向不可逆、非循环;3) The state transition of the main state machine is driven by the state transition of a sub-state machine, and the state transition of the main state machine drives the state transition of the other sub-state machines. The states of the main state machine and sub-state machines match each other during operation. The state transition direction is irreversible and acyclic;

4)主状态机和clk2至clkm对应的m-1路分状态机进入clk1检测状态,所有用于检测的分状态机中被检时钟无效计数器计数值取0,电路选择clk1为输出时钟信号,分状态机在对应时钟信号的驱动下间隔大于1小于n时钟周期各取一次clk1计数器取值并进行比较,若相同,则分状态机的被检时钟无效计数器加1,若不同,则被检时钟无效计数器清零;4) The main state machine and the m-1 sub-state machines corresponding to clk2 to clkm enter the clk1 detection state, and the count value of the detected clock invalid counter in all the sub-state machines used for detection is 0, and the circuit selects clk1 as the output clock signal, The sub-state machine is driven by the corresponding clock signal and the interval is greater than 1 and less than n clock cycles. Each takes the value of the clk1 counter and compares it. If they are the same, the detected clock invalid counter of the sub-state machine is increased by 1. If they are different, the counter is detected. The clock invalid counter is cleared;

5)若m-1路分状态机中被检时钟无效计数器计数值均未达到计数上限值,则电路保持在clk1检测状态下,而当某一路分状态机中该计数值达到计数上限值时,则该路分状态机转换到clk2检测状态,同时主状态机跟随进入clk2检测状态,并驱动其余m-2路分状态机进入clk2检测状态;5) If the count value of the detected clock invalid counter in the m-1 state machine does not reach the counting upper limit, the circuit remains in the clk1 detection state, and when the count value reaches the counting upper limit in a certain state machine value, the road sub-state machine switches to the clk2 detection state, and the main state machine follows and enters the clk2 detection state, and drives the remaining m-2 road sub-state machines to enter the clk2 detection state;

6)进入clk2检测状态后,所有用于检测的分状态机中被检时钟无效计数器计数值取0,电路选择clk2为输出时钟信号,除clk2驱动的分状态机进入终止状态不进行检测外,其余m-2路分状态机在对应时钟信号的驱动下对clk2进行检测,重复步骤2)、3)中相应的检测部分;6) After entering the clk2 detection state, the count value of the detected clock invalid counter in all sub-state machines used for detection is 0, and the circuit selects clk2 as the output clock signal, except that the sub-state machine driven by clk2 enters the termination state and does not perform detection. The remaining m-2 road sub-state machines detect clk2 under the drive of the corresponding clock signal, and repeat the corresponding detection parts in steps 2) and 3);

7)当电路进入对某一路时钟信号clkx的检测状态时,电路选择clkx为输出时钟信号,clk(x+1)至clkm对clkx的检测起作用,如此顺序执行,直至电路处于clkm选择状态,即选择clkm作为输出时钟信号的终止状态。7) When the circuit enters the detection state of a certain clock signal clkx, the circuit selects clkx as the output clock signal, and clk(x+1) to clkm have an effect on the detection of clkx, and execute in this order until the circuit is in the clkm selection state, That is, select clkm as the termination state of the output clock signal.

本发明的有益效果是以时钟信号周期性改变计数器状态的特性作为检测依据,以多路选择器作为时钟信号选择的执行器件,依托状态机实现时钟信号多对一的检测并输出时钟选择信号。能够自动可靠地进行同频时钟的多对一检测和时钟筛选,并通过对电路中的寄存器使用三模冗余技术,增强了发生单粒子翻转效应时电路的可靠性,解决了目前技术中需要额外的系统单元进行辅助或进行同频时钟多对一检测时存在错检的问题,降低了系统成本、复杂度和耦合度,提高了系统效能和可靠性。The beneficial effect of the present invention is to use the characteristics of the clock signal periodically changing the state of the counter as the detection basis, use the multiplexer as the execution device for clock signal selection, rely on the state machine to realize the many-to-one detection of the clock signal and output the clock selection signal. It can automatically and reliably perform many-to-one detection and clock screening of the same frequency clock, and through the use of triple-mode redundancy technology for the registers in the circuit, the reliability of the circuit when the single event reversal effect occurs is enhanced, which solves the current technical needs There is a problem of misdetection when additional system units are used for assistance or many-to-one detection of the same frequency clock, which reduces system cost, complexity and coupling, and improves system performance and reliability.

附图说明Description of drawings

图1为时钟多选一电路的结构框图。Figure 1 is a structural block diagram of a clock multi-choice circuit.

图2为时钟多选一方法流程图。Fig. 2 is a flow chart of a method for choosing one from multiple clocks.

图3为时钟计数器模块的电路原理框图。Figure 3 is a block diagram of the circuit principle of the clock counter module.

图4为时钟选择器模块的电路原理框图。Figure 4 is a block diagram of the circuit of the clock selector module.

图5为时钟选择信号发生器模块的主状态机的状态转移图。FIG. 5 is a state transition diagram of the main state machine of the clock selection signal generator module.

图6为时钟选择信号发生器模块的分状态机的状态转移图。FIG. 6 is a state transition diagram of the sub-state machine of the clock selection signal generator module.

图7为时钟选择信号发生器模块的clk3分状态机中clk1检测状态的检测流程图。Fig. 7 is a detection flow chart of the clk1 detection state in the clk3 sub-state machine of the clock selection signal generator module.

具体实施方式detailed description

本发明提供了一种时钟多选一电路及多选一方法。以下结合附图对本发明作进一步详细说明。The invention provides a clock multiple selection circuit and multiple selection method. The present invention will be described in further detail below in conjunction with the accompanying drawings.

图1所示为时钟多选一电路的结构框图,该电路由时钟计数器模块100、时钟选择信号发生器模块300和时钟选择器模块200串联组成;Fig. 1 shows the structural block diagram of clock multiple selection one circuit, and this circuit is made up of clock counter module 100, clock selection signal generator module 300 and clock selector module 200 in series;

设输入时钟信号数为m且m≥2,第一路时钟信号至第m路时钟信号分别记为clk1至clkm,为便于说明,各时钟信号对应的时钟计数器取为四进制循环计数器,各分状态机中被检时钟无效计数器计数上限值设为7;Assuming that the number of input clock signals is m and m≥2, the first clock signal to the mth clock signal are recorded as clk1 to clkm respectively. For the convenience of explanation, the clock counters corresponding to each clock signal are taken as quaternary cycle counters, each The counting upper limit value of the detected clock invalid counter in the sub-state machine is set to 7;

所述时钟计数器模块包含m个四进制计数器模块,用于对每路输入时钟信号进行从0到3的循环计数,对应某一路时钟信号clkx的计数器模块命名为clkx计数器,如clk1计数器110、clk2计数器120、clk3计数器130、clkm计数器140,每个计数器使用6位计数寄存器形成三模冗余;该四进制计数器为上升沿触发模式,即输入时钟信号的上升沿触发一次计数,计数器加1。Described clock counter module comprises m quaternary counter modules, is used for carrying out the cycle count from 0 to 3 to each road input clock signal, and the counter module corresponding to certain road clock signal clkx is called clkx counter, as clk1 counter 110, clk2 counter 120, clk3 counter 130, clkm counter 140, each counter uses a 6-bit counting register to form a three-mode redundancy; the quaternary counter is a rising edge trigger mode, that is, the rising edge of the input clock signal triggers a count, and the counter adds 1.

以m等于3为例,所述时钟计数器模块电路原理框图如图3所示:Taking m equal to 3 as an example, the functional block diagram of the clock counter module circuit is shown in Figure 3:

三路时钟信号clk1、clk2、clk3作为待选时钟信号输入所述时钟计数器模块,各自触发clk1四进制计数器111、clk2四进制计数器121、clk3四进制计数器131进行四进制计数,对应时钟信号clk1的时钟计数寄存器为clk1_cnt1、clk1_cnt2、clk1_cnt3,均为两位寄存器;clk1有效时,其上升沿触发clk1_cnt1、clk1_cnt2、clk1_cnt3加1,由三个计数寄存器经过三取二判决模块112判决后的输出clk1_cnt即可得到计数器的取值;当clk1_cnt取值为3时,若clk1有效,便会触发clk1_cnt1、clk1_cnt2、clk1_cnt3回到初始值0,重新开始新一轮计数,这样便是实现了三模冗余保护下的clk1四进制计数,其余两路时钟信号计数原理同clk1;当某一路时钟信号无效时,不会触发对应的计数器计数,计数器取值停留在时钟信号无效时状态;clk1_cnt、clk2_cnt、clk3_cnt作为输出送入时钟选择信号发生器模块。Three-way clock signal clk1, clk2, clk3 input described clock counter module as candidate clock signal, respectively trigger clk1 quaternary counter 111, clk2 quaternary counter 121, clk3 quaternary counter 131 to carry out quaternary counting, corresponding The clock counting registers of the clock signal clk1 are clk1_cnt1, clk1_cnt2, and clk1_cnt3, all of which are two-bit registers; when clk1 is valid, its rising edge triggers the addition of 1 to clk1_cnt1, clk1_cnt2, and clk1_cnt3, and the three counting registers are judged by the two-out-of-three judgment module 112 The output clk1_cnt can get the value of the counter; when the value of clk1_cnt is 3, if clk1 is valid, it will trigger clk1_cnt1, clk1_cnt2, clk1_cnt3 to return to the initial value 0, and restart a new round of counting, thus achieving three clk1 quaternary counting under modular redundancy protection, the counting principles of the other two clock signals are the same as clk1; when a certain clock signal is invalid, the corresponding counter counting will not be triggered, and the value of the counter stays in the state when the clock signal is invalid; clk1_cnt , clk2_cnt, clk3_cnt are sent to the clock selection signal generator module as output.

所述的时钟选择器模块用于对输入时钟信号进行选择,包含一个多路选择器,其输入为所有待选时钟信号,由时钟选择信号控制选择某一路作为输出时钟信号。The clock selector module is used to select the input clock signal, and includes a multiplexer, the input of which is all the clock signals to be selected, and a certain channel is selected as the output clock signal by the control of the clock selection signal.

以m等于3为例,所述时钟选择器模块电路原理图如图4所示:Taking m equal to 3 as an example, the circuit schematic diagram of the clock selector module is shown in Figure 4:

三路时钟信号clk1、clk2、clk3作为待选时钟信号输入所述多路选择器210,当时钟选择信号cs取值为二进制数00时,输出时钟信号clk_out为clk1;当时钟选择信号cs取值为二进制数01时,输出时钟信号clk_out为clk2;当时钟选择信号cs取值为二进制数10时,输出时钟信号clk_out为clk3。The three-way clock signals clk1, clk2, and clk3 are input to the multiplexer 210 as the clock signal to be selected. When the value of the clock selection signal cs is binary number 00, the output clock signal clk_out is clk1; when the value of the clock selection signal cs is When the binary number is 01, the output clock signal clk_out is clk2; when the value of the clock selection signal cs is binary number 10, the output clock signal clk_out is clk3.

所述时钟选择信号发生器模块用于检测时钟信号有效性并输出时钟选择信号,其输入为m路待选时钟信号及其对应的时钟计数寄存器计数值,输出为时钟选择信号cs,包含一个主状态机和m-1个分状态机。The clock selection signal generator module is used to detect the validity of the clock signal and output the clock selection signal. Its input is the clock signal to be selected in the m road and the count value of the corresponding clock count register, and the output is the clock selection signal cs, including a main state machine and m-1 sub-state machines.

所述主状态机用于控制检测状态的转换,当某一路时钟信号检测到被检时钟信号处于无效状态时发生状态转移。The main state machine is used to control the transition of the detection state, and a state transition occurs when a certain clock signal detects that the detected clock signal is in an invalid state.

所述分状态机用于执行对某一路时钟信号有效性的检测,当检测到被检时钟信号无效或主状态机进入下一状态时发生状态转移。The sub-state machine is used to detect the validity of a certain clock signal, and a state transition occurs when the detected clock signal is detected to be invalid or the main state machine enters the next state.

所述主状态机和分状态机运行过程中所处状态相互匹配。The states of the main state machine and the sub-state machines match each other during operation.

以m等于3为例,所述时钟选择信号发生器模块主状态机和分状态机工作原理如图5、图6所示:Taking m equal to 3 as an example, the working principles of the main state machine and sub-state machine of the clock selection signal generator module are shown in Figure 5 and Figure 6:

如图5所示,所述主状态机由clk1检测500、clk2检测510和clk3选择520三个状态组成,每一个状态下输出一个时钟选择信号cs,该信号与被检时钟信号匹配,用于控制时钟选择器模块选择被检时钟信号作为输出时钟信号,如当主状态处于clk1检测状态时,时钟选择信号cs取值为二进制数00,此时输出时钟信号clk_out为clk1;状态机转换条件视不同状态而不同,在clk1检测状态下,因clk2和clk3均对clk1有效性进行检测,二者任意对应的分状态机进入到下一状态便会带动主状态机进入到下一状态,即状态转换条件为c_st2或c_st3等于二进制数01,在clk2检测状态下,因仅clk3对clk2有效性进行检测,只有当clk3分状态机进入下一状态时主状态机才会跟随进入下一状态,即状态转换条件为c_st3等于二进制数10;As shown in Figure 5, the main state machine is composed of three states of clk1 detection 500, clk2 detection 510 and clk3 selection 520, each state outputs a clock selection signal cs, which matches the detected clock signal for The control clock selector module selects the detected clock signal as the output clock signal. For example, when the main state is in the clk1 detection state, the value of the clock selection signal cs is binary number 00. At this time, the output clock signal clk_out is clk1; the state machine conversion conditions are different The state is different. In the clk1 detection state, because clk2 and clk3 both detect the validity of clk1, any sub-state machine corresponding to the two will enter the next state and drive the main state machine to enter the next state, that is, state transition The condition is that c_st2 or c_st3 is equal to the binary number 01. In the clk2 detection state, because only clk3 detects the validity of clk2, only when the clk3 sub-state machine enters the next state, the main state machine will follow and enter the next state, that is, the state The conversion condition is that c_st3 is equal to the binary number 10;

如图6所示,所述clk2分状态机由时钟信号clk2驱动,若clk2无效则该分状态机停留在clk2失效时状态,其由clk1检测600和clk2选择610两个状态组成,当分状态机处于clk1检测状态时,执行对clk1有效性的检测,状态转移条件为c_st0等于二进制数01或被检时钟无效计数器clk2_noclk_cnt取值为7,当分状态机处于clk2选择状态时,其维持一个固定状态,不对时钟信号有效性进行检测;所述clk3分状态机由时钟信号clk3驱动,同样其工作受clk3状态的影响,其由clk1检测、clk2检测和clk3选择三个状态组成,当分状态机处于clk1或clk2检测状态时,执行对clk1或clk2有效性的检测,状态转移条件为c_st0等于二进制数01或被检时钟无效计数器clk3_noclk_cnt取值为7,当分状态机处于clk3选择状态时,工作状态类同于clk2选择状态;As shown in Figure 6, described clk2 sub-state machine is driven by clock signal clk2, if clk2 is invalid then this sub-state machine stays in the state when clk2 fails, and it is made up of two states that clk1 detects 600 and clk2 selects 610, when sub-state machine When in the clk1 detection state, the detection of the validity of clk1 is performed, and the state transition condition is that c_st0 is equal to the binary number 01 or the value of the invalid counter clk2_noclk_cnt of the detected clock is 7. When the sub-state machine is in the clk2 selection state, it maintains a fixed state. The effectiveness of the clock signal is not detected; the clk3 sub-state machine is driven by the clock signal clk3, and its work is affected by the clk3 state equally, and it is composed of three states selected by clk1 detection, clk2 detection and clk3, when the sub-state machine is in clk1 or When clk2 detects the state, it executes the detection of the validity of clk1 or clk2. The state transition condition is that c_st0 is equal to the binary number 01 or the value of the invalid counter clk3_noclk_cnt of the detected clock is 7. When the sub-state machine is in the clk3 selection state, the working state is similar to clk2 selection state;

从图5和图6中可知,主状态机的状态寄存器为c_st01、c_st02、c_st03,均为两位寄存器,三个寄存器在进行三取二判决后的输出c_st0即为主状态机的状态标志,当c_st0取值为二进制数00时,主状态机处于clk1检测状态,当c_st0取值为二进制数01时,主状态机处于clk2检测状态,当c_st0取值为二进制数10时,主状态机处于clk3选择状态,时钟选择信号cs由主状态中三个时钟选择寄存器cs1、cs2、cs3进行三取二判决后得到;同样的原理,clk2分状态机的状态寄存器c_st21、c_st22、c_st23进行三取二判决后的输出c_st2为clk2分状态机的状态标志,clk3分状态机的状态寄存器c_st31、c_st32、c_st33进行三取二判决后的输出c_st3为clk3分状态机的状态标志。It can be seen from Figure 5 and Figure 6 that the state registers of the main state machine are c_st01, c_st02, and c_st03, all of which are two-bit registers, and the output c_st0 of the three registers after the two-out-of-three judgment is the state flag of the main state machine. When the value of c_st0 is binary number 00, the main state machine is in clk1 detection state, when the value of c_st0 is binary number 01, the main state machine is in clk2 detection state, when the value of c_st0 is binary number 10, the main state machine is in In the clk3 selection state, the clock selection signal cs is obtained after three out of three clock selection registers cs1, cs2, and cs3 in the main state; the same principle, the state registers c_st21, c_st22, and c_st23 of the clk2 sub-state machine are out of three The output c_st2 after the judgment is the state flag of the clk2 sub-state machine, and the output c_st3 after the state register c_st31, c_st32, and c_st33 of the clk3 sub-state machine are judged to be two out of three is the state flag of the clk3 sub-state machine.

所述时钟多选一电路上电复位后,所述时钟选择信号发生器模块主状态机和分状态机进入对时钟信号clk1进行检测的初始状态,以m等于3为例,clk2和clk3分别执行对clk1有效性的检测,以clk3对clk1进行检测为例说明一路时钟信号结合分状态机对被检时钟信号进行有效性检测的流程,如图7所示:After the clock multi-choice circuit is powered on and reset, the main state machine and sub-state machine of the clock selection signal generator module enter the initial state of detecting the clock signal clk1, taking m equal to 3 as an example, clk2 and clk3 respectively execute For the detection of the validity of clk1, take the detection of clk1 by clk3 as an example to illustrate the process of a clock signal combined with a state machine to detect the validity of the detected clock signal, as shown in Figure 7:

检测时使用到第一比较寄存器reg_clk3_01、reg_clk3_02、reg_clk3_03,第二比较寄存器reg_clk3_21、reg_clk3_22、reg_clk3_23和被检时钟无效计数器(8进制)clk3_noclk_cnt1、clk3_noclk_cnt2、clk3_noclk_cnt3,上述寄存器使用了三模冗余技术,对应的三取二判决输出为reg_clk3_0、reg_clk3_2和clk3_noclk_cnt,各寄存器初始值均为0;The first comparison register reg_clk3_01, reg_clk3_02, reg_clk3_03, the second comparison register reg_clk3_21, reg_clk3_22, reg_clk3_23 and the detected clock invalid counter (octal system) clk3_noclk_cnt1, clk3_noclk_cnt2, clk3_noclk_cnt3 are used for detection. The above registers use triple-mode redundancy technology. The corresponding two-out-of-three judgment output is reg_clk3_0, reg_clk3_2 and clk3_noclk_cnt, and the initial value of each register is 0;

上电复位后,主状态机和分状态机进入clk1检测状态,执行步骤701,clk3驱动clk3分状态机首先对clk3_cnt取值进行判断;After power-on reset, the main state machine and the sub-state machine enter the clk1 detection state, execute step 701, clk3 drives the clk3 sub-state machine to first judge the value of clk3_cnt;

当clk3_cnt值为0时,执行步骤702,将clk1_cnt值赋予第一比较寄存器reg_clk3_01、reg_clk3_02、reg_clk3_03;When the value of clk3_cnt is 0, execute step 702 to assign the value of clk1_cnt to the first comparison registers reg_clk3_01, reg_clk3_02, reg_clk3_03;

当clk3_cnt值为2时,执行步骤703,将clk1_cnt值赋予第二比较寄存器reg_clk3_21、reg_clk3_22、reg_clk3_23;When the value of clk3_cnt is 2, execute step 703 to assign the value of clk1_cnt to the second comparison registers reg_clk3_21, reg_clk3_22, reg_clk3_23;

当clk3_cnt值为3时,执行步骤704,先判断c_st0是否为二进制数01或clk3_noclk_cnt是否计数到7;When the value of clk3_cnt is 3, execute step 704, first judge whether c_st0 is binary number 01 or whether clk3_noclk_cnt counts to 7;

若否,则表明主状态机没有进入到下一状态(clk2检测)并且检测到clk1无效的次数未达到预设限(7次),那么clk3分状态机会继续停留在clk1检测状态,执行步骤705,使c_st31、c_st32、c_st33取值为二进制数00,之后执行步骤706,判断reg_clkx_0和reg_clkx_2取值是否相同;由于reg_clk3_0和reg_clk3_2取值为clk1_cnt间隔两个时钟周期的计数值,而clk1有效时会间隔一个时钟周期改变一次clk1_cnt取值,此时若reg_clk3_0和reg_clk3_2互易,则证明clk1有效,执行步骤707,clk3_noclk_cnt1、clk3_noclk_cnt2、clk3_noclk_cnt3取0值,若reg_clk3_0和reg_clk3_2相同,则证明clk1有一次检测无效,执行步骤708,clk3_noclk_cnt1、clk3_noclk_cnt2、clk3_noclk_cnt3加1;If not, it indicates that the main state machine has not entered the next state (clk2 detection) and the number of detections that clk1 is invalid has not reached the preset limit (7 times), then the clk3 sub-state machine will continue to stay in the clk1 detection state, and execute step 705 , so that the values of c_st31, c_st32, and c_st33 are binary numbers 00, and then step 706 is executed to determine whether the values of reg_clkx_0 and reg_clkx_2 are the same; since the values of reg_clk3_0 and reg_clk3_2 are the count values of two clock cycles of clk1_cnt, and when clk1 is valid, it will Change the value of clk1_cnt once every clock cycle. At this time, if reg_clk3_0 and reg_clk3_2 reciprocate, it proves that clk1 is valid. Go to step 707, and clk3_noclk_cnt1, clk3_noclk_cnt2, and clk3_noclk_cnt3 take the value of 0. If reg_clk3_0 and reg_clk3_2 are the same, it proves that clk1 has a detection invalid , execute step 708, add 1 to clk3_noclk_cnt1, clk3_noclk_cnt2, clk3_noclk_cnt3;

若判断到c_st0为二进制数01,则表明clk2分状态机已经驱动主状态机进入到clk2检测状态,这时执行步骤709,c_st31、c_st32、c_st33取值为二进制数01,clk3_noclk_cnt1、clk3_noclk_cnt2、clk3_noclk_cnt3取0值,随后执行步骤710,clk3分状态机进入到clk2检测状态中;If it is judged that c_st0 is a binary number 01, it indicates that the clk2 sub-state machine has driven the main state machine to enter the clk2 detection state. At this time, step 709 is executed. 0 value, then execute step 710, the clk3 sub-state machine enters in the clk2 detection state;

若判断到clk3_noclk_cnt计数到7,则表明clk1连续7次被检无效,认为此时clk1处于无效状态,这时执行步骤709和710。If it is judged that clk3_noclk_cnt counts to 7, it indicates that clk1 has been checked invalid for 7 consecutive times, and it is considered that clk1 is in an invalid state at this time, and steps 709 and 710 are performed at this time.

按照上述方法在每个状态下对相应的时钟信号进行检测,若被检时钟信号有效则主状态机和分状态机保持在当前状态下,时钟选择信号cs选择被检时钟信号作为输出,若被检时钟信号无效则由先检出其无效的时钟信号驱动主状态机和其余各路分状态机转换到下一状态。According to the above method, the corresponding clock signal is detected in each state. If the detected clock signal is valid, the main state machine and the sub-state machine remain in the current state. The clock selection signal cs selects the detected clock signal as output. If the detected clock signal is invalid, then the invalid clock signal is first detected to drive the main state machine and the other sub-state machines to switch to the next state.

综上所述,以输入时钟信号数等于3为例,输入时钟信号和输出时钟信号关系为:To sum up, taking the number of input clock signals equal to 3 as an example, the relationship between the input clock signal and the output clock signal is:

若clk1有效,无论clk2、clk3处于何种状态,则主、分状态机处于clk1检测的状态,时钟选择信号cs选择clk1作为输出时钟信号;If clk1 is effective, no matter what state clk2 and clk3 are in, the main and sub-state machines are in the state of clk1 detection, and the clock selection signal cs selects clk1 as the output clock signal;

当clk1无效而clk2、clk3均有效时,可检出clk1处于无效状态,从而驱动主状态机进入clk2检测状态,同时选择clk2作为输出时钟信号,在对clk2的检测状态中,已经被检失效的时钟信号clk1被认为是不可靠的时钟源,不再启用其对其他路时钟信号进行检测,所以仅使用优先级低的clk3对clk2有效性进行检测;When clk1 is invalid but clk2 and clk3 are both valid, it can be detected that clk1 is in an invalid state, thereby driving the main state machine to enter the clk2 detection state, and at the same time select clk2 as the output clock signal. In the detection state of clk2, the detected invalid The clock signal clk1 is considered as an unreliable clock source, and it is no longer enabled to detect other clock signals, so only clk3 with low priority is used to detect the validity of clk2;

此时,clk2分状态机进入clk2选择状态,该状态为clk2分状态机的终止状态,在此状态中c_st21、c_st22、c_st23取值为二进制数01,第一比较寄存器、第二比较寄存器、被检时钟无效计数器均取值为0,不再有其余动作;At this time, the clk2 state machine enters the clk2 selection state, which is the termination state of the clk2 state machine. In this state, the values of c_st21, c_st22, and c_st23 are binary numbers 01, and the first comparison register, the second comparison register, and The invalid counters of clock detection are all set to 0, and there are no other actions;

当仅clk2有效时,同样能检出clk1无效而使主状态机进入clk2检测状态,此时选择clk2作为输出时钟信号,由于clk3无效,其停留在clk1检测状态中,不会影响电路的正常工作;When only clk2 is valid, it can also detect that clk1 is invalid and the main state machine enters the clk2 detection state. At this time, clk2 is selected as the output clock signal. Since clk3 is invalid, it stays in the clk1 detection state and will not affect the normal operation of the circuit. ;

当仅clk3有效时,能检出clk1、clk2无效而使主状态机进入clk3选择状态,此时选择clk3作为输出时钟信号,此即为输入时钟信号数为3时主状态机的终止状态。When only clk3 is effective, it can detect that clk1 and clk2 are invalid so that the main state machine enters the clk3 selection state. At this time, clk3 is selected as the output clock signal, which is the termination state of the main state machine when the number of input clock signals is 3.

上述输入时钟信号和输出时钟信号关系如表1所示,其中1表示时钟信号为有效状态,0表示时钟信号为无效状态,X表示时钟信号状态任意。The above-mentioned relationship between the input clock signal and the output clock signal is shown in Table 1, wherein 1 indicates that the clock signal is in a valid state, 0 indicates that the clock signal is in an invalid state, and X indicates that the clock signal is in any state.

表1输入时钟信号和输出时钟信号关系(输入时钟信号数等于3)Table 1 Relationship between input clock signal and output clock signal (the number of input clock signals is equal to 3)

下面结合图2对本发明的时钟选择和检测流程进行说明:Below in conjunction with Fig. 2, the clock selection and detection process of the present invention are described:

首先进入步骤400,时钟选择信号cs控制时钟选择器选择clk1为输出时钟信号,clk2至clkm对clk1有效性进行检测;First enter step 400, the clock selection signal cs controls the clock selector to select clk1 as the output clock signal, and clk2 to clkm detect the validity of clk1;

接着进入步骤410,判断clk1是否处于有效状态,若clk1有效则回到步骤400,若clk1无效则进入步骤420;Then enter step 410, judge whether clk1 is in valid state, if clk1 is valid, then return to step 400, if clk1 is invalid, then enter step 420;

进入步骤420后,时钟选择信号cs控制时钟选择器选择clk2为输出时钟信号,clk3至clkm对clk2有效性进行检测;After entering step 420, the clock selection signal cs controls the clock selector to select clk2 as the output clock signal, and clk3 to clkm detect the validity of clk2;

按照上述步骤流程,在对某一路时钟信号clkx进行检测时进入步骤430,时钟选择信号cs控制时钟选择器选择clkx为输出时钟信号,clk(x+1)至clkm对clkx有效性进行检测,在对检测结果进行判断时进入步骤440,若clkx有效则回到步骤430,若clkx无效则进入下一步骤;According to the above steps, when detecting a certain clock signal clkx, enter step 430, the clock selection signal cs controls the clock selector to select clkx as the output clock signal, clk (x+1) to clkm detect the validity of clkx, and then Enter step 440 when the detection result is judged, if clkx is valid, then return to step 430, if clkx is invalid, then enter the next step;

依次执行上述步骤,直到对clk(m-1)进行检测时进入步骤450,时钟选择信号cs控制时钟选择器选择clk(m-1)为输出时钟信号,clkm对clk1有效性进行检测;Perform the above steps in sequence until clk(m-1) is detected and enter step 450, the clock selection signal cs controls the clock selector to select clk(m-1) as the output clock signal, and clkm detects the validity of clk1;

接着进入步骤460,判断clk(m-1)是否处于有效状态,若clk(m-1)有效则回到步骤450,若clk(m-1)无效则进入步骤470;Then enter step 460, judge whether clk (m-1) is in a valid state, if clk (m-1) is valid, then return to step 450, if clk (m-1) is invalid, then enter step 470;

步骤470为最后一步,时钟选择信号cs控制时钟选择器选择clkm为输出时钟信号。Step 470 is the last step, the clock selection signal cs controls the clock selector to select clkm as the output clock signal.

上述方法为顺序执行,已被检无效的时钟信号被认定为不可靠时钟源,后续步骤中刻意避免其影响。若执行检测过程中某一路检测时钟信号失效,由于所述时钟选择信号发生器模块中主状态机和分状态机状态转换方向不可逆、非循环且二者运行过程中所处状态相互匹配,其不会影响电路的正常工作,这样便提高了所述时钟多选一电路的容错能力和可靠性。The above method is executed sequentially, and the clock signal that has been detected to be invalid is identified as an unreliable clock source, and its influence is deliberately avoided in the subsequent steps. If a certain detection clock signal fails during the detection process, since the state transition direction of the main state machine and the sub-state machine in the clock selection signal generator module is irreversible and acyclic, and the states in the operation process of the two match each other, it does not It will affect the normal operation of the circuit, thus improving the fault tolerance and reliability of the clock multi-choice circuit.

需要说明的是上述具体实施方式主要以输入时钟信号数等于3为例进行描述,但本领域普通技术人员应该明白,在无其他约束的情况下,此方法同样适用于输入时钟信号数大于3的情况,且所述时钟计数器进制、被检时钟无效计数器计数上限值也可根据实际情况进行调整。It should be noted that the above specific implementation is mainly described by taking the number of input clock signals equal to 3 as an example, but those skilled in the art should understand that this method is also applicable to the case where the number of input clock signals is greater than 3 without other constraints. The situation, and the base of the clock counter and the counting upper limit of the invalid counter of the detected clock can also be adjusted according to the actual situation.

以上内容说明了通过该电路可以自主可靠地对同频多时钟源进行筛选,具有可靠性高、独立性强、具备单粒子翻转效应容错能力的优点。对本领域的普通技术人员而言,在不偏离本发明思想的前提下,在形式上进行各种改变,都应视为属于本发明的保护范畴。The above content shows that the circuit can independently and reliably screen multiple clock sources at the same frequency, and has the advantages of high reliability, strong independence, and fault tolerance for single event flipping effects. For those skilled in the art, any changes in form without departing from the idea of the present invention should be deemed to belong to the protection category of the present invention.

Claims (8)

1.一种时钟多选一电路,所述时钟多选一电路由时钟计数器模块、时钟选择信号发生器模块和时钟选择器模块串联组成;其中,时钟计数器模块,用于对每路输入时钟信号进行循环计数;时钟选择信号发生器模块,用于检测时钟信号有效性并输出时钟选择信号;时钟选择器模块用于对输入时钟信号进行选择,该时钟选择器模块包含一个多路选择器,其输入为所有待选时钟信号,由时钟选择信号控制选择某一路作为输出时钟信号;该时钟多选一电路设置m路输入时钟信号,且m≥2,第1路时钟信号至第m路时钟信号分别记为clk1至clkm;该时钟多选一电路利用FPGA实现自主从同频的两路或两路以上输入时钟信号中选择一路有效时钟信号作为输出时钟信号,电路中所用寄存器使用三模冗余技术进行抗SEU防护,其中,SEU单粒子翻转;所述三模冗余技术为常用的容错技术,即三个模块进行同样的操作,输出采用三取二,只要同样的错误不同时发生在其中两个模块,就能屏蔽掉故障模块的影响;所述时钟计数器模块包含m个循环计数器,称为时钟计数器,用于对每路输入时钟信号进行从0到n的循环计数,且n为大于2的任意整数,其中循环计数器为上升沿触发模式,即输入时钟信号的上升沿触发一次计数,计数器加1;其特征在于,所述时钟选择信号发生器模块包含一个主状态机和m-1个分状态机,主状态机用于控制检测状态的转换,分状态机用于执行对某一路时钟信号有效性的检测;在运行过程中,所述主状态机和分状态机的所处状态相互匹配;所述分状态机包含第一比较寄存器、第二比较寄存器和被检时钟无效计数器;1. A kind of clock multi-choice one circuit, described clock multi-choice one circuit is made up of clock counter module, clock selection signal generator module and clock selector module in series; Wherein, clock counter module is used for input clock signal to every road Carry out cycle counting; the clock selection signal generator module is used to detect the validity of the clock signal and output the clock selection signal; the clock selector module is used to select the input clock signal, and the clock selector module includes a multiplexer, which The input is all the clock signals to be selected, and a certain channel is selected as the output clock signal by the control of the clock selection signal; the clock multi-selection circuit sets m input clock signals, and m≥2, the first clock signal to the mth clock signal They are respectively recorded as clk1 to clkm; the clock multiple selection circuit uses FPGA to independently select one effective clock signal from two or more input clock signals of the same frequency as the output clock signal, and the registers used in the circuit use triple-mode redundancy Technology for anti-SEU protection, wherein, SEU single event flip; the triple-mode redundancy technology is a commonly used fault-tolerant technology, that is, the three modules perform the same operation, and the output uses two out of three, as long as the same error does not occur in one of them at the same time Two modules can shield the influence of the faulty module; the clock counter module includes m cycle counters, called clock counters, which are used to count cycles from 0 to n for each input clock signal, and n is greater than Any integer of 2, wherein the loop counter is a rising edge trigger mode, that is, the rising edge of the input clock signal triggers a count, and the counter adds 1; it is characterized in that the clock selection signal generator module includes a main state machine and m-1 A sub-state machine, the main state machine is used to control the conversion of the detection state, and the sub-state machine is used to perform the detection of the validity of a certain clock signal; in the running process, the state of the main state machine and the sub-state machine Mutual matching; the sub-state machine includes a first comparison register, a second comparison register and an invalid counter of the detected clock; 所述主状态机由clk1检测、clk2检测至clk(m-1)检测及clkm选择共m个状态组成,每个状态下输出一个时钟选择信号,该信号与被检时钟信号匹配,用于控制时钟选择器模块选择被检时钟信号作为输出时钟信号;当某一路时钟信号检测到被检时钟信号处于无效状态时发生状态转移,即状态机状态转换条件为m-1个分状态机中任意一个进入到下一状态中,其状态转换顺序依次为clk1检测、clk2检测至clk(m-1)检测、clkm选择;其中clkm选择状态为终止状态,状态转换方向不可逆、非循环。The main state machine is composed of clk1 detection, clk2 detection to clk(m-1) detection and clkm selection total m states, each state outputs a clock selection signal, which matches the detected clock signal and is used to control The clock selector module selects the detected clock signal as the output clock signal; when a certain clock signal detects that the detected clock signal is in an invalid state, a state transition occurs, that is, the state transition condition of the state machine is any one of the m-1 sub-state machines Entering the next state, the state transition sequence is clk1 detection, clk2 detection to clk(m-1) detection, and clkm selection; the clkm selection state is the termination state, and the state transition direction is irreversible and acyclic. 2.根据权利要求1所述一种时钟多选一电路,其特征在于,所述m-1个分状态机分别由时钟信号clk2至clkm驱动,当某一路时钟信号无效时,对应的分状态机停留在该时钟信号失效时状态;对应于某一路时钟信号clkx的分状态机有x个状态,2≤x≤m;当检测到被检时钟无效或主状态机进入下一状态时发生状态转移,按转换顺序依次为clk1检测、clk2检测至clk(x-1)检测、clkx选择,其中clkx选择状态为终止状态,状态转换方向不可逆、非循环。2. according to the described a kind of clock multiple selection circuit of claim 1, it is characterized in that, described m-1 sub-state machines are respectively driven by clock signal clk2 to clkm, when a certain road clock signal is invalid, corresponding sub-state The machine stays in the state when the clock signal fails; the sub-state machine corresponding to a certain clock signal clkx has x states, 2≤x≤m; the state occurs when the detected clock is invalid or the main state machine enters the next state Transfer, according to the conversion sequence is clk1 detection, clk2 detection to clk(x-1) detection, clkx selection, wherein the clkx selection state is the termination state, and the state transition direction is irreversible and acyclic. 3.根据权利要求1所述一种时钟多选一电路,其特征在于,所述主状态机处于某一路时钟信号clkx检测状态时,使用时钟信号clk(x+1)至clkm驱动对应的分状态机对clkx状态进行检测。3. according to the described a kind of clock multiple selection circuit of claim 1, it is characterized in that, when described main state machine is in the detection state of a certain road clock signal clkx, use clock signal clk(x+1) to clkm to drive corresponding branch The state machine detects the clkx state. 4.根据权利要求1所述一种时钟多选一电路,其特征在于,所述第一比较寄存器和第二比较寄存器用于寄存间隔两个时钟周期的被检时钟信号对应的时钟计数寄存器的取值;其中,第一比较寄存器在每个状态下,当驱动分状态机的时钟信号对应的驱动时钟计数寄存器的取值为0时,存储被检时钟计数寄存器的取值;第二比较寄存器在每个状态下,当驱动时钟计数寄存器取值为2时,存储被检时钟计数寄存器的取值。4. A kind of clock multi-choice circuit according to claim 1, characterized in that, the first comparison register and the second comparison register are used to store the clock count register corresponding to the detected clock signal at intervals of two clock cycles Value; wherein, the first comparison register is in each state, when the value of the drive clock count register corresponding to the clock signal driving the sub-state machine is 0, the value of the clock count register is stored; the second comparison register In each state, when the value of the counting register of the driving clock is 2, the value of the counting register of the detected clock is stored. 5.根据权利要求1所述一种时钟多选一电路,其特征在于,所述被检时钟无效计数器用于记录被检时钟信号在受检过程中连续出现无效的次数,并设有计数上限值,当连续被检无效次数达到计数上限值时,认定被检时钟信号处于无效状态。5. A kind of clock multi-choice circuit according to claim 1, characterized in that, the invalid counter of the detected clock is used to record the number of times that the detected clock signal continuously appears invalid in the process of being detected, and is provided with a counter Limit value, when the number of consecutive invalid checks reaches the counting upper limit, the clock signal to be checked is deemed to be in an invalid state. 6.根据权利要求5所述一种时钟多选一电路,其特征在于,所述被检时钟无效计数器初始值为0,状态转移时清零,当驱动时钟计数寄存器值为3、其自身取值小于计数上限值且所在分状态机状态未被主状态机驱动转移时,若第一比较寄存器取值与第二比较寄存器相同,则认定被检时钟信号出现一次受检无效,被检时钟无效计数器加1,若不同,则被检时钟无效计数器取0。6. according to the described a kind of clock multiple selection circuit of claim 5, it is characterized in that, the initial value of the invalid counter of the detected clock is 0, cleared during state transfer, when the value of the drive clock counting register is 3, it takes When the value is less than the counting upper limit value and the state of the sub-state machine where it is located is not driven by the main state machine, if the value of the first comparison register is the same as that of the second comparison register, it is deemed that the detected clock signal is invalid once and the detected clock signal Invalid counter plus 1, if different, the invalid counter of the detected clock is 0. 7.根据权利要求5所述一种时钟多选一电路,其特征在于,所述分状态机检测到被检时钟信号无效或主状态机进入下一状态时发生状态转移,即状态转移条件为主状态机进入下一状态或被检时钟无效计数器计数值累加至计数上限值。7. according to the described a kind of clock multiple selection circuit of claim 5, it is characterized in that, state transition occurs when the sub-state machine detects that the detected clock signal is invalid or the main state machine enters the next state, that is, the state transition condition is The main state machine enters the next state or the count value of the detected clock invalid counter is accumulated to the count upper limit value. 8.一种时钟多选一电路的时钟多选一方法,其特征在于,该方法包含以下步骤:8. A clock multi-choice method for a circuit, characterized in that the method comprises the following steps: 1)设输入时钟信号数为m,其优先选择顺序依次为clk1、clk2至clkm,检测逻辑设计为用优先级低的时钟对优先级高的时钟进行检测,即对某一路时钟信号clkx进行检测时,使用clk(x+1)至clkm对clkx状态进行检测;将待选m路时钟信号分别触发一个n+1进制计数器,间隔大于1小于n个时钟周期的时间各取一次计数器取值,比较两次取值的异同,若相同,则表示在一次检测中被检时钟信号无效,若不同,则表示在一次检测中被检时钟信号有效;1) Assuming that the number of input clock signals is m, the priority selection sequence is clk1, clk2 to clkm, and the detection logic is designed to use a clock with a low priority to detect a clock with a high priority, that is, to detect a certain clock signal clkx , use clk(x+1) to clkm to detect the state of clkx; respectively trigger an n+1 base counter with m clock signals to be selected, and take the value of the counter each time the interval is greater than 1 and less than n clock cycles , compare the similarities and differences of the two values, if they are the same, it means that the detected clock signal is invalid in one detection, and if they are different, it means that the detected clock signal is valid in one detection; 2)由一个主状态机控制检测状态从clk1检测、clk2检测至clk(m-1)检测、clkm选择,每个状态下输出一个时钟选择信号控制时钟选择器模块选择被检时钟信号作为输出时钟信号,由clk2至clkm分别驱动一个分状态机在不同状态下对相应的被检时钟信号进行检测,对应于某一时钟信号clkx的分状态机由clk1检测、clk2检测直到clk(x-1)检测及clkx选择共x个状态构成;2) A main state machine controls the detection state from clk1 detection, clk2 detection to clk(m-1) detection, clkm selection, and outputs a clock selection signal in each state to control the clock selector module to select the detected clock signal as the output clock Signal, respectively driven by clk2 to clkm a sub-state machine to detect the corresponding detected clock signal in different states, the sub-state machine corresponding to a certain clock signal clkx is detected by clk1, clk2 until clk(x-1) Detection and clkx selection consist of a total of x states; 3)主状态机的状态转移由某一分状态机的状态转移带动,主状态机的状态转移驱动其余分状态机的状态转移,主状态机和分状态机运行过程中所处状态相互匹配,状态转换方向不可逆、非循环;3) The state transition of the main state machine is driven by the state transition of a sub-state machine, and the state transition of the main state machine drives the state transition of the other sub-state machines. The states of the main state machine and sub-state machines match each other during operation, The state transition direction is irreversible and acyclic; 4)主状态机和clk2至clkm对应的m-1路分状态机进入clk1检测状态,所有用于检测的分状态机中被检时钟无效计数器计数值取0,电路选择clk1为输出时钟信号,分状态机在对应时钟信号的驱动下间隔大于1小于n时钟周期各取一次clk1计数器取值并进行比较,若相同,则分状态机的被检时钟无效计数器加1,若不同,则被检时钟无效计数器清零;4) The main state machine and the m-1 sub-state machines corresponding to clk2 to clkm enter the clk1 detection state, and the count value of the detected clock invalid counter in all the sub-state machines used for detection is 0, and the circuit selects clk1 as the output clock signal, The sub-state machine is driven by the corresponding clock signal and the interval is greater than 1 and less than n clock cycles. Each takes the value of the clk1 counter and compares it. If they are the same, the detected clock invalid counter of the sub-state machine is increased by 1. If they are different, the counter is detected. The clock invalid counter is cleared; 5)若m-1路分状态机中被检时钟无效计数器计数值均未达到计数上限值,则电路保持在clk1检测状态下,而当某一路分状态机中该计数值达到计数上限值时,则该路分状态机转换到clk2检测状态,同时主状态机跟随进入clk2检测状态,并驱动其余m-2路分状态机进入clk2检测状态;5) If the count value of the detected clock invalid counter in the m-1 road sub-state machine does not reach the counting upper limit, the circuit remains in the clk1 detection state, and when the count value reaches the counting upper limit in a certain road sub-state machine value, the road sub-state machine switches to the clk2 detection state, and the main state machine follows and enters the clk2 detection state, and drives the remaining m-2 road sub-state machines to enter the clk2 detection state; 6)进入clk2检测状态后,所有用于检测的分状态机中被检时钟无效计数器计数值取0,电路选择clk2为输出时钟信号,除clk2驱动的分状态机进入终止状态不进行检测外,其余m-2路分状态机在对应时钟信号的驱动下对clk2进行检测,重复步骤2)、3)中相应的检测部分;6) After entering the clk2 detection state, the count value of the invalid counter of the detected clock in all sub-state machines used for detection is 0, and the circuit selects clk2 as the output clock signal, except that the sub-state machine driven by clk2 enters the termination state and does not detect. The remaining m-2 road sub-state machines detect clk2 under the drive of the corresponding clock signal, and repeat the corresponding detection part in steps 2) and 3); 7)当电路进入对某一路时钟信号clkx的检测状态时,电路选择clkx为输出时钟信号,clk(x+1)至clkm对clkx的检测起作用,如此顺序执行,直至电路处于clkm选择状态,即选择clkm作为输出时钟信号的终止状态。7) When the circuit enters the detection state of a certain clock signal clkx, the circuit selects clkx as the output clock signal, and clk(x+1) to clkm play a role in the detection of clkx, and execute in this order until the circuit is in the clkm selection state, That is, select clkm as the termination state of the output clock signal.
CN201310163697.XA 2013-05-07 2013-05-07 A kind of clock multiselect one circuit and multiselect one method Expired - Fee Related CN103326712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310163697.XA CN103326712B (en) 2013-05-07 2013-05-07 A kind of clock multiselect one circuit and multiselect one method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310163697.XA CN103326712B (en) 2013-05-07 2013-05-07 A kind of clock multiselect one circuit and multiselect one method

Publications (2)

Publication Number Publication Date
CN103326712A CN103326712A (en) 2013-09-25
CN103326712B true CN103326712B (en) 2016-12-28

Family

ID=49195280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310163697.XA Expired - Fee Related CN103326712B (en) 2013-05-07 2013-05-07 A kind of clock multiselect one circuit and multiselect one method

Country Status (1)

Country Link
CN (1) CN103326712B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780702A (en) * 2018-07-30 2020-02-11 瑞昱半导体股份有限公司 Clock generation system and method with time-sharing and frequency-dividing starting mechanism

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI505145B (en) * 2014-04-18 2015-10-21 Waltop Int Corp Circuit of frequency counter and method thereof
CN104300975A (en) * 2014-09-25 2015-01-21 长沙景嘉微电子股份有限公司 Decimal and integer frequency divider circuit and implementation method thereof
CN115882863B (en) * 2023-03-02 2023-05-12 南京芯驰半导体科技有限公司 System and method for fast switching multiple clock domains

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601952A (en) * 2003-09-23 2005-03-30 华为技术有限公司 Clock selection system and method thereof
CN102355349A (en) * 2011-06-28 2012-02-15 中国人民解放军国防科学技术大学 Fault-tolerant based IDEA (International Data Encryption Algorithm) full-flowing-water hardware encryption method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8841875B2 (en) * 2009-10-07 2014-09-23 Citizen Holdings Co., Ltd. Electronic watch

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601952A (en) * 2003-09-23 2005-03-30 华为技术有限公司 Clock selection system and method thereof
CN102355349A (en) * 2011-06-28 2012-02-15 中国人民解放军国防科学技术大学 Fault-tolerant based IDEA (International Data Encryption Algorithm) full-flowing-water hardware encryption method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780702A (en) * 2018-07-30 2020-02-11 瑞昱半导体股份有限公司 Clock generation system and method with time-sharing and frequency-dividing starting mechanism

Also Published As

Publication number Publication date
CN103326712A (en) 2013-09-25

Similar Documents

Publication Publication Date Title
US9823983B2 (en) Electronic fault detection unit
CN103326712B (en) A kind of clock multiselect one circuit and multiselect one method
CN102053883B (en) Control cycle synchronizer of triple-modular redundancy fault-tolerant computer
US8788879B2 (en) Non-volatile memory for checkpoint storage
WO2022147990A1 (en) Dynamically configurable multi-core processor fault-tolerant system
CN111352338A (en) Dual-redundancy flight control computer and redundancy management method
CN103473156B (en) A Fault Tolerant Method for Three-computer Hot Backup of Spaceborne Computer Based on Real-time Operating System
US9494969B2 (en) Reset circuitry for integrated circuit
CN104572326B (en) A kind of SoPC chip fault-tolerance approaches based on retaking of a year or grade via Self-reconfiguration
CN108228391B (en) LockStep processor and management method
CN103246585B (en) Storage controller fault detecting method
CN104881544A (en) Multi-data triple modular redundancy judgment module based on FPGA (Field Programmable Gate Array)
CN103279404B (en) A kind of multi-computer system based on heart beat status word synchronizes and reliability checking method
CN102508745B (en) A three-mode redundant system based on two-level loose synchronization and its realization method
CN113190082B (en) Triple redundant computer clock interrupt detection and synchronization method and computer system
CN103389892A (en) Self-refreshing triple-modular redundancy counter
CN103761172A (en) Hardware fault diagnosis system based on neural network
CN103399808A (en) Method for achieving crystal oscillator dual redundancy in flight control computer
CN104484237B (en) A method for realizing watchdog reset of three-machine hot backup computer and reset circuit
CN101794241A (en) Circuit of power-on reset of triple redundancecy fault-tolerance computer based on programmable logic device
CN101309184A (en) Method and device for detecting micro-engine failure
Kanekawa et al. Fault detection and recovery coverage improvement by clock synchronized duplicated systems with optimal time diversity
CN115408270A (en) A heterogeneous SoC chip multi-core processor soft error detection system and method
CN111856991B (en) Signal processing system and method with five-level protection on single event upset
CN108052420A (en) Zynq-7000-based dual-core ARM processor anti-single event upset protection method

Legal Events

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

Granted publication date: 20161228