Abstract:
An equalizer receives an analog input signal and filters the signal to undistort the input signal. A converter stage converts the analog input signal into a digital output signal for use in a digital system. A bit sequence indicator analyzes the structure of the digital output signal to determine whether any errors have occurred in transmission and conversion. An adaptor state machine causes the modification of the analog signal based on a feedback loop including information on the errors detected in the packets of digital signals, rather than the analog data itself.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to equalizer circuits. More particularly, the invention relates to the accurate recovery and equalization of the high frequency components of an analog input signal to produce a digital output signal by an equalizer circuit on a single integrated circuit chip. 
     In networking applications, a critical challenge that must always be overcome is guaranteeing the integrity of a signal being transmitted across the network. One signal integrity problem often encountered is the attenuation of the signal over cabling in the network as the signal is transmitted between nodes. Therefore, a receiving node on the network will typically include circuitry to recover and equalize the incoming signal so that is easily processed for further applications. For example, in an Ethernet network, a computer system coupled to the network uses a physical layer transceiver to equalize an analog input signal and produce a converted digital output signal that is suitable for processing elsewhere within the computer system. Equalization in a physical layer transceiver is typically achieved by filtering the analog input signal. Since the high frequency components of the analog input signal generally exhibit more attenuation, a high-pass filter is typically implemented in the equalizer circuit to recover and boost the high frequency components of the analog input signal. 
     The length of the cabling connecting different nodes in a network will of course vary as a function of the network application. A particular problem encountered as the length of the cabling varies is that the electronic signal transmitted across the network cabling will degrade differently depending upon the cable length. Therefore, the equalization circuit in the physical layer transceiver in an Ethernet network, for example, must be adapted or adjusted for varying cable lengths in order to obtain the highest quality digital output signal possible. The analog input signal could be a two-level or a three-level signal (such as MLT-3). For a square wave, the high frequency components have a different group delay and gain from the low frequency components, which yields a distorted signal after it travels for a given distance on a network cable. Thus, for example, the cutoff frequency of the high-pass filter could be adjusted according to the level of attenuation of the input signal. Otherwise, the equalizer will tend to underboost or overboost the analog input signal, resulting in errors in the converted digital output signal. For example, the converted digital output signal of the equalizer may incorrectly include a high (&#34;1&#34;) voltage value at a point where there should be a low (&#34;0&#34;) voltage value that would properly reflect the analog input signal, or vice versa. 
     Prior equalizer circuits address this problem by minimizing the error of some feature of the analog signal, such as the peak-to-peak voltage, which is an indirect indicator of the cable length. Thus, based upon the variation of the peak-to-peak voltage of the analog input signal, for example, the cutoff frequency of the high-pass filter used in equalization is adjusted to compensate for different cable lengths. This solution is not particularly desirable, however, since the key criterion is not used to adjust the input filter, namely the quality of the equalizer&#39;s digital output signal. Thus, a filter adjusted according to the variations in peak-to-peak voltage of the analog input signal does not necessarily produce an error-free digital output signal. The equalizer circuit may still underboost or overboost the analog signal, resulting in errors in the digital signal, as described above. These errors in the equalizer&#39;s digital output signal would then ripple throughout the entire system, which could lead to system failure. 
     Therefore, an improved equalizer circuit is desired that provides error-free data recovery of an analog input signal for differing cable lengths in a network application. 
     SUMMARY OF THE INVENTION 
     The present invention provides an improved method and apparatus for achieving error-free data recovery of an analog input signal to produce a clean digital output signal across varying cable lengths in a network. An adaptive equalizer is implemented in a fully integrated mixed-signal transceiver for use in a network. The equalizer receives an analog input signal from a cable in the network and filters the signal to undistort the input signal. A converter stage converts the analog input signal into a digital output signal for use in the digital system coupled to the network. A bit sequence indicator analyzes the structure of the digital output signal to determine whether any errors have occurred in transmission and conversion. An adaptor state machine triggered by the output of the bit sequence indicator provides a control signal to the filter to control filter operation, improving the quality and accuracy of the equalized analog signal and minimizing the number of errors in data recovery. Preferably, then, the correction to the filter that processes the analog data is based on a feedback loop including information on the errors detected in the packets of digital signals, rather than the analog data itself. 
     A further understanding of the nature and advantages of the inventions herein may be realized by reference to the remaining portions of the specification and the attached drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1A shows a simplified block diagram of a network in which the present invention may be implemented. 
     FIG. 1B shows a block diagram of a workstation including the present invention that is coupled to a network. 
     FIG. 2 shows a simplified block diagram of an adaptive equalizer according to the present invention. 
     FIG. 3 shows a simplified block diagram of an analog input stage of the present invention. 
     FIG. 4 shows a simplified block diagram of an analog-to-digital converter stage according to the present invention. 
     FIG. 5 shows a flow diagram depicting the decision-making process of an adaptor state machine of the present invention. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     FIG. 1A shows a simplified block diagram of a sample network 100 in which the present invention may be implemented. A file server 102 is coupled via cable 104 to network nodes 106. In an alternate embodiment, a hub or concentrator may couple file server 102 to network nodes 106. Typically, network nodes 106 transmit data to each other as well as file server 102. In one example, network 100 may be an Ethernet network, such as a 10Base-T or a 100Base-Tx network, described by well-known standards and specifications. 
     FIG. 1B shows additional detail of a particular type of network node 106, specifically a workstation 108. Workstation 108 includes a CPU 110 and a transceiver chip 112 coupled to network cable 104. It should be understood that in an alternate embodiment, transceiver chip 112 may be located external to workstation 108. According to one embodiment of the present invention, transceiver chip 112 is a fully integrated mixed-signal physical layer transceiver for use in an Ethernet network that includes both analog and digital processing circuitry in a single integrated circuit chip package. Transceiver 112 receives and processes analog input signals from cable 104 in analog section 114 and converts the processed analog signals into digital signals in digital section 116. The converted digital signals are processed further by transceiver 112 before being transmitted to CPU 110 for use in workstation 108. In the reverse direction, CPU 110 issues digital signals that are received and processed by digital section 116. The processed digital signals are converted into analog signals in analog section 114. The converted analog signals are then processed until they are suitable for transmission over cable 104 to other nodes on network 100. 
     Because both analog and digital functions are packaged into one integrated circuit chip, the equalizer of the present invention can, in a preferred embodiment, conveniently be implemented within a single chip, such as transceiver 112. FIG. 2 shows a simplified block diagram of an adaptive equalizer 200 according to the present invention. Network cable 104 is coupled to an analog input stage 202, which receives and filters an analog input signal on cable 104. As described above, cable 104 connects different nodes of a network together, so the input signal may be a transmission from one workstation on the network to another. Analog input stage 202 includes circuitry to equalize selected portions of the input signal. Since the high-frequency components of an analog signal degrade significantly during transmission over network cabling, a high-pass filter is typically implemented to equalize the high-frequency components of the analog input signal. In a preferred embodiment, explained in further detail below, the high-pass filter in analog input stage 202 is a variable filter where one of a plurality of cutoff frequencies is selected by a control signal. Analog-to-digital converter stage 204 is coupled to analog input stage 202 and converts the filtered analog input signal into a digital output signal suitable for processing elsewhere in the workstation, for example. 
     A bit sequence indicator 206 is coupled to the output of converter stage 204 to receive and analyze the structure of the digital output signal. In a preferred embodiment, explained in further detail below, bit sequence indicator 206 monitors the digital bit stream for a proper sequence of signals and identifiers to determine whether any errors exist in the converted digital output signal. Adaptor state machine 208 receives signals representing the identifiers in the digital bit stream from bit sequence indicator 206 which trigger the state machine. The output of adaptor state machine 208 is a control signal to analog input stage 202 that, based upon errors in the digital output signal, adjusts the equalizer to eliminate any potential underequalization or overequalization, minimizing the errors incurred in data recovery from the network by the associated network node. Thus, a feedback loop is established wherein a filtered analog signal is converted into a digital signal, and the structure of the digital signal is used to control the operation of the equalizer that receives the analog signal. 
     FIG. 3 shows a simplified block diagram of analog input stage 202. The analog input stage includes a variable differential equalizer 302 that implements a plurality of capacitors which permit the cutoff frequency of the equalizer to be adjusted to a desired setting. A preferred embodiment of equalizer 302 is described in application Ser. No. 08/563,032, filed Nov. 27, 1995, assigned to the assignee of the present application, and hereby incorporated by reference, where a high-pass transfer function is obtained by amplifying the flat response of an input signal and subtracting from it the low-pass response of the input signal. Again, a high-pass function is desired since the high-frequency components of analog input signal suffer from significant attenuation after transmission over network cabling. 
     In operation, a differential analog input signal with inputs In+ and In- are input to signal amplification transistors 304 and 306, respectively, of equalizer 302, which produce a flat response of the input signal. The true output signal Out+ is taken from the output of signal amplification transistor 306, while the complement output signal Out- is taken from the output of signal amplification transistor 304. At the same time, inputs In+ and In- are also input to signal amplification transistors 308 and 310, respectively, of low pass filter 312. A plurality of capacitors 314 are coupled in parallel to achieve the low-pass transfer function. One of the control signals Eq1-Eq4 selects the particular capacitor to be coupled to the filter, thereby permitting a selected cutoff frequency to be set for the high-pass transfer function of equalizer 302. The control signals are provided by adaptor state machine 208, as described further. It should be understood that four capacitors are shown in the figure merely as an example, and that any number of capacitors may be coupled to the equalizer. 
     The true output signal Out+ is taken from the output of signal amplification transistor 234 and added to the true output signal from amplifier 202, while the complement output signal Out- is taken from the output of signal amplification transistor 232 and added to the complement output signal from amplifier 202 to obtain the high-pass function. The output of equalizer 302 is therefore a filtered version of the analog input signal that may be converted into a digital signal for use within a digital network node, such as a workstation. 
     FIG. 4 shows a simplified block diagram of analog-to-digital converter stage 204. In a preferred embodiment, converter stage includes differential comparators 402 and 404 coupled to the differential filtered analog signal (Out+ and Out-) that is output from input stage 202 (FIG. 3). In operation, differential comparator 402 receives the filtered signal and compares it to a reference voltage level to determine whether the true signal is to be converted to a HIGH or a LOW digital signal. Likewise, differential comparator 404 receives the filtered signal and compares it to a reference voltage level to determine whether the complement signal is to be converted into a HIGH or a LOW digital signal. The outputs of comparators 402 and 404 are input to OR gate 406, whose output is the converted digital output signal that may be processed further in the network node. 
     Once the analog input signal has been converted into a digital output signal, the present invention makes a determination as to whether any errors exist in the converted digital output signal. For if there are errors resulting from underboosting or overboosting in the input stage 202, the cutoff frequency of equalizer 302 needs to be adjusted. For example, in a 100Base-T Ethernet network, a transmission of data will involve a number of signals or identifiers encoded in the data itself to signify the complete transmission of one packet. A data transmission in a 100Base-T network has the following structure: 
     &lt;Idle&gt;&lt;Start Packet&gt;&lt;Data&gt;&lt;Stop Packet&gt;&lt;Idle&gt; Thus, an Idle identifier precedes and follows the entire data packet and is a single symbol in length. At the physical layer, symbols are made up of a sequence of five bits. Following the initial Idle identifier is a Start Packet identifier made up of three symbols, labeled as I, J and K, where each of the three has a distinct bit sequence. The Data naturally follows the Start Packet identifier, can include any one of sixteen symbols and is variable in length. Following the Data is a Stop Packet identifier made up of two symbols, T and R, again each having a distinct pattern. Bit sequence indicator 206 monitors the bit stream of the converted digital output signal and provides the following signals for each element of the above data structure: 
     &lt;Idle&gt;--Idle Detect 
     &lt;Start Packet&gt;--IJK Detect 
     &lt;Data&gt;--Invalid Symbol 
     &lt;Stop Packet&gt;--TR Detect 
     Each of these signals is provided to adaptor state machine 208, which counts errors by checking the bit stream of the digital output signal for the precise structure shown above. Any deviation from the prescribed structure constitutes an error. 
     Adaptor state machine 208 is triggered by the above signals from bit sequence indicator 206. FIG. 5 shows a flow diagram 500 depicting the decision-making process of adaptor state machine 208. The state machine sits in Wait for Command state 502 until initially triggered by the loss of a lock signal to the equalizer, signifying that a relatively large number of errors (beyond a predetermined threshold) have been found in the signal transmission. This condition occurs, for example, at system powerup, system reset, or at other times when the system is experiencing a significant number of errors in data transmission. The state machine then proceeds to Analog Settle state 504, where the state machine waits for the system, including phase-locked loops, for example, to settle. In a preferred embodiment, analog input stage 202 has a plurality of settings that are exercised by adaptor state machine 208. For example, in the case where a high-pass filter is the input circuitry for receiving a signal from the network, the cutoff frequency of the filter is adjusted by state machine 208 to find the optimal frequency. In one example, a register Aset, as shown in FIG. 5, stores the current equalizer setting. Then, the state machine processes the converted digital signal and keeps track of the errors in a register Ecnt, again as shown in the example of FIG. 5. State machine 208 will eventually identify the setting for the analog input stage that ensures the fewest errors in the converted digital output signal through a feedback loop. 
     Thus, state machine 208 next proceeds to In Idle state 506 upon receiving an Idle Detect indicator from bit sequence indicator 206, signifying that a first idle signal preceding a data transmission has been detected. If any error is detected at this point, however, the error counter Ecnt is incremented and the state machine returns to the same state and waits for the next signal from bit sequence indicator 206. The equalizer setting is unchanged; however, if a scan timeout occurs, indicating that the no signals have been received for a large number of clock cycles (e.g. 1 ms), adaptor state machine 208 proceeds to the next equalizer setting by incrementing register Aset and restarts the state machine. 
     Returning to the state machine flow diagram, after losing the Idle Detect signal, state machine 208 proceeds to Wait for IJK state 508, where it waits for an IJK Detect signal from bit sequence indicator 206 signifying the receipt of a Start Packet identifier. After receiving an IJK Detect, the state machine advances to Wait for TR state 510, where it waits for a TR Detect signal from bit sequence indicator 206. During this time, adaptive equalizer 200 receives and processes data from the network. When a TR Detect signal is received, signifying the receipt of a Stop Packet identifier, and the end of the data, the state machine advances to Wait for Idle state 512, where it waits for the second idle signal at the end of a data transmission. Upon receiving another Idle Detect signal from bit sequence indicator 206, the state machine proceeds again to In Idle state 506. 
     At each of these states, state machine 208 keeps track of errors found in the converted digital output signal and increments error register Ecnt each time an error is encountered. Possible errors could include, for example, a local IJK timeout, where no IJK Detect signal is received in a specified amount of time from bit sequence indicator 206, or the failure to receive a TR Detect signal from bit sequence indicator 206. At the completion of an entire data transmission, state machine 208 advances the equalizer setting by incrementing register Aset. State machine 208 is therefore able to keep track of the number of errors found in the converted digital signal for each equalizer setting. After testing each possible equalizer setting, the state machine can determine the optimal equalizer setting for minimizing errors in the digital signal for the particular cable length. 
     Thus, state machine 208 outputs control signals, such as Eq1-Eq4 described above, for example, to analog input stage 202 to test each of the possible filter settings to determine the one (or more) settings that will minimize the error in the digital bit stream. Then, based upon that determination, the appropriate capacitor 314 (FIG. 3) in equalizer 302 can be switched into the circuit, yielding the best equalizer setting for a given cable length to minimize errors in the converted digital output signal. This optimal equalizer setting is then fixed for further equalizer operations. Attached in Appendix A is the Verilog code used to create a circuit for implementing the state diagram shown in FIG. 5. 
     The above description is illustrative and not restrictive. Many variations of the invention will become apparent to those of skill in the art upon review of this disclosure. The scope of the invention should, therefore, be determined not with reference to the above description, but instead should be determined with reference to the appended claims along with their full scope of equivalents. ##SPC1##