Circuit and method to set delay between two periodic signals with unknown phase relationship
11693447 · 2023-07-04
Assignee
Inventors
- Robert Wang (Richmond Hill, CA)
- Zhuobin Li (Markham, CA)
- Navid Yaghini (Pickering, CA)
- Hemesh Yasotharan (Toronto, CA)
- Clifford Ting (Toronto, CA)
Cpc classification
G06F1/08
PHYSICS
International classification
G06F1/12
PHYSICS
G06F1/08
PHYSICS
Abstract
A circuit and method are provided for setting a phase relationship between a first signal and a second signal having a known frequency relationship to a master signal but having an unknown phase relationship to each other. One or more phase signals is generated based on the master signal, the phase signals having different phases from each other. One of these phase signals is selected based on the phase of the first signal and a target phase delay between the first signal and second signal. The second signal is generated based on the phase and frequency of the selected phase signal.
Claims
1. A circuit for setting a phase delay between a first signal and a second signal to a target phase delay, the first signal and second signal having a frequency relationship to a master signal, comprising: a phase signal generator for receiving the master signal and generating one or more output signals based on the master signal; and a phase select logic for: receiving an enabling trigger signal having a phase relationship to the first signal; and selecting one of the one or more phase signal generator output signals based on the enabling trigger signal and the target phase delay; and a second signal generator for generating the second signal based on the phase of the selected phase signal generator output signal.
2. The circuit of claim 1, wherein the first signal and a second signal have an unknown phase relationship to each other.
3. The circuit of claim 1, wherein each of the one or more phase signal generator output signals has a different phase from the master signal.
4. The circuit of claim 1, wherein: the phase select logic is further configured to receive a target delay signal indicating the target phase delay; and selecting one of the one or more phase signal generator output signals based on the enabling trigger signal and the target phase delay comprises: selecting one of the one or more phase signal generator output signals based on the enabling trigger signal and the target delay signal.
5. The circuit of claim 1, wherein: the second signal generator generates the second signal based on the phase and frequency of the selected phase signal generator output signal.
6. The circuit of claim 1, further comprising a phase sampler for sampling the phases of the one or more phase signal generator output signals and sending one or more phase code signals to the phase select logic corresponding to the phases of the one or more phase signal generator output signals.
7. The circuit of claim 6 wherein: the target phase delay comprises a target delay time period; and the phase select logic selects one of the one or more phase signal generator output signals based on the received phase code corresponding to the selected phase signal generator output signal having a transition proximate in time to a transition of the first signal delayed by the target delay time period.
8. The circuit of claim 1, wherein at least one of the first signal and the second signal is a periodic signal.
9. The circuit of claim 8, wherein the periodic signal is a clock signal.
10. The circuit of claim 8, wherein the periodic signal is a periodic bit sequence signal.
11. The circuit of claim 10, wherein the periodic bit sequence signal is a pseudo-random bit sequence signal.
12. The circuit of claim 1, wherein the first signal has a frequency that is different from a frequency of the second signal.
13. The circuit of claim 1, wherein the target phase delay is predetermined or dynamically programmed.
14. The circuit of claim 1, further comprising a synchronizing logic for: receiving the selected phase signal generator output signal; receiving a reset signal; and sending an enable signal based on the reset signal to the second signal generator; wherein the second signal generator generates the second signal in response to receiving the enable signal.
15. The circuit of claim 14, wherein the phase select logic generates the reset signal, the reset signal having a phase based on the phase of the enabling trigger signal, in response to selecting a phase signal generator output signal.
16. The circuit of claim 1, further comprising a first signal generator for generating the first signal based on the master signal.
17. The circuit of claim 1, further comprising a master control logic for: receiving the first signal; and generating the enabling trigger signal with a phase based on the phase of the first signal.
18. The circuit of claim 17, wherein the master control logic is further configured to generate the target delay signal.
19. A method for setting a phase delay between a first signal and a second signal to a target phase delay, the first signal and second signal having a frequency relationship to a master signal, comprising: generating one or more output signals based on the master signal; selecting one of the one or more output signals based on the first signal and the target phase delay; and generating the second signal based on the phase of the selected one of the one or more output signals.
20. The method of claim 19, further comprising: receiving a reset signal; and generating an enable signal based on the reset signal; wherein the second signal is generated in response to generation of the enable signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Reference will now be made, by way of example, to the accompanying drawings which show example embodiments of the present application, and in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8) Similar reference numerals may have been used in different figures to denote similar components.
DESCRIPTION OF EXAMPLE EMBODIMENTS
(9) The present disclosure describes example circuits and methods for detecting or setting a phase offset between two or more signals. In the described examples, the signals have a known frequency relationship, for example because they originate from the same source. The described examples allow for different sub-systems of an overall circuit or system to operate asynchronously with respect to each other most of the time, with synchronization imposed on two or more sub-systems temporarily and locally only where needed. The overall circuit thus avoids the need to propagate a single clock to every subsystem via a clock tree to maintain constant, global synchronization. By using temporary, local synchronization instead of constant, global synchronization, not only can each sub-system operate locally at its own optimal speed, but the overall circuit may also realize power savings by avoiding the need to propagate a uniform clock signal to every subsystem.
(10) In the described examples, two asynchronous signals (signal0 and signal1) are employed, but other examples may employ more than two asynchronous signals. The asynchronous signals are described as originating from the same master source, such as a master oscillator, which defines a master frequency for the asynchronous signals; this master frequency may be altered in one or more of the asynchronous signals (such as by the use of frequency dividers), but the common derivation from a master frequency results in the asynchronous signals all having known frequency relationships with each other. Other examples may achieve known frequency relationships among the asynchronous signals in different ways.
(11) In the described examples, a first signal (signal0) is generated by a signal generator and used by control logic to sample a set of outputs of a single or multiphase signal generator. The feedback from the sampler is used to select a phase output from this single or multiphase signal generator to generate the second signal (signal1) which has a programmable phase relationship with the first signal.
(12) With reference to the drawings,
(13) In the described examples, the first signal generator block 138 and second signal generator block 132 generate the two asynchronous signals signal0 102 and signal1 104 respectively based at least in part on the master signal 101 or a phase-shifted version thereof generated by the SMPSG 122. The first signal generator block 138 and/or second signal generator block 132 may in various examples use frequency dividers, pseudo-random binary sequence (PRBS) generators, and/or other components to generate the asynchronous signals 102,104. However, because both blocks 138,132 generate the asynchronous signals 102,104 based on this common master signal 101, the two asynchronous output signals 102,104 have a known frequency relationship.
(14) An enabling trigger signal, signal_en 110, is generated by a Master Control Logic block 126. The Master Control Logic block 126 receives signal0 102 as an input, using it to ensure that signal_en 110 is phase-aligned to signal0 102, as shown in
(15) The upward step of signal_en 100 at time 202 triggers the Phase Selection Logic (PSL) block 128 from
(16)
(17) The Phase Selection Logic block 128 scans code[2.sup.n−1:0] 109 and searches for a code index X (between 0 and 7 in our 8-code example shown in
(18) Thus, the higher the value of n (i.e. the greater the number of phase-varying signals produced in the set 106 of outputs from the SMPSG 122), the greater the resolution of the phase detection/phase setting function of the circuit 100 and the more precisely the phase relationship between signal0 102 and signal1 104 can be defined.
(19) In some examples, instead of comparing the timing of rising edges between signal0 102 and the code[2.sup.n−1:0] 109 phase codes, a falling edge or other transition of one signal or the other, or both, may be compared.
(20) After determining the phase relationship between signal0 and the set 106 of outputs of the SMPSG 122, a signal can be selected from the set 106 of SMPSG 122 output signals to generate the second signal signal1 104.
(21) The delay between signal0 102 and signal1 104 is determined by a normalized target delay with respect to the signal period. This delay is set by a phase relationship control signal, phase adjust 111 generated by the Master Control Logic 126—it may be either predetermined or dynamically programmable depending on the needs of the current application. In general, the phase_sel[n−1:0] 118 signals are determined by the current phase index X, the phase adjust signal 111, and the total number of phases available in the SMPSG 122. Phase_sel[n−1:0] 116 is set to the sum of X and the normalized delay (set by the phase adjust signal 111) multiplied by 2.sup.n modulo 2.sup.n. Phase_sel[n−1:0] 116 is received by a multiplexer 134 and used to select one of the set 106 of outputs of the SMPSG 122 to use as the multiplexer output signal_selected 108.
(22) Once the PSL 128 determines the phase which should be used to generate signal1 104, it de-asserts a reset signal 112 to the signal1 generation block shown as second signal generator block 132 in
(23)
(24)
(25) The described examples may be applied to a number of problem domains.
(26) In one example embodiment, the asynchronous signals 102,104 may be clock signals or other periodic signals having different frequencies. Each clock signal may govern one or more different sub-systems operating at different speeds based on the capabilities of those sub-systems. For example, in one embodiment the master signal 101 may be a clock signal or other periodic oscillating signal with a frequency of 500 MHz; the first signal 102 may be a clock signal operating at 100 MHz (due to a ⅕ frequency divider in the first signal generator 138), while the second signal 104 may be a clock signal operating at 50 MHz (due to a 1/10 frequency divider in the second signal generator 132). These asynchronous signals 102,104 may each govern its own sub-system, which can operate asynchronously at different speeds. The second signal 104 is generated with a known phase relationship to the first signal 104, allowing the two sub-systems governed by the two signals 102,104 to interoperate as needed.
(27) In another embodiment, the asynchronous signals 102,104 carry data, such as pseudo-random binary sequence (PRBS) data or other periodic bit sequence data. The first signal generator 138 and second signal generator 132 may each include a PRBS generator that generates PRBS data based on input seed data. Each of the asynchronous signals 102, 104 may be used to provide PRBS data to different subsystems while maintaining a known phase relationship to each other, allowing the subsystems to interoperate as needed.
(28) The described circuit 100 thereby enables the interoperation within a single overall system of two signals with an unknown phase relationship due to their use within different subsystems or blocks of the overall system. This minimizes the impact of the unknown phase relationship between the two signals and allows faster operation of the overall system. For example, if each of the subsystems is capable of running at up to 1 GHz by itself, but the unknown phase difference between the two signals is potentially as high as 5 ns, then the overall system can only run at up to 200 MHz, as the two signals need to work with each other and so must be governed by a clock that accounts for the potential phase difference. However, by employing the circuit 100, the overall system can run at up to 1 GHz.
(29) Although the present disclosure describes methods and processes with steps in a certain order, one or more steps of the methods and processes may be omitted or altered as appropriate. One or more steps may take place in an order other than that in which they are described, as appropriate.
(30) Although the present disclosure is described, at least in part, in terms of methods, a person of ordinary skill in the art will understand that the present disclosure is also directed to the various components for performing at least some of the aspects and features of the described methods, be it by way of hardware components, software or any combination of the two. Accordingly, the technical solution of the present disclosure may be embodied in the form of a software product. A suitable software product may be stored in a pre-recorded storage device or other similar non-volatile or non-transitory computer readable medium, including DVDs, CD-ROMs, USB flash disk, a removable hard disk, or other storage media, for example. The software product includes instructions tangibly stored thereon that enable a processing device (e.g., an embedded processor, a personal computer, a server, or a network device) to execute examples of the methods disclosed herein.
(31) The present disclosure may be embodied in other specific forms without departing from the subject matter of the claims. The described example embodiments are to be considered in all respects as being only illustrative and not restrictive. Selected features from one or more of the above-described embodiments may be combined to create alternative embodiments not explicitly described, features suitable for such combinations being understood within the scope of this disclosure.
(32) Also, although the systems, devices and processes disclosed and shown herein may comprise a specific number of elements/components, the systems, devices and assemblies could be modified to include additional or fewer of such elements/components. For example, although any of the elements/components disclosed may be referenced as being singular, the embodiments disclosed herein could be modified to include a plurality of such elements/components. The subject matter described herein intends to cover and embrace all suitable changes in technology.