BRIEF DESCRIPTION OF THE DRAWINGS
Examples of embodiments of the invention will now be described in greater detail with reference to the accompanying drawings in which:
FIG. 1A is a block diagram of a conventional adaptive equalization system;
FIG. 1B is a block diagram of another conventional adaptive equalization system;
FIG. 2 is a block diagram of a signal comparison apparatus according to an embodiment of the invention;
FIG. 3 is a block diagram of a signal comparison apparatus according to another embodiment of the invention;
FIG. 4 is a block diagram showing a signal comparison apparatus of a further embodiment of the invention;
FIG. 5 is a block diagram of a signal comparison apparatus of yet another embodiment of the invention;
FIG. 6 is a block diagram of an adaptive equalization system incorporating a signal comparison apparatus according to an embodiment of the invention;
FIG. 7 is a plot of an eye pattern and reference levels for a binary signal;
FIG. 8 is a plot of magnitudes of the eye pattern and reference levels shown in FIG. 7;
FIG. 9 is a block diagram of a signal monitor that incorporates a signal comparison apparatus of an embodiment of the invention; and
FIG. 10 is a block diagram of an optical module incorporating a signal comparison apparatus according to an embodiment of the invention.
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
FIG. 2 is a block diagram of a signal comparison apparatus according to an embodiment of the invention. The embodiment shown in FIG. 2 represents a Complementary Metal Oxide Semiconductor (CMOS) implementation. Other implementations may also be or become apparent to those skilled in the art. It should therefore be appreciated that the system of FIG. 2, as well as the contents of the other drawings, are intended solely for illustrative purposes, and that the present invention is in no way limited to the particular example embodiments explicitly shown in the drawings and described herein.
The apparatus shown in FIG. 2 includes Metal Oxide Semiconductor Field Effect Transistors (MOSFETS) M1, M2, whose gate terminals receive a differential input signal, vip-vin. The gate terminals of another pair of transistors M3, M4 receive a differential reference signal, vrefp-vrefn. The transistors M1, M2 have their source terminals connected together and their drain terminals connected together. The transistors M3, M4 are connected the same way as the transistors M1, M2, with their source terminals connected together and their drain terminals connected together. These and other connections shown in FIG. 2 might be direct connections between component leads, or indirect, through conductors such as jumpers or traces on an integrated circuit or on a printed circuit board for instance.
The source terminals of the transistors M1, M2, M3, M4 are all connected together and to the drain terminal of a transistor M5, which is connected to a negative supply voltage and operates as a current source. The bias current through the transistor M5, Ids_m5, is set by a control voltage, vbias. The drain terminals of M1, M2 are connected to a positive supply voltage through a resistor R1, and the drain terminals of the transistors M3, M4 are similarly connected to the positive supply voltage through a resistor R2. A differential output voltage signal, vop-von, is taken at the drain terminals of transistor pair M1, M2 and the transistor pair M3, M4, respectively.
Each paired transistor configuration of M1, M2 and M3, M4 behaves effectively like a rectifier or a magnitude converter. That is, the total drain current flowing across the transistor pair M1, M2, denoted Ids_m1+Ids_m2, is proportional to the peak or maximum voltage of the two input voltages, max(vip,vin). Moreover, in the case where vip and vin represent a differential voltage with a given common mode voltage (vip+vin)/2, the total drain current flowing across the transistor pair M1, M2 is proportional to the absolute value of the differential voltage, abs(vip-vin). For the transistor pair M3, M4, the total drain current Ids_m3+Ids_m4 is similarly proportional to the peak or maximum voltage, of the two input voltages max(vrefp,vrefn), or to the absolute value, abs(vrefp-vrefn).
In the context of the present disclosure, absolute values and peak/maximum values may be considered examples of signal magnitudes. References to magnitudes in the present specification, including the claims, should be interpreted accordingly, to encompass absolute values and/or peak/maximum values.
Assuming appropriate selection of R1 and R2 (usually equal, assuming equal positive supply rail voltages in the embodiment shown in FIG. 2), provided vip-vin and vrefp-vrefn have substantially the same common-mode voltage, i.e., (vip+vin)/2≈(vrefp+vrefn)/2, the differential output voltage, vop-von, is proportional to the difference between the magnitude of the differential input voltage, illustratively abs(vip-vin), and the magnitude of the differential reference voltage, illustratively abs(vrefp-vrefn).
The apparatus of FIG. 2 thus generates a differential output signal, vop-von, having a magnitude that is indicative of the difference between the magnitude of a differential input voltage, vip-vin, and the magnitude of an adjustable differential reference voltage, vrefp-vrefn.
As noted above, the present invention is in no way limited to the specific apparatus shown in FIG. 2. For example, a cascode current source or a simple resistor could be used instead of the transistor M5 as a current source. Active loads could also be used instead of the passive resistor loads R1 and R2.
Different types of transistors could similarly be used instead of the MOSFETs M1, M2, M3, M4. FIG. 3 is a block diagram of a signal comparison apparatus according to another embodiment of the invention, which is implemented using Bipolar Junction Transistors (BJTs) Q1, Q2, Q3, Q4, Q5. The same or different values of bias voltage, resistors R1, R2, R3, and/or supply voltages may be used in CMOS and bipolar implementations. A bipolar transistor implementation otherwise operates in substantially the same way as the CMOS implementation described above.
FIG. 4 is a block diagram showing a signal comparison apparatus of a further embodiment of the invention, and illustrates another variation of the comparison apparatus of FIG. 2. In FIG. 4, the adjustable reference voltage vref is single-ended. In this case, as shown, the gate terminal of only one reference transistor M4 receives the reference signal. In one possible implementation, the same circuit is provided for single-ended or differential reference signals, with only one gate terminal (vrefp, FIG. 2) actually being connected to receive a reference signal when a single-ended reference signal is used. Thus, the transistor M3 (FIG. 2) might also be present in an implementation for a single-ended reference signal, but its gate terminal is not connected to receive a reference signal. The gate terminal of the unused transistor, M3 in this example, is preferably biased such that M3 is turned off. This may be accomplished by connecting the gate terminal of M3 to the negative supply, for instance.
As noted above with reference to FIG. 2, the differential output voltage vop-von is proportional to the difference between abs(vip-vin) and abs(vrefp-vrefn) where vip-vin and vrefp-vrefn have substantially the same common-mode voltage. In the case of a single-ended reference signal, max(vip-vin) is compared to the single-ended reference signal. However, with an appropriate choice of common-mode voltage, (vip+vin)/2, and a single-ended reference, vref, it is possible to accomplish the same function of generating a differential output signal that is proportional to the difference between abs(vip-vin) and vref. For example, in one embodiment, a 1.2 Volt positive supply, a 0.8 Volt common-mode voltage, and a 1.0 Volt single-ended reference are used. Note that this is equivalent to comparing vip-vin to a 0.4 differential reference, i.e. vrefp-vrefn. It should be appreciated that this combination of a common-mode voltage and a reference signal is intended solely for illustrative purposes, and that this combination or other combinations may be used in different embodiments.
A bipolar transistor implementation for a single-ended reference signal is shown in the block diagram of FIG. 5 as another embodiment of the invention.
Other variations of the specific circuits shown in FIGS. 2 to 5 may be or become apparent to those skilled in the art. Implementations using MEtal Semiconductor Field Effect Transistors (MESFETs), PMOS transistors, PNP transistors, further types of components, and combinations of different component types, are contemplated.
The circuits shown in FIGS. 2 to 5 represent possible implementations of a signal comparison apparatus according to embodiments of the invention. Each apparatus includes a first input circuit that receives a differential input signal and provides an output signal based on the magnitude of the differential input signal. A second input circuit is operatively coupled to the first input circuit, but receives a second input signal and provides a second output signal based on the magnitude of the second input signal. In the embodiments shown in FIGS. 2 to 5, the input circuits are controllable switch circuits that include controllable switches in the form of transistors.
Since the first and second circuits are operatively coupled together in a differential amplifier structure, a differential output signal that includes the first and second output signals is indicative of a difference between the magnitudes of the input signals. This operative coupling, which may include a current source in the illustrated embodiments, thus effectively regulates the operation of the input circuits.
The signal comparison techniques proposed herein may be used, for example, in an error comparator of an adaptive equalizer or in an SNR/BER monitor. Although these two applications are considered in detail below, it should be appreciated that these techniques may also be used for other purposes, which may be or become apparent to those skilled in the art.
Adaptive Equalization
FIG. 6 is a block diagram of an adaptive equalization system incorporating a signal comparison apparatus according to an embodiment of the invention. As shown, the system includes an equalizer 40, a decision circuit 44A and an error comparator 42 operatively coupled to the equalizer, a decision circuit 44B operatively coupled to the error comparator, and an adaptation module 46 operatively coupled to the decision circuits and to the equalizer.
Those skilled in the art will be familiar with various forms of equalizers, decision circuits, and adaptation algorithms that may be used in the adaptation module 46. In general, the equalizer 40 receives and equalizes a signal in accordance with equalization coefficients. The error comparator 42 receives the equalized signal from the equalizer 40 as a differential input signal, vip-vin, and a differential reference signal, vrefp-vrefn. Outputs from the decision circuits 44A, 44B are used by the adaptation module 46 to determine the equalizer coefficients based on outputs of the decision circuits.
Adaptive equalizers as shown in FIG. 6 are typically used in electronic and optical data transmission systems to adaptively compensate for Inter-Symbol Interference (ISI) and/or noise created by effects such as distortion, dispersion, bandwidth limitation, etc., in a communication channel through which binary or other multi-level data is transmitted. An adaptation algorithm applied by the adaptation module 46 adapts equalizer coefficients used by the equalizer 40 in such a way as to minimize noise and ISI. This is often accomplished through the use of an error signal, which is a continuous or a discrete time measure of the difference between the equalizer output and the target signal amplitude or eye opening.
As noted above with reference to FIG. 1A, generation of an error signal in conventional adaptive equalizers for binary or other multi-level bit streams may require multiple comparators. In the system of FIG. 6, a differential reference signal that corresponds to the target signal levels desired at the output of the equalizer 40, illustratively the target levels for +1 and −1 binary levels, is provided to a single error comparator 42. The output of the error comparator 42, e(t), is proportional to the difference between the absolute value or magnitude of the differential equalized signal, abs(y(t)) and the absolute value or magnitude of the differential reference signal, abs(vref). This output is limited to arbitrary +1/−1 levels in this example and retimed by the decision circuit 44B, and is sent as a signal E(t) to the adaptation module 46 along with the decision output z(t), which has also been limited and retimed by the decision circuit 44A.
Knowing the limited and retimed version E(t) of the error comparator output, e(t), and the decision output, z(t), an error signal, ERR(t), can be derived at the adaptation module 46 as ERR(t)=z(t)* E(t), where both E(t) and z(t)=+1 or −1.
In other embodiments, different error signal generation algorithms may be used.
Where the reference for the negative level of a binary differential signal is the inverse of that for the positive level, such that vref(−1)=−vref(+1), the techniques disclosed herein may allow only one comparator to be used in an adaptive equalizer as an error comparator. The error comparator then compares the absolute value or magnitude of an equalized signal to the reference magnitude. This simplifies the implementation and reduces power consumption of an equalizer system, which can be particularly important for high-speed serial communications at data rates greater than 1 Gb/s, for instance.
SNR/BER Monitor
In electronic and optical data transmission, the quality or reliability of a transmission system may be expressed in terms of SNR and/or BER, which can be shown to be related to SNR. SNR/BER monitor circuits are typically used at the receiving end of a transmission system to continuously or periodically determine the quality of a communication link. Ideally, this function should be performed without disrupting normal data transmission. The signal comparison techniques disclosed herein can be used to implement a circuit or system for monitoring SNR/BER, in a receiver that might, but need not necessarily, also support adaptive equalization capabilities.
An SNR/BER monitor can be used, for example, to monitor the quality of a communication channel or to determine if an equalizer has successfully compensated for channel ISI and noise. In one possible implementation, once the equalizer 40 (FIG. 6) has adapted for a period of time, the adaptation module 46 can be frozen or stopped, and the error comparator 42 can then be used to determine the SNR/BER at the equalizer output.
FIG. 7 is a plot of an eye pattern and reference levels for a binary signal, and FIG. 8 is a plot of magnitudes of the eye pattern and reference levels shown in FIG. 7. These plots will be useful in illustrating SNR/BER monitoring aspects of embodiments of the invention.
As shown in FIG. 8, the differential reference input to a signal comparator, vrefp-vrefn, can be successively offset by a pre-determined amount, voffset, on both sides of the normal reference value setting, which may have been used during adaptive equalization. For a positive offset setting, a determination is made as to the number of occurrences, at the decision circuit sampling point, that an input signal, illustratively an equalized signal, is above the offset reference signal during a pre-defined time period. The number of occurrences, at the decision circuit sampling point, that the equalized signal is below the offset comparator reference is similarly determined for the negative offset setting over a time period of equal length.
Assuming that the input signal at the decision circuit sampling point follows a Gaussian distribution centered at the comparator reference voltage, the determined numbers represent the number of occurrences on the “tails” of the Gaussian distribution, as shown in FIG. 8. Knowing the offset applied to the reference, the tail “integration” time period, and the total number of occurrences on the tails of the Gaussian distribution, it is possible to infer the SNR/BER of the input signal. If the objective of monitoring is only to ensure that the SNR is above an acceptable threshold or that the BER is below an acceptable threshold, then the total number of occurrences on the tails of the Gaussian distribution can simply be compared to a threshold.
A more detailed analysis of SNR/BER monitoring is presented below. For simplicity, all of the signals defined and discussed below are assumed single-ended. However, the same conclusions also hold for differential signals.
Consider now an example in which vi is the signal for which SNR is to be estimated, and that the magnitude of vi at the timing recovery sampling point, |vi|s, follows a Gaussian distribution given by:
where
σ the standard deviation of the distribution, which is the unknown quantity;
|vref| is the magnitude of the reference signal applied to the comparator, which is the target signal amplitude; and
μ represents any residual offset due to non-idealities such as non-linearities, quantization errors, etc.
Let vos be the output of the comparator at the sampling point. Assuming that the comparator is linear, its output is given by:
v
os
=A(|vi|s−|vref|) (2)
where
A is the gain of the comparator.
Assuming that A is unity to simplify the analysis, the statistical distribution of vos is given by:
When a positive offset, voffset, is applied to the comparator reference, vref, the comparator output becomes:
vos,plus=|vi|s−|vref+voffset|=|vi|s−vref−voffset (4)
if vref+voffset≧0.
The statistical distribution then becomes:
Let sgn(vos,plus)=1 when vos,plus≧0 and let sgn(vos,plus)=−1 when vos,plus<0. For n samples, we have:
Similarly, when a negative offset, −voffset, is applied to the comparator reference, vref, the comparator output becomes:
v
os,minus
=v
i|s−|vref−voffset|=|vi|s−vref+voffset (8)
if vref−voffset≧0, and the statistical distribution becomes:
If we let sgn(vos,minus)=1 when vos,minus≧0 and let sg(vos,minus)=−1 when vos,minus<0, then for n samples, we have:
Using the Gaussian distribution derived in Equation (5) for vos,minus, we get:
Similarly, using the Gaussian distribution derived in Equation (9) for vos,minus, we get:
Re-arranging Equation (13) and Equation (15), we get:
The following equations isolate μ and σ:
Finally, the SNR can be estimated using
As noted above, SNR calculations such as those illustrated in Equations (1) to (21), and similarly BER calculations, need not necessarily be performed where it is only desired to confirm or ensure that SNR or BER is within an acceptable limit. In this case, the total tail counts can simply be compared with an appropriate threshold that is related to the SNR/BER limit.
SNR/BER monitor functions could be provided in an apparatus such as shown in FIG. 9, which is a block diagram of an error monitor that incorporates a signal comparison apparatus of an embodiment of the invention. In the monitor 50, an offset element 52 is operatively coupled to a signal magnitude comparator 54. A decision circuit 55 is operatively coupled to the signal magnitude comparator 54, and an accumulator 56 is operatively coupled to the decision circuit and to a timer 58. The timer 58 is also operatively coupled to the offset element 52
The offset element 52 may be implemented as an adder or similar component for adjusting the reference signal, vrefp-vrefn, by an offset, voffset. The signal magnitude comparator 54 may have a structure as described above, for example, and also be used as an error comparator in an adaptive equalization system. The decision circuit 55 may similarly have substantially the same structure as a decision circuit of an adaptive equalization system, and actually be part of both an SNR/BER monitor and an equalization system. The accumulator 56 accumulates the “tail” counts described above during time periods set by the timer 58. The timer 58 may be a programmable timer to allow for adjustment of the tail count interrogation time period. The operative coupling between the timer 58 and the offset element 52 enables the timer to change the polarity of the offset voltage applied to the reference signal of the magnitude comparator 54.
Embodiments of an SNR/BER monitor may differ from the specific example shown in FIG. 9. For instance, respective accumulators may be provided for the positive and negative offset tail counts. Other variations may also be or become apparent to those skilled in the art.
The specific implementation of each component shown in FIG. 9 may also vary. For example, the apparatus 50 could be implemented using digital components, analog components, or a combination of digital and analog components. The accumulator 56 could be implemented in digital form as a counter or in analog form as an analog integrator for instance.
Operation of the apparatus 50 will be apparent from the foregoing description of SNR/BER monitoring functions.
The signal comparison techniques disclosed herein may, as shown in FIG. 9, allow only one comparator device to be used to simultaneously compare an eye pattern with high and low reference values, where the “low” reference is the inverse of the “high” reference for instance. Previously proposed schemes use two comparators to compare the eye pattern to the two reference values. This comparator saving can translate into simplified circuit implementations and lower power consumption, especially at high data rates, illustratively above 1 Gb/s.
Moreover, if a signal monitor is intended to be used in conjunction with an adaptive equalization system, an error comparator from the equalization system can be reused in performing signal monitoring functions for equalizer outputs. That is, an equalizer adaptation algorithm can be periodically frozen or stopped, and the same error comparator can the be used for signal monitoring. Although some additional components such as an accumulator and a timer may be provided for signal monitoring, overall complexity and power consumption may be reduced since equalization and signal monitoring do not require separate comparators.
What has been described is merely illustrative of the application of principles of embodiments of the invention. Other arrangements and methods can be implemented by those skilled in the art without departing from the scope of the present invention.
For example, devices in which embodiments of the invention are implemented may be incorporated into further devices or systems. FIG. 10 is a block diagram of an optical module incorporating a signal comparison apparatus according to an embodiment of the invention. In FIG. 10, an optical module 60 receives signals on an optical link. A photodiode 64 detects the received optical signals, which are further processed by a transimpedance amplifier (TIA) 66 and an adaptive equalizer 68. As described above, the adaptive equalizer 68 may incorporate a signal magnitude comparator as disclosed herein.
The optical module 60 represents one further example of a possible application of embodiments of the invention. Other applications are also contemplated, and may be or become apparent to those skilled in the art.