A number of LOS measurement circuits may be employed. For example, the LOS measurement circuits may include a signal detect circuit 116 having an interface on line 118 to receive a “signal detect” signal from the source 120 transmitting the serial stream of digital data on line 104, and an interface on line 122 to supply measurement results. For example, the signal detect circuit 116 may receive a LOS signal being transmitted by source 120. Other LOS measurement circuits include a run length test circuit 124, a signal strength (voltage amplitude) test circuit 126, a harmonic band detection test circuit 128, and a received data clock test circuit 130. Each LOS measurement circuit has an interface on line 122 to supply measurement results. Although test circuits 124, 126, 128, and 130 are shown directly connected to input interface 104, it should be understood that the serial input data may undergo steps of decoding and processing before it is supplied to the test circuits. The LOS manager 106 has an interface on line 122 to receive measurement results from the selected LOS measurement circuit.
Returning to
In one aspect, the LOS manager 106 may select a combination of LOS criteria. Then, in response to the serial stream of digital data failing to meet the combination of selected LOS criteria, the LOS manager 106 generates a LOS signal at an interface on line 110. This feature may be used to prevent a false lock LOS scenario. For example, it is conventional that a signal strength test is used to determine LOS. If the LOS manager 106 selects a combination of LOS criteria, which includes the signal strength test, a LOS signal is not generated if only the signal strength test is failed. That is, other tests, in addition to the signal strength test, must be failed in order to generate the LOS signal. This result may be desirable if the serial data can be decoded by the receiver, even though the signal amplitude is below specified limits.
In a different aspect, the LOS manager 106 selects a subset of LOS criteria from a set of LOS criteria. For example, if the system includes 5 different LOS measurement test circuits, the LOS manager may select 3 out of the 5 tests. Then, in response to the serial stream of digital data failing to meet any of the subset of selected LOS criteria (e.g., any of the subset of 3), the LOS signal is generated.
Typically, the system 100 also comprises a reference clock 140 having an output on line 142 to supply a reference clock frequency. The reference clock frequency is usually set to the nominal system frequency, or the data clock rate (or multiple of the data clock rate) at which the serial data stream is anticipated. The use of the reference clock aids in the acquisition of the serial digital data stream. Conventionally, the system is self-clocking, which means that the data clock is recovered from the serial digital data stream. Once the receiver 102 recovers the data clock, the reference clock is no longer necessary. However, in this aspect of the system, the LOS manager 106 selects the reference clock 140 in response to the serial stream of digital data failing to meet the selected LOS criteria. Then, the receiver 102 uses the reference clock frequency to recover the serial stream data clock.
Note, although the system has been depicted as hardware elements, in some aspects the elements may be enabled completely, or in part, as a routine of microprocessor instructions, which are stored in a memory (not shown) and operated on using a microprocessor (nor shown).
Step 502 receives a serial stream of digital data. Step 504 selects LOS criteria. Some examples of LOS criteria that may be selected include a “signal detect” signal received from the source transmitting the serial stream of digital data, a run length test, a signal strength (voltage amplitude) test, harmonic band detection test, and a received data clock test. However, it should be understood that other (unnamed) tests may be used to trigger an LOS alarm. Step 506 compares the serial stream of digital data to the selected LOS criteria, and Step 508 generates a LOS signal in response to the serial stream of digital data failing to meet the selected LOS criteria.
If the run length test is selected in Step 504, then the following substeps may be used. Step 504b counts the number of consecutive “0” bits received in the serial data stream. Step 504c counts the number of consecutive “1” bits received in the serial data stream, and Step 504d verifies that the number of consecutive bits conforms to a predetermined run length threshold. In one aspect, Step 504a selects the run length threshold.
If the received data clock test is selected in Step 504, then the following substeps may be used. Step 504e accepts the serial stream of data at a phase detector. Step 504f generates a VCO frequency in response to recovering a serial stream data clock rate. Step 504g compares a measurement of the serial stream data clock rate with the VCO frequency, where the measurement may be either phase or frequency. Step 504h verifies that the measurement is within a predetermined tolerance. In some aspects, the tolerance may be selected.
If the harmonic band detection test is selected in Step 504, then the following substeps may be used. Step 504i detects transitions in the serial digital data stream. The transitions detected are “101” and “010”. Step 504j verifies that the transitions occur within a predetermined number of consecutive clock cycles. In some aspects, the number of clock cycles may be selected.
In a different aspect of the method, selecting LOS criteria in Step 504 includes selecting combinations of LOS criteria. As mentioned above, some examples of potential criteria include a “signal detect” signal received from the source transmitting the serial stream of digital data, a run length test, a signal strength (voltage amplitude) test, a harmonic band detection test, and a received data clock test. Then, Step 508 generates the LOS signal in response to failing to meet the combination of selected LOS criteria.
Alternately stated, the LOS signal is not generated if only one of the selected criteria is failed. For example, if the combination of LOS criteria includes the signal strength test as one of the LOS criteria, then Step 510 prevents a false lock state when only the signal strength test is failed.
In another aspect of the method, Step 512 selects a reference clock in response to the serial stream of digital data failing to meet the selected LOS criteria (Step 508). Then, Step 514 uses the reference clock to recover the serial stream data clock.
In another aspect, selecting LOS criteria in Step 504 includes selecting a subset of LOS criteria from a set of LOS criteria, and generating the LOS signal in Step 508 includes generating the LOS signal in response to failing to meet any of the selected subset of LOS criteria. Alternately stated, the LOS measurement criteria are maskable. The use of a mask prevents specifically selected LOS events from triggering the LOS signal, or interrupting higher level functions.
A system and method have been provided for selecting LOS criteria in a serial communications receiver. Some examples of specific LOS criteria and measurement tests have been provided to illustrate the invention. However, the invention is not limited to merely these examples. Other variations and embodiments of the invention will occur to those skilled in the art.