A high-speed serial data sampling circuit and method
By designing a high-speed serial data sampling circuit, using the same latch measurement circuit and clock generator, and selecting the best clock position for signal sampling, the problem of signal sampling clock instability and poor sampling position is solved, and the high-speed The bit error rate in communication improves the reliability of signal sampling.
Patent Information
- Application Number
- CN202311828126.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-12-28
AI Technical Summary
In the existing technology, unstable signal sampling clocks and poor sampling positions during high-speed communication lead to high bit error rates, which limit the communication rate and the accuracy and reliability of signal sampling.
A high-speed serial data sampling circuit is designed, including a measurement circuit, clock generator, quantization circuit, cache and controller. By measuring the 1-bit cycle width of the input signal, the best clock position is selected for signal sampling, and after the sampling is completed Generate interrupt signals to ensure the accuracy and reliability of sampling results.
By using the same latch measurement circuit and clock generator, the problem of unstable clock at the receiving end is solved, the bit error rate during high-speed communication is reduced, and the reliability of signal sampling is improved.
Smart Images

Figure CN117785014B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital communication technology, and in particular to a high-speed serial data sampling circuit and method. Background Art
[0002] In modern communication technology, the recovery of high-speed data often requires a high-speed clock to sample it, and the optimal sampling point is often not obtained during communication. The recovery circuit is complex, thus limiting the communication rate.
[0003] One unit time interval UI (Unit Interval) is the period of 1 bit of data (or called bit rate).
[0004] In the prior art, there are two common serial communication modes: synchronous serial and asynchronous serial.
[0005] There are some problems in the existing technology that limit the accuracy and reliability of signal sampling, the main problems include:
[0006] 1. Sampling clock frequency: The receiving end clock is unstable, which will increase the bit error rate during high-speed communication.
[0007] 2. Sampling location: Poor sampling location leads to inaccurate and unreliable signal sampling, thus limiting the communication rate. Summary of the invention
[0008] In order to overcome the deficiencies in the background technology, the present invention discloses a high-speed serial data sampling circuit and method.
[0009] In order to achieve the above-mentioned invention object, the present invention adopts the following technical scheme:
[0010] In a first aspect, a high-speed serial data sampling circuit includes a measurement circuit, a clock generator, a quantization circuit, a cache and a controller:
[0011] The measuring circuit is composed of a chain of n first latches latch1, and is used to receive an input signal and output a 1-bit cycle width of the input signal;
[0012] A clock generator, composed of n groups of latch combinations, for generating 0 to n level clocks, wherein the latch combination of the clock generator is composed of a second latch latch2 and a third latch latch3;
[0013] A quantization circuit, comprising a sampling circuit, wherein the sampling circuit is used to sample the input signal according to the latch result of the measurement circuit and the clock generated by the clock generator, and output the sampling result;
[0014] A cache, connected to the quantization circuit, for storing the sampling results output by the quantization circuit;
[0015] A controller, connected to the measurement circuit, the clock generator, the quantization circuit and the cache respectively;
[0016] The controller is used to receive the 1-bit cycle width of the input signal output by the measurement circuit, and control the clock generator to generate a clock signal in a cycle half of the 1-bit cycle width, and send the generated clock signal to the quantization circuit, and then control the quantization circuit to complete the sampling of the signal, and generate an interrupt signal after the sampling is completed.
[0017] Specifically, the second latch latch2 and the third latch latch3 have the same propagation delay as the first latch latch1.
[0018] Specifically, the clocks of the second latch latch2 and the third latch latch3 in the latch combination are inverted.
[0019] Specifically, the clock generator is a traveling wave generator link.
[0020] Specifically, the input signal received by the measurement circuit is a high pulse signal with a period.
[0021] Specifically, the cache is an asynchronous cache.
[0022] In a second aspect, a high-speed serial data sampling method, the high-speed serial data sampling circuit mentioned above, comprises the following steps:
[0023] S0, system reset, clearing the clock generator and the measurement circuit to 0;
[0024] S1, send input signal;
[0025] S2, the measuring circuit measures the input signal and obtains a 1-bit period width T of the input signal;
[0026] S3, the controller selects the best clock position according to the cycle width T, controls the quantization circuit to perform signal sampling at the clock corresponding to the best clock position, and judges the signal sampling result to obtain the final sampling result;
[0027] S4, saving the final sampling result into a cache;
[0028] S5, the controller generates an interrupt signal to prompt the host to read the result in the cache. Specifically, the optimal clock position in step S3 is T / 2.
[0029] Specifically, the clocks corresponding to the optimal clock position in step S3 include level t, level t-1 and level t+1.
[0030] The present invention discloses a high-speed serial data sampling circuit, in which a measuring circuit and a clock generator use the same latch, so that the input signal has the same delay in the measuring circuit and the clock generator, and there is no need to quantify the latch delay or calculate the specific position of the clock, thereby solving the problem of unstable clock at the receiving end and reducing the bit error rate of the signal during high-speed communication.
[0031] The present invention selects the optimal sampling point corresponding clock and its preceding and following clocks to sample the signal according to the cycle width of the input signal, thereby improving the reliability of sampling. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 is a schematic diagram of a high-speed serial data sampling circuit structure provided according to an embodiment of the present invention;
[0034] Figure 2 It is a schematic diagram of a high-speed serial data sampling circuit measurement circuit structure provided by an embodiment of the present invention;
[0035] Figure 3 1 is a schematic structural diagram of a high-speed serial data sampling circuit clock generator provided according to an embodiment of the present invention;
[0036] Figure 4 1 is a waveform diagram of a clock generator of a high-speed serial data sampling circuit provided by an embodiment of the present invention;
[0037] Figure 5 1. It is a schematic diagram of a high-speed serial data sampling circuit quantization circuit structure provided by an embodiment of the present invention;
[0038] Figure 6 The present invention is a flowchart of a high-speed serial data sampling circuit measurement method provided in accordance with an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The present invention can be explained in detail through the following embodiments. The purpose of disclosing the present invention is to protect all technical improvements within the scope of the present invention. In the description of the present invention, it should be understood that if there are terms such as "upper", "lower", "front", "back", "left", "right", etc. indicating directions or positional relationships, they only correspond to the drawings of the present application for the convenience of describing the present invention, and do not indicate or imply that the device or element referred to must have a specific direction.
[0040] Embodiment 1
[0041] refer to Figure 1 According to this embodiment, a high-speed serial data sampling circuit is provided, including a measurement circuit, a clock generator, a quantization circuit, a cache and a controller:
[0042] The measuring circuit is composed of a chain of n first latches latch1, and is used to receive an input signal and output a 1-bit period width of the input signal; specifically, the input signal received by the measuring circuit is a high pulse signal of one period.
[0043] refer to Figure 2 The measurement circuit is a chain composed of n first latches latch1, which can receive an input signal, input a high pulse of one cycle of the input signal into the chain composed of the first latches latch1, and read out the latch result SignalWidth[n:0], where SignalWidth[a:0] represents the length of one cycle.
[0044] When the input signal is high, the latch is in a transparent state and the signal is transmitted in the latch1 chain. When the signal becomes low, the latch latch1 is in a closed state, latching the signal, and the high level is propagated to latch1[a]. The length of the latch that latches the signal is a cycle length SignalWidth[a:0].
[0045] When the input signal is high, the latch is in a transparent state and the signal is transmitted in the latch1 chain. When the signal becomes low, latch1 is in a closed state, latching the signal, and the high level is propagated to latch[a], that is, SignalWidth[a:0] is the width corresponding to the high level T.
[0046] A clock generator, composed of n groups of latch combinations, for generating 0 to n level clocks, wherein the latch combination is composed of a second latch latch2 and a third latch latch3;
[0047] Specifically, the second latch latch2 and the third latch latch3 have the same propagation delay as the first latch latch1.
[0048] Specifically, the clocks of the second latch latch2 and the third latch latch3 in the latch combination are inverted.
[0049] Specifically, the clock generator is a traveling wave generator link.
[0050] refer to Figure 3 The clock generator is composed of a trigger combination consisting of a second latch latch2 and a third latch latch3 having the same propagation delay as the first latch latch1 in the measurement circuit, wherein the clocks of latch2 and latch3 are inverted; the second latch latch2, the third latch latch3 and the inverter form a divide-by-two unit, and n divide-by-two units are cascaded into a link, which forms a traveling wave generator link.
[0051] like Figure 4 As shown, after the clock generator receives the reset signal and completes the reset, the clock completes n flips and can generate 0 to n level clock edges.
[0052] Every time the clock flips, the trigger combination flips once. Because there are n-level combinations, it needs to flip n times before all the trigger combinations can flip, so that the completed n-level clock edge can be obtained.
[0053] The measurement circuit and the clock generator circuit use latches with the same propagation delay. Since the signal delay is the same in the two chains, this circuit does not need to quantify the delay of the first latch latch1 and does not need to calculate the specific position of the clock.
[0054] When it is measured that the number of first latches latch1 occupied by a signal T is a, we select the first latch latch1 time position at position a / 2 for optimal sampling, that is, the clock at the output position of a / 2 second latch latch2. Because the delay of the first latch latch1 and the second latch latch2 is the same, we do not need to know the specific delay of each level to determine the sampling point and obtain the sampling clock signal.
[0055] A quantization circuit, comprising a sampling circuit, wherein the sampling circuit is used to sample the input signal according to the latch result of the measurement circuit and the clock generated by the clock generator, and output the sampling result;
[0056] refer to Figure 5 ,The controller selects the t-level, t-1-level, and t+1-level clocks according to the measured results, controls the sampling circuit in the quantization circuit to complete the signal sampling, and outputs the results to the cache.
[0057] If a signal pulse of one cycle is measured in the measurement circuit, it is 1 first latch latch1, then the level is 1, and similarly, the second latch latch2 of the clock propagating in the clock generator is also 1. Since the measurement circuit measures a 1-bit period high pulse, the signal is transmitted according to a 50% duty cycle, and the optimal sampling point is T / 2, which is set to t level.
[0058] Similarly, the controller selects the best T / 2 clock position t-level clock and triggers the sampling circuit to complete signal sampling.
[0059] To prevent signal glitches, multiple sampling can be performed to improve accuracy.
[0060] Furthermore, in order to improve sampling reliability, t-1, t and t+1 level clocks are selected for sampling, and the results are compared and output to the cache.
[0061] The result comparison process in this embodiment is to obtain the signal values at the corresponding time points by sampling at the t-1, t and t+1 clock positions, compare the three signal values, select 2 or more identical values as the sampling results, and output them to the cache.
[0062] A cache, connected to the quantization circuit, for storing the sampling results output by the quantization circuit;
[0063] Specifically, the cache is an asynchronous cache.
[0064] Because the host computer may be out of sync with the circuit of this embodiment, the cache in this embodiment preferably uses asynchronous cache.
[0065] A controller, connected to the measurement circuit, the clock generator, the quantization circuit and the cache respectively;
[0066] The controller is used to receive the 1-bit cycle width of the input signal output by the measurement circuit, and control the clock generator to generate a clock signal in a cycle half of the 1-bit cycle width, and send the generated clock signal to the quantization circuit, and then control the quantization circuit to complete the sampling of the signal, and generate an interrupt signal after the sampling is completed.
[0067] When the first result is stored in the cache, the controller generates an interrupt to prompt the host to read the result.
[0068] The present embodiment discloses a high-speed serial data sampling circuit, in which the measurement circuit and the clock generator use the same latch, so that the input signal has the same delay in the measurement circuit and the clock generator. There is no need to quantify the latch delay or calculate the specific position of the clock, which solves the problem of unstable clock at the receiving end and reduces the bit error rate of the signal during high-speed communication.
[0069] Embodiment 2
[0070] refer to Figure 6 This embodiment provides a high-speed serial data sampling method, which uses a high-speed serial data sampling circuit described in any of the above embodiments, including the following steps:
[0071] S0, system reset, clearing the clock generator and the measurement circuit to 0;
[0072] Reset the circuit function. After the reset is completed, the clock generator circuit starts working.
[0073] S1, send input signal;
[0074] The input signal sent is a periodic high-level signal;
[0075] S2, the measuring circuit measures the input signal and obtains a 1-bit period width T of the input signal;
[0076] The measurement circuit measures a periodic high-level signal and outputs the result to the controller, where the result is the latch result SignalWidth[n:0];
[0077] Specifically, the measurement result may be used to calculate the 1-bit period width T of the input signal;
[0078] The input signal 1-bit cycle width T is calculated according to the latch result SignalWidth[n:0], and the value corresponding to T is SignalWidth[a:0];
[0079] When the input signal is high, the latch is in a transparent state and the signal is transmitted in the latch1 chain. When the signal becomes low, latch1 is in a closed state, latching the signal, and the high level is propagated to latch[a], that is, SignalWidth[a:0] is the width corresponding to the high level T.
[0080] S3, the controller selects the best clock position according to the cycle width T, controls the quantization circuit to perform signal sampling at the clock corresponding to the best clock position, and judges the signal sampling result to obtain the final sampling result;
[0081] Specifically, the optimal clock position in step S3 is T / 2.
[0082] Specifically, the clocks corresponding to the optimal clock position in step S3 include level t, level t-1 and level t+1.
[0083] If a signal pulse of one cycle is measured as 1 latch1 in the measurement circuit, the level is t1, and similarly, latch2 of the clock propagating in the clock generator is also t1. Since the measurement circuit measures a 1-bit period high pulse, the signal is transmitted according to a 50% duty cycle, and the optimal sampling point is T / 2, which is set to t level.
[0084] The best sampling point is generally the point where the signal is most stable. In this embodiment, the midpoint of the cycle is selected as the best sampling point.
[0085] Similarly, the controller selects the best T / 2 clock position t-level clock and triggers the sampling circuit to complete signal sampling.
[0086] Furthermore, in order to improve the sampling reliability, t-1, t and t+1 level clocks are selected for sampling, and after comparing the results, the final sampling results that meet the requirements and need to be saved are obtained and output to the cache.
[0087] S4, saving the final sampling result into a cache;
[0088] S5. The controller generates an interrupt signal to prompt the host to read the result in the cache.
[0089] When the first result is stored in the cache, the controller generates an interrupt to prompt the host to read the result.
[0090] A high-speed serial data sampling method disclosed in this embodiment includes the following steps: S0, system reset, clearing the clock generator and the measurement circuit to 0; S1, sending an input signal; S2, the measurement circuit measures the input signal and obtains a 1-bit cycle width T of the input signal; S3, the controller selects an optimal clock position according to the cycle width T, controls the quantization circuit to sample the signal at the clock corresponding to the optimal clock position, and judges the signal sampling result to obtain a final sampling result; S4, saves the final sampling result to a cache; S5, the controller generates an interrupt signal to prompt the host to read the result in the cache.
[0091] The present invention selects the optimal sampling point corresponding clock and its preceding and following clocks to sample the signal according to the cycle width of the input signal, thereby improving the reliability of sampling.
[0092] The parts of the present invention that are not described in detail are prior art. It is obvious to those skilled in the art that the present invention is not limited to the details of the above-mentioned exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention; therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive, and it is intended that all changes that fall within the meaning and scope of equivalent elements are included in the present invention.
Claims
1. A high-speed serial data sampling circuit, It is characterized in that Including measurement circuit, clock generator, quantization circuit, cache and controller: The measuring circuit is composed of a chain of n first latches latch1, and is used to receive an input signal and output a 1-bit cycle width of the input signal; A clock generator, composed of n groups of latch combinations, for generating 0 to n level clocks, wherein the latch combination of the clock generator is composed of a second latch latch2 and a third latch latch3; A quantization circuit, comprising a sampling circuit, wherein the sampling circuit is used to sample the input signal according to the latch result of the measurement circuit and the clock generated by the clock generator, and output the sampling result; A cache, connected to the quantization circuit, for storing the sampling results output by the quantization circuit; A controller, connected to the measurement circuit, the clock generator, the quantization circuit and the cache respectively; The controller is used to receive the 1-bit cycle width of the input signal output by the measurement circuit, and control the clock generator to generate a clock signal in a cycle half of the 1-bit cycle width, and send the generated clock signal to the quantization circuit, and then control the quantization circuit to complete the sampling of the signal, and generate an interrupt signal after the sampling is completed.
2. The circuit according to claim 1, It is characterized in that The second latch latch2 and the third latch latch3 have the same propagation delay as the first latch latch1.
3. The circuit according to claim 1, It is characterized in that The clocks of the second latch latch2 and the third latch latch3 in the latch combination are in opposite phases.
4. The circuit according to claim 1, It is characterized in that The clock generator is a traveling wave generator link.
5. The circuit according to claim 1, It is characterized in that The input signal received by the measuring circuit is a high pulse signal with one period.
6. The circuit according to claim 1, It is characterized in that The cache is an asynchronous cache.
7. A high-speed serial data sampling method, using a high-speed serial data sampling circuit according to any one of claims 1 to 6, It is characterized in that The following steps are involved: S0, system reset, clearing the clock generator and the measurement circuit to 0; S1, send input signal; S2, the measuring circuit measures the input signal and obtains a 1-bit period width T of the input signal; S3, the controller selects the best clock position according to the cycle width T, controls the quantization circuit to perform signal sampling at the clock corresponding to the best clock position, and judges the signal sampling result to obtain the final sampling result; S4, saving the final sampling result into a cache; S5. The controller generates an interrupt signal to prompt the host to read the result in the cache.
8. The high-speed serial data sampling method according to claim 7, It is characterized in that The optimal clock position in step S3 is T / 2.
9. The high-speed serial data sampling method according to claim 7, It is characterized in that The clocks corresponding to the optimal clock position in step S3 include level t, level t-1 and level t+1.
Citation Information
Patent Citations
High speed input / output interface and receiving circuit thereof
CN102769455A
Serial-to-parallel conversion circuit, driving method thereof and display panel
CN110912549A
Transition detection, validation and memorization circuit
CN1692597A
Semiconductor memory device having latency circuit andData output control method there-of
KR1020040107706A
Circuit and method for measuring delay of high speed signals
US20050111537A1
