Disclosure of Invention
Therefore, a primary object of the present invention is to provide a noise monitoring circuit for a high-speed interface bus, so as to accurately determine whether the input amplitude of a signal entering an idle state bus is a noise signal or a useful signal, thereby effectively improving the service efficiency of the interface bus and reducing the power consumption of the high-speed bus.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
the noise monitoring circuit comprises a fixed gain signal amplifying sub-circuit, an amplitude extracting sub-circuit and a comparison judging sub-circuit; wherein:
the fixed gain signal amplifying sub-circuit is used for effectively amplifying signals to be input into the interface bus;
the amplitude extraction sub-circuit is used for carrying out envelope extraction on the signal amplified by the fixed gain signal amplification sub-circuit to obtain the amplitude of the signal;
and the comparison and judgment sub-circuit is used for judging the amplitude of the extracted signal according to the reference voltage threshold value and judging whether the signal is a useful signal or a noise signal.
Wherein: the fixed gain signal amplifying sub-circuit comprises a two-stage differential amplifier circuit, and specifically comprises:
in the first-stage differential amplifier sub-circuit, the gates G of the transistors M1 and M2 are connected to VinA and VinB, respectively; the drain electrode D of the transistor M1 and the drain electrode D of the transistor M2 are respectively connected with one end of a resistor R5 and one end of a resistor R6 in series, the other ends of the resistor R5 and the resistor R6 are connected with a resistor R4 in parallel, and the other end of the resistor R4 is connected with the end of the working voltage VDDA; the source S of the transistor M1 and the source S of the transistor M2 are connected in parallel and then connected with the negative electrode of the current source Ki1, and the positive electrode of the current source Ki1 is connected with the working ground GND1;
in the second-stage differential amplifier sub-circuit, the gate G of the transistor M4 and the gate G of the transistor M3 are connected to the drain D of the transistor M1 and the drain D of the transistor M2, respectively; the drain electrode D of the transistor M3 and the drain electrode D of the transistor M4 are respectively connected with one ends of a resistor R7 and a resistor R8, and the other ends of the resistor R7 and the resistor R8 are connected in parallel and then are connected with the end of the working voltage VDDA; the source S of the transistor M3 and the source S of the transistor M4 are connected in parallel and then connected with the cathode of the current source Ki2, and the anode of the current source Ki2 is connected with the working ground GND1;
the drain D of the transistor M3 and the drain D of the transistor M4 of the second stage differential amplifier sub-circuit serve as signal output terminals VFA and VFB, respectively.
Wherein: the amplitude extraction sub-circuit has the following specific circuit structure:
the grid G of the transistor M12 and the grid G of the transistor M9 are respectively and electrically connected with the signal output ends VFA and VFB of the fixed gain signal amplifying sub-circuit; the drain electrode D of the transistor M9 and the drain electrode D of the transistor M12 are connected with the working voltage VDDA; the source S of the transistor M9 and the source S of the transistor M12 are connected to the drain D of the transistor M29 and the drain D of the transistor M28, respectively; the gate G of the transistor M29 and the gate G of the transistor M28 are connected in series, and the source S of the transistor M29 and the source S of the transistor M28 are connected in parallel and then connected to the working ground GND1;
a signal line connecting the source electrode S of the transistor M9 and the source electrode S of the transistor M12 is used as an output end of the signal VOA extracted by the amplitude detection; a transistor M10 and a resistor R9 are connected between the drain electrode D of the transistor M9 and the signal line VOA in a bridging manner, and a capacitor C2 is connected between the source electrode S of the transistor M29 and the signal line VOA in a parallel manner; a transistor M11 and a resistor R10 are connected between the drain D of the transistor M12 and the signal line VOA in a bridging manner, and a capacitor C3 is connected between the source S of the transistor M28 and the signal line VOA in a parallel manner; the gate G of the transistor M10 and the gate G of the transistor M11 are connected in series, and are connected with a bias current BIASP.
Wherein: the comparison judging sub-circuit has the following specific circuit structure:
the signal line VOA is connected to a gate G of the transistor M16, a drain D of the transistor M16 is connected to a drain D of the transistor M18, the gate G of the transistor M18 is connected to a gate G of the transistor M19, and a source S of the transistor M18 is connected to a drain D of the transistor M19;
the drain D of the transistor M16 is connected with the gate G of the transistor M18; the source S of the transistor M16 and the source S of the transistor M17 are connected in parallel and then connected to the drain D of the transistor M20, the gate G of the transistor M20 is connected to the voltage Vc, and the source S of the transistor M20 is connected to the working ground GND1;
the gate G of the transistor M17 is connected to the reference voltage Vref, and the source S of the transistor M19 is connected to the drain D of the transistor M17 as an output signal line Vout for comparing and judging signals.
The noise monitoring circuit applied to the high-speed interface bus has the following beneficial effects:
the noise monitoring circuit can judge according to the input amplitude of the signal, and the amplitude of the noise is usually far smaller than that of the signal, and can accurately judge whether the input signal is noise or useful signal through a series of signal processing processes, namely fixed gain signal amplification, signal amplitude extraction and comparison judging processes, so that the use efficiency of the bus is effectively improved, and the power consumption of the high-speed differential bus is reduced.
The noise monitoring circuit is a highly symmetrical circuit structure and has the characteristics of simple structure and low power consumption.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The signal amplitude of the high-speed buses including the high-speed differential buses is smaller and smaller, so that useful signals are closer and closer to noise amplitude, which brings a plurality of difficulties for high-accuracy transmission of the signals.
When the bus stops data transmission, the interface of the bus is usually in an idle state, but the bus needs to be kept in a monitoring state all the time, and whether a useful signal is transmitted or not needs to be monitored in real time, but a certain noise signal is usually transmitted at the same time, and sometimes, excessive noise can cause misoperation.
In order to judge whether the signal transmitted from the input end of the high-speed bus is a useful signal or a noise signal, the embodiment of the invention designs the following circuit structure.
Fig. 1 is a functional block diagram of a noise monitoring circuit applied to a high-speed interface bus according to an embodiment of the present invention.
As shown in fig. 1, the noise monitoring circuit mainly includes a fixed gain signal amplifying sub-circuit (i.e., a first module), an amplitude extracting sub-circuit (i.e., a second module) and a comparing and judging sub-circuit (i.e., a third module) which are sequentially connected. The circuit also comprises a bias voltage and bias current module sub-circuit for outputting bias voltage signals and bias current signals required by the circuit of the embodiment of the invention, which is the prior art and is not repeated in the invention. Wherein:
the fixed gain signal amplifying sub-circuit is a signal amplitude monitoring circuit; the method is mainly used for effectively amplifying the signals to be input into the interface bus. Referring to fig. 1, when the differential signals VINA and VINB are simultaneously inputted, since the fixed gain signal amplifying sub-circuit is an amplifier having a fixed gain, it can effectively amplify the signal, but the amplification factor is limited to 60db at maximum.
The amplitude extraction sub-circuit is an envelope amplitude detection circuit; the signal amplitude extraction circuit is used for extracting the signal amplitude amplified by the fixed gain signal amplifying sub-circuit, namely, signal detection is carried out, and the signal amplitude is extracted.
The comparison judging sub-circuit is a comparator circuit; and the method is used for judging whether the signal is a useful signal or a noise signal according to the amplitude of the extracted signal. The specific method comprises the following steps: a signal reference threshold is preset, when the amplitude of the signal extracted through the steps is larger than the reference threshold, the signal is judged to be a useful signal, otherwise, when the amplitude of the extracted signal is lower than the reference threshold, the signal is judged to be a noise signal.
Fig. 2 is a schematic diagram of a fixed gain signal amplifying sub-circuit according to the embodiment of fig. 1.
As shown in fig. 2, the fixed gain signal amplifying sub-circuit is mainly implemented by a two-stage differential amplifier circuit.
The specific circuit structure is as follows: in the first stage differential amplifier sub-circuit, a transistor M1 and a transistor M2 and a current source Ki1 are included. The grid electrodes G of the transistor M1 and the transistor M2 are respectively connected with VinA and VinB; the drains D of the transistors M1 and M2 are respectively connected with one ends of a resistor R5 and a resistor R6 in series, the other ends of the resistor R5 and the resistor R6 are connected with a resistor R4 in parallel, and the other ends of the resistor R4 are connected with the working voltage VDDA end. The source electrode S of the transistor M1 and the source electrode S of the transistor M2 are connected in parallel and then connected to the negative electrode of the current source Ki1, and the positive electrode of the current source Ki1 is grounded GND1.
In the second stage differential amplifier sub-circuit, a transistor M3 and a transistor M4 and a current source Ki2 are included. The gates G of the transistors M4 and M3 are respectively connected with the drain D (DAT 1N end) of the transistor M1 and the drain D (DAT 1P end) of the transistor M2; the drain electrode D of the transistor M3 and the drain electrode D of the transistor M4 are respectively connected with one ends of a resistor R7 and a resistor R8, and the other ends of the resistor R7 and the resistor R8 are connected in parallel and then connected with the end of the working voltage VDDA. The sources S of the transistor M3 and the transistor M4 are connected in parallel and then connected with the negative electrode of the current source Ki2, and the positive electrode of the current source Ki2 is grounded to GND1.
The drain D of the transistor M3 and the drain D of the transistor M4 of the second stage differential amplifier sub-circuit serve as signal output terminals VFA and VFB, respectively.
In the embodiment of the present invention, the transistors M1, M2, M3 and M4 may be P-type field effect transistors.
The fixed gain signal amplifying sub-circuit formed by the first-stage differential amplifier and the second-stage differential amplifier can realize 60db gain.
Fig. 3 is a schematic diagram of an amplitude extraction sub-circuit according to the embodiment of fig. 1.
As shown in fig. 3, the amplitude extraction sub-circuit, i.e., the signal amplitude detection sub-circuit, is an envelope signal detection sub-circuit for implementing the amplitude detection function of the differential signal.
The amplitude extraction sub-circuit consists of two stages of sub-circuits. Wherein: the first stage sub-circuit mainly comprises a transistor M9, a transistor M29, a transistor M10, a resistor R9 and a capacitor C2; the second stage sub-circuit mainly comprises a transistor M12, a transistor M28, a transistor M11, a resistor R10 and a capacitor C3.
The specific circuit structure is as follows: the signal output terminals VFA and VFB of the fixed gain signal amplifying sub-circuit are electrically connected to the gate G of the transistor M12 and the gate G of the transistor M9 in the amplitude extracting sub-circuit, respectively. The drain D of the transistor M9 and the drain D of the transistor M12 are connected to the operation voltage VDDA.
The source S of the transistor M9 and the source S of the transistor M12 are connected to the drain D of the transistor M29 and the drain D of the transistor M28, respectively.
The gate G of the transistor M29 and the gate G of the transistor M28 are connected in series with a bias voltage V BIASN The source S of the transistor M29 and the source S of the transistor M28 are connected in parallel and then connected to the working ground GND1.
A signal line connecting the source S of the transistor M9 and the source S of the transistor M12 is used as an output terminal of the signal VOA extracted by the amplitude detection. A transistor M10 and a resistor R9 are connected between the drain D of the transistor M9 and the signal line VOA in a bridging manner, and a capacitor C2 is connected between the source S of the transistor M29 and the signal line VOA in parallel. Similarly, a transistor M11 and a resistor R10 are connected across the drain D of the transistor M12 and the signal line VOA, and a capacitor C3 is connected in parallel between the source S of the transistor M28 and the signal line VOA.
The gate G of the transistor M10 and the gate G of the transistor M11 are connected in series, and are connected to a bias current BIASP.
By using the amplitude extraction sub-circuit, the intensity of the signal can be effectively extracted through the signal line VOA.
Fig. 4 is a schematic diagram of a comparison and judgment sub-circuit according to the embodiment of fig. 1.
As shown in fig. 4, the comparison judging sub-circuit mainly includes a transistor M18, a transistor M19, a transistor M16, a transistor M17, and a transistor M20.
The specific circuit structure is as follows: the signal line VOA is connected to the gate G of the transistor M16, the drain D of the transistor M16 is connected to the drain D of the transistor M18, the gate G of the transistor M18 is connected to the gate G of the transistor M19, and the source S of the transistor M18 is connected to the drain D of the transistor M19.
The drain D of the transistor M16 is connected with the gate G of the transistor M18; the source S of the transistor M16 and the source S of the transistor M17 are connected in parallel and then connected to the drain D of the transistor M20, the gate G of the transistor M20 is connected to the voltage Vc, and the source S of the transistor M20 is connected to the ground GND1.
The gate G of the transistor M17 is connected to the reference voltage Vref, and the source S of the transistor M19 is connected to the drain D of the transistor M17 as an output signal line Vout for comparing and judging signals.
In this way, by comparing the signal amplitude of the output signal VOA of the amplitude extraction sub-circuit with the reference voltage threshold Vref, it is possible to determine whether the input signal is a useful signal or a noise signal from the output result of the output signal Vout.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention.