Information processing device and information processing method

The information processing device stabilizes system operation by detecting and managing bit errors in state machines, preventing unintended state transitions and malfunctions, and maintaining stable control signals, even in resource-constrained environments.

JP7567399B2Active Publication Date: 2024-10-16FUJITSU LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2020195820
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-26
Publication Date
2024-10-16
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

Conventional state machines face instability due to 1-bit errors causing unexpected state transitions, leading to malfunctions in connected circuits, and existing error correction methods require extensive resources and increase circuit scale, making them impractical for systems with limited resources.

Method used

An information processing device and method that includes a state holding register, error detection unit, and control unit to detect and manage bit errors, fixing the control signal value if an error occurs, thereby stabilizing system operation.

Benefits of technology

Stabilizes system operation by preventing unintended state changes and malfunctions, reducing the spread of errors to external blocks, and maintaining stable control signal values even with limited resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007567399000001
    Figure 0007567399000001
  • Figure 0007567399000002
    Figure 0007567399000002
  • Figure 0007567399000003
    Figure 0007567399000003
Patent Text Reader

Abstract

To provide an information processor and an information processing method that stably operate a system.SOLUTION: A state holding register 104 holds a state, and switches processing executed by an FPGA reset signal generation block 100 depending on the holding state. An output circuit 107 outputs a control signal having a value corresponding to a state held by the state holding register 104. An error detection unit 101 detects a bit error in the state held by the state holding register 104. Error detection registers 121 to 123 each store a result of bit error detection by the error detection unit 101. A majority detection logic circuit 103 determines, on the basis of the result of bit error detection stored in the error detection registers 121 to 123, whether or not a bit error occurs, and fixes, when the majority determination logic circuit 103 determines that a bit error occurs, the value of the control signal output by the output circuit 107.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device and an information processing method. [Background technology]

[0002] There is a logic circuit called a state machine that determines the next state based on a combination of input conditions and the current state, and transitions from the current state to the next state. A state represents each operating state of the system in which the state machine operates. In conventional state machines, a single bit of odd parity is added to the register that holds the state. Some conventional state machines transition to an undefined state when a single bit error is detected, and then transition to the initial state to resume processing.

[0003] Here, a framework of a logic circuit that operates depending on the state of a specific state machine is called a block to which the specific state machine belongs. Among the state machines, there are state machines that generate control signals to be output to other blocks in which other state machines that operate in states independent of their own state operate.

[0004] Here, the following two methods are generally used to continue operation when a single-bit error occurs in a register. One is to multiplex state-holding registers, and if an error occurs in any of the registers, a majority vote is taken among the multiple registers to continue normal operation. The other is to add an error correction code (ECC: Error Correction Code) to the state-holding registers, and if a single-bit error occurs, the error is corrected and operation is continued.

[0005] Other techniques that allow operation to continue when multiple bit errors occur include the following: For example, in one conventional technique, a main state machine and a sub-state machine are arranged in a semiconductor integrated circuit, and when a multiple bit error occurs in the main state machine due to a soft error or the like, the bit value of an error-free sub-state machine is selected and output. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] JP 2015-1774 A Summary of the Invention [Problem to be solved by the invention]

[0007] However, when a state machine generates a control signal to be output to another block, the occurrence of a single bit error may cause the following problems. For example, a single bit error may occur in a register that holds a state, causing a transition to an unexpected state, and the value of the control signal for another block may change at a timing when the value of the control signal should not be changed. In that case, there is a risk that the operation of circuits other than the block to which the state in which the single bit error occurs belongs, and even circuits outside the chip on which the block is mounted, may be adversely affected. In particular, if a reset of another chip is asserted when a single bit error occurs and the state returns to the initial state, an unexpected reset may occur in the other chip, which may lead to a malfunction of the entire system.

[0008] In conventional systems, multiplexing of state-holding registers and provision of ECC are adopted to deal with this problem. However, although these circuits are effective for continuing operation when a single-bit error occurs, many registers and logic circuits are used when they are implemented. For example, when the state-holding register is tripled, three times as many registers and majority logic circuits are arranged. Also, when redundancy is realized by ECC, at least a 6-bit register and a complex combinational circuit for calculation are used. In a configuration using such many registers and logic circuits, it is difficult to implement when there are limited resources available. In addition, there is a high possibility that the failure rate will increase due to the increase in circuit size. Therefore, in a circuit where there is no requirement to correct errors and continue processing by state even at the expense of significantly increasing the circuit size, it is difficult to adopt these methods, and it is difficult to operate the system stably.

[0009] Furthermore, in the case of conventional technology using a main state machine and a sub state machine, although it is possible to handle multiple bit errors, the circuit scale becomes large, making it difficult to adopt under the conditions described above, and making it difficult to operate the system stably.

[0010] The disclosed technology has been made in view of the above, and has an object to provide an information processing device and an information processing method that allow a system to operate stably. [Means for solving the problem]

[0011] In one aspect of the information processing device and information processing method disclosed in the present application, a state holding register holds a state representing a state of the device corresponding to a process executed by the device, and switches the process executed by the device depending on the held state. An output unit outputs a control signal having a value corresponding to the state held by the state holding register. An error detection unit 101 detects a bit error in the state held by the state holding register. A plurality of error detection registers each store a result of the bit error detection by the error detection unit. A control unit determines whether or not the bit error has occurred based on the result of the bit error detection stored in the error detection register, and if it is determined that the bit error has occurred, fixes the value of the control signal output by the output unit. Effect of the Invention

[0012] In one aspect, the present invention enables a system to operate stably. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a block diagram of a system board according to the first embodiment. [Diagram 2] FIG. 2 is a circuit diagram illustrating an overview of an FPGA reset signal generation block in the CPLD according to the first embodiment. [Diagram 3] FIG. 3 is a state diagram showing state transitions when a single-bit error occurs after the FPGA reset signal has transitioned to a deasserted state. [Figure 4] FIG. 4 is a timing chart showing signal changes when a one-bit error occurs after the FPGA reset signal transitions to a deasserted state. [Diagram 5] FIG. 5 is a state diagram showing state transitions when a single bit error occurs before the FPGA reset signal transitions to a deasserted state. [Figure 6]FIG. 6 is a timing chart showing signal changes when a one-bit error occurs after the FPGA reset signal transitions to a deasserted state. [Figure 7] FIG. 7 is a flowchart of the control of the FPGA reset signal in response to the occurrence of a state error. [Figure 8] FIG. 8 is a circuit diagram illustrating an overview of a block in an FPGA according to the second embodiment. [Figure 9] FIG. 9 is a state diagram showing state transitions when an error of two or more bits occurs after the enable signal becomes valid. [Figure 10] FIG. 10 is a state diagram showing state transitions when an error of two or more bits occurs before the enable signal becomes valid. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an information processing apparatus and an information processing method disclosed in the present application will be described in detail with reference to the accompanying drawings. Note that the information processing apparatus and the information processing method disclosed in the present application are not limited to the following embodiments. EXAMPLES

[0015] Fig. 1 is a block diagram of a system board according to a first embodiment. The system board 1 is mounted on an information processing device such as a server. As shown in Fig. 1, the system board 1 is mounted with a complex programmable logic device (CPLD) 10, a micro processing unit (MPU) 20, a magnetoresistive random access memory (MRAM) 31, and flash memories 32 and 33. The system board 1 is also mounted with a switch 40, a field programmable gate array (FPGA) 50, a serial peripheral interface (SPI) flash memory 60, and load circuits 71 and 72.

[0016] The CPLD 10 is connected to the MPU 20 via a path for transmitting a reset signal. The CPLD 10 is also connected to the MRAM 31 and the flash memories 32 and 33 via a bus. The CPLD 10 is also connected to the FPGA 50 and the SPI flash memory 60 via a data bus and a switch 40. The CPLD 10 is also connected to load circuits 71 and 72 via a bus. The CPLD 10 is also connected to a redundant system board 2 for making the system board 1 redundant.

[0017] The CPLD 10 reads FPGA configuration data in which settings of the FPGA 50 are registered from the flash memory 32 or the like when the system board 1 is started up. Then, the CPLD 10 transmits the FPGA configuration data to the FPGA 50 via the switch 40, thereby setting up the FPGA 50.

[0018] The CPLD 10 has a connection to the reset pin of the FPGA 50. The CPLD 10 generates a reset signal for the FPGA 50. When the system board 1 is powered on and the CPLD 10 starts operating, the CPLD 10 asserts the reset signal for the FPGA 50. The CPLD 10 then transmits FPGA configuration data to the FPGA 50 in the reset state to execute configuration. The CPLD 10 then transitions to a state after the configuration is completed, thereby transitioning the reset signal for the FPGA 50 to a deasserted state and releasing the reset. Here, when the reset signal is asserted, the operation of the FPGA 50 is stopped, and when the reset signal is deasserted, the operation of the FPGA 50 is permitted, reset, and starts operating.

[0019] The MPU 20 is connected to the MRAM 31 and the flash memories 32 and 33 via a data bus. The MPU 20 is also connected to the CPLD 10 via a path for transmitting a set signal. The MPU 20 uses the MRAM 31 and the flash memories 32 and 33 to execute arithmetic processing.

[0020] 2 is a circuit diagram showing an overview of an FPGA reset signal generation block in the CPLD according to the embodiment 1. The CPLD 10 has an FPGA reset signal generation block 100 that transmits a reset signal to the FPGA 50 to reset the FPGA 50. The CPLD 10 also has blocks 181 and 182 that perform processes other than resetting, such as transmitting FPGA configuration data to the FPGA 50.

[0021] The FPGA reset signal generation block 100 is connected to other blocks 181 and 182. The FPGA reset signal generation block 100 has a state machine including a state holding register 104 and a next state determination unit 108. Here, the state is information representing the operating state of the FPGA reset signal generation block 100. The state machine is a structure that switches and executes processing according to the state held by the state holding register 104. In other words, the state is information representing the state of a device in which the state machine is installed, corresponding to the processing executed by the device.

[0022] Moreover, the FPGA reset signal generation block 100 has an error detection unit 101, a majority logic circuit 103, and error detection registers 121 to 123. Moreover, the FPGA reset signal generation block 100 has a reset signal generation logic circuit 105, a switch 106, an output circuit 107, and a next state determination unit 108. This FPGA reset signal generation block 100 is an example of an "information processing device".

[0023] The following describes the control of the FPGA reset signal transmitted by the FPGA reset signal generation block 100 to the FPGA 50, but the FPGA reset signal generation block 100 may exchange other signals with the FPGA 50. In addition, the FPGA reset signal generation block 100 may transmit and receive signals to and from the other blocks 181 and 182.

[0024] The next state determination unit 108 determines the next state from one or more inputs and the current state, and outputs information on the determined next state to the state holding register 104.

[0025] Furthermore, if a one-bit error occurs in the state information held by state holding register 104, next state determination unit 108 determines an undefined state as the next state and outputs the information to state holding register 104. Hereinafter, a bit error in state information may be referred to as a "state error." Next state determination unit 108 then determines the initial state as the next state and outputs the information to state holding register 104.

[0026] The state holding register 104 holds a state and manages the operating state of the FPGA reset signal generation block 100. The state holding register 104 transitions the held state to the next state input from the next state determination unit 108. Information on the state held by the state holding register 104 is output to the reset signal generation logic circuit 105.

[0027] The transition of the state held by the state holding register 104 will be described in detail below. The state held by the state holding register 104 is STATE#0 when the resident power supply is applied to the system board 1 and the power is turned on. STATE#0 is the initial state at power-on, and the value of the FPGA reset signal is 1, so that the FPGA reset signal is in an asserted state. In this case, the FPGA 50 is in a state in which operation is not permitted. Immediately after that, a reset signal is input from the MPU 20, and the state held by the state holding register 104 transitions to STATE#1.

[0028] Next, the state held by the state holding register 104 transitions to STATE#2 upon receiving an instruction from the next state determination unit 108. STATE#2 is a state in which it has been confirmed that the FPGA 50 is operable. In STATE#2, the value of the FPGA reset signal is changed to 0, and the FPGA 50 is reset and becomes operable.

[0029] Next, unless a state error occurs, the state held by state holding register 104 is switched in order from STATE #3 to STATE #5 in accordance with instructions from next state determination unit 108. The state held by state holding register 104 is maintained at that time unless information on the next state is input from next state determination unit 108.

[0030] Furthermore, if a one-bit error occurs in the state information held by the state holding register 104, the state held by the state holding register 104 transitions to an undefined state in response to an instruction from the next state determination unit 108. After that, the state held by the state holding register 104 returns to the initial state, STATE#0, in response to an instruction from the next state determination unit 108.

[0031] The reset signal generating logic circuit 105 generates an FPGA reset signal with a value of 1 from the time the system board 1 is powered on, and outputs it to the output circuit 107. The FPGA reset signal with a value of 1 is a signal that does not permit operation of the FPGA 50. Thereafter, when the state held by the state holding register 104 transitions to STATE#2, the reset signal generating logic circuit 105 generates an FPGA reset signal with a value of 0 that resets the FPGA 50 to enable operation, and outputs it to the output circuit 107. The FPGA reset signal with a value of 0 is a signal that permits operation of the FPGA 50, and resets the FPGA 50 to start operation. This STATE#2 state is an example of a "predetermined state."

[0032] The switch 106 is disposed on a signal transmission path that transmits the signal output from the reset signal generation logic circuit 105 to the output circuit 107. When the switch 106 is on, the reset signal generation logic circuit 105 and the output circuit 107 are connected, and the signal output from the reset signal generation logic circuit 105 is input to the output circuit 107. On the other hand, when the switch 106 is off, the signal transmission path connecting the reset signal generation logic circuit 105 and the output circuit 107 is cut off, and the signal output from the reset signal generation logic circuit 105 is no longer input to the output circuit 107. The on / off of the switch 106 is switched by a control signal output from the majority logic circuit 103.

[0033] The output circuit 107 holds the value of the FPGA reset signal output from the state holding register 104, and outputs the FPGA reset signal of the held value to the FPGA 50. When the switch 106 is on, the FPGA reset signal output from the reset signal generation logic circuit 105 is input to the output circuit 107. In that case, the output circuit 107 outputs an FPGA reset signal of the same value as the FPGA reset signal output from the reset signal generation logic circuit 105 to the FPGA 50. On the other hand, when the switch 106 is off, the FPGA reset signal output from the reset signal generation logic circuit 105 is not input to the output circuit 107. In that case, the output circuit 107 outputs an FPGA reset signal of a value held by itself, which does not depend on the FPGA reset signal output from the reset signal generation logic circuit 105 after the switch 106 is turned off, to the FPGA 50.

[0034] The reset signal generating logic circuit 105 is an example of a “signal generating unit.” The reset signal generating logic circuit 105, the switch 106, and the output circuit 107 are an example of an “output unit.”

[0035] When the output circuit 107 outputs an FPGA reset signal with a value of 1 to the FPGA 50, the FPGA reset signal is in an asserted state, and operation of the FPGA 50 is prohibited. When the output circuit 107 outputs an FPGA reset signal with a value of 0 to the FPGA 50, the FPGA reset signal is in a deasserted state, and the FPGA 50 is reset and becomes operable.

[0036] The error detection unit 101 acquires the value of each bit held by the state holding register 104. Then, the error detection unit 101 executes a parity check on the information held by the state holding register 104. If no error is detected by the parity check, the error detection unit 101 sets the values ​​of the error detection registers 121 to 123 to 0. On the other hand, if a one-bit error is detected by the parity check, the error detection unit 101 sets the values ​​of the error detection registers 121 to 123 to 1.

[0037] Each of the error detection registers 121 to 123 is a register that stores a 1-bit value. When a 1-bit error is not detected in the information held by the state holding register 104, the error detection registers 121 to 123 are set to a value of 0. When a 1-bit error is detected in the information held by the state holding register 104, the error detection registers 121 to 123 are set to a value of 1.

[0038] The majority logic circuit 103 obtains the values ​​of the error detection registers 121 to 123. Then, the majority logic circuit 103 takes a majority vote of the values ​​of the error detection registers 121 to 123 to determine whether a one-bit error has occurred. Specifically, if the result of the majority vote is 0, the majority logic circuit 103 determines that a one-bit error has not occurred. In that case, the majority logic circuit 103 keeps the switch 106 in the on state. On the other hand, if the result of the majority vote is 1, the majority logic circuit 103 determines that a one-bit error has occurred. In that case, the majority logic circuit 103 switches the switch 106 to the off state. In this way, by determining the occurrence of a one-bit error by the majority vote of the values ​​of the error detection registers 121 to 123, the majority logic circuit 103 avoids erroneous control due to the occurrence of an error in the error detection registers 121 to 123.

[0039] When a one-bit error occurs in the information held by the state-holding register 104, the majority logic circuit 103 turns off the switch 106. After this, the FPGA reset signal generated by the reset signal generating logic circuit 105 is no longer input to the output circuit 107. Therefore, after a one-bit error occurs in the information held by the state-holding register 104, the FPGA reset signal output to the FPGA 50 continues to maintain its value without change. For example, if the FPGA reset signal is in an asserted state when a one-bit error occurs in the information held by the state-holding register 104, that state is maintained, and the FPGA 50 is not reset thereafter. On the other hand, if the FPGA reset signal is in a deasserted state when a one-bit error occurs in the information held by the state-holding register 104, that state is maintained, and the FPGA 50 continues to be reset. This majority logic circuit 103 is an example of a "control unit."

[0040] Next, a state transition when a 1-bit error occurs after the FPGA reset signal transitions to the deasserted state will be described with reference to Fig. 3. Fig. 3 is a state diagram showing a state transition when a 1-bit error occurs after the FPGA reset signal transitions to the deasserted state.

[0041] When the resident power supply is applied to the system board 1 and the system board 1 is powered on, the state held by the state holding register 104 is STATE#0. In this case, the value of the FPGA reset signal generated by the reset signal generating logic circuit 105 is 1, which is an asserted state. That is, the FPGA 50 receives an FPGA reset signal with a value of 1 from the output circuit 107 and continues to stop operation while the operation is not permitted. The state holding register 104 holds the state of STATE#0 until it receives an input of the next state from the next state determining unit 108 (step S101). After that, a reset signal is input from the MPU 20 to the CPLD 10, and the state held by the state holding register 104 transitions to STATE#1 (step S102). The state holding register 104 holds the state of STATE#1 until it receives an input of the next state from the next state determining unit 108 (step S103).

[0042] Next, the state held by the state holding register 104 transitions to STATE#2 upon receiving an input from the next state determination unit 108 (step S104). In this case, the value of the FPGA reset signal generated by the reset signal generation logic circuit 105 changes to 0. That is, upon receiving an input of an FPGA reset signal with a value of 0 from the output circuit 107, the FPGA 50 is reset and starts operating. The state holding register 104 holds the state of STATE#2 until it receives an input of the next state from the next state determination unit 108 (step S105).

[0043] Next, the state held by the state holding register 104 transitions to STATE #3 upon receiving an input from the next state determining unit 108 (step S106). If no single-bit error occurs, the state held by the state holding register 104 thereafter transitions sequentially to STATE #4 and STATE #5 in accordance with the input from the next state determining unit 108 (steps S107 to S111). However, here, a case will be described in which a single-bit error occurs in the state information held by the state holding register 104 at this point.

[0044] In this case, the state holding register 104 receives an input of an undefined state as the next state information from the next state determination unit 108, and the state transitions to the undefined state (step S112). In FIG. 3, the undefined state is represented as "UNKNOWN". In this case, the error detection unit 101 detects a 1-bit error and changes the values ​​of the error detection registers 121 to 123 to 1. The majority logic circuit 103 confirms that the value is 1 by taking a majority vote of the values ​​of the error detection registers 121 to 123, and turns off the switch 106. As a result, the FPGA reset signal generated by the reset signal generation logic circuit 105 thereafter is no longer input to the output circuit 107. The output circuit 107 continues to output the FPGA reset signal whose value it holds at this point is 0.

[0045] The state held by the state holding register 104 changes to an undefined state upon receiving information of STATE#0 from the next state determination unit 108, and then returns to STATE#0. When the state returns to STATE#0, the reset signal generation logic circuit 105 generates and outputs an FPGA reset signal with a value of 1. However, since the switch 106 is off, the FPGA reset signal with a value of 1 newly generated by the reset signal generation logic circuit 105 is not input to the FPGA 50, and the FPGA reset signal with a value of 0 output by the output circuit 107 continues to be input to the FPGA 50.

[0046] Next, the signal change when a 1-bit error occurs after the FPGA reset signal transitions to the deasserted state will be further described with reference to Fig. 4. Fig. 4 is a timing chart showing the signal change when a 1-bit error occurs after the FPGA reset signal transitions to the deasserted state.

[0047] 4, signal 201 represents the system clock. Signal 202 represents a reset signal from MPU 20. State transition 203 represents a state held by state holding register 104. State transition 204 represents the next state held by next state determination unit 108. Bit state 205 represents the bit values ​​of error detection registers 121 to 123. Signal 206 represents the value of an FPGA reset signal.

[0048] A signal 202, a state transition 203, a state transition 204, a bit state 205, and a signal 206 operate in synchronization with a signal 201, which is a system clock.

[0049] When the system board 1 is powered on, both state transitions 203 and 204 are STATE#0. At this point, the error detection unit 101 has not detected a single-bit error, so that the bit state 205 is a majority value of the bit values ​​of the error detection registers 121 to 123, which is 0.

[0050] When the value of signal 202 transitions from 0 to 1, a reset signal is input to the CPLD 10, and the next state determined by the next state determination unit 108 transitions to STATE#1, as shown in state transition 204. By setting the next state to STATE#1, the state held by the state holding register 104 transitions to STATE#1, as shown in state transition 203.

[0051] Thereafter, as shown in state transition 204, the next state determined by the next state determination unit 108 transitions sequentially from STATE #2 to STATE #3. In response to this, as shown in state transition 203, the state held by the state holding register 104 also transitions sequentially from STATE #2 to STATE #3. At the rising edge of signal 201 immediately after the state held by the state holding register 104 transitions to STATE #3, the value of the FPGA reset signal changes to 0 at timing 211, as shown in signal 206.

[0052] If a one-bit error occurs in the state information held by the state holding register 104 in this STATE#3 state, the next state determined by the next state determination unit 108 transitions to an undefined state, as shown in state transition 204. In response to this, the state held by the state holding register 104 also transitions to an undefined state, as shown in state transition 203. In this case, the error detection unit 101 detects a one-bit error and changes the values ​​of the error detection registers 121 to 123 to 1, so that the majority value of the bit values ​​of the error detection registers 121 to 123 changes to 1 at timing 212, as shown in bit state 205. This causes the majority logic circuit 103 to turn off the switch 106, and thereafter the value of the reset signal input to the FPGA 50 is fixed to 0, as shown in signal 206.

[0053] Next, a state transition when a 1-bit error occurs before the FPGA reset signal transitions to the deasserted state will be described with reference to Fig. 5. Fig. 5 is a state diagram showing a state transition when a 1-bit error occurs before the FPGA reset signal transitions to the deasserted state.

[0054] When the resident power supply is applied to the system board 1 and the system board 1 is powered on, the state held by the state holding register 104 is STATE#0. In this case, the value of the FPGA reset signal generated by the reset signal generating logic circuit 105 is 1, which is an asserted state. That is, the FPGA 50 receives an FPGA reset signal with a value of 1 from the output circuit 107 and continues to stop operation while the operation is not permitted. The state holding register 104 holds the state of STATE#0 until it receives an input of the next state from the next state determining unit 108 (step S201). After that, a reset signal is input from the MPU 20 to the CPLD 10, and the state held by the state holding register 104 transitions to STATE#1 (step S202). The state holding register 104 holds the state of STATE#1 until it receives an input of the next state from the next state determining unit 108 (step S203).

[0055] If no single bit error occurs, the state subsequently transitions to STATE #2 to STATE #5 in sequence (steps S204 to S211). However, here, a case will be described in which a single bit error occurs in the state information held by state holding register 104 at this point.

[0056] In this case, the state of state holding register 104 transitions to an undefined state (step S212). In this case, error detection unit 101 detects a 1-bit error and changes the values ​​of error detection registers 121-123 to 1. Majority logic circuit 103 takes a majority vote of the values ​​of error detection registers 121-123, confirms that the value is 1, and turns off switch 106. As a result, the FPGA reset signal generated by reset signal generation logic circuit 105 thereafter is no longer input to output circuit 107. Then, output circuit 107 continues to output the FPGA reset signal whose value it holds at this point is 1.

[0057] The state held by the state holding register 104 changes to an undefined state and then returns to STATE#0. When the state returns to STATE#0, the reset signal generation logic circuit 105 generates and outputs an FPGA reset signal with a value of 1. However, since the switch 106 is turned off, the FPGA reset signal with a value of 1 newly generated by the reset signal generation logic circuit 105 is not input to the FPGA 50, and the FPGA reset signal with a value of 1 output by the output circuit 107 continues to be input to the FPGA 50.

[0058] Next, the signal change when a 1-bit error occurs after the FPGA reset signal transitions to the deasserted state will be further described with reference to Fig. 6. Fig. 6 is a timing chart showing the signal change when a 1-bit error occurs after the FPGA reset signal transitions to the deasserted state.

[0059] 6, a signal 201, a signal 202, a state transition 203, a state transition 204, a bit state 205, and a signal 206 respectively represent the same signals, state transitions, and bit states as those in FIG.

[0060] When the system board 1 is powered on, both state transitions 203 and 204 are STATE#0. At this point, the error detection unit 101 has not detected a single-bit error, so that the bit state 205 is a majority value of the bit values ​​of the error detection registers 121 to 123, which is 0.

[0061] When the value of signal 202 transitions from 0 to 1, a reset signal is input to the CPLD 10, and the next state determined by the next state determination unit 108 transitions to STATE#1, as shown in state transition 204. By setting the next state to STATE#1, the state held by the state holding register 104 then transitions to STATE#1, as shown in state transition 203.

[0062] If a one-bit error occurs in the state information held by the state holding register 104 in this STATE#1 state, the next state determined by the next state determination unit 108 transitions to an undefined state as shown in state transition 204. In response to this, the state held by the state holding register 104 also transitions to an undefined state as shown in state transition 203. In this case, the error detection unit 101 detects a one-bit error and changes the values ​​of the error detection registers 121 to 123 to 1, so that the majority value of the bit values ​​of the error detection registers 121 to 123 changes to 1 at timing 213 as shown in bit state 205. This causes the majority logic circuit 103 to turn off the switch 106, and thereafter the value of the reset signal input to the FPGA 50 is fixed to 1 as shown in signal 206.

[0063] Next, the flow of control of the FPGA reset signal in response to the occurrence of a state error will be described with reference to Fig. 7. Fig. 7 is a flowchart of control of the FPGA reset signal in response to the occurrence of a state error.

[0064] The error detection unit 101 obtains the value of each bit of the state information held by the state holding register 104 and performs a parity check (step S1).

[0065] Then, error detection unit 101 stores the error detection results in error detection registers 121 to 123 (step S2).

[0066] The majority logic circuit 103 confirms the occurrence of a one-bit error in the state information held by the state holding register 104 by majority logic using the values ​​stored in the error detection registers 121 to 123 (step S3).

[0067] Then, the majority logic circuit 103 judges whether or not a one-bit error has occurred in the state information held by the state holding register 104 (step S4).

[0068] If a single-bit error has not occurred in the state information held by the state holding register 104 (step S4: No), the majority logic circuit 103 keeps the switch 106 in the on state.

[0069] On the other hand, if a one-bit error occurs in the state information held by the state holding register 104 (step S4: Yes), the majority logic circuit 103 turns off the switch 106 to cut off the transmission path of the FPGA reset signal (step S5). As a result, the value of the FPGA reset signal input to the FPGA 50 is fixed to the value at that time.

[0070] Here, in this embodiment, the case where three error detection registers 121 to 123 are used has been described, but if errors occurring in this portion are not taken into consideration, a configuration in which one error detection register 121 is disposed may be used. Also, three or more error detection registers 121 to 123 may be disposed, and in this case, an odd number is preferable. Also, here, the block in the CPLD 10 has been described as an example, but the configuration for controlling the value of the control signal output when a bit error occurs as described above can also be applied to other systems such as the FPGA 50.

[0071] It is preferable that a system to which the above-described configuration is applied satisfies the following conditions. One is that the block in which the configuration operates is a block in which the operating state is managed by a state and which outputs a control signal to the outside of the block based on that state. Another is that the system is one in which it is desirable to continue operation of the entire system even if an error occurs in a state in a block in which each configuration operates. The remaining is that the block in which the configuration operates is a block in which processing by the state does not need to be continued if a bit error occurs in the state information.

[0072] As described above, when a state error occurs, the CPLD including the state machine according to this embodiment fixes the value of the signal output to an external block or device other than the block in which the CPLD is mounted to the value at that time. This reduces the influence of the state error on the external block or device. For example, even if a 1-bit error occurs in the state holding register, it is possible to prevent the reset of the FPGA from being unintentionally asserted. In this way, it is possible to prevent a malfunction caused by an unexpected state change from propagating outside the block, and the system can be operated stably. In addition, by providing a 3-bit error detection register, it is possible to control the signal output to the outside using accurate information even when the values ​​are different, and to perform appropriate control. EXAMPLES

[0073] Fig. 8 is a circuit diagram showing an overview of blocks in an FPGA according to a second embodiment. In this embodiment, a case where an output of a state machine mounted on an FPGA is controlled will be described. The state holding register 104 according to this embodiment differs from the first embodiment in that it has an ECC 140. In Fig. 8, each part having the same reference numeral as Fig. 2 has the same function as Fig. 2 unless otherwise specified.

[0074] The FPGA 50 includes a block 500, a block 501, and a block 502. The block 500 includes a state machine. The block 500 generates an enable signal for the operation of the block 501 according to the state, and starts the operation of the block 501 by transmitting the generated enable signal to the block 501. Details of the block 500 will be described below.

[0075] The block 500 includes an error detection unit 101, a majority logic circuit 103, and error detection registers 121 to 123. The block 500 also includes a state holding register 104, an operation enable signal generation logic circuit 109, a switch , an output circuit 107, and a next state determination unit .

[0076] The state holding register 104 has an ECC 140. The ECC 140 detects and corrects a single-bit error and continues operation. The ECC 140 also performs error detection in the case of an error of two or more bits. The ECC 140 notifies the error detection unit 101 of the occurrence of an error of two or more bits that is difficult to correct.

[0077] Moreover, the state holding register 104 holds a state and manages the state of the FPGA reset signal generation block 100. The state holding register 104 transitions the held state to the next state instructed by the next state determination unit .

[0078] When the FPGA 50 receives an instruction to start the operation of the block 501 from the firmware operated by the MPU 20, the state holding register 104 starts managing the state. When starting state management, the state holding register 104 has a state of STATE#0. After that, the state holding register 104 receives an input of information on the next state from the next state determination unit 108, and sequentially transitions the state it holds to STATE#1 to STATE#3. Here, a case will be described in which STATE#3 is the state where the sequence is completed. After the state held by the state holding register 104 transitions to STATE#3, the state held by the state holding register 104 is maintained as STATE#3 until the FPGA 50 receives an instruction to stop the block 501 from the firmware. After that, when the FPGA 50 receives an instruction to stop the block 501 from the firmware, the state holding register 104 receives a notification from the next state determination unit 108 that the initial state, STATE#0, is the next state, and transitions the state it holds to STATE#0 to return to the initial state.

[0079] Here, STATE#0 to STATE#2 are states in which operation of block 501 is not permitted, and in these states, the value of the enable signal output to block 501 is 0, and block 501 does not start operating. STATE#3 is a state in which block 501 is permitted to start operating, and in this state, the value of the enable signal output to block 501 is 1, and block 501 can start operating.

[0080] Furthermore, if an error of two or more bits occurs in the state information held by the state holding register 104, the state held by the state holding register 104 transitions to an undefined state upon notification from the next state determination unit 108. After that, for example, the state held by the state holding register 104 returns to the initial state, STATE#0, upon notification from the next state determination unit 108.

[0081] The next state determination unit 108 determines the next state based on the current state and one or more inputs, and outputs information on the determined next state to the state holding register 104. After the state held by the state holding register 104 transitions to STATE#5, when the FPGA 50 receives an instruction from the firmware to stop the block 501, the next state determination unit 108 determines the next state to be STATE#0, which is the initial state. Then, the next state determination unit 108 outputs STATE#0 to the state holding register 104 as information on the next state.

[0082] Furthermore, if an error of two or more bits occurs in the state information held by the state holding register 104, the next state determination unit 108 determines an undefined state as the next state and outputs the information to the state holding register 104. Thereafter, the next state determination unit 108 determines STATE#0, which is the initial state, as the next state and outputs the information to the state holding register 104.

[0083] The operation enable signal generating logic circuit 109 monitors the state held by the state holding register 104, and when the state is STATE#0 to #2, it generates and outputs an enable signal with a value of 0 that does not permit operation of the block 501. When the state transitions to STATE#3, the operation enable signal generating logic circuit 109 generates and outputs an enable signal with a value of 1 that permits operation of the block 501. Thereafter, when the state returns to STATE#0, the value of the enable signal generated and output by the operation enable signal generating logic circuit 109 also returns to "0".

[0084] Error detection unit 101 receives a notification of the occurrence of an error of two or more bits that is difficult to correct from state holding register 104. When notified of the occurrence of an error of two or more bits that is difficult to correct, error detection unit 101 detects the occurrence of an error and changes the values ​​of error detection registers 121-123 to 1.

[0085] The majority logic circuit 103 uses the values ​​of the error detection registers 121 to 123 to take a majority decision, which is used to detect the occurrence of an error of two or more bits. When the majority logic circuit 103 does not detect the occurrence of an error of two or more bits, the majority logic circuit 103 keeps the switch 106 in the on state. In contrast, when the majority logic circuit 103 detects the occurrence of an error of two or more bits, it turns the switch 106 off. This blocks the path through which the enable signal output from the operation enable signal generation logic circuit 109 is input to the output circuit 107, and the value of the enable signal input to the block 501 is fixed.

[0086] When the switch 106 is turned off, the majority logic circuit 103 maintains the switch 106 in the off state unless the values ​​of the error detection registers 121 to 123 are cleared and returned to 0. When the values ​​of the error detection registers 121 to 123 are cleared and returned to 0, the majority logic circuit 103 returns the switch 106 to the on state. As a result, the enable signal output from the operation enable signal generation logic circuit 109 is input to the output circuit 107, and the value of the enable signal input to the block 501 becomes changeable.

[0087] When the switch 106 is on, the output circuit 107 receives an input of an enable signal generated by the operation enable signal generating logic circuit 109. Then, the output circuit 107 holds the value of the input enable signal, and outputs an enable signal having the held value to the block 501. When the switch 106 is off, the output circuit 107 does not receive an input of an enable signal from the state holding register 104. In that case, the output circuit 107 continues to transmit the enable signal of the held value to the block 501. In other words, when an error of two or more bits occurs in the state information held by the state holding register 104, thereafter the output circuit 107 continues to transmit the enable signal of the value held at that time.

[0088] Next, a state transition when an error of 2 or more bits occurs after the enable signal becomes valid will be described with reference to Fig. 9. Fig. 9 is a state diagram showing a state transition when an error of 2 or more bits occurs after the enable signal becomes valid.

[0089] When the FPGA 50 receives an instruction from the firmware to start the operation of the block 501, the state held by the state holding register 104 is STATE#0. In this case, the value of the enable signal generated by the operation enable signal generating logic circuit 109 is 0. That is, the block 501 receives an input of an enable signal whose value is 0 and indicates invalidity from the output circuit 107, and continues the operation stop state with the operation being in the unauthorized state. The state holding register 104 holds the state of STATE#0 until it receives an input of the next state from the next state determining unit 108 (step S301). Thereafter, the state held by the state holding register 104 transitions sequentially from STATE#1 to STATE#3 according to the input from the next state determining unit 108 (steps S302 to S307). When the state held by the state holding register 104 transitions to STATE#3, the operation enable signal generating logic circuit 109 generates an enable signal whose value is 1 and transmits it to the output circuit 107. The output circuit 107 holds an enable signal with a value of 1, and transmits the enable signal with a value of 1 to the block 501. The block 501 receives an enable signal with a value of 1 and starts operation.

[0090] Here, a case where an error of 2 or more bits occurs in the state information held by the state holding register 104 after transition to STATE#3 will be described. In that case, the state of the state holding register 104 transitions to an undefined state (step S308). In this case, the ECC 140 detects the occurrence of an error of 2 or more bits and notifies the error detection unit 101. The error detection unit 101 receives the notification of the detection of the occurrence of an error of 2 or more bits from the ECC 140 and changes the values ​​of the error detection registers 121 to 123 to 1. The majority logic circuit 103 confirms that the value is 1 by taking a majority vote of the values ​​of the error detection registers 121 to 123, and turns off the switch 106. As a result, the enable signal generated by the operation enable signal generation logic circuit 109 after this is no longer input to the output circuit 107. Then, the output circuit 107 continues to output the enable signal whose value is 1 held at this point.

[0091] The state held by the state holding register 104 changes to an undefined state and then returns to STATE#0. When the state returns to STATE#0, the operation enable signal generating logic circuit 109 generates and outputs an enable signal with a value of 0. However, since the switch 106 is off, the newly generated enable signal with a value of 0 by the operation enable signal generating logic circuit 109 is not sent to the block 501, and the input of the enable signal with a value of 1 sent by the output circuit 107 to the block 501 continues.

[0092] Next, a state transition when an error of 2 or more bits occurs before the enable signal becomes valid will be described with reference to Fig. 10. Fig. 10 is a state diagram showing a state transition when an error of 2 or more bits occurs before the enable signal becomes valid.

[0093] When the FPGA 50 receives an instruction from the firmware to start operation of the block 501, the state held by the state holding register 104 is STATE#0. In this case, the value of the enable signal generated by the operation enable signal generating logic circuit 109 is 0. Thereafter, the state holding register 104 holds the state STATE#0 until it receives an input of the next state from the next state determining unit 108 (step S401).

[0094] Next, the state holding register 104 receives information of STATE#1 as the next state from the next state determination unit 108 and transitions the held state to STATE#1 (step S402). In this case, too, the value of the enable signal generated by the operation enable signal generation logic circuit 109 is 0. Thereafter, the state holding register 104 holds the state of STATE#1 until it receives information of the next state from the next state determination unit 108 (step S403).

[0095] Here, a case will be described where an error of 2 or more bits occurs in the state information held by the state holding register 104 when the state held by the state holding register 104 is STATE#1. In that case, the state of the state holding register 104 transitions to an undefined state (step S404). In this case, the ECC 140 detects the occurrence of an error of 2 or more bits and notifies the error detection unit 101. The error detection unit 101 receives the notification of the detection of the occurrence of an error of 2 or more bits from the ECC 140 and changes the values ​​of the error detection registers 121 to 123 to 1. The majority logic circuit 103 confirms that the value is 1 by taking a majority vote of the values ​​of the error detection registers 121 to 123 and turns off the switch 106. As a result, the enable signal generated by the operation enable signal generation logic circuit 109 after this is no longer input to the output circuit 107. Then, the output circuit 107 continues to output the enable signal whose value is 0 held at this point.

[0096] As described above, the device equipped with the state machine according to the present embodiment has an ECC in the state holding register, and if there is a 1-bit error, it corrects the error and continues operation, and detects the error when an error of 2 or more bits occurs. When an error of 2 or more bits is detected in the state information held by the state holding register, the block in which the error occurred fixes the value of the signal output to the external block or external device other than the block in which the block is mounted to the value at that time. This reduces the influence of the state error on the external block or external device. In this way, the ECC corrects the 1-bit error and continues operation, and it is possible to prevent the propagation of malfunctions caused by unexpected state changes when an error of 2 or more bits that is difficult to correct from occurring outside the block, and the system can be operated stably. [Explanation of symbols]

[0097] 1 System Board 2 Redundant System Boards 10 CPLD 20 MPU 31 MRAM 32,33 Flash memory 40 Switch 50 FPGA 60 SPI Flash memory 71,72 Load circuit 100 FPGA reset signal generation block 101 Error detection unit 103 Majority logic circuit 104 State Holding Register 105 Reset signal generation logic circuit 106 Switch 107 Output circuit 108 Next state decision unit 109 Operation enable signal generation logic circuit 121,122,123 Error Detection Registers 181,182,500,501,502 blocks

Claims

1. a state holding register that holds a state representing a state of the device corresponding to a process executed by the device and switches the process executed by the device depending on the held state; an output section that outputs a control signal having a value corresponding to the state held by the state holding register; an error detection unit that detects a bit error in the state held by the state holding register; a plurality of error detection registers each storing a result of the bit error detection by the error detection unit; a control unit that determines whether or not the bit error has occurred based on the result of the bit error detection stored in the error detection register, and fixes the value of the control signal output by the output unit when it is determined that the bit error has occurred; An information processing device comprising:

2. 2. The information processing device according to claim 1, wherein the number of said error detection registers is an odd number.

3. 3. The information processing apparatus according to claim 1, wherein the control unit determines whether or not the bit error has occurred by a majority vote of the results of the bit error detection stored in the error detection register.

4. 4. The information processing apparatus according to claim 1, wherein the output unit transmits the control signal to an external device of the information processing apparatus.

5. The output unit is a signal generating unit that determines and generates a value of the control signal; an output circuit that acquires and holds the control signal from the signal generating unit and outputs the held control signal; a switch that switches between conduction and interruption of a transmission path of the control signal connecting the signal generating unit and the output circuit; The control unit fixes the value of the control signal held by the output circuit by cutting off the transmission path with the switch, thereby fixing the value of the control signal output by the output unit.

5. The information processing device according to claim 1, wherein the information processing device is a computer.

6. 6. The information processing device according to claim 1, wherein the output section changes a value of the control signal to be output when the state held by the state holding register becomes a predetermined state.

7. The state holding register has a single-bit error correction mechanism; The error detection unit detects two or more bit errors.

7. The information processing apparatus according to claim 1,

8. causing a state holding register to hold a state representing a state of the information processing device corresponding to a process executed by the information processing device, and switching the process executed by the information processing device according to the state held by the state holding register; outputting a control signal having a value corresponding to the state held by the state holding register; Detecting a bit error in the state information held by the state holding register; storing the results of the bit error detection in a plurality of error detection registers; determining whether or not the bit error has occurred based on the results of the bit error detection stored in the plurality of error detection registers; When it is determined that the bit error has occurred, the value of the control signal is fixed.

23. An information processing method comprising:

Citation Information

Patent Citations

  • Redundant switching system of computer system

    JP1984140569A

  • State machine checker

    JP1989280843A

  • Memory circuit

    JP1990082333A

  • State machine

    JP1998233672A

  • State machine, counter, wrong operation detection circuit, wrong operation detection method, program recording medium and program

    JP2002312203A