Data transfer device

The data transfer device synchronizes multiple clock domains using a transfer control unit to stabilize data transfer times by aligning input and output signals with clock cycle counts, addressing phase-related fluctuations in semiconductor devices.

JP2024122007AActive Publication Date: 2024-09-09MITSUBISHI ELECTRIC CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023029303
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

Technical Problem

In semiconductor devices using multiple clock domains, phase differences between clocks cause fluctuations in data transfer time, especially when three or more clocks are involved, leading to precision issues in data transfer.

Method used

A data transfer device operates using three clocks, with transfer processing sections synchronized to these clocks and a transfer control unit that generates input and output permission signals based on clock cycle counts to align timing, preventing phase-related timing shifts.

Benefits of technology

This approach stabilizes data transfer times by controlling input and output signals based on clock cycles, suppressing fluctuations due to phase differences between multiple clocks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To suppress variations in data transfer time caused by phase difference between clocks in data transfer operated by using three or more clocks.SOLUTION: With a transfer control unit 4, when an input-permission signal 16 is generated, data 3 is input in synchronization with a first clock CLK1, and when an output-permission signal 17 is generated, data 5 is output in synchronization with a second clock CLK2. With a transfer control unit 8, when an input-permission signal 18 is generated, data 7 is input in synchronization with the second clock CLK2, and when an output-permission signal 19 is generated, data 9 is output in synchronization with a third clock CLK3. A transfer control unit 15 controls generation timing of the input-permission signals 16, 18 and the output-permission signals 17, 19 based on a count of the number of cycles of the first clock CLK1, the second clock CLK2, and the third clock CLK3.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to a data transfer device. [Background technology]

[0002] In data transfer between semiconductor devices using different clocks, it is common to use a synchronizer to avoid latching in a metastable state when data synchronized with the clock on the sending side is latched with the clock on the receiving side.

[0003] Regarding a semiconductor device using such a synchronizer, Patent Gazette No. 6026001 (Patent Document 1) describes a configuration in which a data transfer device is provided between a control device and a controlled device, and three types of clocks are used to improve the transfer speed. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent No. 6026001 Summary of the Invention [Problem to be solved by the invention]

[0005] However, in a semiconductor device including multiple clock domains, differences in the operation timing of clock sources such as PLLs (Phase Locked Loops) that generate each clock cause differences in the phases of the clocks. On the other hand, providing a mechanism for aligning the operation timing between the clock sources of each clock domain is likely to result in high costs.

[0006] For this reason, when data is transferred using three clock domains as in Patent Document 1, there is a concern that the fluctuation range of the data transfer time will be larger due to changes in the data input / output timing caused by the phase difference between the clocks compared to when two clock domains are used. This may cause problems, for example, in applications where precision is required for the data transfer time from input to output.

[0007] The present disclosure has been made to solve such problems, and the purpose of the present disclosure is to suppress fluctuations in data transfer time caused by phase differences between clocks in data transfers that operate using three or more multiple clocks. [Means for solving the problem]

[0008] In one aspect of the present invention, a data transfer device is provided that operates using a first clock, a second clock, and a third clock. The data transfer device includes a first transfer processing unit, a second transfer processing unit, a relay unit connected between the first transfer processing unit and the second transfer processing unit, and a transfer control unit. The first transfer processing unit operates according to the first clock and the second clock. The second transfer processing unit operates according to the second clock and the third clock. The transfer control unit receives the first clock, the second clock, and the third clock as inputs and generates an input enable signal and an output enable signal for each of the first transfer processing unit and the second transfer processing unit. The first transfer processing unit is configured to receive data in synchronization with the first clock when the input enable signal is generated, and to output data in synchronization with the second clock when the output enable signal is generated. The relay unit is configured to process data from the first transfer processing unit in synchronization with the second clock and output the data to the second transfer processing unit. The second transfer processing unit is configured to receive data from the relay unit in synchronization with the second clock when an input enable signal is generated, and to output data in synchronization with the third clock when an output enable signal is generated. The transfer control unit controls the timing of generating the input enable signal and the output enable signal of each of the first transfer processing unit and the second transfer processing unit based on counting the number of cycles of each of the first clock, the second clock, and the third clock. Effect of the Invention

[0009] According to the present disclosure, in a data transfer that operates using three or more clocks, the timing at which an input permission signal and an output permission signal are generated for each transfer processing unit can be controlled based on a count of the number of clock cycles, thereby suppressing fluctuations in data transfer time caused by phase differences between multiple clocks. [Brief description of the drawings]

[0010] [Figure 1] 1 is a block diagram illustrating a configuration example of a data transfer device according to a first embodiment. [Diagram 2] 2 is a block diagram illustrating an example of an input / output configuration for the data transfer device illustrated in FIG. 1. [Diagram 3] 2 is a block diagram illustrating an example of the configuration of a transfer control unit illustrated in FIG. 1. [Figure 4] 4 is a first example of operational waveforms of the data transfer device according to the first embodiment. [Diagram 5] 6 is a second example of operational waveforms of the data transfer device according to the first embodiment. [Figure 6] 13 is a first example of operational waveforms of the data transfer device according to the second embodiment. [Figure 7] 13 is a first example of operational waveforms of the data transfer device according to the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In the following, the same or corresponding parts in the drawings are denoted by the same reference characters, and their description will not be repeated in principle.

[0012] Embodiment 1 <Data transfer device configuration> 1 is a block diagram for explaining a configuration example of a data transfer device 100 according to a first embodiment. The data transfer device 100 is shown as a configuration example that operates using three clocks: a first clock 12 from a clock source 22, a second clock 13 from a clock source 23, and a third clock 14 from a clock source 24. Hereinafter, the first clock 12 will also be referred to as "first clock CLK1", the second clock 13 will also be referred to as "second clock CLK2", and the third clock 14 will also be referred to as "third clock CLK3". The data transfer device 100 is configured, for example, by an FPGA (Field Programmable Gate Array).

[0013] As shown in FIG. 1, the data transfer device 100 includes an input unit 2, a first transfer processing unit 4, a relay unit 6, a second transfer processing unit 8, an output unit 10, and a transfer control unit 15.

[0014] The input unit 2 processes the input data 1 in synchronization with a first clock CLK1. The relay unit 6 processes the data in synchronization with a second clock CLK2. The output unit 10 processes the data in synchronization with a third clock CLK3.

[0015] The first transfer processing unit 4 is disposed between the input unit 2 and the relay unit 6, and changes the clock with which the data is synchronized from the first clock CLK1 to the second clock CLK2. Similarly, the second transfer processing unit 8 is disposed between the relay unit 6 and the output unit 10, and changes the clock with which the data is synchronized from the second clock CLK2 to the third clock CLK3.

[0016] The transfer control unit 15 receives as input a first clock CLK1, a second clock CLK2, and a third clock CLK3, and generates a first input permission signal 16 that permits input to the first transfer processing unit 4 and a first output permission signal 17 that permits output from the first transfer processing unit 4, a second input permission signal 18 that permits input to the second transfer processing unit 8, and a second output permission signal 19 that permits output from the second transfer processing unit 8.

[0017] FIG. 2 is a block diagram illustrating an example of an input / output configuration for the data transfer device 100 shown in FIG.

[0018] 2, input data 1 to the data transfer apparatus 100 is transmitted by a device 21. Meanwhile, output data 11 from the data transfer apparatus 100 is received by a device 25. The devices 21 and 25 operate using different clock sources. For example, the device 21 operates using a clock 44 output by a PLL 42.

[0019] At this time, the first clock 12 (CLK1) generated by the device 21 in synchronization with the input data 1 based on the clock 44 is input to the data transfer apparatus 100. Therefore, the clock source 22 corresponds to the device 21.

[0020] Similarly, the device 25 operates using the clock 45 output by the PLL 43. At this time, the third clock 14 (CLK3) is input to the data transfer apparatus 100 so that the device 25 synchronously acquires the output data 11 based on the clock 45. Therefore, the clock source 24 corresponds to the device 25. In addition, the data transfer apparatus 100 operates by receiving an input of the second clock 13 (CLK2) from the PLL 23 serving as the clock source 23.

[0021] Referring again to FIG. 1, the operation of the data transfer device 100 will now be described in detail.

[0022] The input unit 2 receives input data 1 from the device 21 in synchronization with the first clock CLK1, and outputs data 3 to the first transfer processing unit 4. At this time, in the input unit 2, a processing delay occurs depending on the implemented processing content, corresponding to a predetermined number of clock cycles of the first clock CLK1, from when the input data 1 is received until when it is output as data 3.

[0023] The first transfer processing unit 4 sequentially receives and holds data 3 from the input unit 2 in synchronization with the first clock CLK1 while the transfer control unit 15 is generating a first input permission signal 16. Furthermore, the first transfer processing unit 4 sequentially outputs the held data as data 5 to the relay unit 6 in synchronization with the second clock CLK2 while the transfer control unit 15 is generating a first output permission signal 17.

[0024] The relay unit 6 receives data 5 from the first transfer processing unit 4 in synchronization with the second clock CLK2, and outputs data 7 that has been subjected to a pre-implemented process. At this time, in the relay unit 6, a processing delay that depends on the implemented process content and corresponds to a predetermined number of clock cycles of the second clock CLK2 occurs from the time the data value received as data 5 is received until it is output as data 7.

[0025] The second transfer processing unit 8 sequentially receives and holds the data 7 output from the relay unit 6 in synchronization with the second clock CLK2 while the transfer control unit 15 is generating the second input enable signal 18. Furthermore, the second transfer processing unit 8 sequentially outputs the held data as data 9 to the output unit 10 in synchronization with the third clock CLK3 while the transfer control unit 15 is generating the second output enable signal 19.

[0026] The output unit 10 receives data 9 from the second transfer processing unit 8 in synchronization with the third clock CLK3, and transmits output data 11 to the device 25. At this time, in the output unit 10, a processing delay occurs depending on the implemented processing content, corresponding to a predetermined number of clock cycles of the third clock CLK3, from when the data value received as the data 9 is received until when it is output as the output data 11.

[0027] Furthermore, the processing contents implemented in the input unit 2, relay unit 6, and output unit 10, respectively, can be arbitrary depending on the application of the data transfer device 100, etc., so the processing delay (number of clock cycles) occurring in the input unit 2, relay unit 6, and output unit 10, respectively, will also be appropriately different values ​​depending on the case.

[0028] The first transfer processing unit 4 and the second transfer processing unit 8 are metastable countermeasure circuits for preventing data corruption due to the occurrence of metastable states when transferring clocks with which data is synchronized between different clock domains. For example, a FIFO (First-In First-Out) can be used as a metastable countermeasure.

[0029] In this case, the first transfer processing unit 4 sequentially receives and holds data 3 in synchronization with the first clock CLK1, and outputs the held data in order from the oldest (first input) to the newest as data 5 in synchronization with the second clock CLK2. Similarly, the second transfer processing unit 8 sequentially receives and holds data 7 in synchronization with the second clock CLK2, and outputs the held data in order from the oldest (first input) to the newest as data 9 in synchronization with the third clock CLK3.

[0030] In this case, the first input enable signal 16 and the second input enable signal 18 can be used as write enables to the FIFO, and the first output enable signal 17 and the second output enable signal 19 can be used as read enables for the FIFO.

[0031] Also, the FIFO is configured with a memory, and the writable depth is fixed. Therefore, it is necessary to set the timing at which the first output enable signal 17 and the second output enable signal 19 are generated (asserted) so that writing beyond the FIFO depth of the first transfer processing unit 4 and the second transfer processing unit 8 does not occur. Therefore, for example, when the FIFO depth of the first transfer processing unit 4 is four stages, the time difference between the generation of the first input enable signal 16 and the generation of the first output enable signal 17 is set to at least four cycles or less.

[0032] Next, a configuration example of the transfer control unit 15 shown in FIG. 1 will be described.

[0033] 3 is a block diagram for explaining a configuration example of the transfer control unit 15. As will be clear from the following description, the transfer control unit 15 adjusts the timing at which the first input permission signal 16, the first output permission signal 17, the second input permission signal 18, and the second output permission signal 19 change from L level to H level, i.e., the assertion timing, based on the count of the number of cycles of the first clock CLK1, the second clock CLK2, and the third clock CLK3. Hereinafter, in this embodiment, it is assumed that each signal is generated while the signal is set to H level. That is, the transfer control unit 15 generates the signal at the timing at which each signal is asserted.

[0034] The transfer control unit 15 includes synchronizers 26 and 28, a trigger generator 30, counters 32-34 with enables, and comparators 38-41.

[0035] The trigger generator 30 generates the count enable 31 in synchronization with the first clock CLK1. For example, the trigger generator 30 generates the count enable 31 in response to the first rising edge (transition from L level to H level) of the first clock CLK1 after the reset is released by a reset signal (not shown). That is, the trigger generator 30 asserts the count enable 31, changing it from L level to H level.

[0036] When count enable 31 is asserted, synchronizer 26 asserts count enable 27 synchronized with second clock CLK2. Similarly, when count enable 31 is asserted, synchronizer 28 asserts count enable 29 synchronized with third clock CLK3. Note that since count enable 31 is a 1-bit signal, synchronizers 26 and 28 are configured so that each of second clock CLK2 and third clock CLK3 passes through two flip-flops (F / F), thereby making it possible to assert count enables 27 and 29 to avoid metastability.

[0037] The counter 32 starts counting up the number of cycles of the first clock CLK1 when the count enable 31 from the trigger generator 30 is asserted. Similarly, the counter 33 starts counting up the number of cycles of the second clock CLK2 when the count enable 27 from the synchronizer 26 is asserted. Moreover, the counter 34 starts counting up the number of cycles of the third clock CLK3 when the count enable 29 from the synchronizer 28 is asserted.

[0038] The comparator 38 generates the first input enable signal 16 when the count value 35 of the number of cycles of the first clock CLK1 by the counter 32 becomes equal to or greater than a predetermined specified value V1. That is, at the timing when the count value 35 becomes the specified value V1, the first input enable signal 16 is asserted and changes from L level to H level.

[0039] The comparator 39 generates the first output enable signal 17 when the count value 36 of the number of cycles of the second clock CLK2 by the counter 33 becomes equal to or greater than a predetermined specified value V2. The comparator 40 generates the second input enable signal 18 when the count value 36 becomes equal to or greater than a predetermined specified value V3.

[0040] The comparator 41 generates the second output enable signal 19 when the count value 37 of the number of cycles of the third clock CLK3 by the counter 34 becomes equal to or greater than a predetermined value V4. Note that, once each of the first input enable signal 16, the first output enable signal 17, the second input enable signal 18, and the second output enable signal 19 is asserted and changes from L level to H level, the data transfer device 100 can operate without needing to lower the level from H level to L level except when initialization is performed by resetting the transfer control unit 15, etc.

[0041] <Operation of data transfer device> FIG. 4 shows a first example of operational waveforms of the data transfer device 100. In FIG.

[0042] In the example of Fig. 4, the first clock 12 (CLK1) to the third clock 14 (CLK3) have the same frequency. Furthermore, it is assumed that there is a phase relationship between the first clock 12 (CLK1) to the third clock 14 (CLK3) such that the first clock CLK1 rises first, then the second clock CLK2 rises, and finally the third clock CLK3 rises. As shown in the figure, it is assumed that there is a phase difference between the earliest first clock CLK1 and the latest third clock CLK3, the time difference between the rising edges of which is t1.

[0043] Therefore, when count enable 31 (FIG. 3) is asserted in response to the rising edge of the first clock CLK1 at time t0, count enable 27 synchronized with the second clock CLK2 and count enable 29 synchronized with the third clock CLK3 are asserted in response to the next rising edge delayed by one clock cycle.

[0044] When count enable 31 is asserted, count value 35 of counter 32 is incremented by one for each cycle of the first clock CLK1. Similarly, when count enable 27 is asserted, count value 36 of counter 33 is incremented by one for each cycle of the second clock CLK2. Furthermore, when count enable 29 is asserted, count value 37 of counter 34 is incremented by one for each cycle of the third clock CLK3.

[0045] In this embodiment, an operation example is shown in which the processing delay L1 in the input unit 2 and the processing delay L3 in the output unit 10 are 2 clock cycles, and the processing delay L2 in the relay unit 6 is 4 clock cycles. Furthermore, the FIFO depth D1 of the first transfer processing unit 4 and the FIFO depth D2 of the second transfer processing unit 8 are 4 stages. The specified values ​​V1 to V4 in the comparators 38 to 41 must satisfy the following equations (1) to (4), and based on this, in this embodiment, V1=3, V2=4, V3=8, and V4=10.

[0046] V1 = 1 + L1 (1) V1≦V2≦L1+D1-2 (2) V3 = V2 + L2 (3) V3+1≦V4≦V3+D2-1 (4) As a result, the first input enable signal 16 is asserted when the count value 35 is 3 or greater (V1=3) in the comparator 38, while the first output enable signal 17 is asserted when the count value 35 is 4 or greater (V2=4) in the comparator 39. Similarly, the second input enable signal 18 is asserted when the count value 35 is 8 or greater (V3=8) in the comparator 40, and the second output enable signal 19 is asserted when the count value 37 is 10 or greater (V4=10) in the comparator 41.

[0047] The data values ​​(D1 to D14) of the input data 1 change for each cycle of the first clock CLK1. In the following, the data values ​​of the input data 1 are not particularly processed in the input unit 2, the relay unit 6, and the output unit 10, and are represented by the same symbols as if the data values ​​were input and output as they are. However, in reality, the input unit 2, the relay unit 6, and the output unit 10 may perform any pre-implemented processing on each data value.

[0048] The input unit 2 takes in input data 1 (data value D1) at the rising edge of the first clock CLK1 at time t0, and outputs it as data 3 two cycles of the first clock CLK1. At this timing, the first input enable signal 16 is asserted in response to the count value 35 becoming 3 or greater, and the data 3 (data value D1) is input to the first transfer processing unit 4.

[0049] The first transfer processing unit 4 outputs the data value D1 as data 5 at the rising edge of the second clock CLK2 when the first output enable signal 17 is asserted, and the relay unit 6 receives the data 5 in synchronization with the second clock CLK2.

[0050] The relay unit 6 outputs the data value D1 as data 7 at a timing four cycles after the second clock CLK2. At this timing, the count value 35 increases by 4 to become equal to or greater than 8, and the second input enable signal 18 is asserted, so that the data 7 (data value D1) is input to the second transfer processing unit 8.

[0051] Then, after two cycles of the third clock CLK3 have elapsed, the count value 37 increments by 2 to become equal to or greater than 10, and the second output enable signal 19 is asserted. This causes the second transfer processing unit 8 to output the data value D1 as data 9. At this timing, the output unit 10 receives the data 9 (data value D1) in synchronization with the third clock CLK3, and outputs it as output data 11 two cycles later (the third clock CLK3).

[0052] Thereafter, the data value of input data 1 for each cycle of the first clock CLK1 is reflected sequentially in data 3 (first clock CLK1), data 5 and 7 (second clock CLK2), and data 9 and output data 11 (third clock CLK3) for each cycle of the respective clocks.

[0053] 4, in order to prevent data loss when passing through the first transfer processing unit 4 and the second transfer processing unit 8, V1 to V4 in the comparators 38 to 41 are set so that the first input enable signal 16 is asserted first, then the first output enable signal 17 is asserted, then the second input enable signal 18 is asserted, and finally the second output enable signal 19 is asserted. Furthermore, the specified values ​​V2 and V4 are determined in consideration of preventing writing that exceeds the FIFO depth of the first transfer processing unit 4 and the second transfer processing unit 8, as described above.

[0054] 4, if the data transfer time required from when a data value D1 is input to the input data 1 until the data value D1 is output as the output data 11 is T1, the data transfer time T1 is calculated by adding t1 to 12 cycles when the first clock CLK1 is used as the reference. As described above, t1 is the time difference between the rising edges of the first clock CLK1 and the third clock CLK3. That is, by controlling the timing based on the number of clock cycles, it is possible to prevent a large timing deviation caused by the time difference t1 accumulating over multiple clock cycles from affecting the data transfer time T1.

[0055] FIG. 5 shows a second example of operational waveforms of the data transfer device 100. In FIG.

[0056] In Fig. 5, the phase relationship between the first clock CLK1 to the third clock CLK3 is different from that in Fig. 4. In the example of Fig. 5, the phase relationship between the first clock 12 (CLK1) to the third clock 14 (CLK3) is such that the third clock CLK3 rises first, then the second clock CLK2 rises, and finally the first clock CLK1 rises. As shown in the figure, a phase difference is generated between the fastest third clock CLK3 and the slowest first clock CLK1, with the time difference between the rising edges being t2.

[0057] 5, in response to the rising edge of the first clock CLK1 at time t0, the count enable 31 (FIG. 3) is generated, and when the count enable 31 is asserted, the second clock CLK2 and the third clock CLK3 have already risen (H level) at this timing, so the count enable 27 synchronized with the second clock CLK2 and the count enable 29 synchronized with the third clock CLK3 are asserted with a delay of two clock cycles each. The operation of the data transfer device 100 after the count enables 31, 27, and 28 are asserted is the same as that of FIG.

[0058] 5, if the time required from when the data value D1 is input to the input data 1 until the data value D1 is output as the output data 11 is T2, the data transfer time T2 is calculated by subtracting t2 from 13 cycles when the first clock CLK1 is used as the reference. As described above, t2 is the time difference between the rising edges of the third clock CLK3 and the first clock CLK1. That is, by controlling the timing based on the number of clock cycles, it is possible to prevent a large timing deviation caused by the time difference t2 accumulating over multiple clock cycles from affecting the data transfer time T2.

[0059] Unlike the examples of Figures 4 and 5, even if the rising edge of the second clock CLK2 is the first or last, the data transfer time is determined depending on whether the rising edge of the first clock CLK1 or the third clock CLK3 is earlier after the count enable 31 is asserted.

[0060] In the data transfer device 100, the data transfer time caused by the phase difference between the clocks varies depending on the phase difference between the first clock CLK1, which defines the data input timing to the data transfer device 100, and the third clock CLK3, which defines the data output timing from the data transfer device 100. Therefore, it can be seen that the fluctuation amount ΔT, which corresponds to the maximum fluctuation width of the data transfer time, can be evaluated based on the difference between the data transfer time T1 in FIG. 4 and the data transfer time T2 in FIG. 5.

[0061] That is, in the case where the rising edge of the second clock CLK2 is the first or the last, it is understood that the phase difference between the first clock CLK1 and the third clock CLK3 is smaller than in the cases of Figures 4 and 5. Therefore, the transfer time by the data transfer device 100 is a value between the data transfer time T1 in Figure 4 and the data transfer time T2 in Figure 5.

[0062] The data transfer time T1 (FIG. 4) and the data transfer time T2 (FIG. 5) are expressed by the following formulas (5) and (6) using a natural number n. As described above, in the examples of FIG. 4 and FIG. 5, n=13.

[0063]

number

[0064] As shown in equation (7), in the example of FIGS. 4 and 5, the frequency Fclk1 of the first clock CLK1, the frequency Fclk2 of the second clock CLK2, and the frequency Fclk3 of the third clock CLK3 are the same value (Fclk).

[0065] The range of the time difference t1 between the rising edges of the first clock CLK1 and the third clock CLK3 in FIG. 4 and the time difference t2 between the rising edges of the third clock CLK3 and the first clock CLK1 in FIG. 5 are shown by the following equations (8) and (9).

[0066]

number

[0067] Therefore, the shortest data transfer time from when data value D1 is input as input data 1 to when data value D1 is output as output data 11 is when the first clock CLK1 rises before the third clock CLK3 (FIG. 4) after count enable 31 is asserted, and t1=0. In this case, the minimum value of the data transfer time is given by the following equation (10) with t1=0 in equation (5).

[0068] In contrast, the data transfer time is longest when the third clock CLK3 rises before the first clock CLK1 after the count enable 31 is asserted (FIG. 5) and T2=0. In this case, the maximum value Tmax of the data transfer time is given by the following formula (11) with t2=0 in formula (6).

[0069]

number

[0070] Therefore, the difference between the minimum value Tmin and the maximum value Tmax of the data transfer time, that is, the fluctuation amount ΔT of the data transfer time is expressed by the following formula (12): The fluctuation amount ΔT corresponds to the maximum fluctuation width of the data transfer time.

[0071]

number

[0072] From equation (12), it can be seen that the fluctuation ΔT in the data transfer time is at most one clock period (1 / Fclk), regardless of the phase relationship between the first clock CLK1 and the third clock CLK3.

[0073] In this way, according to the data transfer device 100 of the first embodiment, by controlling the data input / output timing of the first transfer processing unit 4 and the second transfer processing unit 8 based on the number of clock cycles, it is possible to prevent timing deviations due to phase differences between the clocks from accumulating over multiple clock cycles, and to suppress fluctuations in data transfer time due to the phase relationship between the clocks to within one clock cycle.

[0074] Embodiment 2 In the first embodiment, the operation when the frequencies of the three clocks (CLK1 to CLK3) are the same is described, but in the second embodiment, the operation when the clock frequencies are not the same is described. In the second embodiment, the configuration of the data transfer device 100 is also the same as in the first embodiment, and only the three input clocks are different from the first embodiment. In the second embodiment, as an example, an operation example when the frequency of the third clock CLK3 is 1 / 2 the frequency of the first clock CLK1 and the second clock CLK2, that is, Fclk1=Fclk2=2·Fclk3, is described below with reference to Figures 6 and 7.

[0075] Fig. 6 shows a first example of operation waveforms of the data transfer device according to the second embodiment. In Fig. 6, the phase relationship between the first clock CLK1, the second clock CLK2, and the third clock CLK3 is the same as that in Fig. 4. That is, the first clock CLK1 rises first, then the second clock CLK2 rises, and finally the third clock CLK3 rises. In Fig. 6, the time difference between the rising edges of the earliest first clock CLK1 and the latest third clock CLK3 is t3.

[0076] Therefore, the operation waveform example in Fig. 6 corresponds to the third clock CLK3 having a frequency halved (a period doubled) in Fig. 4. Therefore, for the data 9 and the output data 11, two data values ​​are processed for each cycle of the third clock CLK3. Also, the specified value V4 of the comparator 41 that generates the second output enable signal 19 is set to a value (1 / 2) of that in the first embodiment, i.e., V4=5.

[0077] Similarly, Fig. 7 shows a second example of the operation waveform of the data transfer device according to the second embodiment. In Fig. 7, the phase relationship between the first clock CLK1, the second clock CLK2, and the third clock CLK3 is the same as that in Fig. 5. That is, the third clock CLK3 rises first, then the second clock CLK2 rises, and finally the first clock CLK1 rises. In Fig. 7, the time difference between the rising edges of the earliest third clock CLK3 and the latest first clock CLK1 is t4.

[0078] Therefore, the operation waveform example in Fig. 7 corresponds to the frequency of the third clock CLK3 being halved (the period is doubled) in Fig. 5. Also in Fig. 7, for the data 9 and the output data 11, two data values ​​are processed for each cycle of the third clock CLK3, and the specified value V4 of the comparator 41 is set to 5.

[0079] 6, where the first clock CLK1 rises at the same time as the count enable 31 is asserted, is a value obtained by adding t3 to 6 cycles when considered based on the third clock CLK3, which has the lowest frequency. On the other hand, in FIG. 7, where the third clock CLK3 rises just before the count enable 31 is asserted, is a value obtained by subtracting t4 from 7 cycles when considered based on the first clock CLK1.

[0080] That is, the data transfer times T3 and T4 are expressed by the following formulas (13) and (14) using a natural number n (n=7 in the examples of FIGS. 6 and 7). Even in the second embodiment in which the frequencies of the first clock CLK1, the second clock CLK2, and the third clock CLK3 are not uniform, the frequency of the second clock CLK2 does not affect the fluctuation amount ΔT (maximum fluctuation range) of the data transfer time.

[0081]

number

[0082] The ranges of the time difference t3 (FIG. 6) and the time difference t4 (FIG. 7) in the expressions (13) and (14) are expressed by the following expressions (15) and (16) using the frequency Fclk3 of the third clock CLK3.

[0083]

number

[0084] However, there is a relationship between the frequency Fclk1 of the first clock CLK1 and the frequency Fclk3 of the third clock CLK3 as shown in the following formula (17). Therefore, the fluctuation amount ΔT of the data transfer time, which is the difference between the data transfer times T3 and T4, is shown by the following formula (18). That is, when the third clock CLK3 is used as a reference, the fluctuation amount ΔT is within one cycle of the third clock CLK3, but when the first clock CLK1 is used as a reference, it is within two cycles of the first clock CLK1.

[0085]

number

[0086] Therefore, as shown in equation (19) below, when the frequency Fclk1 of the first clock CLK1 is m times (m: natural number) the frequency Fclk3 of the third clock CLK3, when the first clock CLK1 is used as the reference, the fluctuation ΔT (maximum fluctuation range) of the data transfer time is m cycles of the clock period (1 / Fclk1) of the first clock CLK1, as shown in equation (20).

[0087]

number

[0088] Conversely, if the frequency Fclk3 of the third clock CLK3 is m times (m: natural number) the frequency Fclk1 of the first clock CLK1, as in the following equation (21), then when the third clock CLK3 is used as the reference, the fluctuation ΔT (maximum fluctuation range) of the data transfer time is m cycles of the clock period (1 / Fclk3) of the third clock CLK3, as shown in equation (22).

[0089]

number

[0090] To summarize the above, in the data transfer device according to the second embodiment, the fluctuation amount ΔT (maximum fluctuation range) of the data transfer time is expressed by the formulas (23a) to (23c) according to the relationship between the frequencies of the first clock CLK1 and the third clock CLK3. That is, it can be understood that the fluctuation amount ΔT (maximum fluctuation range) of the data transfer time is one clock cycle of the clock with the lowest frequency among the first clock CLK1 and the third clock CLK3.

[0091]

number

[0092] <Other embodiments> Finally, other embodiments of the present disclosure will be described. Each of the other embodiments described below is not limited to being applied alone, and may be applied in combination with the configuration of the other embodiments as long as no contradiction occurs.

[0093] (1) In the above-mentioned first and second embodiments, as shown in Fig. 2, a configuration example in which input from a PLL and input from each device are performed as input clocks to the data transfer device 100 has been described, but the clock input mode is not limited to such an example. That is, clocks from three PLLs may be input to the data transfer device 100, or three clocks may be generated by a PLL arranged in the data transfer device 100 based on an input clock from one PLL outside the data transfer device 100 so as to be synchronized with the clocks of the devices 21 and 25 (Fig. 2). In either case, the above-mentioned input permission signals 16 and 18 and output permission signals 17 and 19 are generated by the three clocks input to the transfer control unit 15.

[0094] (2) In the above first and second embodiments, the transfer control unit 15 generates the input permission signals 16, 18 and the output permission signals 17, 19 using a counter, but the configuration of the transfer control unit 15 is not limited to this. For example, by using a delay element such as a flip-flop instead of a counter, it is possible to equivalently count the number of cycles for each clock and control the generation timing of the above-mentioned input permission signals 16, 18 and output permission signals 17, 19.

[0095] (3) In the above first and second embodiments, configuration examples in which the input unit 2 and the output unit 10 are present have been described, but it is also possible to omit at least one of the input unit 2 and the output unit 10. That is, even in a configuration in which the input unit 2 is not provided and the input data 1 is directly input to the first transfer processing unit 4, or in which the output unit 10 is not provided and the output data 11 is output from the second transfer processing unit 8, it is possible to control the generation timing of the first input enable signal 16 and the first output enable signal 17 of the first transfer processing unit 4 and the second input enable signal 18 and the second output enable signal 19 of the second transfer processing unit 8, as described in the present embodiment.

[0096] (4) Furthermore, in the first and second embodiments, the case where there are three clock domains, that is, the data transfer device 100 that operates using three clocks (CLK1 to CLK3) has been described, but the number of clock domains can be any N (N: an integer N≧3) that is three or more. That is, for two transfer processing units and one relay unit that operate using any three adjacent clocks among the first to Nth clocks (N units), the timing of data transfer can be controlled by the first first input enable signal 16 and the first output enable signal 17 of the first transfer processing unit 4 and the second input enable signal 18 and the second output enable signal 19 of the second transfer processing unit 8 described above.

[0097] That is, by expanding the first and second embodiments to correspond to the first to Nth clocks (N clocks), (N-2) relay units are arranged between two adjacent transfer processing units for the (N-1) transfer processing units arranged in sequence, and an input permission signal and an output permission signal for each transfer control unit can be generated by a transfer control unit that receives N clocks as inputs. However, the fluctuation amount ΔT (maximum fluctuation range) of the data transfer time increases by one cycle for each added clock domain. That is, the fluctuation amount ΔT of the data transfer time is (N-2) cycles of the clock with the lowest frequency between the first clock (the most input side) and the Nth clock (the most output side).

[0098] In the present disclosure, the embodiments, including the other embodiments described above, can be freely combined, and each embodiment can be modified or omitted as appropriate, to the extent that no contradiction occurs.

[0099] The embodiments disclosed herein should be considered to be illustrative and not restrictive in all respects. The scope of the present disclosure is defined by the claims, not the above description, and is intended to include all modifications within the meaning and scope of the claims. [Explanation of symbols]

[0100] 1 input data, 2 input section, 3, 5, 7, 9 data, 4 first transfer processing section, 6 relay section, 8 second transfer processing section, 10 output section, 11 output data, 12, CLK1 first clock, 13, CLK2 second clock, 14, CLK3 third clock, 15 transfer control section, 16 first input enable signal (first transfer processing section), 17 first output enable signal (first transfer processing section), 18 second input enable signal (second transfer processing section), 19 second output enable signal (second transfer processing section), 21, 25 device, 22, 23, 24 clock source, 26, 28 synchronizer, 27, 29, 31 count enable, 30 trigger generator, 32 to 34 counter, 35 to 37 count value, 38 to 41 comparator, 44, 45 clock, 100 data transfer device, D1 to D14 Data value, Fclk1, Fclk2, Fclk3 frequencies, T1~T4 data transfer times, t1~t4 time differences (clock edges).

Claims

1. A data transfer device that operates using a first clock, a second clock, and a third clock, a first transfer processing unit that operates in response to the first clock and the second clock; a second transfer processing unit that operates in response to the second clock and the third clock; a relay unit connected between the first transfer processing unit and the second transfer processing unit; a transfer control unit that receives the first clock, the second clock, and the third clock as inputs and generates an input enable signal and an output enable signal for the first transfer processing unit and the second transfer processing unit, the first transfer processing unit is configured to receive data in synchronization with the first clock when the input enable signal is generated, and to output data in synchronization with the second clock when the output enable signal is generated; the relay unit is configured to process data from the first transfer processing unit in synchronization with the second clock and output the processed data to the second transfer processing unit; the second transfer processing unit is configured to receive data from the relay unit in synchronization with the second clock when the input enable signal is generated, and to output data in synchronization with the third clock when the output enable signal is generated; A data transfer device in which the transfer control unit controls the timing of generating the input enable signal and the output enable signal of each of the first transfer processing unit and the second transfer processing unit based on counting the number of cycles of each of the first clock, the second clock, and the third clock.

2. the transfer control unit generates the input enable signal for the first transfer processing unit based on a cycle number of the first clock, and generates the output enable signal for the first transfer processing unit based on a count value of a cycle number of the second clock; 2. The data transfer device according to claim 1, wherein the input enable signal is generated for the second transfer processing unit based on the number of cycles of the second clock, and the output enable signal is generated for the second transfer processing unit based on a count value of the number of cycles of the third clock.

3. 3. The data transfer device according to claim 1, wherein the transfer control unit generates the output permission signal of the first transfer processing unit later than the input permission signal of the first transfer processing unit, generates the input permission signal of the second transfer processing unit later than the output permission signal of the first transfer processing unit, and generates the output permission signal of the second transfer processing unit later than the input permission signal of the second transfer processing unit.

4. the first transfer processing unit sequentially inputs and holds data in response to the first clock while the input enable signal is being generated, and sequentially outputs the held data from the oldest data in response to the second clock while the output enable signal is being generated; 3. The data transfer device according to claim 1, wherein the second transfer processing unit sequentially inputs and holds data in accordance with the second clock while the input permission signal is generated, and sequentially outputs the held data starting from the oldest data in accordance with the third clock while the output permission signal is generated.

5. the transfer control unit generates the output enable signal of the first transfer processing unit after the input enable signal of the first transfer processing unit; 5. The data transfer device according to claim 4, wherein the number of cycles of the first clock corresponding to the time difference between when the input enable signal is generated in the first transfer processing unit and when the output enable signal is generated is equal to or less than the maximum number of data items that can be held by the first transfer processing unit.

6. the transfer control unit generates the output enable signal of the second transfer processing unit after the input enable signal of the second transfer processing unit; 5. The data transfer device according to claim 4, wherein the number of cycles of the second clock corresponding to the time difference between when the input enable signal is generated in the second transfer processing unit and when the output enable signal is generated is equal to or less than the maximum number of data items that can be held by the second transfer processing unit.

Citation Information

Patent Citations

  • Data transfer device

    JP2004110705A

  • Data transmission circuit, data transmission system, and control method of data transmission circuit

    JP2017207963A

  • Data transfer device and data transfer method

    JP6026001B2

  • Partially acid form carboxymethylcellulose

    JP1985026001A