Data Delay Compensator Circuit
By designing a data delay compensation circuit in semiconductor components and using multiple capture and synchronization flip-flops to return data synchronously in N clock cycles, the problems of loopback delay uncertainty and radio frequency interference are solved, and the problem of loopback delay uncertainty and radio frequency interference is solved, and the system is realized under different delay conditions. Predictable communication and low interference effects.
Patent Information
- Application Number
- CN202111240198.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-12-16
- Filing Date
- 2021-10-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-10-25
AI Technical Summary
In the existing technology, variable loopback delays caused by environmental changes in semiconductor components lead to uncertainty in data capture time, affecting communication quality, and high-speed I/O signals may cause radio frequency interference, making it difficult to achieve predictable communication and low interference at the same time. .
A data delay compensation circuit is designed, which uses the internal clock signal to generate an external clock through the I/O buffer, and returns the data synchronously in N clock cycles through multiple capture and synchronization flip-flops, allowing I of 0 to N clock cycles. /O delay, adapt to different delay conditions, reduce interference and save power.
It enables predictable data capture under varying I/O latency conditions, reduces radio frequency interference, allows high-speed microcontrollers to communicate synchronously with slower external devices, and improves communication quality and power efficiency.
Smart Images

Figure CN114637369B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure describes systems and methods for compensating for variable delays when receiving synchronous data. Background Art
[0002] Semiconductor components, such as microcontrollers (MCUs), often need to communicate with external devices, such as memory or I / O devices for loading execution command codes. Due to environmental changes such as temperature or power supply changes, loop back delay (I / O transmission delay plus reception delay) may experience large changes, which may lead to uncertain data capture time. In addition, the number of devices driven by one I / O buffer may be different in different applications. This leads to large load capacitance changes, which will also lead to large changes in loop back delay.
[0003] Therefore, in order to achieve predictable communication, fast I / O buffers are usually used to send or receive clock and data signals. However, in some embodiments, the semiconductor components may include a radio frequency part. If the radio frequency part of the MCU is required to run at the same time, the high-speed I / O signal may cause interference, which reduces the quality of wireless communication.
[0004] On the other hand, if a slow I / O buffer is implemented, RF interference is reduced, but a large round-trip delay will result.
[0005] Many systems implement a system whereby data to be transmitted and received is synchronized with an internal clock. Figure 1 A typical circuit diagram for this function is shown.
[0006] The flip-flop 10 receives data inside the semiconductor component 1 to be sent out. The flip-flop 10 is clocked using an internal clock signal 11. The internal clock signal 11 can be any frequency, for example up to 100 MHz or higher. The output of the flip-flop 10 communicates with a data output I / O buffer 12, which serves as an interface between the inside and outside of the semiconductor component 1. The output of the data output I / O buffer 12 is called a DATA_OUT signal. The internal clock signal 11 also communicates with a clock I / O buffer 13 to generate an external clock signal. The output of the clock I / O buffer 13 is called a CLOCK signal. The clock I / O buffer 13 is used as a transceiver, in which the external clock signal (CLOCK signal) is also an input to create a return clock signal 14. Since the return clock signal 14 is generated based on the external clock signal (CLOCK), it includes an I / O delay associated with the CLOCK signal. The return data (DATA_IN signal) sent by the external device is substantially aligned with the CLOCK signal received by the external device 50. Typically, the delay associated with other output signals, such as the DATA_OUT signal, is comparable to the delay associated with the external clock signal. The DATA_OUT signal and the CLOCK signal can be used as inputs to the external device 50.
[0007] External data from an external device 50 enters the semiconductor device 1 and passes through the data input I / O buffer 15. The output of the data input I / O buffer 15 is referred to as return data 16. Note that the data may be bidirectional, so that the input-output I / O buffer 12 and the data input I / O buffer 15 may be a single bidirectional buffer.
[0008] The return data 16 is the input of a flip-flop 17 which uses the return clock signal 14 as its clock. The output of the flip-flop 17, called the Q return signal 18, is then used as the input of a flip-flop 19. The flip-flop 19 is clocked using the internal clock signal 11. This flip-flop 19 is used to synchronize the input data with the internal clock 11. The output of this flip-flop 19 is called the Q final signal 20.
[0009] However, this circuit requires small I / O delay. Specifically, Figure 2A Shows the description Figure 1A timing diagram of the operation of the circuit shown in . In this figure, the I / O delay (which is the time difference between the internal clock signal 11 and the return clock signal 14) is small, for example, less than 1 clock cycle. In this timing diagram, it is assumed that the DATA_IN signal (and therefore the return data 16) is aligned with the negative edge of the return clock signal 14. Therefore, regardless of the I / O delay, the Q return signal 18 corresponding to the DATA_IN signal is output by the flip-flop 17 on the subsequent rising edge of the return clock signal 14. This is because the return data 16 is synchronized with the return clock signal 14. Since the I / O delay is less than 1 cycle, the Q final signal 20 is generated by the third rising edge of the internal clock signal 11. Therefore, as Figure 2A As shown in FIG. 1 , there is a two clock cycle delay between the rising edge of the internal clock signal 11 that causes the generation of the DATA_IN signal and the corresponding Q final signal 20 .
[0010] However, Figure 2B As previously described, the Q return signal 18 corresponding to DATA_IN is output from the flip-flop 17 on the subsequent return clock signal 14. However, since the I / O delay is greater than 1 cycle, the Q final signal 20 is generated by the fourth rising edge of the internal clock signal 11. Figure 2B As shown in FIG. 1 , there is a three clock cycle delay between the rising edge of the internal clock signal 11 that causes the generation of the DATA_IN signal and the corresponding Q final signal 20 .
[0011] In other words, the time that the valid Q final signal 20 exists varies depending on the I / O delay. This variability is unacceptable because it will result in incorrect processing further downstream.
[0012] Therefore, it would be advantageous if there were a method and system for synchronously receiving inputs of a semiconductor device that tolerates I / O delays greater than one clock cycle. In addition, it would be advantageous if the I / O delay could be two clock cycles or greater. Summary of the invention
[0013] A circuit for compensating for data delay is disclosed. The circuit utilizes an internal clock signal. The internal clock signal passes through an I / O buffer to become an external clock. Then, the external clock passes through the I / O buffer to create a return clock signal. This difference between the internal clock signal and the return clock signal is defined as I / O delay. In some embodiments, the I / O delay can be more than one clock cycle, which often leads to incorrect operation of synchronous logic. The present circuit allows I / O delays between 0 and N clock cycles, where N is greater than one, by a novel method for capturing and synchronizing return data. This allows high-speed microcontrollers to utilize lower-speed I / O buffers to reduce interference, save power / area budgets, or allow these microcontrollers to interface with slower external devices.
[0014] According to one embodiment, a data delay compensation circuit for use in a semiconductor device is disclosed. The data delay compensation circuit includes: an I / O buffer for providing return data from an external device to the inside of the semiconductor device; a clock I / O buffer circuit for providing an internal clock signal to the outside of the semiconductor device and providing a return clock signal to the inside of the semiconductor device; a return data capture stage, including: a plurality of capture flip-flops, which are clocked using a return clock signal, wherein the plurality is N, wherein each capture flip-flop receives updated return data every N clocks; a return data synchronization stage, including: N synchronization flip-flops, which are clocked using an internal clock signal, wherein each synchronization flip-flop receives updated data from a corresponding capture flip-flop every N clocks; a multiplexer for selecting an output from one of the N synchronization flip-flops; and a final flip-flop, which is clocked using an internal clock signal and receives an output from the multiplexer as an input. In some embodiments, the return data capture stage includes a capture selector circuit to uniquely select one of the N capture flip-flops, wherein the capture selector circuit is clocked by the return clock signal. In some further embodiments, the capture selector circuit includes a counter. In certain further embodiments, the capture selector circuit includes a shift register. In some embodiments, the return data capture stage includes a demultiplexer having an input, a plurality of outputs, and one or more selection signals, wherein the input of the demultiplexer includes a return clock signal, the selection signal includes an output of the capture selector circuit, and each output communicates with a clock input of a corresponding capture flip-flop. In some embodiments, the return data capture stage includes N multiplexers, the output of each multiplexer communicates with an input of a corresponding capture flip-flop, wherein each multiplexer selects between the return data and the output of the corresponding capture flip-flop. In certain embodiments, the return data synchronization stage includes a synchronization selector circuit to uniquely select one of the N synchronization flip-flops, wherein the synchronization selector circuit is clocked by an internal clock signal. In certain further embodiments, the synchronization selector circuit includes a counter. In certain further embodiments, the synchronization selector circuit includes a shift register. In certain embodiments, the return data synchronization stage includes a demultiplexer having an input, a plurality of outputs, and one or more selection signals, wherein the input of the demultiplexer includes an internal clock signal, the selection signal includes an output of the synchronization selector circuit, and each output communicates with a clock input of a corresponding synchronization flip-flop. In certain embodiments, the return data capture stage includes N multiplexers, the output of each multiplexer communicating with the input of a corresponding synchronization flip-flop, wherein each multiplexer selects between an output from a corresponding capture flip-flop and an output of the corresponding synchronization flip-flop.In some embodiments, the time difference between the internal clock signal and the return clock signal is defined as the I / O delay, and if the I / O delay is less than N clock cycles, the time from the first pulse of the internal clock signal to the time at which the output from the final flip-flop is valid is determined. In some embodiments, the semiconductor device operates in a double data rate mode, and wherein the clock I / O buffer circuit includes a clock I / O buffer, a divide-by-2 circuit for dividing the internal clock signal by two before being sent by the clock I / O buffer, and a multiply-by-2 circuit for multiplying the internal output from the clock I / O buffer by two to create the return clock signal.
[0015] According to another embodiment, a data delay compensation circuit for use in a semiconductor device is disclosed. The data delay compensation circuit includes: an I / O buffer for providing return data from an external device to the inside of the semiconductor device; a clock I / O buffer circuit for providing an internal clock signal to the outside of the semiconductor device and providing a return clock signal to the inside of the semiconductor device; a return data capture stage, including: a capture divide-by-2 circuit, which is clocked using the return clock signal to create a switching signal; a first capture flip-flop and a second capture flip-flop, which are clocked using the return clock signal, wherein each capture flip-flop receives updated return data every other clock based on the state of the switching signal; a return data synchronization stage, including: a synchronous divide-by-2 circuit, which uses a first sync flip-flop and a second sync flip-flop that are clocked with the internal clock signal to create an internal clock divided by 2 signal; a first sync flip-flop and a second sync flip-flop that are clocked with the internal clock signal, wherein the first sync flip-flop receives updated data from the first capture flip-flop every other clock based on the state of the internal clock divided by 2 signal, and wherein the second sync flip-flop receives updated data from the second capture flip-flop every other clock; a multiplexer that selects an output from one of the first sync flip-flop and the second sync flip-flop based on the state of the internal clock divided by 2 signal; and a final flip-flop that is clocked with the internal clock signal and receives the output from the multiplexer as an input. In some embodiments, the return data capture stage includes a demultiplexer having an input, a select signal, and two outputs, wherein the input of the demultiplexer is the return clock signal, the select signal is a switching signal, and a first of the two outputs communicates with the clock signal of the first capture flip-flop, and a second of the two outputs communicates with the clock signal of the second capture flip-flop. In some embodiments, the return data synchronization stage includes a demultiplexer having an input, a select signal, and two outputs, wherein the input of the demultiplexer is an internal clock signal, the select signal is an internal clock divided by 2 signal, and a first of the two outputs communicates with a clock signal of a first synchronization flip-flop, and a second of the two outputs communicates with a clock signal of a second synchronization flip-flop. In some embodiments, the return data capture stage includes: a first multiplexer having two inputs, a select signal, and an output, wherein the input of the multiplexer includes return data and an output of a first capture flip-flop, the select signal is a toggle signal, and the output communicates with an input of the first capture flip-flop; and, a second multiplexer having two inputs, a select signal, and an output, wherein the input of the multiplexer includes return data and an output of a second capture flip-flop, the select signal is a toggle signal, and the output communicates with an input of the second capture flip-flop.In some embodiments, the return data synchronization stage includes: a first multiplexer having two inputs, a select signal, and an output, wherein the input of the multiplexer includes the output of the first capture flip-flop and the output of the first synchronization flip-flop, the select signal is the internal clock divided by 2 signal, and the output communicates with the input of the first synchronization flip-flop; and, a second multiplexer having two inputs, a select signal, and an output, wherein the input of the multiplexer includes the output of the second capture flip-flop and the output of the second synchronization flip-flop, the select signal is the internal clock divided by 2 signal, and the output communicates with the input of the second synchronization flip-flop. In some embodiments, the time difference between the internal clock signal and the return clock signal is defined as the I / O delay, and if the I / O delay is less than 2 clock cycles, the time from the first pulse of the internal clock signal to the time at which the output from the final flip-flop is valid is determined. In some embodiments, the return clock is generated based on the internal clock signal, the return data is generated based on the edge of the return clock, and the delay from the assertion of the internal clock signal to the receipt of the valid data at the output of the final flip-flop is 4 clock cycles. In certain embodiments, the semiconductor device operates in a double data rate mode and wherein the clock I / O buffer circuit includes a clock I / O buffer, a divide-by-2 circuit for dividing an internal clock signal by two before being sent by the clock I / O buffer, and a multiply-by-2 circuit for multiplying an internal output from the clock I / O buffer by two to create a return clock signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] For a better understanding of the present disclosure, reference is made to the accompanying drawings, in which like elements are referenced with like numerals and in which:
[0017] Figure 1 A circuit for receiving a synchronization signal according to the prior art;
[0018] Figure 2A-2B is with Figure 1 Timing diagrams for different I / O delays associated with the circuit;
[0019] Figure 3 is a circuit for receiving a synchronization signal according to one embodiment;
[0020] Figures 4A-4B is with Figure 3 Timing diagrams for different I / O delays associated with the circuit;
[0021] Figure 5A-5B A circuit for receiving a synchronization signal according to another embodiment is shown;
[0022] Figure 6A-6B Shown for Figure 3 and 5A- an alternate configuration for use of the circuit shown in 5B; and
[0023] Figure 7 A clock I / O buffer circuit is shown for operating in double data rate mode. DETAILED DESCRIPTION
[0024] Figure 3 A representative circuit that can be used to provide predictable data capture for various I / O delays is shown. This circuit can be provided within a semiconductor device 1 (e.g., a microcontroller). In this disclosure, I / O delay is defined as the difference between an internal or source clock and a received clock. The circuit shown in the figure produces predictable results with an I / O delay that can be as large as two cycles of the source clock.
[0025] The flip-flop 100 receives data to be sent to the outside from the semiconductor device 1. The flip-flop 100 is clocked using an internal clock signal 101. The internal clock signal 101 can be any frequency, for example, up to 100 MHz or higher. The output of the flip-flop 100 communicates with a data output I / O buffer 102, which serves as an interface between the inside and outside of the semiconductor device 1. The output of the data output I / O buffer 102 is referred to as a DATA_OUT signal. The internal clock signal 101 also communicates with a clock I / O buffer 103 to generate an external clock signal. The output of the clock I / O buffer 103 is referred to as a CLOCK signal. The clock I / O buffer 103 serves as a transceiver, wherein the external clock signal (CLOCK) is also an input to create a return clock signal 104. Since the return clock signal 104 is generated based on the external clock signal (CLOCK), it includes an I / O delay associated with the clock signal. Typically, the delay associated with other output signals such as DATA_OUT is comparable to the delay associated with the external clock signal. The DATA_OUT signal and the CLOCK signal may be used as inputs of the external device 2 .
[0026] External data from an external device 2 enters the semiconductor device 1 and passes through the data input I / O buffer 105. The output of the data input I / O buffer 105 is referred to as return data 106. Note that the data may be bidirectional, so that the data output I / O buffer 102 and the data input I / O buffer 105 may be a single bidirectional buffer.
[0027] The return clock signal 104 is used as the input of a divide-by-2 circuit 108. The divide-by-2 circuit 108 can be a flip-flop, wherein the input of the flip-flop is the Qbar output of the flip-flop. Of course, the divide-by-2 circuit 108 can also be implemented in other ways. The output of the divide-by-2 circuit 108 is called a Toggle signal 107.
[0028] Similarly, the internal clock signal 101 is used as the input of the divide-by-2 circuit 110. The divide-by-2 circuit 110 can be a flip-flop, wherein the input of the flip-flop is the Qbar output of the flip-flop. Of course, the divide-by-2 circuit 110 can also be implemented in other ways. The output of the divide-by-2 circuit 110 is called the internal clock divide-by-2 signal 109.
[0029] The phase between the internal clock divided by 2 signal 109 and the switching signal 107 is determined. In one embodiment, the internal clock divided by 2 signal 109 is asserted by a specific rising edge of the internal clock signal 101. The same rising edge of the internal clock signal 101 is used to generate the rising edge of the return clock signal 104. This rising edge of the return clock signal 104 is then used to assert the switching signal 107. In other words, the same rising edge of the internal clock signal 101 is used to directly assert the internal clock divided by 2 signal 109 and indirectly assert the switching signal 107.
[0030] In this embodiment, there are two capture flip-flops 120, 125, which are used to synchronize the input data (i.e., the return data 106) with the return clock signal 104. The two capture flip-flops 120, 125 and the divide-by-two circuit 108 form a first stage, which can be referred to as the return data capture stage 170. Specifically, the switching signal 107 is used to select which of the two capture flip-flops 120, 125 receives new data for each rising edge of the return clock signal 104. The outputs of the two capture flip-flops 120, 125 are referred to as the Qa signal 121 and the Qb signal 126, respectively.
[0031] In one embodiment, the switching signal 107 is used as a select signal to the multiplexer 123, which causes the return clock signal 104 to communicate with exactly one of the clock inputs of the two capture flip-flops 120, 125. In this embodiment, the clock input of each capture flip-flop 120, 125 is asserted at a frequency equal to the switching signal 107 frequency.
[0032] exist Fig. 6AIn another embodiment shown in , the return clock signal 104 is communicated with the clock inputs of two capture flip-flops 120, 125. In this embodiment, the switch signal 107 is used to select which of the two inputs of the multiplexers 124, 128 is communicated with the D input of each of the two capture flip-flops 120, 125. The two inputs can be the output of the corresponding capture flip-flop and the return data 106. In this embodiment, the clock input of each capture flip-flop 120, 125 is asserted at a frequency equal to the return clock signal 104 frequency, but the input data is updated at a frequency equal to the switch signal 107 frequency.
[0033] Thus, the output of the capture flip-flop 120 (i.e., the Qa signal 121) is updated whenever the return clock signal 104 is asserted and the switch signal 107 is asserted. The output of the capture flip-flop 125 (i.e., the Qb signal 126) is updated whenever the return clock signal 104 is asserted and the switch signal 107 is deasserted. Thus, the input data is alternatively captured by the two capture flip-flops 120 and 125.
[0034] Reference again Figure 3 The output of the return data capture stage 170 is used as the input of the return data synchronization stage 180. The return data synchronization stage 180 includes two synchronization flip-flops 130, 135 and a divide-by-two circuit 110.
[0035] Specifically, the internal clock divided by 2 signal 109 is used to select which of the two synchronization flip-flops 130, 135 receives new data for each rising edge of the internal clock signal 101. The outputs of the two synchronization flip-flops 130, 135 are referred to as Qa_sync signal 131 and Qb_sync signal 136, respectively.
[0036] In one embodiment, the internal clock divide-by-2 signal 109 is used as a select signal to the multiplexer 133, which causes the internal clock signal 101 to communicate with exactly one of the clock inputs of the two synchronization flip-flops 130, 135. In this embodiment, the clock input of each synchronization flip-flop 130, 135 is asserted at a frequency equal to the frequency of the internal clock divide-by-2 signal 109.
[0037] In another embodiment, the internal clock signal 101 is communicated with the clock inputs of two synchronization flip-flops 130, 135. Figure 6BIn this embodiment shown in , the internal clock divided by 2 signal 109 is used to select which of the two inputs of the multiplexers 134, 138 communicates with the D input of each of the two synchronization flip-flops 130, 135. The two inputs can be the output of the corresponding flip-flop and the output from the return data capture stage 170. In other words, the output of the multiplexer 134 communicates with the D input of the synchronization flip-flop 130. The inputs of the multiplexer 134 are the Qa_sync signal 131 and the Qa signal 121. Similarly, the output of the multiplexer 138 communicates with the D input of the synchronization flip-flop 135. The inputs of the multiplexer 138 are the Qb_sync signal 136 and the Qb signal 126. In this embodiment, the clock input of each synchronization flip-flop 130, 135 is asserted at a frequency equal to the frequency of the internal clock signal 101, but the input data is updated at a frequency equal to the frequency of the internal clock divided by 2 signal 109.
[0038] Thus, the output of the synchronization flip-flop 130 (i.e., the Qa_sync signal 131) is updated whenever the internal clock signal 101 is asserted while the internal clock divided by 2 signal 109 is asserted. The output of the synchronization flip-flop 135 (i.e., the Qb_sync signal 136) is updated whenever the internal clock signal 101 is asserted while the internal clock divided by 2 signal 109 is deasserted. Thus, the data from the return data capture stage 170 is captured alternately by the two synchronization flip-flops 130, 135.
[0039] Reference again Figure 3 , the Qa_sync signal 131 and the Qb_sync signal 136 are then used as inputs to a multiplexer 140. The output of the multiplexer 140 (referred to as the Q_Combo signal 141) is selected by the internal clock divided by 2 signal 109.
[0040] The Q_Combo signal 141 is used as an input to the final data capture stage, which includes a final flip-flop 150. The internal clock signal 101 is used as a clock input to the final flip-flop 150, while the Q_Combo signal 141 is used as an input. The output of the final data capture stage is referred to as the Q_Mux signal 151.
[0041] This Q_Mux signal 151 may then be an input to other circuits provided within the semiconductor device 1. The Q_Mux signal 151 may be used as part of a synchronization logic, wherein the synchronization logic introduces a deterministic delay of the data delay compensation circuit.
[0042] Therefore, in one embodiment, the circuit for synchronizing received data includes three stages: a return data capture stage 170, a return data synchronization stage 180, and a final capture stage. In addition, unlike conventional circuits, each of the first two stages includes multiple flip-flops. The return data capture stage 170 is clocked using the return clock signal 104, while the return data synchronization stage 180 is clocked using the internal clock signal 101.
[0043] Figures 4A-4B Shown with Figure 3 The circuits are associated with timing diagrams, each assuming different I / O delays.
[0044] exist Figure 4A In , I / O latency is assumed to be small, such as less than one clock cycle, or less than half a clock cycle.
[0045] As described above, the internal clock signal 101 passes through the clock I / O buffer 103, and then the external clock is transmitted back to the semiconductor device 1 to create the return clock signal 104. As described above, in this example, the delay between the internal clock signal 101 and the return clock signal 104 is small. In addition, the return data 106 is generated based on the falling edge of the return clock signal 104, so that the return data 106 is synchronized with respect to the return clock signal 104.
[0046] In addition, a divide-by-2 circuit 110 is used to create an internal clock divide-by-2 signal 109. A divide-by-2 circuit 108 is used to create a switching signal 107. As described above, the same edge of the internal clock signal 101 that causes the internal clock divide-by-2 signal 109 to be asserted also indirectly causes the switching signal 107 to be asserted. Since the same edge of the internal clock signal 101 causes both signals to be asserted, the two signals (internal clock divide-by-2 signal 109 and switching signal 107) are said to be in phase.
[0047] The switching signal 107 is used to determine which of the capture flip-flops 120, 125 receives the updated data during each clock of the return clock signal 104. In this embodiment, when the switching signal 107 is asserted, the capture flip-flop 120 receives the updated return data 106, and when the switching signal 107 is de-asserted, the capture flip-flop 125 receives the updated return data 106. Thus, in this example, the Qa signal 121 is updated on the second, fourth, sixth, etc. pulses of the return clock signal 104. The Qb signal 126 is updated on the third, fifth, seventh, etc. pulses of the return clock signal 104.
[0048] Similarly, when the internal clock divide-by-2 signal 109 is asserted, the synchronization flip-flop 130 receives the updated Qa signal 121. Thus, in this example, the Qa_sync signal 131 is updated on the fourth, sixth, eighth, etc. pulses of the internal clock divide-by-2 signal 104. The Qb_sync signal 136 is updated on the fifth, seventh, ninth, etc. pulses of the internal clock divide-by-2 signal 109.
[0049] In other words, in this embodiment, the internal clock signal 101 and the return clock signal 104 are divided into a repeating sequence of two clock pulses. The flip-flops 120, 130 use even-numbered pulses, while the flip-flops 125, 135 use odd-numbered pulses.
[0050] The Qa_sync signal 131 and the Qb_sync signal 136 are provided as inputs to a multiplexer 140, which selects one of these signals based on the state of the internal clock divide-by-2 signal 109. Thus, when the internal clock divide-by-2 signal 109 is deasserted, the Qa_sync signal 131 is passed by the multiplexer 140. When the internal clock divide-by-2 signal 109 is asserted, the Qb_sync signal 136 is passed by the multiplexer 140.
[0051] Finally, Q_Combo signal 141 is clocked by each pulse of internal clock signal 101. Note that the delay from the first pulse of internal clock signal 101 (which indirectly results in first return data 106) to the pulse at which first return data 106 appears at Q_Mux signal 151 is 4 clock cycles.
[0052] Figure 4B A similar timing diagram is shown. However, in this example, the I / O latency is close to 2 clock cycles.
[0053] The relationship between the return clock signal 104, the return data 106, the switching signal 107, the Qa signal 121 and the Qb signal 126 is the same as described above. However, since the I / O delay is much greater than Figure 4A Due to the I / O delay shown in , Qa signal 121 and Qb signal 126 appear much later.
[0054] As described above, when the internal clock divided by 2 signal 109 is asserted, the synchronization flip-flop 130 is updated. Therefore, at the fourth pulse of the internal clock signal 101, the Qa_sync signal 131 is updated with the first return data 106. At the fifth pulse of the internal clock signal 101, the Qb_sync signal 136 is updated with the second return data 106. The Qa_sync signal 131 and the Qb_sync signal 136 are provided as inputs to the multiplexer 140, which selects one of these signals based on the state of the internal clock divided by 2 signal 109. Therefore, when the internal clock divided by 2 signal 109 is deasserted, the Qa_sync signal 131 is transmitted by the multiplexer 140. When the internal clock divided by 2 signal 109 is asserted, the Qb_sync signal 136 is transmitted by the multiplexer 140.
[0055] Finally, Q_Combo signal 141 is clocked by each pulse of internal clock signal 101. Note that the delay from the first pulse of internal clock signal 101 (which indirectly results in first return data 106) to the pulse at which first return data 106 appears at Q_Mux signal 151 is 4 clock cycles.
[0056] In other words, the output of the final flip-flop 150 always lags by exactly 4 clock pulses behind the internal clock signal 101 resulting in the return data 106. This is true for I / O delays ranging from nearly zero to nearly two clock cycles.
[0057] Notice, Figure 3 The circuit shown in divides the internal clock signal 101 into a repeating sequence of clock pulses, wherein one of the flip-flops in the return data synchronization stage 180 always receives data associated with the same clock edge in the sequence. Figure 3 In the embodiment, the internal clock signal 101 is divided into a repeating sequence of two clock pulses, wherein the synchronization flip-flop 130 receives updated data every even-numbered clock pulse, and the synchronization flip-flop 135 receives updated data every odd-numbered clock pulse.
[0058] Likewise, the return clock signal 104 is divided into a repeating sequence, wherein one of the capture flip-flops in the return data capture stage 170 always receives data associated with the same clock edge in the sequence. Figure 3 In FIG. 1 , the return clock signal 104 is divided into a repeating sequence of two clock pulses, wherein the capture flip-flop 120 receives updated data every even-numbered clock pulse, and the capture flip-flop 125 receives updated data every odd-numbered clock pulse.
[0059] However, the present disclosure is not limited to Figure 3For example, if the internal clock signal 101 and the return clock signal 104 are divided into a repeating sequence of more than two clock pulses, the maximum allowable I / O delay can be increased.
[0060] For example, if the return data capture stage and the return data synchronization stage each include N flip-flops, the maximum allowable I / O delay can be increased to N clock cycles, where N is greater than 1. Figure 5A-5B Shown in.
[0061] In other words, Figure 5A As shown in , the return data capture stage 270 includes N capture flip-flops 220-1 to 220-N instead of the two capture flip-flops 120, 125 in the return data capture stage. In addition, Figure 3 The divide-by-2 circuit 108 is replaced with a selector that provides an indication of which of the N pulses in the repeating sequence is currently being captured. For example, the divide-by-2 circuit 108 can be replaced with a capture selector circuit 208. The capture selector circuit 208 can be a counter that repeatedly counts from 0 to N-1. As an alternative, an N-bit shift register can be used, in which exactly one bit is asserted each time. Of course, the capture selector circuit 208 can be implemented in other ways. The output of the capture selector circuit 208 is one or more signals that uniquely identify the capture flip-flops 220-1 to 220-N that are updated during the next clock.
[0062] The output of the capture selector circuit 208 can then be used with the demultiplexer 223 to route the return clock signal 104 to only one of the capture flip-flops 220-1 through 220-N in the return data capture stage 270. Alternatively, the input to each of the capture flip-flops 220-1 through 220-N can be the output of a multiplexer that selects the return data 106 or the current output of the corresponding capture flip-flop based on the value from the capture selector circuit 208. This configuration is similar to Fig. 6A , where there are additional capture flip-flops and the multiplexer may have additional inputs. All inputs to the multiplexer, except one, are connected to the output of the corresponding capture flip-flop. Thus, the capture selector circuit 208 allows the multiplexer to select between the return data 106 and the current output of the corresponding capture flip-flop. The outputs 221-1 to 221-N of the return data capture stage 270 are provided as inputs to the return data synchronization stage 280.
[0063] Likewise, if Figure 5BAs shown in , the return data synchronization stage 280 includes N synchronization flip-flops 230-1 to 230-N. In addition, the division by 2 circuit 110 can be replaced by a synchronization selector circuit that provides an indication of which of the N pulses in the repetitive sequence is currently being synchronized. For example, the division by 2 circuit 110 can be replaced by a synchronization selector circuit 210 that repeats counting from 0 to N-1. As an alternative, an N-bit shift register can be used, wherein each assertion is exactly one bit. Of course, the synchronization selector circuit 210 can be implemented in other ways. The output of the synchronization selector circuit 210 uniquely identifies one or more signals of the synchronization flip-flops 230-1 to 230-N that are updated during the next clock.
[0064] The output of the sync selector circuit 210 can be used with the demultiplexer 233 to select only one of the N sync flip-flops 230-1 to 230-N in the return data sync stage 280. Alternatively, similar to Figure 6B In the configuration shown in , the input of each of the synchronization flip-flops 230-1 to 230-N can be the output of a multiplexer that selects between the output of the corresponding synchronization flip-flop in the return data synchronization stage 280 or the current output of the corresponding capture flip-flop based on the value from the synchronization selector circuit 210.
[0065] Multiplexer 240 receives a signal from sync selector circuit 210 to select one of sync outputs 231-1 to 231-N from sync flip-flops 230-1 to 230-N. The output from multiplexer 240 serves as an input to final flip-flop 250. The output of final flip-flop 250 is Qmux 51.
[0066] In this way, the delay from the initial internal clock signal 101 to the first valid return data can be made arbitrarily long (ie, an N+2 clock cycle delay), but the delay is always predictable as long as the I / O latency is less than N clock cycles.
[0067] Other embodiments are also possible. For example, the present system can also be used in double data rate (DDR) mode. In this mode, the internal clock signal 101 is divided by two before the clock I / O buffer 103. This results in the external CLOCK signal being half the frequency of the internal clock signal 101. As described above, the external device 2 receives data from the data output I / O buffer 102 and sends the data to the semiconductor device 1 via the data input I / O buffer 105. The external device 2 receives and sends data on the rising and falling edges of the CLOCK signal. The internal signal received from the clock I / O buffer 103 will also be half the frequency of the internal clock signal 101. Therefore, the frequency multiplier receives the internal output from the clock I / O buffer 103 to generate the return clock signal 104 ( Figure 3), so that the return clock signal 104 is the same frequency as the internal clock signal 101. The rest of the circuit is as described above.
[0068] Therefore, in this embodiment, Figure 7 The clock I / O buffer circuit shown in FIG. 1 includes a clock I / O buffer 103 and also includes a divide-by-2 circuit 400 to divide the internal clock signal 101 by two before being sent outside the semiconductor device 1. The clock I / O buffer circuit also includes a multiply-by-2 circuit 410 to multiply the internal output from the clock I / O buffer 103 by two to create a return clock signal 104.
[0069] In contrast, in the above Figure 3 and 5A In the embodiment shown in FIG. 5B , the clock I / O buffer circuit includes the clock I / O buffer 103 but does not include a division or multiplication circuit.
[0070] The present system and method have many advantages. First, the system allows the possibility of utilizing slow I / O interfaces in high-speed communication systems. This creates much less interference to other sensitive modules such as radio frequency circuits. In this way, circuit designers can optimize for radio frequency communication without adversely affecting other operations of the semiconductor device 1. In addition, the system allows slower external devices to be used with high-speed interfaces while maintaining synchronous communication. Figure 3 and Figure 5A-5B As shown in , the use of multiple flip-flops in the return data capture stage and the return data synchronization stage allows longer I / O latency while maintaining predictable operation.
[0071] The present disclosure is not limited in scope by the specific embodiments described herein. In fact, in addition to those embodiments described herein, various other embodiments and modifications of the present disclosure will be apparent to those of ordinary skill in the art based on the foregoing description and accompanying drawings. Therefore, these other embodiments and modifications are intended to fall within the scope of the present disclosure. In addition, although the present disclosure is described herein for specific purposes in the context of a specific embodiment in a specific environment, it will be appreciated by those of ordinary skill in the art that its usefulness is not limited thereto, and the present disclosure can be beneficially implemented in any number of environments for any number of purposes. Therefore, the claims set forth below should be interpreted in view of the full breadth and spirit of the present disclosure as described herein.
Claims
1. A data delay compensation circuit for use in a semiconductor device, comprising: An I / O buffer, used for providing return data from an external device to the interior of the semiconductor device; a clock I / O buffer circuit for providing an internal clock signal to the outside of the semiconductor device and providing a return clock signal to the inside of the semiconductor device; Returns the data capture level, including: a plurality of capture flip-flops clocked using the return clock signal, wherein the plurality is N, wherein each capture flip-flop receives updated return data every N clocks; Returns the data synchronization level, including: N synchronous flip-flops, clocked using the internal clock signal, wherein each synchronous flip-flop receives updated data from a corresponding capture flip-flop every N clocks; a multiplexer for selecting an output from one of the N synchronous flip-flops; and A final flip-flop is clocked using the internal clock signal and receives as input the output from the multiplexer, wherein the time difference between the internal clock signal and the return clock signal is defined as I / O delay, and wherein the time from a first pulse of the internal clock signal to the moment at which the output from the final flip-flop is valid is determined if the I / O delay is less than N clock cycles, where N is greater than one.
2. The data delay compensation circuit according to claim 1, wherein: The return data capture stage includes a capture selector circuit to uniquely select one of the N capture flip-flops, wherein the capture selector circuit is clocked by the return clock signal.
3. The data delay compensation circuit according to claim 2, wherein: The capture selector circuit includes a counter.
4. The data delay compensation circuit according to claim 2, wherein: The capture selector circuit includes a shift register.
5. The data delay compensation circuit according to claim 2, wherein: The return data capture stage includes a demultiplexer having an input, a plurality of outputs, and one or more select signals, wherein the input of the demultiplexer includes the return clock signal, the select signals include the outputs of the capture selector circuit, and each output is in communication with a clock input of a corresponding capture flip-flop.
6. The data delay compensation circuit as claimed in claim 2, wherein: The return data capture stage includes N multiplexers, the output of each multiplexer communicating with the input of a corresponding capture flip-flop, wherein each of the N multiplexers selects between the return data and the output of the corresponding capture flip-flop.
7. The data delay compensation circuit according to claim 1, wherein: The return data synchronization stage includes a synchronization selector circuit to uniquely select one of the N synchronization flip-flops, wherein the synchronization selector circuit is clocked by the internal clock signal.
8. The data delay compensation circuit according to claim 7, wherein: The synchronous selector circuit includes a counter or a shift register.
9. The data delay compensation circuit according to claim 7, wherein: The return data synchronization stage includes a demultiplexer having an input, a plurality of outputs, and one or more select signals, wherein the input of the demultiplexer includes the internal clock signal, the select signals include the outputs of the synchronization selector circuit, and each output communicates with a clock input of a corresponding synchronization flip-flop.
10. The data delay compensation circuit according to claim 7, wherein: The return data capture stage includes N multiplexers, the output of each multiplexer communicating with the input of a corresponding synchronization flip-flop, wherein each of the N multiplexers selects between an output from the corresponding capture flip-flop and an output of the corresponding synchronization flip-flop.
11. The data delay compensation circuit according to claim 1, wherein: The semiconductor device operates in a double data rate mode, and wherein the clock I / O buffer circuit includes a clock I / O buffer, a divide-by-2 circuit for dividing the internal clock signal by two before being sent by the clock I / O buffer, and a multiply-by-2 circuit for multiplying the internal output from the clock I / O buffer by two to create the return clock signal.
12. A data delay compensation circuit for use in a semiconductor device, comprising: An I / O buffer, used for providing return data from an external device to the interior of the semiconductor device; a clock I / O buffer circuit for providing an internal clock signal to the outside of the semiconductor device and providing a return clock signal to the inside of the semiconductor device; Returns the data capture level, including: capturing a divide-by-2 circuit, clocked using the return clock signal to create a switching signal; a first capture flip-flop and a second capture flip-flop clocked using the return clock signal, wherein each capture flip-flop receives updated return data every other clock based on a state of the switch signal; Returns the data synchronization level, including: a synchronous divide-by-2 circuit clocked using the internal clock signal to create an internal clock divide-by-2 signal; a first synchronization flip-flop and a second synchronization flip-flop clocked using the internal clock signal, wherein the first synchronization flip-flop receives updated data from the first capture flip-flop every other clock based on a state of the internal clock divided by 2 signal, and wherein the second synchronization flip-flop receives updated data from the second capture flip-flop every other clock; a multiplexer for selecting an output from one of the first synchronization flip-flop and the second synchronization flip-flop based on a state of the internal clock divided by 2 signal; and A final flip-flop is clocked using the internal clock signal and receives as input the output from the multiplexer, wherein the time difference between the internal clock signal and the return clock signal is defined as I / O delay, and wherein, if the I / O delay is less than 2 clock cycles, the time from the first pulse of the internal clock signal to the moment when the output from the final flip-flop is valid is determined.
13. The data delay compensation circuit according to claim 12, wherein: The return data capture stage includes a demultiplexer having an input, a select signal, and two outputs, wherein the input of the demultiplexer is the return clock signal, the select signal is the switching signal, and a first of the two outputs communicates with the clock signal of the first capture flip-flop, and a second of the two outputs communicates with the clock signal of the second capture flip-flop.
14. The data delay compensation circuit according to claim 12, wherein: The return data synchronization stage includes a demultiplexer having an input, a select signal, and two outputs, wherein the input of the demultiplexer is the internal clock signal, the select signal is the internal clock divided by 2 signal, and a first of the two outputs communicates with the clock signal of the first synchronization flip-flop, and a second of the two outputs communicates with the clock signal of the second synchronization flip-flop.
15. The data delay compensation circuit according to claim 12, wherein: The return data capture stage includes: a first multiplexer, the first multiplexer having two inputs, a selection signal and an output, wherein the two inputs of the first multiplexer include the return data and the output of the first capture trigger, the selection signal is the switching signal, and the output communicates with the input of the first capture trigger; and a second multiplexer, having two inputs, a selection signal and an output, wherein the two inputs of the second multiplexer include the return data and the output of the second capture trigger, the selection signal is the switching signal, and the output communicates with the input of the second capture trigger.
16. The data delay compensation circuit according to claim 12, wherein: The return data synchronization stage includes: a first multiplexer, the first multiplexer having two inputs, a selection signal and an output, wherein the two inputs of the first multiplexer include the output of the first capture trigger and the output of the first synchronization trigger, the selection signal is the internal clock divided by 2 signal, and the output communicates with the input of the first synchronization trigger; and a second multiplexer, the second multiplexer having two inputs, a selection signal and an output, wherein the two inputs of the second multiplexer include the output of the second capture trigger and the output of the second synchronization trigger, the selection signal is the internal clock divided by 2 signal, and the output communicates with the input of the second synchronization trigger.
17. The data delay compensation circuit according to claim 12, wherein: The return clock signal is generated based on the internal clock signal, the return data is generated based on an edge of the return clock signal, and the delay from assertion of the internal clock signal to receipt of valid data at the output of the final flip-flop is 4 clock cycles.
18. The data delay compensation circuit according to claim 12, wherein: The semiconductor device operates in a double data rate mode, and wherein the clock I / O buffer circuit includes a clock I / O buffer, a divide-by-2 circuit for dividing the internal clock signal by two before being sent by the clock I / O buffer, and a multiply-by-2 circuit for multiplying the internal output from the clock I / O buffer by two to create the return clock signal.
