A method and a measuring apparatus for measuring noise of a device under test (dut) is provided, wherein the dut is connected to a link partner (lp) device via a cable, and the measuring apparatus is coupled to the dut and lp device. The method includes: controlling the lp device to transmit a far-end data sequence to the dut according to transmission data; controlling the dut to recover the transmission data for generating aided-data sequence according to the transmission data, wherein the aided-data sequence is configured to perform cancellation with a received far-end data sequence to generate a cancellation result; generating a first noise value and a second noise value in a first training phase and a second training phase, respectively; and estimating noise from at least one circuit according to the first noise value and the second noise value.
|
1. A method for measuring noise of a device under test (dut), the dut being connected to a link partner (lp) device via a cable, the method comprising:
controlling a pseudo noise generator of the lp device to generate a far-end data sequence according to transmission data, and transmitting the far-end data sequence to the dut via the cable;
controlling a pseudo noise descrambler of the dut to recover the transmission data according to the far-end data sequence received by the dut, to allow a pseudo noise generator of the dut to generate an aided-data sequence according to the transmission data, wherein the aided-data sequence is configured to perform cancellation with the far-end data sequence received by the dut to generate a cancellation result;
under a condition where the lp device transmits the far-end data sequence to the dut and the dut substantially transmits no data to the lp device, obtaining a first noise value according to the cancellation result;
under a condition where the lp device transmits the far-end data sequence to the dut and the dut utilizes at least one circuit therein to transmit the aided-data sequence to the lp device at the same time, obtaining a second noise value according to the cancellation result; and
calculating a difference between the first noise value and the second noise value, to estimate noise from the at least one circuit.
8. A measuring apparatus for measuring noise of a device under test (dut), the dut being connected to a link partner (lp) device via a cable, the measuring apparatus being coupled to the dut and the lp device, the measuring apparatus comprising:
a storage circuit, configured to store a program code; and
a processing circuit, coupled to the storage circuit, configured to control the measuring apparatus according to the program code, to transmit control signals to the dut and the lp device, respectively;
wherein:
the measuring apparatus controls a pseudo noise generator of the lp device to generate a far-end data sequence according to transmission data, and transmit the far-end data sequence to the dut via the cable;
the measuring apparatus controls a pseudo noise descrambler of the dut to recover the transmission data according to the far-end data sequence received by the dut, to allow a pseudo noise generator of the dut to generate an aided-data sequence according to the transmission data, wherein the aided-data sequence is configured to perform cancellation with the far-end data sequence received by the dut to generate a cancellation result;
under a condition where the lp device transmits the far-end data sequence to the dut and the dut substantially transmits no data to the lp device, the measuring apparatus obtains a first noise value according to the cancellation result;
under a condition where the lp device transmits the far-end data sequence to the dut and the dut utilizes at least one circuit therein to transmit the aided-data sequence to the lp device at the same time, the measuring apparatus obtains a second noise value according to the cancellation result; and
the measuring apparatus calculates a difference between the first noise value and the second noise value, to estimate noise from the at least one circuit.
2. The method of
3. The method of
4. The method of
controlling an equalizer of the dut to perform equalization processing upon the far-end data sequence received by the dut, in order to generate an equalized far-end data sequence; and
controlling a slicer of the dut to obtain a recovered far-end data sequence according to the equalized far-end data sequence, to allow the pseudo noise descrambler to recover the transmission data according to the recovered far-end data sequence.
5. The method of
6. The method of
7. The method of
9. The measuring apparatus of
10. The measuring apparatus of
11. The measuring apparatus of
12. The measuring apparatus of
13. The measuring apparatus of
14. The measuring apparatus of
|
The present invention is related to measurement of noise, and more particularly, to a method and a measuring apparatus for measuring noise of a device under test (DUT).
When an Ethernet transceiver transmits data to an external device through a digital-to-analog converter (DAC), a portion of noise on the data may be reflected from a cable. When measuring such noise, a related art method may stop data transmission at the other side of the cable (so that the Ethernet transceiver does not receive the signal from the other side of the cable) to ensure that the detected noise only includes the reflected noise mentioned above, rather than mixing additional signals (e.g., the signal or noise from the other side of the cable).
When the other side of the cable (e.g., a link partner device connected to the Ethernet transceiver under test via the cable) sends data to the Ethernet transceiver under test, the loading on an output terminal of the Ethernet transceiver may change, thereby impacting an amount of the reflected noise. Using the measuring method of the related art, in practice, the amount of reflected noise cannot be precisely estimated.
Thus, there is a need for a novel method and an associated measuring apparatus that can solve the problem of the related art without introducing any side effect or in a way that is less likely to introduce side effects.
An objective of the present invention is to provide a method and a measuring apparatus for measuring noise of a device under test (DUT), to solve the problem of the related art.
At least one embodiment of the present invention provides a method for measuring noise of a DUT, wherein the DUT is connected to a link partner (LP) device via a cable. The method may comprise: controlling a pseudo noise generator of the LP device to generate a far-end data sequence according to transmission data, and transmitting the far-end data sequence to the DUT via the cable; controlling a pseudo noise descrambler of the DUT to recover the transmission data according to the far-end data sequence received by the DUT, to allow a pseudo noise generator of the DUT to generate an aided-data sequence according to the transmission data, wherein the aided-data sequence is configured to perform cancellation with the far-end data sequence received by the DUT to generate a cancellation result; under a condition where the LP device transmits the far-end data sequence to the DUT and the DUT substantially transmits no data to the LP device, obtaining a first noise value according to the cancellation result; under a condition where the LP device transmits the far-end data sequence to the DUT and the DUT utilizes at least one circuit therein to transmit the aided-data sequence to the LP device at the same time, obtaining a second noise value according to the cancellation result; and calculating a difference between the first noise value and the second noise value, to estimate noise from the at least one circuit.
At least one embodiment of the present invention provides a measuring apparatus for measuring noise of a DUT, wherein the DUT is connected to a LP device via a cable, and the measuring apparatus is coupled to the DUT and the LP device. The measuring apparatus may comprise a storage circuit and a processing circuit. The storage circuit is configured to store a program code. The processing circuit is coupled to the storage circuit, and is configured to control the measuring apparatus according to the program code to transmit control signals to the DUT and the LP device. The measuring apparatus controls a pseudo noise generator of the LP device to generate a far-end data sequence according to transmission data, and transmits the far-end data sequence to the DUT via the cable; the measuring apparatus controls a pseudo noise descrambler of the DUT to recover the transmission data according to the far-end data sequence received by the DUT, to allow a pseudo noise generator of the DUT to generate an aided-data sequence according to the transmission data, wherein the aided-data sequence is configured to perform cancellation with the far-end data sequence received by the DUT to generate a cancellation result; under a condition where the LP device transmits the far-end data sequence to the DUT and the DUT substantially transmits no data to the LP device, the measuring apparatus obtains a first noise value according to the cancellation result; under a condition where the LP device transmits the far-end data sequence to the DUT and the DUT utilizes at least one circuit therein to transmit the aided-data sequence to the LP device at the same time, the measuring apparatus obtains a second noise value according to the cancellation result; and the measuring apparatus calculates a difference between the first noise value and the second noise value, to estimate noise from the at least one circuit.
The method and measuring apparatus provided by the embodiments of the present invention can obtain data and noise from the LP device first when operations of a transmitting (TX) terminal of the DUT have not started yet, and then obtain a measurement result after the operations of the TX terminal of the DUT start, in order to precisely know the amount of noise being reflected when the TX terminal of the DUT is transmitting data.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Under a condition where both the transceiver 10 and the LP device 50 follow the Ethernet specification, one of the transceiver 10 and the LP device 50 may be set in a master mode, and the other may be set in a slave mode. For example, when the LP device 50 is set in the master mode and the transceiver 10 is set in the slave mode, where the transceiver 10 may utilize the pseudo noise generator 190S (e.g., the slave pseudo noise generator therein) to output a data sequence carrying data to be transmitted to the LP device 50 to the DAC 110, and the DAC 110 may convert this data sequence from a digital format into an analog format for being transmitted on the cable 20. In another example, when the LP device 50 is set in the slave mode and the transceiver 10 is set in the master mode, where the transceiver 10 may utilize the pseudo noise generator 190M (e.g., the master pseudo noise generator therein) to output a data sequence carrying data to be transmitted to the LP device 50 to the DAC 110, and the DAC 110 may convert this data sequence from the digital format into the analog format for being transmitted on the cable 20. For brevity, this embodiment and subsequent embodiments merely describe the condition where the LP device 50 is set in the master mode and the transceiver 10 is set in the slave mode, and related details of the condition where the LP device 50 is set in the slave mode and the transceiver 10 is set in the master mode may be deduced by analogy.
In this embodiment, the LP device 50 may utilize the pseudo noise generator 590M (e.g., the master pseudo noise generator therein) may output a data sequence carrying the data to be transmitted to the transceiver 10 to the DAC 510, and the DAC 510 may convert this data sequence from the digital format into the analog format in order to generate an analog signal that is able to be transmitted via the cable 20. When the transceiver 10 receives the analog signal, the AFE circuit 120 may perform processing upon the analog signal (e.g., perform filtering through a filter therein and/or perform signal amplification through a programmable gain amplifier (PGA) therein) to generate a processed analog signal, and the ADC 130 may convert the processed analog signal from the analog format into the digital format, for obtaining a received data sequence.
In some embodiments, at the same time of the transceiver 10 receiving signals from the LP device 50, the transceiver 10 transmits signals to the LP device 50, and a portion of the signals that the transceiver 10 transmits to the LP device 50 may be reflected from the cable 20 and may be received by the AFE circuit 120. Thus, the echo canceller 180 may generate a cancellation sequence according to a data sequence to be transmitted to the LP device 50. The adder 140 may add the cancellation sequence to the received data sequence to remove data components from the received data sequence caused by the transmitted signal reflected by the cable 20 for generating a cancelled data sequence. Inter-symbol interference may occur during the process of data transmission, which may result in states or waveforms of the received data sequence being unstable; accurate values thereof are hard to be determined or interpreted. For example, assume that the cancelled data sequence is expected to express a logic value “1” representing+9 volts (V) and express a logic value “0” representing −9 V, but a voltage level of the cancelled data sequence at a certain time point keeps varying between +9 V and −9V. This makes it hard to determine whether the voltage level of the cancelled data sequence at this certain time point is +9 V or −9V. Thus, the equalizer 150 may perform equalization processing upon the cancelled data sequence, in order to eliminate or reduce signal jittering or drifting caused by these inter-symbol interferences to thereby correctly determine the values of the cancelled data sequence. Then, the slicer 160 may transmit the determined result to the pseudo noise descrambler 170 for recovering the data transmitted by the LP device 50. Those skilled in this art should understand further detailed implementations of respective components of the transceiver 10 under the Ethernet specification according to
In
In the embodiment of
In the embodiment of
In the embodiment of
After the first noise value P1 and the second noise value P2 are obtained, the measuring apparatus 30 may calculate a difference between the first noise value P1 and the second noise value P2, in order to estimate the noise from noise of the at least one circuit (e.g., the noise which is reflected when the aided-data sequence is transmitted to the cable via the DAC 110 mentioned above, such as the near-end noise noise_near). The near-end noise P(noise_near) obtained based on the method mentioned above is measured under a condition where the other side of the cable is transmitting signals, which is therefore more similar to the real case. Thus, the problem of the related art can be solved.
In Step S610, the measuring apparatus 30 may control a pseudo noise generator of the LP device to generate a far-end data sequence according to transmission data, and transmit the far-end data sequence to the DUT via the cable.
In Step S620, the measuring apparatus 30 may control a pseudo noise descrambler of the DUT to recover the transmission data according to the far-end data sequence received by the DUT, to allow a pseudo noise generator of the DUT to generate an aided-data sequence according to the transmission data, wherein the aided-data sequence is configured to perform cancellation with the far-end data sequence received by the DUT to generate a cancellation result.
In Step S630, under a condition where the LP device transmits the far-end data sequence to the DUT and the DUT substantially transmits no data to the LP device, the measuring apparatus 30 may obtain a first noise value according to the cancellation result.
In Step S640, under a condition where the LP device transmits the far-end data sequence to the DUT and the DUT utilizes at least one circuit therein to transmit the aided-data sequence to the LP device at the same time, the measuring apparatus 30 may obtain a second noise value according to the cancellation result.
In Step S650, the measuring apparatus 30 may calculate a difference between the first noise value and the second noise value, to estimate noise from the at least one circuit.
In Step S700, the measuring apparatus 30 may perform initialization setting upon the DUT and the LP device. For example, the DUT is set in the slave mode and the LP device is set in the master mode. In addition, the DUT may be connected to the LP device via a cable such as a 100-meter (100 m) cable, and the measuring apparatus 30 may perform clock synchronization of the DUT and the LP device.
In Step S710, the measuring apparatus 30 may link up the DUT and the LP device in the first training phase TP1 (e.g., controlling these devices to operate in the first training phase TP1), and set a gain of a PGA such as the PGA within the AFE circuit 120 in response to the length of the cable (e.g., 100 m). The DUT may follow a normal procedure of the training phase TP1, and the measuring apparatus 30 may monitor a SNR (signal-to-noise ratio) SNR_SL measured by a slicer (e.g., the slicer 160) of the DUT.
In Step S720, the measuring apparatus 30 may determine whether the SNR SNR_SL exceeds the first predetermined threshold SNR_eye_open (labeled “SNR_SL >SNR_eye_open?”). If the determination result shows “Yes”, it means the equalization processing of the received far-end data sequence is completed (e.g., the signal thereof is stable), and the flow proceeds with Step S730; and if the determination result shows “No”, the flow returns to Step S710.
In Step S730, the measuring apparatus 30 may keep the LP device in the first training phase TP1 and reset the equalizer within the DUT (e.g., setting the equalizer in a bypass mode, labeled “EQ=1”), then enable an echo cancellation (EC) operation matching the data (e.g., TXdata) transmitted from the LP device in the DUT, and monitor the SNR SNR_SL measured by the slicer (e.g., the slicer 160) of the DUT.
In Step S740, the measuring apparatus 30 may determine whether the SNR SNR_SL exceeds the second predetermined threshold SNR_EC_done (labeled “SNR_SL>SNR_EC_done?”). If the determination result shows “Yes”, it means the EC operation mentioned above is completed (e.g., the signal thereof is stable), the flow proceeds with Step S750; and if the determination result shows “No”, the flow returns to Step S730.
In Step S750, the measuring apparatus 30 may calculate a noise power P1 received by the slicer, where P1=P(noise_far+noise_rx), and P(noise_far+noise Tx) may represent a total power of the far-end noise noise_far and the transmission noise noise_rx.
In Step S760, the measuring apparatus 30 may set the LP device and the DUT in the second training phase TP2, then utilize a DAC (e.g., the DAC 110) of the DUT to output the transmission data TXdata, and monitor the SNR SNR_SL measured by the slicer (e.g., the slicer 160) of the DUT.
In Step S770, the measuring apparatus 30 may determine whether the SNR SNR_SL exceeds the second predetermined threshold SNR_EC_done (labeled “SNR_SL>SNR_EC_done?”). If the determination result shows “Yes”, it means the EC operation mentioned above is completed (e.g., the signal thereof is stable), and the flow proceeds with Step S780; and if the determination result shows “No”, the flow returns to Step S760.
In Step S780, the measuring apparatus 30 may calculate a noise power P2 received by the slicer, where P2=P(noise_far+noise_rx+noise_near), and P(noise_far+noise_rx+noise_near) may represent a total power of the far-end noise noise_far, the transmission noise noise_rx and the near-end noise noise_near.
In Step S790, the measuring apparatus 30 may calculate a noise power of the DAC of the DUT. For example, the measuring apparatus 30 may calculate a power value P(noise_near) of the near-end noise from the DAC by P2−P1 (e.g., P(noise_near)=P2−P1).
To summarize, the embodiments of the present invention can remove impacts of far-end noise, channel noise and non-ideal effects of an equalizer by controlling a measuring procedure to calculate near-end noise under a condition where a device at another side of a cable is transmitting signals. Thus, the embodiments of the present invention can be more close to a real-world case, thereby solving the problem of the related art.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Lin, Kai-Yue, Huang, Liang-Wei, Ho, Hsuan-Ting, Lu, Kuei-Ying
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
10937488, | Jan 28 2019 | Samsung Electronics Co., Ltd. | Electronic circuit capable of selectively compensating for crosstalk noise and inter-symbol interference |
8861578, | Jun 25 2013 | Intel Corporation | Transition time measurement of PAM4 transmitters |
20190042380, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Mar 26 2021 | LIN, KAI-YUE | Realtek Semiconductor Corp | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 057362 | /0530 | |
Mar 26 2021 | HUANG, LIANG-WEI | Realtek Semiconductor Corp | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 057362 | /0530 | |
Mar 26 2021 | LU, KUEI-YING | Realtek Semiconductor Corp | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 057362 | /0530 | |
Mar 26 2021 | HO, HSUAN-TING | Realtek Semiconductor Corp | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 057362 | /0530 | |
Sep 01 2021 | Realtek Semiconductor Corp. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Sep 01 2021 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Date | Maintenance Schedule |
Jun 07 2025 | 4 years fee payment window open |
Dec 07 2025 | 6 months grace period start (w surcharge) |
Jun 07 2026 | patent expiry (for year 4) |
Jun 07 2028 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jun 07 2029 | 8 years fee payment window open |
Dec 07 2029 | 6 months grace period start (w surcharge) |
Jun 07 2030 | patent expiry (for year 8) |
Jun 07 2032 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jun 07 2033 | 12 years fee payment window open |
Dec 07 2033 | 6 months grace period start (w surcharge) |
Jun 07 2034 | patent expiry (for year 12) |
Jun 07 2036 | 2 years to revive unintentionally abandoned end. (for year 12) |