Safety device and safety method
The safety device synchronizes asynchronous calculation units in railway systems by comparing control cycle information, ensuring consistent and error-free data output, simplifying design and reducing costs.
Patent Information
- Application Number
- JP2023523358
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-05-27
- Filing Date
- 2022-04-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-21
AI Technical Summary
Existing railway safety devices face challenges in synchronizing microcontrollers with different operating timings, leading to inconsistent output data and potential malfunctions, and require complex designs and additional development costs when improving performance.
A safety device with multiple asynchronous calculation units, temporary storage units, and comparison sections that synchronize data output by comparing control cycle information, ensuring data consistency and preventing malfunctions by stopping output on mismatch detection.
Enables secure, synchronized data output between asynchronous systems without requiring synchronization awareness, simplifying design and reducing development costs, while preventing malfunctions and ensuring error-free data transmission.
Smart Images

Figure 0007554924000001 
Figure 0007554924000002 
Figure 0007554924000004
Abstract
Description
[Technical field]
[0001] The present invention relates to a safety device and a safety method, and is mainly applied to railway control safety devices (electronic interlocking devices, ATC control devices). [Background technology]
[0002] Railway safety devices, such as electronic interlocking devices that control railway signals and switches, and ATC devices that ensure safe train operation by maintaining an appropriate distance from the preceding train, are required to provide a high level of safety in order to prevent train derailments and collisions.
[0003] In other words, if a failure occurs in the hardware that constitutes the control device that constitutes these devices, the failure is immediately detected and control is taken to keep the output of the control device on the safe side and stop the train.
[0004] Microcomputers and other electronic devices have been used in railway safety devices for a long time, but in order to achieve such a high level of safety, the on-board microcomputers and memories are multiplexed, and the control calculation results of each system are compared, and if there is a match, data is output to the outside of the control device.
[0005] Below, an example of a conventional security control device is shown. FIG. 5 is a diagram showing an analog output circuit in the I / O control device described in Patent Document 1. In FIG. Program A and program B are executed by two arithmetic units (not shown), respectively. Data processed by both programs are compared by a comparator 34, and when the values of both data match, the data is output to a DAC access controller 38. At this time, when program A updates transmission data for a transmission bank (comprised of a transmission buffer), a value of "1" is registered by program A in a transmission buffer update flag register 35A. Similarly, when program B updates transmission data for a transmission bank, a value of "1" is registered by program B in a transmission buffer update flag register 35B. When the values of the transmission buffer update flag registers 35A and 35B both become "1", the DAC access controller 38 switches the transmission bank (30A to 31B) storing the transmission data to be compared by the comparator 34 based on a transmission bank switching request from an AND circuit 39.
[0006] As another example, FIG. 6 is a diagram showing a data collating device described in Patent Document 2. The data matching device shown in Fig. 6 is a device in which data processing results from a plurality of calculation units are compared and output by a synchronization adjustment matching circuit 30. A synchronization signal generation circuit 10 generates a synchronization signal 3 from a specific bit string from a data source (A, B) by a synchronization trigger detection unit 11 and a synchronization signal generation unit 12. A synchronization deviation detection circuit 20 receives this synchronization signal 3, detects a synchronization deviation, and outputs a synchronization adjustment signal 5. A multiplexer 32 in the synchronization adjustment matching circuit 30 selects data stored in a comparison shift register 31 based on the synchronization adjustment signal 5 input from the synchronization deviation detection circuit 20, and compares the output data. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2020-184184 A [Patent Document 2] JP 2013-161354 A Summary of the Invention [Problem to be solved by the invention]
[0008] In the example described in Patent Document 1, a transmit buffer is implemented with two sides, one for writing and one for reading, for each system, and the two systems are synchronized by setting the transmit buffer update flag register to '1.' However, if the operation timing of the microcontrollers in both systems, which operate asynchronously, becomes significantly out of sync, there is a possibility that data with different control periods will be compared even if '1' is written to the transmit buffer update flag registers for both systems, in which case the output data for both systems will not match, making it difficult to prevent malfunctions.
[0009] On the other hand, in the example described in Patent Document 2, a synchronization signal generation circuit, a synchronization deviation detection circuit, and a synchronization adjustment / matching circuit are implemented. The design of these functional modules requires consideration of state transitions taking into account the operating frequencies and timings of the CPUs and buses of each system, and is expected to be delicate and complicated. Furthermore, if performance of the arithmetic unit or bus is to be improved, redesign work will be required, resulting in new development costs.
[0010] An object of the present invention is to provide a safety device in which a plurality of calculation units operating asynchronously can process each other without being aware of synchronization with the other systems, and which can perform comparison processing of output data from both systems without malfunction. [Means for solving the problem]
[0011] In order to solve the above problems, one representative safety device according to the present invention includes a plurality of calculation units which calculate input data and output the calculated data for each control period, a first comparison unit which compares information indicating the control period for the timing at which each of the plurality of calculation units outputs the calculated data, a plurality of temporary storage units which hold each of the calculated data output by the plurality of calculation units, a second comparison unit which compares the calculated data held by each of the plurality of temporary storage units, and an output unit which outputs the calculated data to the outside, and each of the plurality of temporary storage units outputs the calculated data which it holds in accordance with the comparison result of the first comparison unit, and the output unit outputs the calculated data in accordance with the comparison result of the second comparison unit. But when it matchesOutputs the calculation data output by the temporary storage unit to the outside When the two values do not match, the second comparator stops outputting the calculated data to the outside, and the second comparator maintains the mismatch even if the comparison result of the second comparator becomes a match in a control cycle after the time of the mismatch. The present invention is characterized by the above. Effect of the Invention
[0012] According to the present invention, a plurality of arithmetic units that operate asynchronously can process without being aware of synchronization with the other systems, and when comparing the output data of both systems, the read of the output data of both systems is synchronized, so that the comparison process can be executed without malfunction. Also, since the arithmetic operations of the plurality of arithmetic units are not conscious of synchronization, it is not necessary to consider the operation timing of each arithmetic unit, making the design easier.
[0013] In addition, the timing information can be configured with a finite data length because it circulates in a cycle that is much longer than the timing information of the control device, and it has a unique value when viewed in the adjacent cycles before and after any control cycle. Therefore, there is no risk of malfunction caused by comparing output data of different control cycles of the two systems.
[0014] Furthermore, even when improving the performance of the calculation section, the amount of design change is small, and new development costs can be kept low.
[0015] Problems, configurations and effects other than those described above will become apparent from the following description of the preferred embodiment of the invention. [Brief description of the drawings]
[0016] [Figure 1] 1 is a diagram showing an example of the configuration of a safety device according to the present invention; [Diagram 2] FIG. 4 is a timing chart showing an operation mode under normal conditions. [Diagram 3] FIG. 13 is a timing chart showing an operation mode when an abnormality occurs (comparison mismatch); [Figure 4] FIG. 13 is a time chart showing an operation mode when another abnormality (comparison mismatch) occurs. [Diagram 5] FIG. 1 is a diagram illustrating an analog output circuit in an I / O control device described in Patent Document 1. [Figure 6] FIG. 1 is a diagram illustrating a data collating device described in Patent Document 2. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] Hereinafter, examples of the present invention will be described with reference to the drawings as modes for carrying out the present invention. Note that the present invention is not limited to these examples. In addition, in the description of the drawings, the same parts are denoted by the same reference numerals. EXAMPLES
[0018] Fig. 1 is a diagram showing an example of the configuration of a security device according to the present invention. The symbols A and B attached to each component in the diagram indicate that the component constitutes the A system and the B system, respectively. However, in the following explanation, when it is necessary to distinguish between the A system and the B system, A or B will be written, but otherwise will be omitted, and processing modes other than comparison processing by a comparator and data output to the outside will operate in both the A system and the B system.
[0019] Reference numeral 11 denotes a calculation unit, 12 denotes a main memory storing the programs and data executed by the calculation unit 11, 13 denotes a first-in-first-out type FIFO buffer that temporarily stores data to be output per control period of the safety device, 14 denotes a serial number data register that sets serial number data updated by the calculation unit 11 per control period, 15 denotes a comparator that compares the values of the two serial number data registers 14, 16 denotes a comparator that compares the output data of the two FIFO buffers 13, and 17 denotes an output buffer that controls whether data is output to the outside of the safety device. Of these, each of the components 11 to 14 has an A system and a B system.
[0020] The computing units 11 basically execute the same program while accessing the main memory 12, but they are not synchronized with each other and operate without being aware of each other. Also, railway safety devices have a control period to perform the typical fixed-period control, and perform predetermined processing at fixed time intervals.
[0021] Here, the calculation unit 11 receives input data from an external device (not shown), and performs calculation processing for each control period based on various internal variables that are stored in the main memory 12 along with the control calculation history up to that point. As a result, multiple output data derived to the outside are written sequentially to the FIFO buffer 13.
[0022] After the last output data is written to the FIFO buffer 13, the serial number data indicating the control period is written to the serial number data register 14. For example, if the serial number data register 14 is a 16-bit register, then 2 16 = 65,536 resolution, so the serial number data goes through a cycle of 65,536 times the control period.
[0023] As described above, the A and B system operation units 11 operate asynchronously with each other. Therefore, at the timing when the serial number data is written to the serial number data register 14 by the operation unit 11 of the system that operates later, the comparison in the comparator 15 results in a match, and the output indicating this match acts as an output enable for the FIFO buffer 13.
[0024] The FIFO buffer 13 includes a memory element, a device for designating the address and range of the access destination when writing or reading, and a controller for enabling control of continuous access. When the output enable is enabled, the FIFO buffer 13 sequentially outputs the written data while sequentially incrementing the addresses of the multiple output data stored therein.
[0025] At this time, the output data of both systems from the FIFO buffer 13 start reading at the same timing, so that they are synchronized. Next, the output data of both systems is input to the comparator 16.
[0026] If there are no failures in the arithmetic unit 11, the main memory 12 and the FIFO buffer 13, the output data from both systems should match, so the comparator 16 judges the comparison to match and outputs an enable signal to the output buffer 17.
[0027] The output buffer 17 outputs data to the outside when the enable signal from the comparator 16 is valid. Although an example is shown in Fig. 1 in which the output buffer 17 receives the buffer output of the FIFO 13A of the A system and outputs the data to the outside, it may receive the buffer output of the FIFO 13B of the B system and output the data to the outside. The data output to the outside is guaranteed to be consistent between the A system and the B system, so it is error-free and highly safe data.
[0028] 2 is a time chart showing the above-mentioned operation mode under normal conditions, in which the B system operates later than the A system. For example, in control cycle (1), the CPUs output data D1, D2, and D3, which are the results of calculations. Also, at the same time as outputting the last data D3, the CPUs output serial number data N1.
[0029] Here, when the serial number data N1 of the B system, which is operating with a delay, is output, the outputs of the serial number data registers 14 of the A system and the B system match, and the output of the serial number comparator 15 outputs a comparison match ('H' level in the figure).
[0030] At this timing, the output of the FIFO 13 of both systems is enabled, and the data D1, D2 and D3 written in both systems are output in synchronization.
[0031] As a result, the output of the data comparator 16 outputs a comparison match (H level in the figure), and the output buffer 17 outputs data D1, D2 and D3. Thereafter, the control cycle continues with (2), (3), . . . , and the same operations as described above are repeated.
[0032] Next, an abnormal case will be described in which some kind of failure occurs in either of the two systems, causing a comparison mismatch of output data. FIG. 3 is a timing chart showing an operation mode when an abnormality (comparison mismatch) occurs.
[0033] In Fig. 3, in the control cycle (2) of both systems, system A outputs D4, D5, and D6 as normal data, while system B outputs D4, DB, and DC as erroneous data. That is, D5 in system B is erroneous to DB, and D6 is erroneous to DC.
[0034] In this case, the serial number comparator 15 compares the serial number data N2 to indicate a match, and enables the output of both systems of the FIFO 13. However, the A system data D5 and the B system data DB, and the A system data D6 and the B system data DC, do not match, and so the output of the data comparator 16 indicates a mismatch ('L' level in the figure).
[0035] Then, the enable state of the output buffer 17 becomes invalid, and the data output to the outside is discontinued at D4.
[0036] In the next control cycle (3), data D7, D8, and D9 match between system A and system B and are restored. However, once a mismatch is detected, it is safer not to restore the data until a reset is performed. Therefore, the output of comparator 16 maintains the mismatch ('L' level in the figure) and output to the outside is stopped.
[0037] Next, another abnormal case will be described in which some kind of failure occurs in either of the two systems, causing the output data to mismatch. FIG. 4 is a time chart showing an operation mode when another abnormality (comparison mismatch) occurs.
[0038] In FIG. 4, as in FIG. 3, in control cycle (2), a mismatch occurs between the output data of systems A and B, causing the output data of control cycle (2) to be stopped, just as in FIG. 3.
[0039] However, at the point in time when the output data of the A and B systems match again in control cycle (3), the output enable from the data comparator 16 is made valid, and output data is resumed.
[0040] This is because the data discrepancy in control cycle (2) was deemed to be a recoverable, transient fault (soft error) in one of the elements in the safety device, and from control cycle (3) onwards, if the output data of both systems was confirmed to match, it was determined that the output data was safe and data output was resumed.
[0041] In recent years, the miniaturization of semiconductor manufacturing processes has progressed dramatically, but as a trade-off, the resistance to soft errors caused by cosmic rays and neutron rays has been decreasing. In light of this, by taking such measures, it is possible to improve the operating rate against transient failures.
[0042] The above describes the case where there are two calculation units, but if there are three or more calculation units, comparisons can be made for each combination of two calculation units, and a majority vote can be taken of each comparison result to determine whether the output data matches.
[0043] Although the above describes an embodiment of the present invention, the present invention is not limited to the above-described embodiment, and various modifications are possible without departing from the gist of the present invention. [Explanation of symbols]
[0044] 11A, 11B: Arithmetic section A, B, 12A, 12B: Main memory A, B, 13A, 13B: FIFO buffers A and B, 14A, 14B: serial number data registers A, B, 15: Comparator for serial number data, 16: Data comparator, 17: Output buffer
Claims
1. A plurality of calculation units each outputting a calculation result of input data as calculation data for each control period; a first comparison unit that compares information indicating the control period of the timing at which each of the plurality of calculation units outputs the calculation data; a plurality of temporary storage units for storing the calculation data output from the plurality of calculation units; a second comparison unit that compares the operation data stored in each of the plurality of temporary storage units; an output unit that outputs the calculation data to the outside; Equipped with each of the plurality of temporary storage units outputs the operation data held therein in response to a comparison result of the first comparison unit; the output unit outputs the calculation data output by the temporary storage unit to an external device when the comparison result of the second comparison unit is a match, and stops outputting the calculation data to an external device when the comparison result of the second comparison unit is a mismatch; The second comparison section maintains the mismatch even if the comparison result of the second comparison section becomes a match in a control cycle after the time point of the mismatch. A security device characterized by:
2. The security device according to claim 1, a plurality of storage units each storing information indicating the control period of the timing, The first comparison unit compares the information stored in the plurality of storage units. A security device characterized by:
3. The safety device according to claim 1 or 2, The information compared by the first comparison unit is serial number information that is incremented by +1 every control period. A security device characterized by:
4. The security device according to claim 3, The serial number information circulates at a fixed cycle, and the fixed cycle is sufficiently longer than the control cycle. A security device characterized by:
5. a first step of calculating input data in each of a plurality of systems for each control period, temporarily storing each of the calculated data, and outputting information indicating the control period for outputting the calculated data for each of the plurality of systems; a second step of performing a first comparison to compare the pieces of information indicating the control periods of the timings; a third step of performing a second comparison to compare the temporarily stored operation data when the first comparison result is a match; a fourth step of outputting the temporarily stored operation data to the outside when the result of the second comparison is a match, and holding a mismatch state when the result is a mismatch, and maintaining the mismatch state even if the result of the second comparison is a match in a control cycle after the mismatch; A security method having the above.
Citation Information
Patent Citations
Synchronous method and apparatus for a plurality of processors
JP1989258057A
Computer system and method therefor
JP2011076262A
Data collation device, collation method and safety security system using the same
JP2013161354A
Electronic terminal device and electronic interlocking device
JP2014106831A
I / O control device
JP2020184184A
