SAMPLING SIGNALS
20230238969 ยท 2023-07-27
Assignee
Inventors
Cpc classification
H03K19/21
ELECTRICITY
H03L7/14
ELECTRICITY
International classification
H03L7/14
ELECTRICITY
H03L7/085
ELECTRICITY
Abstract
An asynchronous circuit portion for sampling an input signal is provided. The circuit portion comprises a sampling circuit portion arranged to sample the input signal to generate a sanitized output signal corresponding to the input signal; a comparison circuit portion arranged to compare the sanitized output signal with the input signal and to generate a change signal if the sanitized output signal does not correspond to the input signal; and a control circuit portion arranged to trigger the sampling circuit portion to sample the input signal to generate an updated sanitized output signal, in response to the change signal.
Claims
1. An asynchronous circuit portion for sampling an input signal comprising: a sampling circuit portion arranged to sample the input signal to generate a sanitized output signal corresponding to the input signal; a comparison circuit portion arranged to compare the sanitized output signal with the input signal and to generate a change signal if the sanitized output signal does not correspond to the input signal; and a control circuit portion arranged to trigger the sampling circuit portion to sample the input signal to generate an updated sanitized output signal, in response to the change signal.
2. The asynchronous circuit portion of claim 1, wherein the control circuit portion is arranged to trigger the sampling circuit portion to sample the input signal to generate an updated sanitized output signal every time a change signal is generated.
3. The asynchronous circuit portion of claim 1, wherein the sampling circuit portion comprises a first sampling element configured to generate a first sample signal if the input signal has a first state, a second sampling element configured to generate a second sample signal if the input signal has a second state, and arbitration logic arranged to detect an earliest sample signal from the first and second sample signals and to generate the sanitized output signal corresponding to the earliest sample signal.
4. The asynchronous circuit portion of claim 1, wherein the control portion is arranged to trigger a new sample by issuing a start command to the sampling circuit portion.
5. The asynchronous circuit portion of claim 1, wherein the circuit portion is operable in a hold mode in which the sanitized output signal is held constant, regardless of changes to the input signal.
6. The asynchronous circuit portion of claim 5, wherein the control circuit portion is arranged to ignore change signals in the hold mode.
7. The asynchronous circuit portion of claim 5, arranged to enter the hold mode in response to receiving a hold request signal.
8. The asynchronous circuit portion of claim 7, comprising a mutual-exclusion element arranged to take the hold request signal as a first input and the change signal as a second input.
9. The asynchronous circuit portion of claim 1, wherein the comparison circuit portion comprises an Exclusive-OR logic gate.
10. The asynchronous circuit portion of claim 1 wherein the comparison circuit portion is arranged to send the change signal to the control circuit portion only when a change signal request signal is asserted.
11. The asynchronous circuit portion of claim 1, arranged to output a ready signal when the sanitized output signal corresponds to the input signal.
12. A method of asynchronously sampling an input signal comprising: sampling the input signal at a first time to generate a sanitized output signal corresponding to the input signal at the first time: comparing the sanitized output signal with the input signal at a second time; and if the sanitized output signal does not correspond to the input signal at the second time, sampling the input signal again to generate an updated sanitized output signal.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0031] One or more non-limiting examples will now be described, by way of example only, and with reference to the accompanying figures in which:
[0032]
[0033]
[0034]
[0035]
[0036]
DETAILED DESCRIPTION
[0037]
[0038] The comparison circuit portion 6 comprises a comparator 7 (e.g. an XOR logic gate) and a handshake portion 9. The comparator 7 takes the input 10 and sanitized output 14 as inputs and sends an output sigChanged to the handshake portion 9. The handshake portion 9 of the comparison circuit portion 6 outputs a change signal ackSigChanged from a change output 12 if the input 10 and the sanitized output 14 are different (i.e. if the input signal and the sanitized output signals are different), and a change signal request signal reqSigChanged is asserted.
[0039] The control circuit portion 8 is shown in more detail in
[0040] The circuit portion 8 also comprises a MUTEX element 23 that has the hold request input 22 as a first input r1 and the signal change acknowledge input 34 as a second input r2 (see
[0041] The circuit portion 2 is switched on by receiving a run request signal reqRun on the run request input 24, on receipt of which the control circuit portion 8 asserts a run acknowledge signal ackRun on run acknowledge output 26. The circuit portion 2 is operable in an active mode and a hold mode under the control of the external circuit 50. When the control circuit portion 8 receives a hold request signal reqHoldSample at the hold request input 22 it enters the circuit portion 2 into the hold mode and asserts an acknowledgement signal ackHoldSample on the hold acknowledge output 28. When the hold request signal reqHoldSample is lowered by the external circuit 50 the control circuit portion 8 enters the circuit portion 2 into the active mode and lowers the acknowledgement ackHoldSample. It will be appreciated that the run request signal and/or run acknowledge signal are not essential. For instance, in some embodiments the circuit portion 2 is simply always on when it is powered. The circuit portion 2 may operate in the active mode as a default mode and operate in the hold mode when a hold request signal is received.
[0042] The active mode of operation will be described first, with additional reference to the timing diagrams shown in
[0043] Referring now to the operation illustrated in the timing diagram of
[0044] At a time t.sub.1, the input 10 goes high. The input and output signals are now different and at t.sub.2, after a short delay for the logic in the comparison circuit portion 6 to react, the change signal ackSigChanged is asserted by the comparison circuit portion 6 at change output 12. The short delay in the comparison circuit portion 6 helps to avoid transient changes in the input signal triggering the change signal ackSigChanged.
[0045] In response to the change signal ackSigChanged, the control circuit portion 8 triggers the sampling circuit portion 4 to sample the input 10 and thus update the sanitized output signal by briefly lowering the startSample signal. The sampling circuit portion 4 lowers the readySample signal input to the sample ready input 20 and begins the sampling process. The operation of the sampling circuit portion 4 is described in more detail below with reference to
[0046] At t.sub.3, the sampling circuit portion 4 has completed the sampling process and the sanitized output 14 goes high to match the sampled input 10. The control circuit portion 8 then re-asserts the ready signal to indicate to the external circuit portion 50 that the output signal is once again up-to-date. Because the input 10 and the sanitized output 14 are now in correspondence, the control circuit portion 8 lowers the reqSigChanged signal, and the comparison circuit portion 6 consequently lowers the change signal ackSigChanged on the change output 12. The control circuit portion 8 then re-asserts the reqSigChanged signal to wait for the next change of the input signal.
[0047]
[0048]
[0049] Hold mode operation of the circuit portion 2 will now be described with reference to the timing diagram in
[0050] At t.sub.4, the external circuit 50 is asserting a hold request signal reqHoldSample, which is received at the hold request input 22 of the control circuit portion 8. In response, the control circuit portion 8 puts the circuit portion 2 into the hold mode and outputs a hold acknowledge signal ackHoldSample from the hold acknowledge output 28. At t.sub.4, the input 10 and the sanitized output 14 are both high.
[0051] At t.sub.5, the external circuit 50 lowers the hold request signal reqHoldSample. The input signal 10 has not changed during the hold mode (e.g. because it comes from a stable source), and so the change signal ackSigChanged is low at the change signal output 12.
[0052] The sanitized output signal is thus already in correspondence with the input signal and no new sample needs to be taken. Both inputs to the MUTEX element 23 are now low and it immediately indicates that no new sample needs to be taken by not asserting a signal on either of its outputs. The external circuit 50 is thus provided with an up-to-date sample of the input 10 as soon as the hold request acknowledge signal is lowered (i.e. very shortly after ts). This represents a significant speed increase over prior art approaches that require a new sample to be taken to be confident that the input signal corresponds to the output signal. For instance, in one simulation of the circuit portion 4 the control circuit portion 8 took an average of 0.208 ns to lower the hold request acknowledge signal in response to the lowering of the hold request signal, but took an average of 1.745 ns to take a new sample of the input signal with the sampling circuit portion 6. Thus in at least some situations the invention may be approximately eight times faster than previous approaches. The sampling circuit portion 6 is shown in more detail in
[0053] The sampling circuit portion 6 further comprises an RS latch 1214 that receives the first stable output 1210 and the second stable output 1212 and produces the sanitised output signal at output 1216.
[0054] While the invention has been described in detail in connection with only a limited number of embodiments, it should be readily understood that the invention is not limited to such disclosed embodiments. Rather, the invention can be modified to incorporate any number of variations, alterations, substitutions or equivalent arrangements not heretofore described, but which are commensurate with the scope of the invention. Additionally, while various embodiments of the invention have been described, it is to be understood that aspects of the invention may include only some of the described embodiments. Accordingly, the invention is not to be seen as limited by the foregoing description, but is only limited by the scope of the appended claims.