Error rate measuring apparatus and error rate measuring method

11579192 · 2023-02-14

Assignee

Inventors

Cpc classification

International classification

Abstract

An error rate measuring apparatus includes a data transmission unit that transmits a test signal of a known pattern and a parameter value defined by a communication standard to a device under test, and a bit error measurement unit that measures a bit error of a signal transmitted from the device under test. The data transmission unit sequentially changes the parameter value and transmits the parameter value to the device under test. The bit error measurement unit measures a bit error of a signal transmitted from the device under test corresponding to the parameter value. The error rate measuring apparatus further includes a discrimination unit that discriminates a parameter value at which the number of bit errors is the least in a measurement result of the bit error measurement unit, as an optimum value of emphasis of an output waveform of the device under test.

Claims

1. An error rate measuring apparatus comprising: a data transmission unit that transmits a test signal of a known pattern and a parameter value defined by a communication standard to a device under test; and a bit error measurement unit that measures a bit error of a signal transmitted from the device under test, wherein the data transmission unit sequentially changes the parameter value for predetermined times and transmits the parameter value to the device under test, the bit error measurement unit measures a bit error of a signal transmitted from the device under test corresponding to the parameter value, and the error rate measuring apparatus further comprises a discrimination unit that discriminates a parameter value at which a number of bit errors is the least in measurement results of the bit error measurement unit after sequentially changing the parameter value for the predetermined times, as an optimum value of emphasis of an output waveform of the device under test.

2. The error rate measuring apparatus according to claim 1, wherein the communication standard is a PCI Express standard, and the data transmission unit sequentially changes the parameter value for the predetermined times by Preset or Cursor within a timeout time of Recovery Equalization Phase during link training for managing a state of a link and transmits the parameter value to the device under test.

3. The error rate measuring apparatus according to claim 2, wherein the data transmission unit transmits the optimum value of the emphasis to the device under test, and the bit error measurement unit measures a bit error of the output waveform of the device under test with the emphasis adjusted and controlled with the optimum value of the emphasis transmitted from the data transmission unit to the device under test in a state in which a link training and status state machine of the device under test transits to a state of loopback.

4. The error rate measuring apparatus according to claim 3, further comprising: a storage unit that stores a state transition log including the measurement results of the bit error measured by the bit error measurement unit.

5. An error rate measuring method that transmits a test signal of a known pattern and a parameter value defined by a communication standard to a device under test, and measures a bit error of a signal transmitted from the device under test, the error rate measuring method comprising: sequentially changing the parameter value for predetermined times and transmitting the parameter value to the device under test; measuring a bit error of a signal transmitted from the device under test corresponding to the parameter value; and discriminating a parameter value at which a number of bit errors is the least in measurement results of the bit error after sequentially changing the parameter value for the predetermined times, as an optimum value of emphasis of an output waveform of the device under test.

6. The error rate measuring method according to claim 5, wherein the communication standard is a PCI Express standard, and the sequentially changing of the parameter value for the predetermined times and transmitting the parameter value to the device under test is sequentially changing the parameter value by Preset or Cursor within a timeout time of Recovery Equalization Phase during link training for managing a state of a link and transmitting the parameter value to the device under test.

7. The error rate measuring method according to claim 6, further comprising: transmitting the optimum value of the emphasis to the device under test; and measuring a bit error of the output waveform of the device under test with the emphasis adjusted and controlled with the optimum value of the emphasis transmitted to the device under test in a state in which a link training and status state machine of the device under test transits to a state of loopback.

8. The error rate measuring method according to claim 7, further comprising: storing a state transition log including the measurement results of the bit error.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a block diagram showing the schematic configuration of an error rate measuring apparatus according to the invention.

(2) FIG. 2 is a flowchart showing a processing procedure for optimizing emphasis of an output waveform of a device under test by an error rate measuring apparatus according to the invention.

(3) FIG. 3 is a diagram showing an example of a state transition log including a bit error measurement result when Preset is incremented by the error rate measuring apparatus according to the invention.

(4) FIG. 4 is a state transition diagram of an LTSSM as an example of a link state management mechanism.

BEST MODE FOR CARRYING OUT THE INVENTION

(5) Hereinafter, a mode for carrying out the invention will be described in detail referring to the accompanying drawings.

Outline of the Invention

(6) An error rate measuring apparatus according to the invention has a device conforming to, for example, a standard of PCIe that is a connection standard of an expansion bus or an expansion slot, as a device under test (DUT), transmits a test signal of a known pattern including fixed data to the device under test in a state in which the device under test transits to a state of signal pattern return (a “Loopback” state of a link training and status state machine (LTSSM) of FIG. 4), and compares a signal under test returned and received from the device under test in compliance with the transmission of the test signal with a reference signal to be a reference in units of bits and measure a bit error rate.

(7) In particular, an object of the invention is to acquire an optimum value of emphasis of an output waveform of the device under test optimum for reception in the error rate measuring apparatus during link training for managing a state of a link, to adjust and control the emphasis of the output waveform of the device under test with the optimum value, and to perform bit error measurement in a Link Equalization Test (hereinafter, referred to as a reception performance evaluation test).

(8) As shown in FIG. 1, to achieve the above-described object, an error rate measuring apparatus 1 schematically includes setting unit 2, a link state management unit 3, a data transmission unit 4, a data reception unit 5, and a storage unit 6, and has functions of sequentially changing a parameter value (Preset or Cursor) within a timeout time of Recovery Equalization as one state of a link state management mechanism (LTSSM of FIG. 4) and making a request of change (transmission) to the device under test W to measure a bit error, holding a parameter value at which the number of measured bit errors is the least, as an optimum value of emphasis, requesting the device under test W for the held optimum value, and adjusting and controlling the emphasis of the output waveform of the device under test W with the optimum value to perform bit error measurement in the reception performance evaluation test.

(9) As shown in FIG. 1, the device under test W mounts a link state management unit W1 by the LTSSM of FIG. 4 as a link state management mechanism that manages a link state, and schematically includes a data reception unit W2 and a data transmission unit W3. Hereinafter, each configuration of the device under test W and the error rate measuring apparatus 1 will be described.

(10) Configuration of Device Under Test

(11) The data reception unit W2 receives a change instruction of a parameter value (Preset or Cursor) from the data transmission unit 4 of the error rate measuring apparatus 1 during link training for managing a state of a link in executing the optimization of the emphasis of the output waveform of the device under test W with the reception performance evaluation test.

(12) The optimization of the emphasis means that a parameter value (Preset or Cursor) at which the number of bit errors is the least within a given time (within the timeout time of Recovery Equalization in the reception performance evaluation test) is set as the optimum value and the emphasis of the output waveform of the device under test W is adjusted and controlled with the optimum value.

(13) In performing the bit error measurement, the data reception unit W2 receives a test signal of a known pattern including fixed data from the data transmission unit 4 of the error rate measuring apparatus 1 in a state of transiting to a state (a “Loopback” state of the LTSSM of FIG. 4) of signal pattern return.

(14) The data transmission unit W3 has an emphasis control unit W3a that adjusts and controls the emphasis of the output waveform of the device under test W in compliance with the change instruction of the parameter value received by the data reception unit W2 from the data transmission unit 4 of the error rate measuring apparatus in executing the optimization of the emphasis of the output waveform of the device under test W with the reception performance evaluation test.

(15) In performing the bit error measurement, in a case where the data reception unit W2 receives the test signal of the known pattern from the data transmission unit 4 of the error rate measuring apparatus 1, the data transmission unit W3 returns and transmits a response signal to the received test signal to the error rate measuring apparatus 1 as a signal under test.

(16) Configuration of Error Rate Measuring Apparatus

(17) The setting unit 2 performs various settings regarding the bit error measurement. Specifically, the setting unit 2 performs a setting about whether or not to execute the optimization of the emphasis of the output waveform of the device under test W with the reception performance evaluation test, a selection setting about whether the device under test W is “Upstream Port” (Add-in Card: downstream device) or “Downstream Port” (system device: upstream device), a selection setting of the parameter value: “Preset” (any of Preset 0 to Preset 10) or “Cursor” (designated with three parameters of Pre-cursor, Cursor, and Post-cursor) the request of change (transmission) of which is made to the device under test W, a setting of an upper limit value of the number of executions of the adjustment of the emphasis by the request of change (transmission) of the parameter value determined by the timeout time of Recovery Equalization.

(18) In a case where the optimization of the emphasis is not executed, the setting unit 2 sets “Preset” (any of Preset 0 to Preset 10) or “Cursor” (designated with three parameters of Pre-cursor, Cursor, and Post-cursor) desired by a user.

(19) The link state management unit 3 has an LTSSM as the same or equivalent mechanism as the link state management unit W1 mounted in the device under test W and operates in compliance with a standard (for example, PCIe).

(20) The link state management unit 3 recognizes a current link state of the link state management unit W1 of the device under test W by training patterns (TS1 Ordered Sets and TS2 Ordered Sets) that are communicated with the device under test W (data reception unit W2 and data transmission unit W3). Specifically, various kinds of information, such as a link speed, assert or deassert of loopback, a lane number for identifying a lane, a link number, a generation time or the number of times of generation of a pattern signal, an emphasis amount, and an adjustment value of an equalizer of a recipient, are obtained.

(21) The link state management unit 3 performs, as discrimination based on information set with the setting unit 2, discrimination about whether the device under test W is the Upstream Port or the Downstream Port, discrimination about whether or not to execute the optimization of the emphasis of the output waveform of the device under test W, discrimination about whether the selected and set parameter value is Preset or Cursor, discrimination about whether or not the device under test W supports the parameter value to which the request of change (transmission) is made, discrimination about whether or not the number of executions of the adjustment of the emphasis reaches the upper limit value, and the like.

(22) In communication between the error rate measuring apparatus 1 and the device under test W, the link state management unit 3 manages the current link state of the device under test W by a training pattern received from the data transmission unit W3 of the device under test W in compliance with transmission of a training pattern for recognizing the current link state of the device under test W from the data transmission unit 4 and instructs, to the data transmission unit 4, a training pattern to be next transmitted as a training pattern corresponding to a current training sequence of the device under test W.

(23) In executing the optimization of the emphasis of the output waveform of the device under test W in the reception performance evaluation test, the data transmission unit 4 generates and transmits a training pattern based on a training sequence necessary for recognizing the current link state of the device under test W in the data reception unit 5 in response to an instruction from the link state management unit 3. The training pattern includes data instructing the change of the parameter value (Preset or Cursor) to the device under test W, data regarding information set with the setting unit 2, and the like.

(24) The data transmission unit 4 generates and transmits a training pattern for transiting a link state of the link state management unit W1 of the device under test W to loopback (transiting the LTSSM of the link state management unit W1 of the device under test W to the “Loopback” state of FIG. 4) based on the training sequence by the instruction of the link state management unit 3.

(25) The data transmission unit 4 has an emphasis control unit 4a that adjusts and controls the emphasis of the output waveform of the error rate measuring apparatus 1, and generates and transmits a pattern signal (test signal) by a pseudorandom bit sequence (PRBS) pattern with emphasis of an output waveform adjusted and controlled with the emphasis control unit 4a or any programmable pattern as the known pattern input to the device under test W in performing the bit error measurement of the device under test W in a state in which the device under test W transits to loopback.

(26) The data reception unit 5 includes a bit error measurement unit 5a, a discrimination unit 5b, and an equalizer 5c, and receives data transmitted from the data transmission unit W3 of the device under test W by negotiation between the error rate measuring apparatus 1 and the device under test W.

(27) In executing the optimization of the emphasis of the output waveform of the device under test W in the reception performance evaluation test, the bit error measurement unit 5a measures a bit error of a signal (the output waveform of the device under test W) transmitted from the data transmission unit W3 with emphasis adjusted and controlled with the emphasis control unit W3a of the device under test W based on the request of change (transmission) of the parameter value (Preset or Cursor) to be sequentially changed.

(28) When a request of change (transmission) of the optimum value (the parameter value at which the number of bit errors is the least) of the emphasis stored in the storage unit 6 is made to the device under test W, the bit error measurement unit 5a measures a bit error of a signal (the output waveform of the device under test W with the emphasis adjusted and controlled with the optimum value) transmitted from the data transmission unit W3 with the emphasis adjusted and controlled with the emphasis control unit W3a of the device under test W based on the request of change (transmission).

(29) The discrimination unit 5b sequentially changes the parameter value (Preset or Cursor) within the timeout time of Recovery Equalization and makes the request of change (transmission) to the device under test W to compare an x-th bit error measurement result when the bit error measurement unit 5a measures the bit error (during the execution of the optimization, any number-th execution time in which a bit error measurement result is the least) with a present bit error measurement result, and discriminates a parameter value at which the bit error measurement result is the least, as the optimum value of the emphasis of the output waveform of the device under test W.

(30) The equalizer 5c is configured with, for example, Decision Feedback Equalization (DFE) or Continuous Time Linear Equalizer (CTLE), to achieve improvement of reception sensitivity. The equalizer 5c adjusts a frequency characteristic of the signal transmitted from the data transmission unit W3 with the emphasis of the output waveform adjusted and controlled with the optimum value with the emphasis control unit W3a of the device under test W.

(31) The storage unit 6 stores an LTSSM transition log in a format shown in FIG. 3 including the measurement result of the bit error measured by the bit error measurement unit 5a in compliance with a flowchart of FIG. 2. In this case, the storage unit 6 stores the parameter value discriminated to be the optimum value by the discrimination unit 5b in the measurement result of the bit error, that is, the parameter value (Preset or Cursor) at which the number of bit errors is the least within the timeout time of Recovery Equalization, as the optimum value of the emphasis of the output waveform of the device under test W.

(32) Emphasis Optimization Method of Output Waveform of Device Under Test

(33) Next, a method that adjusts and controls the emphasis of the output waveform of the device under test W to optimize the emphasis of the output waveform of the device under test W by the above-described error rate measuring apparatus 1 will be described referring to the flowchart of FIG. 2.

(34) FIG. 2 is a flowchart for adjusting and controlling emphasis of an output waveform of a device under test in Recovery Equalization Phase 2 or 3 to optimizing the emphasis of the output waveform of the device under test.

(35) Recovery Equalization Phase 2 is a state in which the Upstream Port adjusts emphasis of an output waveform of the Downstream Port. Accordingly, in a case where the device under test W is “Downstream Port”, the error rate measuring apparatus 1 adjusts the emphasis of the output waveform of the device under test W in Recovery Equalization Phase 2.

(36) Recovery Equalization Phase 3 is a state in which the Downstream Port adjusts emphasis of an output waveform of the Upstream Port. Accordingly, in a case where the device under test W is “Upstream Port”, the error rate measuring apparatus 1 adjusts the emphasis of the output waveform of the device under test in Recovery Equalization Phase 3.

(37) In FIG. 2, “m” is the upper limit value of the number of executions of the adjustment of the emphasis by the request of change (transmission) of the parameter value determined by the timeout time, and “n” is the number of executions of the adjustment (n=1, 2, 3, . . . ). When n=1, Yes is selected.

(38) Link training of PCIe is managed by the LTSSM, and in the reception performance evaluation test, the LTSSM of the device under test W transits to the “Loopback” state of FIG. 4 by performing negotiation between the link state management unit 3 (LTSSM) of the error rate measuring apparatus 1 and the link state management unit W1 (LTSSM) of the device under test W, and bit error measurement is performed. In the embodiment, the adjustment and control of the emphasis of the output waveform of the device under test W are performed by passing through Recovery Equalization in a “Recovery” state of FIG. 4 before the transition to the “Loopback” state.

(39) Accordingly, first, the LTSSM (link state management unit 3, W1) transits to Recovery Equalization Phase 2 or 3 in the Recovery state depending on whether the device under test W is “Upstream Port” or “Downstream Port” by negotiation between the error rate measuring apparatus 1 and the device under test W. That is, in a case where the device under test W is “Downstream Port”, transition is made to a state of Recovery Equalization Phase 2, and in a case where the device under test W is “Upstream Port”, transition is made to a state of Recovery Equalization Phase 3.

(40) Then, discrimination is made whether or not to execute the optimization of the emphasis in the state of Recovery Equalization Phase 2 or 3 during link training (ST1). Then, in a case where discrimination is made to execute the optimization of the emphasis (ST1—Yes), discrimination is made which of “Preset” (any of Preset 0 to Preset 10) or “Cursor” (Cursor corresponding to any of Preset 0 to Preset 10) is selected and set as a parameter value for adjusting and controlling the emphasis (ST2).

(41) Here, in a case where discrimination is made that “Preset” is selected as the parameter value for adjusting and controlling the emphasis, a request of change (transmission) to the selected and set Preset is made to the device under test W (ST3), and transition is made to a Roundtrip delay wait state (ST4). For example, in a case where “Preset” is selected as the parameter value for adjusting and controlling the emphasis, and “Preset 6” is set as an initial value, a request of change (transmission) to “Preset 6” is made to the device under test W.

(42) The Roundtrip delay is a time until the error rate measuring apparatus 1 makes the request of change (transmission) of the parameter value to the device under test W, and there is a response to the request of change (transmission) from the device under test W to the error rate measuring apparatus 1.

(43) In contrast, in a case where discrimination is made that “Cursor” is selected as the parameter value for adjusting and controlling the emphasis, a request of change (transmission) to the selected and set Cursor is made (ST5), and transition is made to the Roundtrip delay wait state of ST4. For example, in a case where “Cursor” is selected as the parameter value for adjusting and controlling the emphasis in three taps, and a Cursor value of each tap of Pre (Pre-cursor), main (Cursor), and post (Post-cursor) corresponding to “Preset 3” is set, a request of change (transmission) to the Cursor value corresponding to “Preset 3” is made to the device under test W.

(44) In a case where discrimination is made not to execute the optimization of the emphasis (ST1—No), a request of emphasis of a parameter value optionally set by the user is made to the device under test W (ST6), and transition is made to the Roundtrip delay wait state of ST4.

(45) Then, in a case where the Roundtrip delay of ST4 elapses, discrimination is made whether or not a training pattern is received from the device under test W (ST7). In a case where discrimination is made that the training pattern is received from the device under test W (ST7—Yes), discrimination is made whether or not to permit the requested emphasis (ST8). Discrimination about whether or not to permit the requested emphasis is performed depending on whether or not the device under test W supports the parameter value to which the request of change (transmission) is made by the error rate measuring apparatus 1. Then, in a case where discrimination is made to permit the requested emphasis (ST8—Yes), a bit error is measured, and a result of measurement is stored as a state transition log (LTSSM transition log) in the storage unit 6 (ST9).

(46) Thereafter, discrimination is made whether or not to execute the optimization of the emphasis (ST10), and in a case where discrimination is made to execute the optimization of the emphasis (ST10—Yes), discrimination is made whether or not the optimization is executed m times (upper limit number of times) (ST11). In a case where discrimination is made that the optimization is not executed m times (ST11—No), discrimination is made whether or not an x-th (during the execution of the optimization, any number-th execution time in which the bit error measurement result is the least) bit error measurement result is equal to or greater than an n-th (present) bit error measurement result (ST12).

(47) Then, in a case where discrimination is made that the x-th bit error measurement result is equal to or greater than the n-th (present) bit error measurement result (ST12—Yes), a parameter value based on the n-th (present) bit error measurement result is stored as the optimum value of the emphasis in the storage unit 6 and x=n is set (ST13), and discrimination is made whether or not the m (upper limit number of times) executions of the optimization are completed (ST14).

(48) Then, in a case where discrimination is made that the m (upper limit number of times) executions of the optimization are completed (ST14—Yes), the optimum value of the emphasis finally stored in the storage unit 6 (the parameter value at which the number of bit errors is the least within the timeout time of Recovery Equalization) is requested to the device under test W (ST15), and transition is made to the Roundtrip delay wait state of ST4.

(49) In contrast, in a case where discrimination is made that the x-th bit error measurement result is not equal to or greater than the n-th (present) bit error measurement result (ST12—No), a parameter value based on the x-th bit error measurement result is stored as the optimum value of the emphasis in the storage unit 6 (ST16), and discrimination is made whether or not the m (upper limit number of times) executions of the optimization are completed (ST14).

(50) When discrimination is made not to execute the optimization of the emphasis (ST10—No) or when discrimination is made that the optimization is executed m times (upper limit number of times) (ST11—Yes), Recovery Equalization Phase 3(2) ends (ST17).

(51) When discrimination is made that the training pattern is not received from the device under test W (ST7—No), when discrimination is made not to permit the requested emphasis (ST8—No), or when discrimination is made that the m (upper limit number of times) executions of the optimization are not completed (ST14—No), the process returns to ST1.

(52) In this way, the operation based on the flowchart of FIG. 2 is repeated within the timeout time of Recovery Equalization Phase to perform the bit error measurement, and the optimum value of the emphasis is obtained from the measurement result of the bit error.

(53) The bit error measurement is performed using Training Ordered Sets 1 (TS1 Ordered Sets) used for training. The transition log (a transition destination, a generation time, a trigger of transition, and error information per transition of the LTSSM are stored in a memory such that a lapse of time of LTSSM transition can be traced) of the LTSSM including the number of bit errors per adjustment is stored in the storage unit 6 such that the transition log can be confirmed after training is completed.

(54) Here, FIG. 3 shows an example of the state transition log including bit error measurement results when “Preset 6” as the parameter value is set as the initial value by the error rate measuring apparatus 1, and “Preset” is incremented to Preset 6.fwdarw.Preset 7.fwdarw.Preset 8.fwdarw.Preset 9.fwdarw.Preset 10.fwdarw.Preset 0.fwdarw.Preset 1.fwdarw.Preset 2.fwdarw. . . . .fwdarw.Preset 5 within the timeout time of Recovery Equalization Phase. In the state transition log of FIG. 3, a bit error when “Preset” is selected as the parameter value and is incremented with Preset 6 as the initial value to make a request of change (transmission) to the device under test W is measured, and a parameter value: “Preset 7” (P7) (a portion A surrounded by a dotted line of FIG. 3) at which the error-free state (Error Count “00”) is detected first remains as a result (a portion B surrounded by a dotted line of FIG. 3) of the optimum value of the emphasis in the last row of the state transition log.

(55) In this way, according to the embodiment, it is possible to obtain the parameter value at which the number of bit errors of the signal received in the error rate measuring apparatus during link training for managing the state of the link is the least, as the optimum value for adjusting and controlling the emphasis of the output waveform of the device under test. Then, it is possible to adjust and control the emphasis of the output waveform of the device under test with the optimum value in the transmission path from the device under test toward the error rate measuring apparatus to perform the bit error measurement in the reception performance evaluation test, and to evaluate the reception performance of the device under test based on the measurement result.

(56) Although the best mode of the error rate measuring apparatus and the error rate measuring method according to the invention has been described above, the invention is not limited by the description and the drawings according to this mode. That is, it is a matter of course that other modes, examples, operation techniques and the like made by those skilled in the art based on this mode are all included in the scope of the present invention.

DESCRIPTION OF REFERENCE NUMERALS AND SIGNS

(57) 1 error rate measuring apparatus 2 setting unit 3 link state management unit (LTSSM) 4 data transmission unit 4a emphasis control unit 5 data reception unit 5a bit error measurement unit 5b discrimination unit 5c equalizer 6 storage unit W device under test W1 link state management unit (LTSSM) W2 data reception unit W3 data transmission unit W3a emphasis control unit