Control device
The control device synchronizes and compares data across multiple processing units to ensure accurate data collation by using storage and selection circuits, addressing the issue of inconsistent output orders due to synchronization discrepancies.
Patent Information
- Application Number
- JP2023029463
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-09
- Estimated Expiration
- 2043-02-28
AI Technical Summary
Existing data collation devices fail to accurately match data when multiple CPUs are out of synchronization, leading to inconsistent output orders due to differing interrupt timings.
A control device with first and second processing devices, storage circuits, comparison circuits, selection circuits, and a verification circuit to synchronize and compare data and control signals across different processing units, ensuring accurate data collation despite synchronization discrepancies.
Enables accurate data collation by synchronizing and matching output orders across multiple processing devices, resolving inconsistencies caused by differing interrupt timings.
Smart Images

Figure 00000000_0000
Abstract
Description
[Technical field]
[0001] The present invention relates to a control device. [Background technology]
[0002] As a background technique of this technical field, for example, there is Patent Document 1. This publication describes a data matching device capable of accurately matching data even when the synchronization of data sent from multiple data sources is lost. The data matching device of Patent Document 1 has a synchronization signal generation circuit 10 that generates a synchronization signal 3 based on data 1a, 1b sent from multiple data sources A, B, a synchronization deviation detection circuit 20 that generates a synchronization adjustment signal 5 based on the synchronization signal 3, and a synchronization adjustment matching circuit 30 that adjusts the matching timing based on the synchronization adjustment signal 5 to match the data 1a, 1b, and matches the data 1a, 1b that may not be synchronized sent from two data sources A, B. In the data matching device of FIG. 1 disclosed in Patent Document 1, the synchronization deviation detection circuit detects the amount of synchronization deviation, and a multiplexer selects the appropriate data of the matching shift register according to the detected amount of synchronization deviation, thereby ensuring that the input of the matching circuit is synchronized and enabling accurate matching. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 5925507 Summary of the Invention [Problem to be solved by the invention]
[0004] In the background art, when the processing device of the data source includes a CPU, a method of executing multiple processes in a time-sharing manner by interrupting the CPU is often used. For example, when an interrupt occurs during the execution of a certain task, the processing of the task is interrupted, an interrupt routine is executed, and the processing of the interrupted task is resumed after the processing of the interrupt routine is completed. Even if the same program is executed by multiple CPUs, if the synchronization between the CPUs is not synchronized, the location where the task is interrupted by the interrupt may differ depending on the CPU. In that case, an output performed before the processing of the interrupt routine in one processing device may be performed after the processing of the interrupt routine in another processing device, resulting in a discrepancy in the order of output between multiple processing devices. The data collation device disclosed in Patent Document 1 does not handle cases where the order of output is discrepant, and cannot collate data accurately.
[0005] The present invention has been made in consideration of the above problems, and has an object to accurately compare data in a control device that compares the outputs of multiple processing devices, even if there is a discrepancy in the order of the outputs. [Means for solving the problem]
[0006] A representative control device of the present invention for solving the above-mentioned problem includes a first processing device which outputs a first control signal and first data, a second processing device which outputs a second control signal and second data, a first storage circuit which stores the first control signal and the first data output by the first processing device, a second storage circuit which stores the second control signal and the second data output by the second processing device, a first comparison circuit which compares the first control signal stored in the first storage circuit and output by the first storage circuit with the second control signal output by the second processing device, or which compares the first data stored in the first storage circuit and output by the first storage circuit with the second data output by the second processing device, and a comparison circuit which compares the second control signal stored in the second storage circuit and output by the second storage circuit with the first control signal output by the first processing device, or which compares the second control signal stored in the second storage circuit and output by the second storage circuit with the first control signal stored in the second storage circuit and output by the second storage circuit. a second comparison circuit that compares the second data output by the first processing device with the first data output by the first processing device; a third comparison circuit that compares the first control signal output by the first processing device with the second control signal output by the second processing device or compares the first data output by the first processing device with the second data output by the second processing device; a first selection circuit that selects data to be compared from the first data output by the first processing device and the first data output by the first memory circuit; a second selection circuit that selects data to be compared from the second data output by the second processing device and the second data output by the second memory circuit; a selection signal generation circuit that generates selection signals for the first selection circuit and the second selection circuit from the comparison results output by the first comparison circuit, the second comparison circuit, and the third comparison circuit; and a comparison circuit that compares the data selected by the first selection circuit with the data selected by the second selection circuit. Effect of the Invention
[0007] According to the present invention, it is possible to accurately collate data even if there is a discrepancy in the order of output. Problems, configurations and effects other than those described above will become apparent from the description of the following embodiments. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a block diagram common to control devices according to first to third embodiments of the present invention. [Diagram 2] FIG. 2 is a block diagram illustrating an example of a synchronization circuit in the control device of FIG. [Diagram 3] FIG. 3 is a state transition diagram showing an example of the operation of the first request holding circuit in the synchronization circuit of FIG. [Figure 4] FIG. 4 is a state transition diagram showing an example of the operation of the second request holding circuit in the synchronization circuit of FIG. [Diagram 5] FIG. 5 is a state transition diagram showing an example of the operation of the first response holding circuit in the synchronization circuit of FIG. [Figure 6] FIG. 6 is a state transition diagram showing an example of the operation of the second response holding circuit in the synchronization circuit of FIG. [Figure 7] FIG. 7 is a timing diagram illustrating a first example of the operation of the synchronization circuit of FIG. [Figure 8] FIG. 8 is a timing diagram illustrating a second example of the operation of the synchronization circuit of FIG. [Figure 9] FIG. 9 is a block diagram showing a first example of the order adjustment circuit in the control device of FIG. [Figure 10] FIG. 10 is a table showing an example of the operation of the selection signal generating circuit in the order adjusting circuit of FIG. [Figure 11] FIG. 11 is a timing diagram showing an example of the operation of the order adjustment circuit of FIG. [Figure 12] FIG. 12 is a block diagram showing a second example of the order adjustment circuit in the control device of FIG. [Figure 13] FIG. 13 is a block diagram showing a third example of the order adjustment circuit in the control device of FIG. [Figure 14] FIG. 14 is a table showing an example of the operation of the selection signal generating circuit in the order adjusting circuit of FIG. [Figure 15] FIG. 15 is a timing diagram showing an example of the operation of the order adjustment circuit of FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, examples 1 to 3 according to the present invention will be described in the order of FIG. 1 to FIG. 11, example 2 is shown in FIG. 1 to FIG. 8 and FIG. 12, and example 3 is shown in FIG. 1 to FIG. 8 and FIG. 13 to FIG. 15. Note that the present invention is not limited to these embodiments. In addition, in the drawings, the same parts are denoted by the same reference numerals.
[0010] In the following description, the type of signal may be specified by the symbol attached to the signal line through which the signal is transmitted. For example, when a control signal is transmitted by signal line A, the signal transmitted by signal line A may be referred to as control signal A. This also applies to other types of signals such as request signals, response signals, and data.
[0011] [Example 1] A first embodiment will be described with reference to Figs. 1 to 11. Fig. 1 is a block diagram common to control devices according to first to third embodiments of the present invention. The description of Fig. 1 will be omitted in the description of second and third embodiments described later. As shown in Fig. 1, a control device 10 of the first embodiment includes a first processing device 100, a second processing device 120, an output stop circuit 152, an order adjustment circuit 140, a matching circuit 150, and an input control circuit 170. For example, the control device 10 controls a device 160 via the matching circuit 150.
[0012] There are three variations of the order adjustment circuit 140, and order adjustment circuits 140A (FIG. 9), 140B (FIG. 12), and 140C (FIG. 13) are shown in Examples 1 to 3. In Example 1, the common part between these will be described as the order adjustment circuit 140.
[0013] The first processing device 100 outputs a first control signal and first data. The second processing device 120 outputs a second control signal and second data. Specifically, the first processing device 100 includes a CPU 101, a synchronization circuit 103, a RAM 104, a ROM 105, an output circuit 107, an input circuit 108, a bus 102, and a bus 106. The second processing device 120 includes a CPU 121, a synchronization circuit 123, a RAM 124, a ROM 125, an output circuit 127, an input circuit 128, a bus 122, and a bus 126. The second processing device 120 has a similar configuration to that of the first processing device 100. In the following description, the description of the second processing device 120 may be omitted.
[0014] CPU 101 executes the following processes according to the program stored in ROM 105. First, CPU 101 receives information about device 160 from input circuit 108 via bus 106, synchronization circuit 103, and bus 102, and performs a predetermined control process. Thereafter, information required for controlling device 160 is output from CPU 101 to bus 109 via bus 102, synchronization circuit 103, bus 106, and output circuit 107. RAM 104 is used to save the intermediate progress of the control process. The operation of CPU 121 is the same as that of CPU 101.
[0015] The synchronization circuit 103 is a circuit for exchanging information between the bus 102 and the bus 106, which have different operating frequencies. In general, an increase in the operating frequency of the CPU has a large effect on system performance, but an increase in the operating frequency of other circuits has a small effect on system performance. Therefore, it is common to operate the CPU at a relatively high operating frequency and the other circuits at a relatively low operating frequency. In view of this background, FIG. 1 shows an example in which the operating frequency of the bus 102 is higher than the operating frequency of the bus 106. As will be described later, due to the difference in operating frequency between the bus 102 and the bus 106, a difference in operating timing between the CPU 101 and the CPU 121 may occur. This difference in operating timing leads to a difference in interrupt timing, which causes the order of outputs of the first processing unit 100 and the second processing unit 120 to be inconsistent. The operation of the synchronization circuit 123 is the same as that of the synchronization circuit 103.
[0016] When the input circuit 108 receives an input request from the CPU 101 via the bus 102, the synchronization circuit 103, and the bus 106, the input request is output to the input control circuit 170 via the bus 110. When the input circuit 108 receives data in response to the input request output from the input control circuit 170 via the bus 110, the data is output by the input circuit 108 to the CPU 101 via the bus 106, the synchronization circuit 103, and the bus 102. The operation of the input circuit 128 is the same as that of the input circuit 108.
[0017] When the output circuit 107 receives information from the CPU 101 via the bus 102, the synchronization circuit 103, and the bus 106, it outputs the received information to the bus 109. The value output to the bus 109 may be a digital value for an AD (Analog-to-Digital) conversion circuit present in the device 160. The value output to the bus 109 may also be a command value for changing the state of a switch or an AD conversion circuit present in the device 160. The value output to the bus 109 is composed of control signals including an enable signal, an address value, and the like, and data. The operation of the output circuit 127 is the same as that of the output circuit 107.
[0018] In the initial state, the collation circuit 150 sets the stop command to be output to the output stop circuit 152 via the signal line 151 to 0 (output permitted). The collation circuit 150 also takes in the outputs of the output circuits 107 and 127, the order and output timing of which have been adjusted by the order adjustment circuit 140, via the buses 141 and 142. As a result, if the values do not match, the collation circuit 150 sets the stop command to be output to the output stop circuit 152 via the signal line 151 to 1 (output stopped).
[0019] The timing at which the comparison circuit 150 returns the stop command to 0 (output permitted) may be when the buses 141 and 142 match. Also, the timing at which the stop command is returned to 0 (output permitted) may be when a signal indicating a system reset state, not shown in Fig. 1, is asserted. In this case, even if the buses 141 and 142 match, the stop command remains at 1 (output stopped) until the system is reset.
[0020] When the stop command received from the comparison circuit 150 via the signal line 151 is 0 (output permitted), the output stop circuit 152 outputs the value of the bus 109 to the bus 161. When the stop command received from the comparison circuit 150 via the signal line 151 is 1 (output stopped), the output stop circuit 152 outputs a predetermined value to the bus 161. At this time, the value output to the bus 161 is specified as a value for safely stopping the device 160.
[0021] The input control circuit 170 executes the following processes in sequence. First, the input control circuit 170 receives an input request from the input circuit 108 via the bus 110. Next, the input control circuit 170 selects either the information on the device 160 retrieved from the signal line 162 or the information on the device 160 previously retrieved from the signal line 162 and stored internally. The selected information is output from the input control circuit 170 to the input circuit 108 via the bus 110.
[0022] Furthermore, the input control circuit 170 executes the following processes in sequence. First, the input control circuit 170 receives an input request from the input circuit 128 via the bus 130. Next, the input control circuit 170 selects either the information on the device 160 retrieved from the signal line 162 or the information on the device 160 previously retrieved from the signal line 162 and stored internally. The selected information is output from the input control circuit 170 to the input circuit 128 via the bus 130.
[0023] The internal state of the device 160 changes over time. Therefore, if there is a discrepancy between the time when an input request from the input circuit 108 occurs and the time when an input request from the input circuit 128 occurs, the information of the device 160 taken in from the signal line 162 at the time when the input request occurs may have a different value. If the value output to the input circuit 108 differs from the value output to the input circuit 128, a difference occurs between the processing result of the first processing device 100 and the processing result of the second processing device 120, and a mismatch is detected by the comparison circuit 150. To prevent such a situation, the input control circuit 170 stores the output value to the input circuit that first receives the input request internally, and outputs the value stored internally to the input circuit that receives the input request later. By performing such processing, it is guaranteed that the value output to the input circuit 108 and the value output to the input circuit 128 are the same.
[0024] Fig. 2 is a block diagram showing an example of the synchronization circuit 103 in the control device of Fig. 1. The synchronization circuit 103 includes a circuit for transmitting request information and output data from the bus 102 to the bus 106, and a circuit for transmitting input data from the bus 106 to the bus 102, but Fig. 2 shows a circuit for transmitting request information and output data from the bus 102 to the bus 106. The configuration of the circuit for transmitting input data from the bus 106 to the bus 102 is similar to the circuit of Fig. 2, except that the direction in which information is transmitted is different.
[0025] 2 includes a first request holding circuit 211, a first storage circuit 231, a second storage circuit 233, a second request holding circuit 251, a first response holding circuit 254, a third storage circuit 234, a fourth storage circuit 232, a second response holding circuit 212, a control signal storage circuit 252, and a data storage circuit 253. The bus 102 includes signal lines for transmitting a clock signal 201, a request signal 202, a control signal 203, data 204, and a response signal 205. The control signal 203 may include the type of request (input or output), an address for selecting one of a plurality of storage circuits at the request destination, or a byte enable indicating which byte of data is valid when the output data is composed of a plurality of bytes. Similarly, the bus 106 includes signal lines for transmitting a clock signal 261 , a request signal 262 , a control signal 263 , data 264 , and a response signal 265 .
[0026] When the first request holding circuit 211 receives a value of 1, which indicates a request state, from the signal line 202, it outputs 1, which indicates a request state, for a certain period of time to the signal line 221. The method of determining the period for outputting 1 will be described later.
[0027] The first memory circuit 231 takes in the value of the signal line 221 at the rising edge of the clock signal 261 , and outputs it to a signal line 241 .
[0028] The second memory circuit 233 takes in the value of the signal line 241 at the rising edge of the clock signal 261 , and outputs it to a signal line 243 .
[0029] The second storage circuit 233 plays a role in preventing the propagation of intermediate values that occur when transmitting signals between different clocks. While the signal line 221 operates in synchronization with the clock signal 201, the first storage circuit 231 captures the value of the signal line 221 at the rising edge of the clock signal 261. Therefore, the value of the signal line 221 may change almost simultaneously with the rising edge of the clock signal 261. In such a case, however, the value of the signal line 241 may converge to either 0 or 1 within one cycle of the clock signal 261. When the second storage circuit captures the value of the signal line 241, the value of the signal line 241 has converged to either 0 or 1, so the propagation of intermediate values to the signal line 243 can be prevented.
[0030] When the second request holding circuit 251 receives a value of 1 indicating a request state from the signal line 243, it outputs 1 indicating a request state for a certain period of time to the signal line 262. The method of determining the period for outputting 1 will be described later.
[0031] When the first response holding circuit 254 receives a value of 1 indicating a response state from the signal line 265 while the signal line 262 has a value of 1 indicating a request state, the first response holding circuit 254 outputs 1 indicating a response state for a certain period of time to the signal line 244. The method of determining the period for outputting 1 will be described later.
[0032] The third memory circuit 234 takes in the value of the signal line 244 at the rising edge of the clock signal 201 , and outputs it to a signal line 242 .
[0033] The fourth memory circuit 232 captures the value of the signal line 242 at the rising edge of the clock signal 201 and outputs it to the signal line 222. Like the second memory circuit 233, the fourth memory circuit 232 plays a role in preventing the propagation of intermediate values that occur when transmitting signals between different clocks.
[0034] When the second response holding circuit 212 receives the value of 1, which indicates a state in which a response has been made, from the signal line 222, it outputs the value of 1, which indicates a state in which a response has been made, for a certain period of time to the signal line 205. The method of determining the period in which to output 1 will be described later.
[0035] The control signal storage circuit 252 takes in the value of the signal line 203 at the rising edge of the clock signal 261, and outputs it to a signal line 263. Although an intermediate value may occur on the signal line 263 due to signal transmission between different clocks, this does not pose a problem because the value of the signal line 263 is not used until it converges to 0 or 1, as described below.
[0036] The data storage circuit 253 takes in the value of the signal line 204 at the rising edge of the clock signal 261, and outputs it to a signal line 264. Although an intermediate value may occur in the signal line 264 due to signal transmission between different clocks, this does not pose a problem because, like the signal line 263, the value of the signal line 264 is not used until it converges to 0 or 1.
[0037] The clock signal 201 and the clock signal 261 are generated, for example, from a crystal oscillator provided in the first processing device 100. In the first processing device 100, the clock signal 201 is used by the CPU 101, and the clock signal 261 is used by components other than the CPU 101.
[0038] 3 is a state transition diagram showing an example of the operation of the first request holding circuit 211 in the synchronization circuit 103 of FIG. 2. The state transition diagram of FIG. 3 has a first no request output state 301, a request output state 302, and a second no request output state 303. In the first no request output state 301 and the second no request output state 303, the request signal 221 which is the output of the first request holding circuit 211 is 0, and in the request output state 302, the request signal 221 of the first request holding circuit 211 is 1. Here, the first no request output state 301 and the second no request output state 303 are states in which the value of the signal line 202 is 0 indicating no request as a request signal, and the value of the signal line 203 is invalid. Also, the request output state 302 is a state in which the value of the signal line 202 is 1 indicating a request as a request signal, and the value of the signal line 203 is valid.
[0039] If the value of the signal line 202 becomes 1 in the first no-request-output state 301, a transition occurs to a requested-output state 302 at the next rising edge of the clock signal 201. If the value of the signal line 202 is 0, the first no-request-output state 301 remains.
[0040] If the value of the signal line 222 becomes 1 in the requested output state 302, a transition occurs to a second no requested output state 303 at the next rising edge of the clock signal 201. If the value of the signal line 222 is 0, the requested output state 302 remains.
[0041] If the value of the signal line 222 becomes 0 and the value of the signal line 202 becomes 1 in the second no output requested state 303 , then at the next rising edge of the clock signal 201 , a transition is made to the state 302 with output requested.
[0042] If the value of signal line 222 is 0 and the value of signal line 202 is 0 in second no-output-request state 303, a transition to first no-output-request state 301 occurs at the next rising edge of clock signal 201. If signal line 222 is 1, the state remains in second no-output-request state 303.
[0043] 4 is a state transition diagram showing an example of the operation of the second request holding circuit 251 in the synchronization circuit 103 of FIG. 2. The state transition diagram of FIG. 4 has a first no request output state 401, a request output state 402, and a second no request output state 403. In the first no request output state 401 and the second no request output state 403, the request signal 262 which is the output of the second request holding circuit 251 is 0, and in the request output state 402, the request signal 262 of the second request holding circuit 251 is 1. Here, the first no request output state 401 and the second no request state 403 are states in which the value of the signal line 202 is 0 indicating no request as a request signal, and the value of the signal line 203 is invalid. Also, the request output state 402 is a state in which the value of the signal line 202 is 1 indicating a request as a request signal, and the value of the signal line 203 is valid.
[0044] If the value of the signal line 243 becomes 1 in the first no-request-output state 401, a transition occurs to a requested-output state 402 at the rising edge of the next clock signal 261. If the value of the signal line 243 is 0, the first no-request-output state 401 remains.
[0045] If the value of the signal line 265 becomes 1 in the requested output state 402, a transition occurs to a second no requested output state 403 at the rising edge of the next clock signal 261. If the value of the signal line 265 is 0, the requested output state 402 remains.
[0046] If the signal line 243 becomes 0 in the second no output requested state 403, a transition occurs to the no output requested state 401 at the next rising edge of the clock signal 261. If the signal line 243 is 1, the second no output requested state 403 remains.
[0047] 5 is a state transition diagram showing an example of the operation of the first response holding circuit 254 in the synchronization circuit 103 of FIG. 2. The state transition diagram of FIG. 5 has a no response output state 501 and a response output state 502. In the no response output state 501, the value of the response signal 244 which is the output of the first response holding circuit 254 is 0, and in the response output state 502, the value of the response signal 244 of the first response holding circuit 254 is 1. Here, the no response output state 501 is a state in which the value of the signal line 262 is 0 indicating no request as a request signal, or the value of the signal line 265 is 0 indicating no response as a response signal. Also, the response output state 502 is a state in which the value of the signal line 262 is 1 indicating a request as a request signal, and the value of the signal line 265 is 1 indicating a response as a response signal.
[0048] In no-response-output state 501, if the value of signal line 262 is 1 and the value of signal line 265 is 1, a transition occurs to response-output state 502 at the next rising edge of clock signal 261. If the value of signal line 262 is 0 or the value of signal line 265 is 0, the no-response-output state 501 remains.
[0049] If the value of the signal line 243 becomes 0 in the response output state 502, a transition occurs to the no response output state 501 at the rising edge of the next clock signal 261. If the value of the signal line 243 is 1, the state remains in the request output state 502.
[0050] Fig. 6 is a state transition diagram showing an example of the operation of the second response holding circuit 212 in the synchronization circuit 103 of Fig. 2. The state transition diagram of Fig. 6 has a first no-response output state 601, a response output state 602, and a second no-response output state 603. In the first no-response output state 601 and the second no-response output state 603, the value of the response signal 205 which is the output of the second response holding circuit 212 is 0, and in the response output state 602, the value of the response signal 205 of the second response holding circuit 212 is 1. Here, the first no-response output state 601 and the second no-response output state 603 are states in which the value of the signal line 262 is 0 indicating no request as a request signal, or the value of the signal line 265 is 0 indicating no response as a response signal. A request output state 602 is a state in which the value of the signal line 262 is 1 as a request signal indicating that a request is present, and the value of the signal line 265 is 1 as a response signal indicating that a response is present.
[0051] When the value of the signal line 222 becomes 1 in the first no-response-output state 601, a transition occurs to a response-output state 602 at the rising edge of the next clock signal 201. When the value of the signal line 222 is 0, the first no-response-output state 601 remains.
[0052] In the response output state 602 , a transition to a second no response output state 603 always occurs at the next rising edge of the clock signal 201 .
[0053] If the signal line 222 becomes 0 in the second no-response output state 603, a transition to the first no-response output state 601 occurs at the next rising edge of the clock signal 201. If the signal line 222 is 1, the second no-response output state 603 remains.
[0054] Figure 7 is a timing diagram showing a first example of the operation of the synchronization circuit 103 of Figure 2. Cycles 701 are numbered periods of the clock signal 201. Odd-numbered cycles are shown, and even-numbered cycles are omitted. Cycles 702 are numbered periods of the clock signal 261.
[0055] Once the request signal 202 becomes 1, it holds the value until the response signal 205 becomes 1, and when the response signal 205 becomes 1, it becomes 0 in the next cycle.
[0056] For the control signal 203 and data 204, a value corresponding to the request is output in the cycle in which the request signal 202 becomes 1, and the same value is maintained until the response signal 205 becomes 1. For the control signal 203, the first request A-1 is output in cycle 1, and the second request A-2 is output in cycle 17. For the data 204, the first data D-1 is output in cycle 1, and the second data D-2 is output in cycle 17.
[0057] The output value of the request signal 221 is determined according to the state transition of the first request holding circuit 211 described with reference to FIG.
[0058] The value of the request signal 221 is reflected in the request signal 241 (the signal transmitted through the signal line 241 ) at the rising edge of the clock signal 261 .
[0059] The value of the request signal 241 (the signal transmitted through the signal line 243 ) is reflected at the rising edge of the clock signal 261 .
[0060] The output value of the request signal 262 (the signal transmitted through the signal line 262) is determined according to the state transition of the second request holding circuit 251 described with reference to FIG.
[0061] The control signal 263 (signal transmitted through the signal line 263) reflects the value A-1 of the control signal 203 in the first cycle of the clock signal 261, and reflects the value A-2 of the control signal 203 in the eighth cycle. When the value of the control signal 263 changes in the first or eighth cycle of the clock signal 261, an intermediate value may occur due to signal transmission between different clocks, but the control signal 263 converges to 0 or 1 during the period of the first or eighth cycle of the clock signal 261. The value of the control signal 263 is taken in by the connected circuit during the period when the request signal 262 is 1, and therefore the value of the control signal 263 does not become an intermediate value during that period.
[0062] The data 264 reflects the value D-1 of the data 204 in the first cycle of the clock signal 261, and reflects the value D-2 of the data 204 in the eighth cycle. Although an intermediate value may occur in the data 264 due to signal transmission between different clocks, similar to the control signal 263, the data 264 will not become an intermediate value during the period in which it is taken into the connected circuit.
[0063] The response signal 265 is a signal output by the accessed circuit connected to the bus 106, and its operation may differ depending on the accessed circuit. Here, an example is shown in which the value of the request signal 262 becomes 1 in the next cycle after the value of the request signal 262 becomes 1.
[0064] The output value of the response signal 244 is determined according to the state transition of the first response holding circuit 254 described in FIG.
[0065] The value of the response signal 244 is reflected in the response signal 242 (the signal transmitted on the signal line 242 ) at the rising edge of the clock signal 201 .
[0066] The value of the response signal 242 is reflected in the response signal 222 (the signal transmitted on the signal line 222) at the rising edge of the clock signal 201.
[0067] The output value of the response signal 205 (the signal transmitted through the signal line 205) is determined according to the state transition of the second response holding circuit 212 described with reference to FIG.
[0068] Through the above series of operations, the transfer of one request A-1 and data D-1 is completed from the first cycle to the fifteenth cycle of the clock signal 201, and the transfer of the second request A-2 and data D-2 begins from the seventeenth cycle.
[0069] FIG. 8 is a timing diagram showing a second example of the operation of the synchronization circuit 103 of FIG. 2. In the timing diagram of FIG. 7, the time difference between the rising edge of the response signal 244 and the rising edge of the 13th cycle of the clock signal 201 is small, but it is assumed that the value of 1 of the response signal 244 is propagated to the response signal 242 in the 13th cycle of the clock signal 201. Depending on the operating speed of the circuit, the propagation of the value of 1 of the response signal 244 to the response signal 242 may occur in the 14th cycle of the clock signal 201. FIG. 8 illustrates such a case. Compared to FIG. 7, the rising edge of the response signal 242 is delayed by one cycle of the clock signal 201, so that the response signal 222 is also delayed by one cycle, and the timing at which the value of the response signal 205 becomes 1 is also delayed by one cycle. As a result, the timing at which the transfer of the second request A-2 and the data D-2 starts is also delayed by one cycle.
[0070] In this way, the operation of the synchronization circuit 103 may differ due to the influence of the delay time of the circuit and the time difference between the rising edges of the clocks. For example, if the synchronization circuit 103 of the first processor 100 operates at the timing of Fig. 7 and the synchronization circuit 123 of the second processor 120 operates at the timing of Fig. 8, a difference occurs in the operation timing of the first processor 100 and the second processor 120, resulting in a mismatch in the output order due to a difference in interrupt timing.
[0071] Fig. 9 is a block diagram showing a first example of the order adjustment circuit 140 in the control device of Fig. 1. The order adjustment circuit 140A of Fig. 9 has a first control signal storage circuit 911, a first data storage circuit 912, a second control signal storage circuit 913, a second data storage circuit 914, a first comparison circuit 931, a second comparison circuit 933, a third comparison circuit 932, a selection signal generation circuit 951, a first control signal selection circuit 971, a first data selection circuit 972, a second control signal selection circuit 973, and a second data selection circuit 974.
[0072] Each circuit included in the order adjustment circuit 140A performs its function based on the output of the first processor 100 transmitted via the bus 109 and the output of the second processor 120 transmitted via the bus 129. The timing at which each circuit performs its function is in accordance with the clock signal 261 in the first processor 100 (or the clock signal in the second processor 120), and for example, the function is switched at the rising edge of the clock signal 261. The order adjustment circuit 140A compares the output in the bus 109 with the output in the bus 129, and outputs to the bus 141 and the bus 142 at the same timing. In this way, even if there is a difference in the timing of the output of the bus 109 and the output of the bus 129 or the output order does not match, the order adjustment circuit 140A can adjust the difference and output to the comparison circuit 150. A specific description will be given below.
[0073] The bus 109 includes signal lines for transmitting a control signal 901 and data 902. The control signal 901 may include the presence or absence of a request, the type of request (input or output), an address for selecting one of multiple memory circuits at the request destination, or a byte enable indicating which byte of data is valid when the output data is composed of multiple bytes. The bus 129 similarly includes signal lines for transmitting a control signal 903 and data 904. The bus 141 similarly includes signal lines for transmitting a control signal 981 and data 982. The bus 142 similarly includes signal lines for transmitting a control signal 983 and data 984.
[0074] The first storage circuit stores the first control signal (signal transmitted through signal line 901) and the first data (signal transmitted through signal line 902) output by the first processing device 100. Specifically, the first storage circuit can include a first control signal storage circuit 911 and a first data storage circuit 912.
[0075] The first control signal storage circuit 911 stores the value of the signal line 901 when there is a request on the signal line 901 and the control signal on the signal line 901 is not selected by the first control signal selection circuit 971 .
[0076] The first data storage circuit 912 stores the value of the signal line 902 when there is a request on the signal line 901 and the control signal on the signal line 901 is not selected by the first control signal selection circuit 971 .
[0077] The second memory circuit stores the second control signal (signal transmitted through signal line 903) and the second data (signal transmitted through signal line 904) output by the second processing device 120. Specifically, the second memory circuit can include a second control signal memory circuit 913 and a second data memory circuit 914.
[0078] The second control signal storage circuit 913 stores the value of the signal line 903 when there is a request on the signal line 903 and the control signal on the signal line 903 is not selected by the second control signal selection circuit 973 .
[0079] The second data storage circuit 914 stores the value of the signal line 904 when there is a request on the signal line 903 and the control signal on the signal line 903 is not selected by the second control signal selection circuit 973 .
[0080] The first comparison circuit 931 compares the first control signal stored in and output from the first storage circuit with the second control signal output from the second processing device. Specifically, the first comparison circuit 931 compares the control signal on the signal line 921 with the control signal on the signal line 903, and outputs 1 to the signal line 941 if they match, or 0 if they do not match.
[0081] The second comparison circuit 933 compares the second control signal stored in and output from the second storage circuit with the first control signal output from the first processing device. Specifically, the second comparison circuit 933 compares the control signal on the signal line 923 with the control signal on the signal line 901, and outputs 1 to the signal line 943 if they match, or 0 if they do not match.
[0082] The third comparison circuit 932 compares the first control signal output by the first processor 100 with the second control signal output by the second processor 120. Specifically, the third comparison circuit 932 compares the control signal on the signal line 901 with the control signal on the signal line 903, and outputs 1 to the signal line 942 if they match, or 0 if they do not match.
[0083] The selection signal generation circuit 951 generates selection signals for a first selection circuit and a second selection circuit, which will be described later, from the comparison results output by the first comparison circuit 931, the second comparison circuit 933, and the third comparison circuit 932. Specifically, the selection signal generation circuit 951 receives the comparison results from signal lines 941, 943, and 942, and outputs a selection signal 961 and a selection signal 962 in accordance with a predetermined rule. The rule for determining the output will be described later.
[0084] The first selection circuit selects data to be compared from the first data output by the first processing device 100 and the first data output by the first memory circuit. Specifically, the first selection circuit can be configured to include a first control signal selection circuit 971 and a first data selection circuit 972.
[0085] The first control signal selection circuit 971 selects either the control signal on the signal line 901 or the control signal on the signal line 921 in accordance with the selection signal 961 , and outputs the selected control signal to a signal line 981 .
[0086] The first data selection circuit 972 selects either the data on the signal line 902 or the data on the signal line 922 in accordance with a selection signal 961 , and outputs the selected data to a signal line 982 .
[0087] The second selection circuit selects data to be collated from the second data output by the second processing device 120 and the second data output by the second storage circuit. Specifically, the second selection circuit can be configured to include a second control signal selection circuit 973 and a second data selection circuit 974.
[0088] The second control signal selection circuit 973 selects either the control signal on the signal line 903 or the control signal on the signal line 923 in accordance with the selection signal 962 , and outputs the selected control signal to a signal line 983 .
[0089] The second data selection circuit 974 selects either the data on the signal line 904 or the data on the signal line 924 in accordance with the selection signal 962 , and outputs it to a signal line 984 .
[0090] The data selected by the first selection circuit and the data selected by the second selection circuit are matched by a matching circuit 150 .
[0091] FIG. 10 is a table showing an example of the operation of the selection signal generation circuit 951 in the order adjustment circuit 140A of FIG.
[0092] When the first comparison circuit 931 detects a match, the selection signal generation circuit 951 outputs a selection signal to cause the first selection circuit to select the first data output by the first storage circuit and the second selection circuit to select the second data output by the second processing device 120. Specifically, when the output 941 of the first comparison circuit 931 is 1, the selection signal generation circuit 951 outputs selection signals 961 and 962 so that the output 981 of the first control signal selection circuit 971 is the value of the signal line 921, the data 982 is the value of the signal line 922, the output 983 of the second control signal selection circuit 973 is the value of the signal line 903, and the data 984 is the value of the signal line 904.
[0093] The selection signal generation circuit 951 also outputs a selection signal so that, when the second comparison circuit 933 detects a match, the first selection circuit selects the first data output by the first processing device 100 and the second selection circuit selects the second data output by the second storage circuit. Specifically, when the output 941 of the first comparison circuit 931 is 0 and the output 943 of the second comparison circuit 933 is 1, the selection signal generation circuit 951 outputs the selection signal 961 and the selection signal 962 so that the output 981 of the first control signal selection circuit 971 is the value of the signal line 901, the data 982 is the value of the signal line 902, the output 983 of the second control signal selection circuit 973 is the value of the signal line 923, and the data 984 is the value of the signal line 924.
[0094] The selection signal generation circuit 951 also outputs a selection signal so that, when the third comparison circuit 942 detects a match, the first selection circuit selects the first data output by the first processing device 100 and the second selection circuit selects the second data output by the second processing device 120. Specifically, when the output 941 of the first comparison circuit 931 is 0, the output 943 of the second comparison circuit 933 is 0, and the output 942 of the third comparison circuit 932 is 1, the selection signal generation circuit 951 outputs the selection signal 961 and the selection signal 962 so that the output 981 of the first control signal selection circuit 971 is the value of the signal line 901, the data 982 is the value of the signal line 902, the output 983 of the second control signal selection circuit 973 is the value of the signal line 903, and the data 984 is the value of the signal line 904.
[0095] The selection signal generation circuit 951 also outputs selection signals 961 and 962 so that the output 981 of the first control signal selection circuit 971 is no request and the output 983 of the second control signal selection circuit 973 is no request when the output 941 of the first comparison circuit 931 is 0, the output 943 of the second comparison circuit 933 is 0, and the output 942 of the third comparison circuit 932 is 0. In this case, data 982 and data 984 are don't care.
[0096] FIG. 11 is a timing diagram showing an example of the operation of the order adjustment circuit 140A of FIG. 9. The series of cycles in FIG. 11 is a numbered version of each period of the clock signal 261 of FIG. 2. There are cases where valid values are not output to the buses 109 and 129, which are the inputs of the order adjustment circuit 140A of FIG. 9. For example, the bus 109 outputs a valid value only when the output circuit 107 of FIG. 1 receives information from the bus 106. The output circuit 107 receives information from the bus 106 only when both the signal line 262 (the signal line transmitting the output of the second request holding circuit 251) and the signal line 265 (the signal line transmitting the input of the first response holding circuit 254) of the synchronization circuit of FIG. 2 are 1, and the value of the signal line 263 (the signal line transmitting the output of the control signal storage circuit 252) indicates a data fetch request to the output circuit 107. In the example of Fig. 7, both signal line 262 and signal line 265 transmit 1 only in the 5th and 13th cycles, and taking into consideration the condition of signal line 263 as well, it can be seen that only a small proportion of cycles involve a valid value being output to bus 109. The shaded rows in Fig. 11 indicate cycles in which no valid value is output to either bus 109 or 129, with one row showing multiple cycles.
[0097] In FIG. <t1> ~ <t5>is the output of the interrupted task, and (i1) to (i3) are the outputs of the interrupt routine. <t3>and <t4>While (i1) to (i3) are output between these, the signal line 903 is <t2>and <t3>(i1)~(i3) are output between them, and the order is different.
[0098] In cycles a, b, f, g, and h, the output 941 (signal transmitted on signal line 941) of the first comparison circuit 931 is 1, so the value of signal line 921 is output to signal line 981, and the value of signal line 903 is output to signal line 983.
[0099] In cycles c, d, and e, the output 942 (signal transmitted on signal line 942) of the third comparison circuit 932 is 1, so that the value of signal line 901 is output to signal line 981, and the value of signal line 903 is output to signal line 983.
[0100] As described above, according to the present disclosure, the corresponding outputs of the first processing device 100 and the second processing device 120 are detected by using the outputs of the first comparison circuit 931, the second comparison circuit 933, and the third comparison circuit 932, and the corresponding outputs are selected by the first selection circuit (the first control signal selection circuit 971 and the first data selection circuit 972) and the second selection circuit (the second control signal selection circuit 973 and the second data selection circuit 974), so that the order of the outputs of the first processing device 100 and the second processing device 120 can be made the same. As a result, the order of the control signals output to the signal lines 981 and 983 and the cycles at which they are output match, making it possible to perform accurate matching.
[0101] 11, there is no cycle in which output 943 of second comparison circuit 933 is 1, but this is because the operation of signal line 901 precedes the operation of signal line 903. In the case where the values of signal line 901 and signal line 903 are reversed, output 943 of second comparison circuit 943 becomes 1 instead of output 941 of first comparison circuit 931.
[0102] [Example 2] Figure 12 is a block diagram showing a second example of the order adjustment circuit 140 in the control device of Figure 1. The operations of the components with the same reference numerals as in Figure 9 are the same as in Figure 9. The difference between the order adjustment circuit 140A in Figure 9 and the order adjustment circuit 140B in Figure 12 is that the first comparison circuit 1231, the second comparison circuit 1233, and the third comparison circuit 1232 compare data instead of control signals.
[0103] The first comparison circuit 1231 compares the first data stored in and output from the first memory circuit with the second data output from the second processing device 120. Specifically, the first comparison circuit 1231 compares the data on the signal line 922 with the data on the signal line 904, and outputs 1 to the signal line 941 if they match, or 0 if they do not match.
[0104] The second comparison circuit 1233 compares the second data stored in and output from the second memory circuit with the first data output from the first processing device 100. Specifically, the second comparison circuit 1233 compares the data on the signal line 924 with the data on the signal line 902, and outputs 1 to the signal line 943 if they match, or 0 if they do not match.
[0105] The third comparison circuit 1232 compares the first data output by the first processing device 100 with the second data output by the second processing device 120. Specifically, the third comparison circuit 1232 compares the data on the signal line 902 with the data on the signal line 904, and outputs 1 to the signal line 942 if they match, or 0 if they do not match.
[0106] By comparing data rather than control signals, when the number of signal lines for data is smaller than that for control signals, the amount of material in the first comparison circuit, the second comparison circuit, and the third comparison circuit can be reduced more than in FIG. 9.
[0107] The operation of the order adjustment circuit 140B in FIG. 12 is similar to that of the order adjustment circuit 140A shown in FIGS.
[0108] [Example 3] FIG. 13 is a block diagram showing a third example of the order adjustment circuit 140 in the control device of FIG. 1. The operations of the components with the same reference numerals as those in FIG. 9 are the same as those in FIG. 9. The difference between the order adjustment circuit 140A in FIG. 9 and the order adjustment circuit 140C in FIG. 13 is that a third control signal storage circuit 1311, a third data storage circuit 1312, a fourth control signal storage circuit 1313, a fourth data storage circuit 1314, a fourth comparison circuit 1331, and a fifth comparison circuit 1333 are added. In addition, the configurations of the selection signal generation circuit 1351, the first control signal selection circuit 1371, the first data selection circuit 1372, the second control signal selection circuit 1373, and the second data selection circuit 1374 are also different from those in FIG. 9.
[0109] The third memory circuit stores the first control signal and the first data output from the first memory circuit. Specifically, the third memory circuit can include a third control signal memory circuit 1311 and a third data memory circuit 1312.
[0110] The third control signal memory circuit 1311 stores the value of the signal line 921 when there is a request on the signal line 901, the first control signal selection circuit 1371 does not select a control signal on the signal line 901 or the signal line 921, and a valid control signal is stored in the first control signal memory circuit 911.
[0111] The third data memory circuit 1312 stores the value of the signal line 922 when there is a request on the signal line 901, the first control signal selection circuit 1371 does not select the control signal on the signal line 901 or the signal line 921, and a valid control signal is stored in the first control signal memory circuit 911.
[0112] The fourth memory circuit stores the second control signal and the second data output from the second memory circuit. Specifically, the fourth memory circuit can include a fourth control signal memory circuit 1313 and a fourth data memory circuit 1314.
[0113] The fourth control signal memory circuit 1313 stores the value of the signal line 923 when there is a request on the signal line 903, the second control signal selection circuit 1373 does not select a control signal on the signal line 903 or the signal line 923, and a valid control signal is stored in the second control signal memory circuit 913.
[0114] The fourth data memory circuit 1314 stores the value of signal line 924 when there is a request on signal line 903, the second control signal selection circuit 1373 does not select a control signal on signal line 903 or signal line 923, and a valid control signal is stored in the second control signal memory circuit 913.
[0115] The fourth comparison circuit 1331 compares the first control signal stored in the third memory circuit and output by the third memory device with the second control signal output by the second processing device 120. Specifically, the fourth comparison circuit 1331 compares the control signal on the signal line 1321 with the control signal on the signal line 903, and outputs 1 to the signal line 1341 if they match, or 0 if they do not match.
[0116] The fifth comparison circuit 1333 compares the second control signal stored in and output from the fourth storage circuit with the first control signal output from the first processing device 100. Specifically, the fifth comparison circuit 1333 compares the control signal on the signal line 1323 with the control signal on the signal line 901, and outputs 1 to the signal line 1343 if they match, or 0 if they do not match.
[0117] The selection signal generation circuit 1351 generates selection signals for the first selection circuit and the second selection circuit from the comparison results output by the first comparison circuit 931, the second comparison circuit 933, the third comparison circuit 932, the fourth comparison circuit 1331, and the fifth comparison circuit 1333. Specifically, the selection signal generation circuit 1351 takes in the comparison results from the signal lines 941, 943, 942, 1341, and 1343, and outputs a selection signal 1361 and a selection signal 1362 according to a predetermined rule. The rule for determining the output will be described later.
[0118] The first control signal selection circuit 1371 selects one of the control signal on the signal line 901 , the control signal on the signal line 921 , or the control signal on the signal line 1321 in accordance with the selection signal 1361 , and outputs the selected control signal to a signal line 981 .
[0119] The first data selection circuit 1372 selects any one of the data on the signal line 902 , the data on the signal line 922 , and the data on the signal line 1322 in accordance with a selection signal 1361 , and outputs the selected data to a signal line 982 .
[0120] The second control signal selection circuit 1373 selects one of the control signal on the signal line 903 , the control signal on the signal line 923 , or the control signal on the signal line 1323 in accordance with the selection signal 1362 , and outputs the selected control signal to a signal line 983 .
[0121] The second data selection circuit 1374 selects any one of the data on the signal line 904 , the data on the signal line 924 , and the data on the signal line 1324 in accordance with the selection signal 1362 , and outputs the selected data to a signal line 984 .
[0122] Fig. 14 is a table showing an example of the operation of the selection signal generation circuit 1351 in the order adjustment circuit 140C of Fig. 13. Although Fig. 14 shows the output of control signals, the output of data is similar.
[0123] When the fourth comparison circuit 1331 detects a match, the selection signal generation circuit 1351 outputs a selection signal so that the first selection circuit selects the first data output by the third storage circuit and the second selection circuit selects the second data output by the second processing device 120. Specifically, when the output 1341 of the fourth comparison circuit 1331 is 1, the selection signal generation circuit 1351 outputs the selection signals 1361 and 1362 so that the output 981 of the first control signal selection circuit 1371 is the value of the signal line 1321 and the output 983 of the second control signal selection circuit 1373 is the value of the signal line 903.
[0124] The selection signal generation circuit 1351 also outputs a selection signal when the first comparison circuit 931 detects a match, so as to cause the first selection circuit to select the first data output by the first storage circuit and the second selection circuit to select the second data output by the second processing device 120. Specifically, when the output 1341 of the fourth comparison circuit 1331 is 0 and the output of the first comparison circuit 931 is 1, the selection signal generation circuit 1351 outputs a selection signal 1361 and a selection signal 1362 so that the output 981 of the first control signal selection circuit 1371 is the value of the signal line 921 and the output 983 of the second control signal selection circuit 1373 is the value of the signal line 903.
[0125] The selection signal generation circuit 1351 also outputs a selection signal to cause the first selection circuit to select the first data output by the first processing device 100 and the second selection circuit to select the second data output by the fourth storage circuit when the fifth comparison circuit 1333 detects a match. Specifically, when the output 1341 of the fourth comparison circuit 1331 is 0, the output of the first comparison circuit 931 is 0, and the output of the fifth comparison circuit 1333 is 1, the selection signal generation circuit 1351 outputs the selection signal 1361 and the selection signal 1362 so that the output 981 of the first control signal selection circuit 1371 is the value of the signal line 901 and the output 983 of the second control signal selection circuit 1373 is the value of the signal line 1323.
[0126] The selection signal generation circuit 1351 also outputs a selection signal so that, when the second comparison circuit 933 detects a match, the first selection circuit selects the first data output by the first processing device 100 and the second selection circuit selects the data output by the second storage circuit. Specifically, when the output 1341 of the fourth comparison circuit 1331 is 0, the output of the first comparison circuit 931 is 0, the output of the fifth comparison circuit 1333 is 0, and the output of the second comparison circuit 933 is 1, the selection signal generation circuit 1351 outputs a selection signal 1361 and a selection signal 1362 so that the output 981 of the first control signal selection circuit 1371 is the value of the signal line 901 and the output 983 of the second control signal selection circuit 1373 is the value of the signal line 923.
[0127] The selection signal generation circuit 1351 also outputs a selection signal so that the first selection circuit selects the first data output by the first processor and the second selection circuit selects the second data output by the second processor when the third comparison circuit 932 detects a match. Specifically, when the output 1341 of the fourth comparison circuit 1331 is 0, the output of the first comparison circuit 931 is 0, the output of the fifth comparison circuit 1333 is 0, the output of the second comparison circuit 933 is 0, and the output of the third comparison circuit 932 is 1, the selection signal generation circuit 1351 outputs a selection signal 1361 and a selection signal 1362 so that the output 981 of the first control signal selection circuit 1371 is the value of the signal line 901 and the output 983 of the second control signal selection circuit 1373 is the value of the signal line 903.
[0128] The selection signal generation circuit 1351 also outputs a selection signal 1361 and a selection signal 1362 so that when the output 1341 of the fourth comparison circuit 1331 is 0, the output of the first comparison circuit 931 is 0, the output of the fifth comparison circuit 1333 is 0, the output of the second comparison circuit 933 is 0, and the output of the third comparison circuit 932 is 0, the output 981 of the first control signal selection circuit 1371 is no request and the output 983 of the second control signal selection circuit 1373 is no request.
[0129] FIG. 15 is a timing diagram showing an example of the operation of the order adjustment circuit 140C of FIG. 13. The shaded rows have the same meaning as in FIG. 11. As shown in FIG. 11, when the difference in operation between the signal lines 901 and 903 is small, the operation of the order adjustment circuit 140C is the same as in FIG. 11. On the other hand, the order adjustment circuit 140B of FIG. 9 only has a memory circuit that holds one value for each of the signal lines 901 and 903, and therefore cannot handle a large difference between the signal lines 901 and 903. For example, when the signal line 903 has <t1>is output to signal line 901. <t1>and <t2>9 cannot be handled by the order adjustment circuit 140B in FIG. 9. On the other hand, the order adjustment circuit 140C in FIG. 13 has memory circuits that hold two values for each of the signal lines 901 and 903, so that <t1>and <t2>It is possible to store both.
[0130] In cycles b, c, g, and h, since the output 1341 of the fourth comparator circuit 1331 is 1, the value of the signal line 1321 is output to the signal line 981, and the value of the signal line 903 is output to the signal line 983.
[0131] In cycles d, e, and f, since the output 942 of the third comparison circuit 932 is 1, the value of the signal line 901 is output to the signal line 981 and the value of the signal line 903 is output to the signal line 983 .
[0132] In cycle i, since the output 941 of the first comparison circuit 931 is 1, the value of the signal line 921 is output to the signal line 981 , and the value of the signal line 903 is output to the signal line 983 .
[0133] As a result, the order and cycle of the control signals output to the signal lines 981 and 983 match, making it possible to perform accurate matching.
[0134] 15, there is no cycle in which the output 1343 of the fifth comparison circuit 1333 is 1, but this is because the operation of the signal line 901 precedes the operation of the signal line 903. In the case where the values of the signal lines 901 and 903 are reversed, the output 1343 of the fifth comparison circuit 1333 is 1 instead of the output 1341 of the fourth comparison circuit 1331.
[0135] [Other Examples] Although the embodiments of the present invention have been described above, the present invention is not limited to the above-mentioned embodiments, and various modifications are possible within the scope of the present invention. For example, the order adjustment circuit 140B of the second embodiment and the order adjustment circuit 140C shown in the third embodiment may be combined to configure the fourth comparison circuit and the fifth comparison circuit to compare data instead of control signals.
[0136] As for the configuration of the comparison circuit, the first comparison circuit compares the first data stored in the first storage circuit and output by the first storage circuit with the second data output by the second processing device 120. The second comparison circuit compares the second data stored in the second storage circuit and output by the second storage circuit with the first data output by the first processing device 100. The third comparison circuit compares the first data output by the first processing device 100 with the second data output by the second processing device 120.
[0137] Also, the fourth comparison circuit compares the first data stored in the third storage circuit and output by the third storage device with the second data output by the second processing device, and the fifth comparison circuit compares the second data stored in the fourth storage circuit and output by the fourth storage circuit with the first data output by the first processing device. [Explanation of symbols]
[0138] 10 Control device 100 First processing device 102, 104~106, 109, 110, 122, 126, 129, 130, 141, 142, 161 Bus 103 Synchronization circuit 120 Second Processing Device 140 Order Adjustment Circuit 150 Matching circuit 201-205, 221, 222, 241, 242, 243, 244, 261-265, 901-904, 921-924, 941-943, 961, 962, 981-984, 1321-1324, 1341, 1343, 1361, 1362 signal lines 911 First control signal storage circuit 912 First data storage circuit 913 Second control signal storage circuit 914 Second data storage circuit 931 First comparison circuit 932 Third comparison circuit 933 Second comparison circuit 951 Selection signal generation circuit 971, 1371 First control signal selection circuit 972, 1372 First data selection circuit 973, 1373 Second control signal selection circuit 974, 1374 Second data selection circuit 1231 First comparison circuit 1232 third comparison circuit, 1233 Second comparison circuit 1311 Third control signal storage circuit 1312 Third data storage circuit 1313 Fourth control signal storage circuit 1314 Fourth data storage circuit 1331 Fourth comparison circuit 1333 5th comparison circuit 1351 Selection signal generation circuit < / t1>
Claims
1. a first processing device that outputs a first control signal and a first data; a second processing device that outputs a second control signal and second data; a first storage circuit that stores the first control signal and the first data output by the first processing device; a second storage circuit that stores the second control signal and the second data output by the second processing device; a first comparison circuit that compares the first control signal stored in the first storage circuit and output from the first storage circuit with the second control signal output from the second processing device, or that compares the first data stored in the first storage circuit and output from the first storage circuit with the second data output from the second processing device; a second comparison circuit that compares the second control signal stored in the second storage circuit and output from the second storage circuit with the first control signal output from the first processing device, or that compares the second data stored in the second storage circuit and output from the second storage circuit with the first data output from the first processing device; a third comparison circuit that compares the first control signal output by the first processing device with the second control signal output by the second processing device, or compares the first data output by the first processing device with the second data output by the second processing device; a first selection circuit that selects data to be collated from the first data output by the first processing device and the first data output by the first storage circuit; a second selection circuit that selects data to be collated from the second data output by the second processing device and the second data output by the second storage circuit; a selection signal generating circuit that generates selection signals for the first selection circuit and the second selection circuit based on comparison results outputted from the first comparison circuit, the second comparison circuit, and the third comparison circuit; a comparison circuit for comparing the data selected by the first selection circuit with the data selected by the second selection circuit; A control device comprising:
2. 2. The control device according to claim 1, the first comparison circuit compares the first control signal output from the first storage circuit with the second control signal output from the second processing device; the second comparison circuit compares the second control signal output from the second storage circuit with the first control signal output from the first processing device; the third comparison circuit compares the first control signal output by the first processing device with the second control signal output by the second processing device; A control device comprising:
3. 2. The control device according to claim 1, the first comparison circuit compares the first data output by the first storage circuit with the second data output by the second processing device; the second comparison circuit compares the second data output by the second storage circuit with the first data output by the first processing device; the third comparison circuit compares the first data output by the first processing device with the second data output by the second processing device; A control device comprising:
4. 2. The control device according to claim 1, When the first comparison circuit detects a match, the selection signal generation circuit: causing the first selection circuit to select the first data output by the first storage circuit; and outputting the selection signal to the second selection circuit to select the second data output by the second processing device; When the second comparison circuit detects a match, the selection signal generation circuit also causing the first selection circuit to select the first data output by the first processing device; and outputting the selection signal so as to cause the second selection circuit to select the second data output by the second storage circuit; When the third comparison circuit detects a match, the selection signal generation circuit causing the first selection circuit to select the first data output by the first processing device; and outputting the selection signal so as to cause the second selection circuit to select the second data output by the second processing device; A control device comprising:
5. 2. The control device according to claim 1, a third storage circuit that stores the first control signal and the first data output from the first storage circuit; a fourth storage circuit that stores the second control signal and the second data output from the second storage circuit; a fourth comparison circuit that compares the first control signal stored in the third storage circuit and output from the third storage circuit with the second control signal output from the second processing device, or that compares the first data stored in the third storage circuit and output from the third storage circuit with the second data output from the second processing device; a fifth comparison circuit which compares the second control signal stored in the fourth storage circuit and output by the fourth storage circuit with the first control signal output by the first processing device, or which compares the second data stored in the fourth storage circuit and output by the fourth storage circuit with the first data output by the first processing device; the selection signal generation circuit generates selection signals for the first selection circuit and the second selection circuit based on comparison results outputted from the first comparison circuit, the second comparison circuit, the third comparison circuit, the fourth comparison circuit, and the fifth comparison circuit; A control device comprising:
6. 6. The control device according to claim 5, When the fourth comparison circuit detects a match, the selection signal generation circuit causing the first selection circuit to select the first data output by the third storage circuit; and outputting the selection signal so as to cause the second selection circuit to select the second data output by the second processing device; When the first comparison circuit detects a match, the selection signal generation circuit also causing the first selection circuit to select the first data output by the first storage circuit; and outputting the selection signal so as to cause the second selection circuit to select the second data output by the second processing device; When the fifth comparison circuit detects a match, the selection signal generation circuit causing the first selection circuit to select the first data output by the first processing device; and outputting the selection signal so as to cause the second selection circuit to select the second data output by the fourth storage circuit; When the second comparison circuit detects a match, the selection signal generation circuit also causing the first selection circuit to select the first data output by the first processing device; and outputting the selection signal so as to cause the second selection circuit to select the data output by the second storage circuit; and When the third comparison circuit detects a match, the selection signal generation circuit causing the first selection circuit to select the first data output by the first processing device; and outputting the selection signal so as to cause the second selection circuit to select the second data output by the second processing device; A control device comprising:
Citation Information
Patent Citations
Sort processor
JP1989177125A
Line monitoring system
JP1993344103A
Computer
JP1994324900A
Synchronizing control circuit for duplex data
JP1996111684A
Satellite line connector
JP1998143445A
