A kind of testing circuit of dropout, method and amplifier
Technical field
The present invention relates to the microelectronic circuit technical field, relate in particular to a kind of testing circuit, method and amplifier of dropout.
Background technology
In the high-speed figure communication system, signal is sent to receiver from transmitter through communication channel, and a very important step will rule out dropout (LOS) rapidly exactly reliably.So often will come the level of detection signal or data flow whether to have LOS at receiver or receiver side,, then produce the LOS alarm signal if exist through circuit to judge.The LOS alarm signal is passed to system processor or network controller is handled by supervisory programme, thereby keeps watch on whole communication system.
In the high-speed light communication network; Light signal in the optical fiber becomes current signal through photodiode converts, and trans-impedance amplifier (TIA) converts the current signal of photodiode to voltage signal, still; The exemplary voltages output of most of TIA is quite little; Even, so just need limiting amplifier that voltage signal is amplified and shaping less than 100mv, form the voltage signal that data recoverer (CDR) can be sampled and resolve.
At present; Can realize all that in multiple limiting amplifier (LA) LOS detects and the function of alarm, yet the threshold value that detects LOS all need be set in application, these threshold values are little of 5mv; Big to 200mv; Typical as shown in table 1 like the scope of the threshold value adjustment on the OC192 (10Gbps), then produce the LOS alarm when decision threshold is represented less than this threshold value in the table 1, eliminate and then eliminate the LOS alarm when threshold value is represented greater than this threshold value.
Table 1
The structure of tradition limiting amplifier is as shown in Figure 1, needs special LOS testing circuit, and because the small-signal characteristics of LOS; If the elementary sampling of the cascade amplifier in limiting amplifier, then the amplitude of signal maybe be not enough, therefore; Be only applicable to the input signal of low speed; And, as shown in Figure 2, the complex structure of existing LOS testing circuit.
For reducing the complexity of limiting amplifier; Some designer changes into and after limiting amplifier is handled signal, differentiates LOS again; As shown in Figure 3, this mode is the multistage post-sampling at cascade amplifier, because signal is exaggerated; Appearance can't be distinguished the problem of LOS signal and signal fluctuation easily, causes judging by accident and losing time.
Summary of the invention
The technical problem that the present invention will solve provides a kind of testing circuit, method and amplifier of dropout, realizes the signal loss detection to small-signal.
For solving the problems of the technologies described above, the testing circuit of a kind of dropout of the present invention comprises: peak detector, reference threshold generator and comparator, wherein:
Peak detector is used to detect the peak value of input signal, and the peak value of input signal is outputed to comparator;
The reference threshold generator is used to produce decision threshold, and decision threshold is outputed to comparator;
Comparator is used for the peak value and the decision threshold of input signal are compared, and during less than decision threshold, produces loss of signal alarm at peak value.
Further, the reference threshold generator also is used for producing and eliminates threshold value, will eliminate threshold value and output to comparator;
Comparator also is used for the peak value of input signal is compared with eliminating threshold value, and when eliminating threshold value, erasure signal is lost alarm at peak value.
Further, also comprise configurable peak value access device, wherein:
Configurable peak value access device is used for extracting alternating current component from input signal, and this alternating current component is outputed to peak detector;
Peak detector is the peak value that detects the alternating current component of input signal, and the peak value of the alternating current component of input signal is outputed to comparator.
Further; Peak detector is the peak detector of subthreshold value; Comprise: constant current source, operational amplifier, the first subthreshold value controller and the second subthreshold value controller; The first subthreshold value controller links to each other with the output of constant current source and the positive pole of operational amplifier respectively, and the second subthreshold value controller links to each other with the output of constant current source and the negative pole of operational amplifier respectively.
Further, peak detector also comprises: charge controller and energy-storage travelling wave tube, charge controller link to each other with energy-storage travelling wave tube with the output of operational amplifier respectively, and energy-storage travelling wave tube also links to each other with the output of deciding the circuit source.
Further, the first subthreshold value controller and the second subthreshold value controller are FET, and the grid of the first subthreshold value controller links to each other with drain electrode, as the output of peak detector; The grid of the second subthreshold value controller is as the input of peak detector.
Further, the source electrode of the first subthreshold value controller links to each other with the output of constant current source and the positive pole of operational amplifier respectively with drain electrode, and the source electrode of the second subthreshold value controller links to each other with the output of constant current source and the negative pole of operational amplifier respectively with drain electrode.
Further, comparator is a hysteresis comparator, and this hysteresis comparator comprises latch and inductance peaker, and the inductance peaker is connected between the positive input terminal and negative input end of latch.
Further, configurable peak value access device adopts source follower.
Further; A kind of amplifier; Comprise: the testing circuit of input buffer, cascade amplifier and dropout; The output of input buffer links to each other with the testing circuit of cascade amplifier and dropout, and the testing circuit of dropout comprises peak detector, reference threshold generator and comparator, wherein:
Peak detector is used to detect the peak value of input signal, and the peak value of input signal is outputed to comparator;
The reference threshold generator is used to produce decision threshold, and decision threshold is outputed to comparator;
Comparator is used for the peak value and the decision threshold of input signal are compared, and during less than decision threshold, produces loss of signal alarm at peak value.
Further, the reference threshold generator also is used for producing and eliminates threshold value, will eliminate threshold value and output to comparator;
Comparator also is used for the peak value of input signal is compared with eliminating threshold value, and when eliminating threshold value, erasure signal is lost alarm at peak value.
Further; A kind of amplifier; Comprise: the testing circuit of input buffer, cascade amplifier and dropout, the output of input buffer links to each other with cascade amplifier, and the testing circuit of dropout is connected to any one-level of cascade amplifier; The testing circuit of dropout comprises configurable peak value access device, peak detector, reference threshold generator and comparator, wherein:
Configurable peak value access device is used for extracting alternating current component from input signal, and this alternating current component is outputed to peak detector;
Peak detector is used to detect the peak value of the alternating current component of input signal, and the peak value of the alternating current component of input signal is outputed to comparator;
The reference threshold generator is used to produce decision threshold, and decision threshold is outputed to comparator;
Comparator is used for the peak value and the decision threshold of input signal are compared, and during less than decision threshold, produces loss of signal alarm at peak value.
Further, a kind of detection method of dropout comprises:
Peak detector detects the peak value of input signal, and the peak value of input signal is outputed to comparator;
The reference threshold generator produces decision threshold, and decision threshold is outputed to comparator;
Comparator compares the peak value and the decision threshold of input signal, during less than decision threshold, produces loss of signal alarm at peak value.
Further, also comprise:
The reference threshold generator also produces the elimination threshold value, will eliminate threshold value and output to comparator;
Comparator also compares the peak value of input signal with eliminating threshold value, when eliminating threshold value, erasure signal is lost alarm at peak value.
Further, peak detector also links to each other with configurable peak value access device, and configurable peak value access device extracts alternating current component from input signal, this alternating current component is outputed to peak detector;
Peak detector is the peak value that detects the alternating current component of input signal, and the peak value of the alternating current component of input signal is outputed to comparator.
In sum, the present invention realizes that through a peak detector and comparator LOS detects, and lowers design complexities greatly, has reduced line size and network complexity, and power consumption is very low simultaneously.
Description of drawings
Fig. 1 is the structure chart of existing amplifier;
Fig. 2 is the circuit block diagram of existing a kind of LOS testing circuit;
Fig. 3 is the circuit block diagram of existing another kind of LOS testing circuit;
Fig. 4 is the structure chart of the amplifier of embodiment of the present invention;
Fig. 5 is the circuit block diagram of the LOS testing circuit of embodiment of the present invention;
Fig. 6 is the theory diagram of peak detector of the subthreshold value of embodiment of the present invention;
Fig. 7 is the circuit structure of peak detector of the subthreshold value of embodiment of the present invention;
Fig. 8 is the theory diagram of the hysteresis comparator of embodiment of the present invention;
Fig. 9 is the circuit structure diagram of the hysteresis comparator of embodiment of the present invention;
Figure 10 is the circuit diagram of the configurable peak value access device of embodiment of the present invention.
Embodiment
The limiting amplifier of this execution mode comprises: input buffer, cascade amplifier, output buffer, DC maladjustment compensator and LOS detector.The LOS detector comprises: configurable peak value access device, peak detector, reference threshold generator and hysteresis comparator.The peak detector of this execution mode utilization subthreshold value at a high speed produces the maximum of signal, carries out sluggishness relatively with reference threshold, realizes that the LOS of high speed signal detects.
Below in conjunction with accompanying drawing this execution mode is elaborated.
As shown in Figure 4, the limiting amplifier of this execution mode comprises: input buffer T1, cascade amplifier T2, output buffer T3, DC maladjustment compensator T4 and LOS detector T5.The input of T1 is connected with prime device trans-impedance amplifier through coupling capacitance, and the output of T1 links to each other with the input of T2.T2 is made up of multistage high speed amplifier, comprising: high speed amplifier 1, high speed amplifier 2, high speed amplifier N-1 and high speed amplifier N.The output of T2 is connected to the input of T3, and the output of T3 is the output of whole amplifier.The input that the output of T2 also need be connected to T2 through T4 is to eliminate DC maladjustment.LOS detector T5 is connected to the output of input buffer T1.
As shown in Figure 5, the LOS detector comprises: configurable peak value access device I1, peak detector I2, reference threshold generator I3 and hysteresis comparator I4, and the LOS measuring ability of realization high speed signal, power consumption is very low simultaneously.
The LOS detector directly detects small-signal through the first order of configurable peak value access device access limiting amplifier.Configurable peak value access device is connected with the output of input buffer T1, and input buffer T1 is to configurable peak value access device output differential signal V
InpAnd V
Inn, configurable peak value access device extracts the alternating current component V of differential signal
In_s, with V
In_sOutput to peak detector.
Peak detector detects and obtains V
In_sPeak value V
Peak, the input signal size of this peak value reaction limiting amplifier is with V
PeakOutput to hysteresis comparator.
Reference threshold generator generation decision threshold and elimination threshold value output to hysteresis comparator with decision threshold that produces and elimination threshold value.Can be according to the LOS controlling grade, configuration reference threshold generator produces any a pair of decision threshold and elimination threshold value in the table 1.
Hysteresis comparator is with V
PeakCompare with decision threshold, at V
PeakDuring less than decision threshold, produce the LOS alarm; At V
PeakDuring greater than the elimination threshold value, eliminate the LOS alarm.
Shown in Figure 6 is the theory diagram of the peak detector of subthreshold value, comprises constant current source B01, and it decides electric current is Iso; Operational amplifier B02, the first subthreshold value controller B03, its drain-source current is Ids3, and its grid links to each other with drain electrode; Subthreshold value controller B04, its drain-source current are Ids4, and its grid connects input signal Vin; Amplifier B02 connects the drain electrode of B03 and B04; The end of charge controller B05 is connected with the output of amplifier B02, and the other end is connected with energy-storage travelling wave tube B06, and energy-storage travelling wave tube B06 is also connected to the tie point of constant current source B01 and subthreshold value controller.Because the effect of amplifier B02, the gate source voltage of subthreshold value controller B03 and B04 equate, i.e. Vds3=Vds4, if guarantee Ids3+Ids4=Iso, the drain voltage of subthreshold value controller B04 just can maintain the peak value of importing the Vin signal.If Vin increases or reduces, the output of amplifier just feeds back to B05, and control reaches the purpose of the peak value that keeps Vin to the charging increase and decrease of energy-storage travelling wave tube B06.
Shown in Figure 7 is the circuit structure of the peak detector of this execution mode subthreshold value; The grid of NM3 is connected with the output of configurable peak detector; The source electrode of NM3 links to each other with the source electrode of NM4; Be connected to the drain electrode of NM1 together, the drain electrode of NM3 and NM4 is connected respectively on the anodal P and negative pole N of amplifier OPAMP1, and the grid of NM4 forms output signal Vpeak with draining to link to each other simultaneously.The output stage of amplifier links to each other with the grid of PM1, and an end of the drain electrode of PM1 and resistance R 1 links to each other, and the other end of R1 links to each other with the drain electrode of NM3, and the source electrode of PM1 meets VDD.The grid of NM1 links to each other with the grid of NM2, and the source electrode of NM1 and NM2 all is connected to GND, and NM1 and NM2 form the current mirror image tube like this.The drain electrode of NM2 links to each other with the source electrode of NM5, and the grid of NM5 links to each other with the grid of NM4, and the drain electrode of NM4 links to each other with the drain electrode of PM2, and the grid of PM3 links to each other with drain electrode, and links to each other with the grid of PM2, and the source electrode of PM3 and PM2 all is connected to VDD.
NM3 plays a part non-linear rectifier cell, if Is/C is enough little, if promptly there is not V
GS1, the source electrode of NM3 can be followed the variation of Vin_s; Compensate actual V so introduce NM4
GS1Pressure drop, Vpeak can trace into the peak value of Vin_s like this.In order to eliminate the raceway groove mudulation effect of NM1 and NM2, between the grid leak utmost point of the drain electrode of NM3 and NM4, increased an one-level amplifier.
Because NM3 and the shared same tail current of NM4; The size of setting this tail current can make NM3 and NM4 be operated in the subthreshold value zone; Because the effect of amplifier, the Vds of NM3 and NM4 equates and
of NM3 and
ratio as expected of NM4 design at 1: 1.
If input signal increased before amplitude peak, the polar plate voltage on the C2 electric capacity will increase, because the tail current of NM3 and NM4 is certain, though the corresponding minimizing of electric current of NM4 pipe, the Vds of NM4 and the effect of OPAMP1 increase Vpeak; After reaching maximum to input signal, if input signal reduces, the polar plate voltage on the capacitor C 2 can reduce, but the electric current of NM4 can strengthen in the short time, and Vpeak remains unchanged.If the amplitude of input signal is the signal in cycle in certain limit, then Vpeak can become the peak tracker of Vin input signal.In particular cases, the breadth length ratio as the amplitude A of importing periodic signal and NM3 and NM4 satisfies
(n is a slope factor, approximately is 1.5, U
T=KT/q) time, the amplitude peak A of input signal just part obtains keeping, and becomes peak detector.
Shown in Figure 8 is the theory diagram of the hysteresis comparator of this execution mode; Be on the basis of common CML (CML) latch (LATCH), to apply the inductance peaker; The inductance peaker is connected between the positive input terminal and negative input end of latch, carries out the high speed support comparator that the bandwidth expansion obtains.
Shown in Figure 9 is the circuit structure of the hysteresis comparator of this execution mode, and IN+ inserts the grid of M3 and M4 respectively, and the source electrode of M3 and M4 links to each other, and links the drain electrode of M2, and the grid of M2 and M1 links to each other and is connected to V
REF, source electrode all connects GND, and the source electrode of M5 and M6 links to each other and is connected to the drain electrode of M1, and the drain electrode of M3 and M5 links to each other and is connected to an end of resistance R 1, and the end of R1 and L1 is connected, and the other end of L1 is connected with VDD; The drain electrode of M4 and M6 links to each other and is connected to an end of resistance R 2, R2 and L2 series connection, and L2 is connected with VDD.Hysteresis comparator compares the output Vpeak of peak detector and the output Vthres of reference threshold generator, and output obtains the output signal ALOSB signal of I4, accomplishes the LOS measuring ability of limiting amplifier.
The realization of sluggish scope is managed through M5 and M6 and is realized, sluggish size is through the biasing V of M1 pipe
REFControl, realize eliminating the not overlapping of threshold value and decision threshold through hysteresis comparator.
The generation of Vthres threshold circuit can realize through the reference threshold module, and digital controlled signal is carried out the difference configuration, just can accomplish the generation of different reference threshold level, accomplishes the function of similar table 1.
Shown in Figure 10 is configurable peak value access device, for directly being connected on input stage, is AC signal owing to what obtain, can be directly connected on the output of input buffering T1; Also can change the parts of single-ended Vin_s through the both-end with Vinp and Vinn, Vinp is received the grid that PMOS manages PM1, the source electrode of PM1 is connected to VDD; The drain electrode of PM1 links to each other with the drain electrode of NM1; Form output point Vin_S, the source electrode of NM1 is connected to ground, and the grid of NM1 is connected to VREF.Form the structure of source follower like this.
The alternating component that Figure 10 takes out Vinp through source follower, its flip-flop depends on NM1 and V
REF, the smooth connection of realization and peak detector.
With reference to figure 4; When LOS detector T5 need insert in the somewhere of high speed amplifier 1, high speed amplifier 2, high speed amplifier N-1 or high speed amplifier N; Can if LOS detector T5 inserted, then need not configurable peak value access device before input buffering T1 through connecting configurable peak value access device detection signal; Because TIA is connected through coupling capacitance with limiting amplifier, the input of limiting amplifier is exactly an AC signal.
With reference to figure 7, because the little electric current of NM1 and NM2, and the subthreshold value work characteristics of NM3 and NM4, the power consumption of the LOS detector of this execution mode is very low.It doesn't matter in the operating rate of NM3 and NM4 and mutual conductance simultaneously, so circuit can be worked under very high speed.
This execution mode also provides a kind of detection method of dropout, comprising: peak detector detects the peak value of input signal, and the peak value of input signal is outputed to comparator; The reference threshold generator produces decision threshold, and decision threshold is outputed to comparator; Comparator compares the peak value and the decision threshold of input signal, during less than decision threshold, produces loss of signal alarm at peak value.
The reference threshold generator also produces the elimination threshold value, will eliminate threshold value and output to comparator; Comparator also compares the peak value of input signal with eliminating threshold value, when eliminating threshold value, erasure signal is lost alarm at peak value.
Peak detector also links to each other with configurable peak value access device, and configurable peak value access device extracts alternating current component from input signal, this alternating current component is outputed to peak detector; Peak detector is the peak value that detects the alternating current component of input signal, and the peak value of the alternating current component of input signal is outputed to comparator.
Should be understood that; Above-mentioned description to the specific embodiment of the invention is comparatively detailed; But can not therefore be interpreted as restriction to scope of patent protection of the present invention; Simple and easy reasoning of all processes and conversion all are the included scopes of the present invention, and scope of patent protection of the present invention should be as the criterion with accompanying claims.