A system and method are provided for built-in-self test of any bits that have slipped from their appropriate positions within a frame character clock cycle. If a bit has slipped, then the built-in-self test mechanism can also implement either a clock generation stretch operation or a barrel shift operation to readjust the frame boundary output from a receiver with a 1-to-N deserializer. A pseudo-random bit sequence can be generated having the same logic value in both the receiver and transmitter, where the output of the deserializer which receives the transmitted bits is compared bit-by-bit with the receiver-generated bits as part of the built-in-self test mechanism. If a bit is determined to have been slipped, then error correction occurs with aliasing and phase jitter in mind.
|
19. A method for framing serial data, comprising:
comparing deserialized serial data within a frame cycle to a parallel set of data bits equal in logic value to the serial data; and
moving a bit from one frame cycle to another frame cycle if the deserialized serial data has a bit at an nth bit position that is dissimilar in logic value than a bit at the nth bit position of the parallel set of data bits, wherein said moving comprises extending the first frame cycle to include an additional bit cycle equal to 1/N cycles of the first frame cycle to receive the nth bit.
1. A data communication receiver, comprising:
a bit generator coupled to generate a parallel set of data bits;
a deserializer coupled to receive a serial bitstream having the same logic value as the set of data bits sent across a communication channel to the receiver for deserializing the serial bitstream to form a deserialized serial bitstream;
a comparator coupled to the bit generator and the deserializer for comparing the parallel set of data bits to the deserialized serial bitstream; and
means for modifying an output of the deserializer if the deserialized serial bitstream contains one or more bits dissimilar from the parallel set of data bits.
10. A data framing boundary test and correction system, comprising:
a transmitter for sending a serial bitstream of data bits;
a receiver coupled to the transmitter by a communication link, said receiver comprising:
deserializer for converting the serial bitstream of data bits into a deserialized serial bitstream;
a bit generator for generating a parallel set of data bits equal in logic value to the serial bitstream of data bits; and
a circuit that moves a bit within a single frame cycle at the output of the deserializer into an immediately preceding frame cycle if the deserialized serial bitstream contains a bit dissimilar from the parallel set of data bits.
2. The data communication receiver as recited in
3. The data communication receiver as recited in
4. The data communication receiver as recited in
5. The data communication receiver as recited in
6. The data communication receiver as recited in
7. The data communication receiver as recited in
8. The data communication receiver as recited in
9. The data communication receiver as recited in
11. The test and correction system as recited in
12. The test and correction system as recited in
13. The test and correction system as recited in
14. The test and correction system as recited in
15. The test and correction system as recited in
16. The test and correction system as recited in
17. The test and correction system as recited in
18. The test and correction system as recited in
|
The present application claims priority to provisional application No. 60/482,918 entitled “Built In Self Test (BIST) Architecture for Physical Layer Devices using Cycle Slip and Barrel Shifter Framing Methods in a Deserializer,” filed Jun. 27, 2003.
1. Field of the Invention
This invention relates to electronic circuitry and, more particularly, to a communication system having a receiver that uses a built-in-self-test (BIST) circuit and method to test for and correct any cycle slip that occurs within a deserializer output of the receiver. One or more bits within a related set of bits of a serial bitstream that slip to a successive frame clock cycle are detected using two similar pseudo random bit sequences (PRBSs) received upon the receiver and generated within the receiver, and any cycle slip occurrences can be corrected by either extending the frame clock cycle or shifting the boundary between a pair of register outputs using a barrel shifter.
2. Description of the Related Art
The following descriptions and examples are not admitted to be prior art or conventional by virtue of their inclusion within this section.
Communication between nodes of a communication system typically involves a serial bitstream. Examples of serial bitstream transfer protocols include Ethernet and Synchronous Optical Network (SONET), as well as numerous others. An integral part of the serialized communication between nodes is the transceiver associated with each node. A transceiver having both a receiver and a transmitter functions not only to recognize the transfer protocols, but also converts the serial bitstream to multiple bitstreams if necessary. The conversion from a relatively high bit rate serial bitstream to a set of relatively low bit rate parallel bitstreams takes place within a receiver and, more specifically, within a deserializer of the receiver.
The serializer and deserializer of the transceiver are normally found within the physical media attachment (PMA) sub-layer of the transceiver. The serializer/deserializer is responsible for supporting multiple communication protocols and allows presentation of encoding schemes to the upper layers of, for example, the Open System Interconnection (OSI) model. A useful feature of a deserializer within the physical layer PMA of the OSI model is that the deserializer can frame its output once synchronization between its serial bitstream of related bits and parallel output of related bits is achieved.
Framing is used in the normal mode to reframe data in backplane tranceivers and, as such, is an integral part of the IEEE 802.3z Gigabit Ethernet and Fibre Channel Standards set forth in http://www.ieee.org and http://www.fibrechannel.org. Framing of serial data is, therefore, the conversion of the serial bitstream to respective frames output in parallel from the deserializer. Certain bits within the serial bitstream are related to one another and thus belong within the same frame output from the deserializer.
A typical receiver within a communication system involves both a deserializer and a clock generator. The deserializer receives a serial bitstream of data broken into related sets of bits known as characters. For example, a first character of A0-A15 will be immediately followed by a second character B0-B15. Each character is preferably output from the deserializer within a single frame. Thus, in this example, all 16 character A bits are output in parallel within a single frame cycle, followed by all 16 character B bits output in parallel in the immediately succeeding frame cycle. Thus, the serial bitstream is sampled on the input of the deserializer according to a bit clock cycle, and the parallel output from the deserializer occurs every frame clock cycle. If there are 16 bits output per frame, then the frame clock cycle is equal to 16 times the bit clock cycle.
There are numerous types of deserializers known in the industry. For example, a deserializer can be formed from shift registers. As the serial bitstream is received on the shift registers, the bit clock will shift serial bits into and through the registers, and a character or frame of related bits, is captured each time the shift registers are filled, once per frame cycle. Another type of deserializer involves a staged or pipelined deserializer. A popular pipelined deserializer is described in U.S. Pat. No. 5,128,940 herein incorporated by reference. Each stage of the pipelined deserializer includes one or more 1-to-2 demultiplexer cells, where each stage can be clocked by successively slower clock rates produced by the clock generator.
Regardless of the type of deserializer used, a problem known as “bit shift” or “bit slip” oftentimes occurs. As described in U.S. Pat. No. 5,128,940, due to margin differences from one demultiplexer cell to another, related bits (A0-A15) may not necessarily appear within the same frame output simultaneously from the final stage of the deserializer. There can be many causes for the bit shift/slip problem, one such cause might be due to the uncertainty in the initial period of the signal input. There are many mechanisms for correcting a bit slip occurrence, such as applying control signals selectively to the control clocks forwarded to each stage of the pipelined deserializer. Other mechanisms can also come into play. Regardless of how a bit slip occurs or how it is corrected, it is important to be able to detect a bit that should be in one frame, yet appears in the succeeding frame.
It would be desirable to introduce a built-in-self-test (BIST) mechanism for detecting a bit slip/shift occurrence at the output of a deserializer. Moreover, the BIST architecture would benefit by being applicable to any type of deserializer, regardless of whether the deserializer is a pipelined deserializer, a shift register, or simply a programmable state machine, such as a programmable logic device or execution unit which receives software instructions.
The desired BIST architecture must also be applicable to any bit transfer rate, even the higher bit rates of SONET and Gigabit Ethernet. In addition, the desired BIST architecture must also implement bit slip/shift correction techniques in order to realign or resynchronize the frame boundaries even though a shift might occur within the deserializer. Any improvements in the BIST and error correction capabilities must be performed with minimal added complexity, design costs and architecture/layout size.
The problems outlined above are in large part solved by an improved communication system that utilizes both BIST and error correction circuitry within transceivers of the communication system. Specifically, the BIST system and method hereof not only determines any bit slip/shift occurrences attributable to a cycle slip within a deserializer, but also corrects the cycle slip or bit slip occurrence. The BIST system and method can be applied to any type of deserializer, such as pipelined deserializers or simply shift register deserializers.
Preferably, the BIST system avoids using a special framing character sent to the receiver via a transmitter over the communication channel, and using the same special framing character generated within the receiver itself. Avoiding a framing character will avoid implementing a dedicated comparator for comparing any shift in the received framing character and the receiver-generated framing character. If, indeed, the framing characters are the same, then any offset in the deserializer output will be detected when comparing to the benchmark framing character generated within the receiver.
Since framing boundaries can shift over time, even after the boundary is initially synchronized with a special framing character, it is then recognized that a PRBS must also be transmitted to and generated within the receiver to periodically resynchronize the frame boundaries. Since PRBS is typically utilized anyway, the special framing character can be eliminated in favor of periodically comparing PRBSs. Thus, a single comparator used to compare the PRBS frame in lieu of another comparator needed to compare the special framing characters represents a substantial reduction in the complexity of the overall BIST system.
Once a shift is detected by comparing the received PRBS signal at the output of the deserializer to the receiver-generated PRBS, correction of that shift can take place in many ways. For example, the frame clock cycle can be stretched or extended by one bit cycle to append the shifted bit in the succeeding cycle into the preceding frame cycle. According to another example, a barrel shifter can be used to select one or more bits in a preceding cycle to be combined with one or more bits in a succeeding cycle, where both cycles are temporarily stored in separate registers that feed into corresponding inputs of a series of multiplexers. Deciding which bit from the two sets of registers is to be selected depends of an offset value sent to the barrel shifter selection input.
Determining when a bit slip/shift or cycle slip error has occurred, and determining how to remedy this error, takes place within a state machine. The state machine can send a slip bit signal to extend the frame clock or can send an offset signal to the barrel shifter, depending on which type of correction circuit is desired. Outputting the appropriately timed slip bit signal and offset signal to the outputs of the deserializer will continue until the frame boundaries at the deserializer output match up with the characters forwarded as a serial bitstream to the deserializer. When this occurs, framing is said to be achieved. The state machine can advantageously operate at speeds slower than the frame clock cycle in order to reduce power consumption. Additionally, the state machine can utilize wait states to alleviate any aliasing problems that might occur whenever a boundary has been shifted.
The state machine can also enter into a locking mode once the appropriate bit shift or movement correction has taken place. However, even within locking mode, any jitter or bit errors that might cause the phase-locked loop (PLL) clock recovery to come out of a locked condition will be detected by the state machine. After a predetermined number of times in which successive frame clocks determine an out-of-lock condition, the state machine will transition from the locking mode to a tracking mode which will cause regeneration of the PRBS benchmark comparison to determine if a slip bit has occurred. Transitions between the tracking mode and the locking mode thereby depends on whether a slip bit has been detected, and whether an unlocked condition has occurred over successive frame cycles.
According to one embodiment, a data communication receiver is provided. The receiver includes a bit generator coupled to generate a parallel set of data bits. The parallel set of data bits are thereby generated as PRBS data bits within the receiver itself. The receiver also includes a deserializer coupled to receive a serial bitstream having the same logic value as the set of data bits sent across a communication channel to the receiver. Thus, the same logic value of PRBS data bits is generated external to the receiver and sent across the communication channel.
The receiver also includes a comparator that is coupled to the bit generator and the deserializer for comparing the parallel set of data bits to the deserialized serial bitstream. The output of the deserializer can then be modified if the deserialized serial bitstream contains one or more bits dissimilar from the parallel set of data bits. Preferably, comparison occurs within one frame cycle and the output of the deserializer is modified by either extending the frame clock cycle used by the deserializer output or selecting certain sets of bits from a first frame cycle and certain sets of bits from a second frame cycle using, for example, a barrel shifter.
According to yet another embodiment, a data framing boundary test and correction system is provided. The system includes a transmitter and a receiver. The receiver is coupled to the transmitter to receive a serial bitstream of data bits sent from the transmitter. The receiver includes a deserializer for converting the serial bitstream of data bits into a deserialized set of bitstream. A bit generator can also be used to generate a parallel set of data bits equal in logic value to the serial bitstream of data bits. A circuit is used to move bits within a single frame cycle at the output of the deserializer into an immediately preceding frame cycle if the deserialized serial bitstream contains a bit dissimilar from the parallel set of data bits.
The circuit can include a state machine that moves the bit if more than one comparison and, preferably at least three comparisons, of the parallel set of data bits within the deserialized serial bitstream generated externally yields a bit dissimilar from the parallel set of data bits generated locally. Thus, in this example, three successive errors must occur before the bit is moved. Also, for purposes of aliasing reduction, the state machine forwards a modified deserialized serial bitstream having a moved bit at the output of the deserializer to a comparator, which then compares the modified deserialized serial bitstream to the parallel set of data bits at least N times and, preferably, 2N times where N is equal to the number of bits within the parallel set of data bits.
According to yet another embodiment, a method is provided. The method includes a method for framing serial data. The method includes comparing a deserialized serial data within a frame cycle to a parallel set of data bits that are chosen to be equal in logic value to the serial data. Due to bit shift/bit slip occurrences, the data bits may be dissimilar. A bit is moved from one frame cycle to another frame cycle if the deserialized serial data has a bit at a Nth bit position that is dissimilar in logic value than a bit at the Nth bit position of the parallel set of data bits. Moving can be effectuated using either an offset value input to a barrel shifter or a slip bit signal input to a frame clock extension generator.
Other objects and advantages of the invention will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which:
While the invention is susceptible to various modifications and alternative forms, specific embodiments hereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, are intended to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the present invention as defined by the appended claims.
Turning now to
Receiver 10a is shown having three functional blocks. The first block is a bit generator which generates a sequence of pseudo-random bits in the transmitter side, and sends the PRBS across the communication channel to receiver 10a. The same bit sequence that generates the PRBS bits within the transmitter is also generated in the receiver 10, and is shown as block 18a. The choice of this generator can depend on the application (i.e., SONET/SDH, Ethernet, etc.) devices, the clock recovery performance, or architecture of the device, where the purpose of the PRBS bits is to have the highest testing coverage. Thus, the second functional block implements the same sequence generator in the receiver side as the transmitter side, as shown by block 18a.
The third functional block is the framing mechanism implemented in the receiver side, and comprises state machine 14a and a network of comparators. A first comparator 20a may be used to compare a special framing character, whereas a second comparator 22a can be used to compare the PRBS sent across the communication channel with the internally-generated PRBS. Details of comparator 20a functionality are set forth in
Comparator 20a essentially compares a special framing character generated internal to the receiver with the same framing character sent serially across the communication channel. The deserialized framing character received from the communication channel via deserializer 12a can then be parsed into two separate registers, labeled as first register 26a and second register 28a. First register 26a receives a parallel set of bits immediately prior to second register 28a receiving a parallel set of bits. Registers 26a and 28a capture the parallel bits within successive frame clock cycles.
Like comparator 20a, comparator 22a also compares a benchmark set of bits with bits sent across the communication channel, and stored in register 30a. Successive frame clock cycles places the deserialized bits into subsequent pipeline stages, as shown by block 32a. One or more of those stages can be compared with the receiver-generated PRBS to detect any bit slips/shifts. Receiver 10a generally utilizes PLL 38a to receive the serial data and recover a bit clock cycle. The serial data can be retimed based on the PLL achieving lock status. The retimed data is then sent to deserializer 12a, along with the bit clock.
Barrel shifter 40 within receiver 10b of
A comparison of
When the framing character is detected by comparator 20a, state machine 14a is used to trigger a stretch character, or slip bit control signal that is then sent to the deserializer 12a. This latter operation causes a byte to be aligned on the deserializer output. The received framed data is then continuously compared to the sequence generated by the receive sequence generator. As shown in
In the barrel shifter implementation of
In both
When performing the comparison within comparator 20a/b, additional XOR functions are needed; thus, adding complexity to the overall receiver. Moreover, using framing characters offer no assurances of convergence in a given time. Thus, the receiver must wait for the framing character or for sequence detection. Moreover, an aliasing phenomenon may occur that could prevent a convergent framing mechanism using a framing character. When the framed character boundary is found in the solutions offered in
Turning to
As shown in
Instead of using a cycle slip framer,
Receiver 10c illustrates a divide-by counter 98 that can be used to reduce the clocking rate of state machine 90a, as well as the flag generation circuitry 100. The clock reduction rate thereby helps reduce power consumption within what would normally be a high power consumptive state machine 90a. The slip bit signal generated by state machine 90a whenever an error is encountered can be sent to a synchronizer which reduces any metadata instability. Synchronizer 102 will thereby synchronize transitions of the slip bit signal to transitions of the bit cycle clock. Similar to
The operation of the cycle slip framer embodiment of
The sequence of states 110 through 116 are repeated to determine if possibly another slip bit in a successive frame clock cycle need by asserted. If so, the boundary is cumulatively shifted one bit cycle for each time the slip bit signal is asserted. If the slip bit signal need not be asserted and there is no error at the output of the comparator, then state machine 90a will transition to state 118 to indicate the PLL is locked, and there are no aliasing problems encountered when the frame cycle has been shifted. If, however, an error occurs at the output of the comparator while in state 118, then X number of comparisons must be performed where, in the example provided, X is equal to 3. A first error will cause state machine 90a to transition from state 118 to state 122; a second error will cause transition from state 124 to state 126; and a third error will cause a transition from state 128 back into tracking mode at state 110. Thus, three successive errors indicates the PLLs have become unlocked, possibly due to a bit shift.
The wait state between states 114 and 116 indicates that an aliasing phenomenon can occur when bits are misaligned. The aliasing sequence can be N characters long or 2N characters long. State machine 90a thereby includes two main modes, each having separate states. The tracking mode, shown at the left side of
The locking mode, shown at the right side of
The barrel shift framer of
The state machine 90b illustrated in
One advantage of receiver 10c and 10d is that the state machines 90a/b can be implemented at a low frequency since the result of the comparison does not need to be checked at the frame clock cycle rate. In addition, by using a PRBS, receiver 10c can achieve a very fast convergence since the worst-case N number of slip bit signals sent from synchronizer 102 are required to get the proper bit alignment. Thus, convergence can occur within 16 frame cycles if the parallel bus width is 16. A further advantage is that no specific framing character or framing sequence is necessary, and that only N XOR functions are required rather than N+1×N XOR functions. This enables low area requirements and associated low power with higher speed operation.
The receiver, regardless of whether a cycle slip framer or barrel shift framer is used, enjoys the benefits of a lower gate count, lower power, and smaller overall footprint than receivers which use a special framing character. The state diagram can be readily adapted to any number of wait states to accommodate aliasing issues, as well as any number of unlock conditions to accommodate jitter or PLL out-of-lock conditions. Convergence can be readily achieved in no more than N frame cycles absent the use of a special framing character. All such features and enhancements are readily understood by one skilled in the art upon review of the following claims.
Patent | Priority | Assignee | Title |
11714449, | Sep 27 2021 | International Business Machines Corporation | High-speed deserializer with programmable and timing robust data slip function |
7509560, | Dec 29 2003 | Intel Corporation | Mechanism for adjacent-symbol error correction and detection |
8310383, | Dec 30 2009 | Viavi Solutions Inc | Generating a jittered digital signal using a serializer device |
8325951, | Jan 20 2009 | NEOMEMS TECHNOLOGIES, INC , WUXI, CHINA | Miniature MEMS condenser microphone packages and fabrication method thereof |
8327222, | Dec 29 2003 | Intel Corporation | Mechanism for adjacent-symbol error correction and detection |
8688617, | Jul 26 2010 | ASSOCIATED UNIVERSITIES, INC | Statistical word boundary detection in serialized data streams |
8697470, | Jan 20 2009 | NEOMEMS TECHNOLOGIES, INC , WUXI, CHINA | Miniature MEMS condenser microphone packages and fabrication method thereof |
9473172, | Feb 04 2014 | CAVIUM INTERNATIONAL; MARVELL ASIA PTE, LTD | Receiver deserializer latency trim |
Patent | Priority | Assignee | Title |
5128940, | Sep 11 1989 | Kabushiki Kaisha Toshiba | Demultiplexer |
5502748, | Jun 04 1992 | Sony Corporation; Sony United Kingdom Limited | Detection of synchronisation data |
5790563, | Feb 05 1996 | AVAGO TECHNOLOGIES GENERAL IP SINGAPORE PTE LTD | Self test of core with unpredictable latency |
6078937, | Dec 19 1996 | NXP B V | Barrel shifter, circuit and method of manipulating a bit pattern |
6459393, | May 08 1998 | MEDIATEK INC | Apparatus and method for optimized self-synchronizing serializer/deserializer/framer |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jun 25 2004 | Cypress Semiconductor Corp. | (assignment on the face of the patent) | / | |||
Jun 25 2004 | SARDI, MOHAMED | Cypress Semiconductor Corp | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 015523 | /0495 | |
Jun 25 2004 | SCOTT, PAUL | Cypress Semiconductor Corp | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 015523 | /0495 | |
Mar 12 2015 | Cypress Semiconductor Corporation | MORGAN STANLEY SENIOR FUNDING, INC | CORRECTIVE ASSIGNMENT TO CORRECT THE 8647899 PREVIOUSLY RECORDED ON REEL 035240 FRAME 0429 ASSIGNOR S HEREBY CONFIRMS THE SECURITY INTERST | 058002 | /0470 | |
Mar 12 2015 | Spansion LLC | MORGAN STANLEY SENIOR FUNDING, INC | CORRECTIVE ASSIGNMENT TO CORRECT THE 8647899 PREVIOUSLY RECORDED ON REEL 035240 FRAME 0429 ASSIGNOR S HEREBY CONFIRMS THE SECURITY INTERST | 058002 | /0470 | |
Mar 12 2015 | Spansion LLC | MORGAN STANLEY SENIOR FUNDING, INC | SECURITY INTEREST SEE DOCUMENT FOR DETAILS | 035240 | /0429 | |
Mar 12 2015 | Cypress Semiconductor Corporation | MORGAN STANLEY SENIOR FUNDING, INC | SECURITY INTEREST SEE DOCUMENT FOR DETAILS | 035240 | /0429 | |
Aug 11 2016 | MORGAN STANLEY SENIOR FUNDING, INC , AS COLLATERAL AGENT | Spansion LLC | PARTIAL RELEASE OF SECURITY INTEREST IN PATENTS | 039708 | /0001 | |
Aug 11 2016 | Cypress Semiconductor Corporation | MONTEREY RESEARCH, LLC | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 040911 | /0238 | |
Aug 11 2016 | MORGAN STANLEY SENIOR FUNDING, INC , AS COLLATERAL AGENT | Cypress Semiconductor Corporation | PARTIAL RELEASE OF SECURITY INTEREST IN PATENTS | 039708 | /0001 |
Date | Maintenance Fee Events |
Jan 31 2012 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Feb 05 2016 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Apr 14 2017 | ASPN: Payor Number Assigned. |
Apr 14 2017 | RMPN: Payer Number De-assigned. |
Mar 23 2020 | REM: Maintenance Fee Reminder Mailed. |
Sep 07 2020 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Aug 05 2011 | 4 years fee payment window open |
Feb 05 2012 | 6 months grace period start (w surcharge) |
Aug 05 2012 | patent expiry (for year 4) |
Aug 05 2014 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 05 2015 | 8 years fee payment window open |
Feb 05 2016 | 6 months grace period start (w surcharge) |
Aug 05 2016 | patent expiry (for year 8) |
Aug 05 2018 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 05 2019 | 12 years fee payment window open |
Feb 05 2020 | 6 months grace period start (w surcharge) |
Aug 05 2020 | patent expiry (for year 12) |
Aug 05 2022 | 2 years to revive unintentionally abandoned end. (for year 12) |