1. Technical Field
Embodiments of the present disclosure relate to signal test systems and methods, and particularly to a system and method for identifying a peripheral component interconnect express (PCIe) signal.
2. Description of Related Art
A peripheral component interconnect express (PCIe) device (e.g., a motherboard) can generate different PCIe signals, such as a PCIe 2.X signal with 3.5 dB pre-emphasis and a PCIe 2.X signal with 6.0 dB pre-emphasis. In order to test the PCIe signals correctly, signal types of the PCIe signals are desired to be determined in advance.
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a program language. In one embodiment, the program language may be Java or C. One or more software instructions in the modules may be embedded in firmware, such as an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other storage device.
The system 10 may include a signal identification unit 11, a storage system 12, a processor 13, and an output device 14. One or more computerized codes of the signal identification unit 11 may be stored in the storage system 12 and executed by the processor 13. In one embodiment, the storage system 12 may be a memory, a hard disk, or a compact disk. The output device 14 may be a display screen or a printer, which outputs the signal type of the PCIe signal to a user.
The obtaining module 210 obtains a waveform of the PCIe signal from the PCIe device 16. As mentioned above, the PCIe signal may be generated by the PCIe device 16 and output to another PCIe device. In one embodiment, the obtaining module 210 may control the oscilloscope 15 to obtain the waveform from the PCIe device 16.
The measurement module 220 calculates a pre-emphasis value of the PCIe signal according to the waveform. In one embodiment, the measurement module 220 may measure a peak voltage difference and a steady-state voltage difference of the PCIe signal according to the waveform. According to the peak voltage difference and the steady-state voltage difference, the measurement module 220 calculates the pre-emphasis value of the PCIe signal. With respect to
The determination module 230 determines the signal type of the PCIe signal according to the calculated pre-emphasis value. The determination module 230 may compare the calculated pre-emphasis value of the PCIe signal with a standard pre-emphasis value of a specific PCIe signal to identify the signal type of the PCIe signal. In one embodiment, if a difference between the calculated pre-emphasis value of the PCIe signal and the standard pre-emphasis value of the specific PCIe signal is less than a predetermined amount, such as 0.5 dB, the determination module 230 determines that the signal type of the PCIe signal is the specific PCIe signal. For example, a standard pre-emphasis value of one kind of PCIe 2.X signal is 3.5 dB. If the calculated pre-emphasis value is in a range from 3.0 dB to 4.0 dB, the PCIe signal is considered to be a PCIe 2.X signal with 3.5 dB pre-emphasis.
The output module 240 outputs the signal type of the PCIe signal to the output device 14. In one embodiment, the output module 240 displays the signal type on a display screen.
In block S301, the obtaining module 210 obtains a waveform of the PCIe signal from the PCIe device 16. In one embodiment, the obtaining module 210 may control the oscilloscope 15 to obtain the waveform of the PCIe signal. The obtaining module 210 may send a waveform capture command to the oscilloscope 15. In response to the waveform capture command, the oscilloscope 15 captures the waveform from the PCIe device 16, and sends the waveform to the obtaining module 210.
In block S302, the measurement module 220 measures a positive peak voltage and a negative peak voltage of the PCIe signal according to the waveform. The measurement module 220 calculates a peak voltage difference of the PCIe signal by subtracting the negative peak voltage from the positive peak voltage. In one embodiment with respect to
In block S303, the measurement module 220 measures a positive steady-state voltage and a negative steady-state voltage of the PCIe signal according to the waveform. The measurement module 220 calculates a steady-state voltage difference of the PCIe signal by subtracting the negative steady-state voltage from the positive steady-state voltage. In one embodiment with respect to
In block S304, the measurement module 220 calculates a pre-emphasis value according to the peak voltage difference and the steady-state voltage difference. One embodiment of a formula to calculate the pre-emphasis value may be as follows: 20×Lg(D1/D2), where “D1” denotes the peak voltage difference, “D2” denotes the steady-state voltage difference, “Lg” denotes a base-10 logarithm. For example, if the peak voltage difference is 0.86V and the steady-state voltage is 0.42V, the pre-emphasis is 20×Lg(0.86/0.42)≈6 dB.
In block S305, the determination module 230 determines a signal type of the PCIe signal according to the calculated pre-emphasis value. In one embodiment, if a difference between the calculated pre-emphasis value of the PCIe signal and a standard pre-emphasis value of a specific PCIe signal is less than a predetermined amount, such as 0.5 dB, the determination module 230 determines that the signal type of the PCIe signal is the specific PCIe signal. In one example, a standard pre-emphasis value of one kind of PCIe 2.X signal is 3.5 dB. If the calculated pre-emphasis value is in a range from 3.0 dB to 4.0 dB, the PCIe signal is considered to be a PCIe 2.X signal with 3.5 dB pre-emphasis. In another example, a standard pre-emphasis value of another kind of PCIe 2.X signal is 6.0 dB. If the calculated pre-emphasis value is in a range from 5.5 dB to 6.5 dB, the PCIe signal is considered to be a PCIe 2.X signal with 6.0 dB pre-emphasis.
In block S306, the output module 240 outputs the signal type of the PCIe signal to the output device 14. In one embodiment, the output device 14 is a display screen. Accordingly, the output module 240 displays the signal type, such as PCIe 2.X with 3.5 dB pre-emphasis on the display screen.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
| Number | Date | Country | Kind |
|---|---|---|---|
| 200910310577.1 | Nov 2009 | CN | national |