This invention relates generally to the area of system interconnect technology.
As CPU speeds have reached the multi-gigahertz range, system designers increasingly focus on system interconnect as the primary bottleneck at the chip-to-chip, board-to-board, backplane and box-to-box levels. System interconnect has evolved from utilizing parallel I/O technology with source-synchronous clocking or system-synchronous clocking to multi-gigabit serial I/O with clock-data recovery (“CDR”). Channel aggregation bonds individual serial I/O lanes to create a multi-lane link, transcending the bandwidth limitations of single transceiver channels and providing the high bandwidth required by next generation serial protocols such as 40/100 Gigabit Ethernet and PCI Express Gen 3. However, various communication protocols have different functional requirements. At the same time, there is an increasing need for system designers to have flexibility in designing systems to work with one particular protocol versus another.
Scrambling/descrambling processing stages in a high speed transceiver allow high speed signals to have sufficient transition densities to help minimize data errors. Scrambling is typically carried out by linear feedback shift register (“LFSR”) circuits including shift register elements and one or more XOR circuits. However, different protocols have different scrambling techniques. For example, some protocols use multiplicative scrambling while others use additive scrambling. As another example, different protocols use different scrambling polynomials, each of which require different couplings to XOR circuits in an LFSR. Also, in some protocols lanes are aggregated and data across multiple lanes is preferably scrambled together. As another example, some protocols use a least significant bit (“LSB”) ordering of data while others use a most significant bit (“MSB”) ordering.
There is a need for integrated circuits (“ICs”) with transceivers that can be adapted for use with different protocols. However, it may be cumbersome/costly to provide completely separate scrambling circuitry for each possible protocol for which the IC might be utilized. Therefore, there is a need for scrambling circuitry that can be adapted for different protocols.
An embodiment of the invention provides scrambling circuitry configurable to support one of a plurality of scrambling protocols. In one embodiment, scrambling circuitry includes scrambling circuits in each of a plurality of data lanes and the scrambling circuitry is configurable such that scrambling circuits in a plurality of data lanes are combined to provide a multilane scrambler or such that scrambling circuits in each lane operate independently. In one embodiment, a scrambling circuit is configurable to be adapted for operation as one of a plurality of scrambler types (for example, either additive or multiplicative). In one embodiment, a scrambling circuit is configurable to support scrambling in accordance with any one of a plurality of scrambling polynomials. In one embodiment, a scrambling circuit results from a method of streamlining the number of XOR circuits (and, in some embodiments, the number of programmable taps coupling shift register element outputs to the XOR circuits) needed to support one of a plurality of scrambling polynomials. In a particular embodiment, LSFR circuits in each lane are adapted to scramble multi-bit wide data. In one embodiment, selection circuitry coupled to a multi-lane scrambler is configurable to provide either least significant bit (“LSB”) or most significant bit (“MSB”) data ordering from a first to a last lane of a plurality of lanes. In one embodiment, selection circuitry coupled to a scrambling circuit for a particular lane processing multi-bit wide data is configurable to provide either LSB or MSB data ordering within a particular lane.
For purposes of illustration only, several aspects of particular embodiments of the invention are described by reference to the following figures.
The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of particular applications and their requirements. Various modifications to the exemplary embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the invention. Thus, the invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Scrambling circuits 110, 120, 130 and 140 have respective inputs for receiving respective input data signals DATA_IN[0], DATA_IN[1], DATA_IN[2], and DATA_IN[3]. Scrambling circuits 110, 120, 130 and 140 also each include inputs labeled “SCRM_IN” and outputs labeled “LFSR_OUT,” “DATA_OUT” and “SCRM_NEXT.” In some implementations, each of these signals, for example, DATA_IN[1], is one bit wide. However, in other implementations, the scrambling circuits may include circuitry adapted to receive parallel data in each lane that is more than one bit wide (sometimes referenced herein as “multi-bit” wide) as will be more fully described in the context of
Continuing with the description of
As illustrated in
The selection circuits 201, 202, and 203 allow various configuration options for LFSR circuit 120. If mux 201 is configured to select its A input, then LFSR circuit 120 is effectively bypassed. This may be desirable if, for example, the IC transceiver that includes the LFSR circuit is to be configured for use with a protocol that does not require data scrambling. Furthermore, even if scrambling is utilized by a particular protocol, different protocols may require that the scrambling occur in a different order relative to other processing. Therefore, in a particular transceiver, two scrambling blocks may be provided along a data path, but only one utilized depending upon which protocol is utilized. Therefore, mux 201 provides the ability for the particular scrambling block of which LFSR 120 is a part to be selectively bypassed in the data path. Mux 202 is configured to select its A input if the scrambler is in cascade mode (as described in the context of
Different protocols utilize different scrambling polynomials. Different polynomials require different shift register element outputs to be tapped to feed back into one or more XOR circuits. By programming configuration elements C1, C2, C3, C4, C5, C6, C7, and C8, various scrambling polynomials may be supported. As a simplified example, if the scrambling polynomial is of the form x5+x3+1, then C1, C2, C4, C6, C7, and C8 are programmed with “0” (logical low) and C3 and C5 are programmed with “1” (logical high). The effect of such a configuration is that the outputs shift register elements 23 and 25 are XOR'ed together by XOR circuit 217.
As another simplified example, if the scrambling polynomial is of the form x8+x6+x2+1, then C2, C6, and C8 are configured with a 1 and C1, C3, C4, C5, and C7 are configured with a 0. The effect of such a configuration is that the outputs of shift register elements 26 and 28 are XOR'ed together by feedback XOR circuit 216 and the result is XOR'ed together with the output of shift register element 22 by feedback XOR circuit 217.
Those skilled in the art will appreciate that in actual implementations, scrambling polynomials often utilized terms with much larger exponents that the simplified examples referenced above. An LFSR circuit that implements such scrambling function would be larger than LFSR circuit 120 illustrated in
As stated above, the SONET/SDH protocol utilizes the polynomial x43+1; the Ethernet/Interlaken protocol utilizes the polynomial x58+x39+1; the PCI Express Gen. 3.0 protocol uses the polynomial x23+x21+x18+x15+x7+x2+1. To build a configurable scrambler to support these protocols applying method 400 (and following the principles of the example of
Circuit 25 outputs signal SCRM_NEXT at the output of mux 51 and signal LFSR_OUT at the output of flip-flop 50. LFSR_OUT is provided as a “SCRM_CUR” signal of the next shift register circuit in the chain (in this example, shift register circuit 26, not separately shown in detail, but referenced in
Use of control signals CTRL_ADVANCE, CTRL_INIT, and CTRL_LOAD to adapt circuit 25 for operation as part of a particular type of scrambler/descrambler is illustrated by the following table:
With reference to
To configure circuit 25 as part of an LFSR additive scrambler circuit, the CTRL_ADVANCE signal is set to first select the A input of mux 51. This freezes the state of the circuit so that an initial seed can be loaded. In this example, the initial seed is from the PRESET signal provided at the input of mux 52. This preset value may be provided as a set value in a configuration RAM element or other programmable element. However, in another embodiment, the initial value may be provided by an on-chip state machine and/or sent from another device with which the IC that includes LFSR 120 (and circuit 25) will be communicating. In such an alternative, signal CTRL_INIT may be set to select the A input of mux 52 and the initial seed value will be provided by signal SCRM_SEED. Continuing with this example, for an additive scrambler, signal CTRL_LOAD is initially set to select the B input of mux 53 so that the output of mux 52 can provide the initial scrambling seed to be loaded into flip-flop 50. However, after an initialization event is used to load flip-flop 50, then (on a subsequent clock cycle) signals CTRL_ADVANCE and CTRL_LOAD are changed so that, respectively, the B input of mux 51 and the A input of mux 53 are selected. This enables the operational mode and data can now be loaded into shift register element circuit 25 and scrambled accordingly. If LFSR circuit 120 is to be utilized as an additive descrambler, then control signals are provided in a similar manner except that, in one example, signal CTRL_INIT is set to select the A input of mux 52. Thus the initial seed is provided by the signal SCRM_SEED. In one example, SCRM_SEED is provided by an on-chip state machine. In another example, SCRM_SEED is extracted from a portion of the incoming data stream that is to be descrambled. In an alternative embodiment, if the seed needed for descrambling is known in advance, that seed may be provided as a programmed PRESET signal and the CTRL_INIT signal may be set to select the B input of mux 52 such that PRESET provides the initial descrambling seed. Note that in some embodiments, the PRESET value is stored as a configuration element setting and might be different for different lanes.
Having a mux such as mux 53 in front of each flip-flop in LFSR circuits in each lane also allows switching from a multiplicative scrambler to an additive scrambler when LFSR circuits from multiple lanes are used together (cascade mode). For an additive scrambler, the necessary seed can be loaded into the shift register elements of an LFSR in one of the lanes by selecting the B input of muxes such as mux 53 during a load sequence and then switched to select the A input of those muxes after the seed is loaded and that seed can then propagate throughout the scrambler portions in other lanes.
As illustrated in
LFSR circuit 600 is configurable to operate in either cascade or non-cascade mode. If muxes 625, 626, 627, and 628 are configured to select their B inputs, then LFSR circuit 600 operates in non-cascade mode. In this mode, LFSR circuit 600 acts as a stand-alone scrambler for one lane of 4-bit wide data. However, if muxes 625, 626, 627, and 628 are configured to select their A inputs, then LFSR circuit 600 operates in cascade mode. In this mode, LFSR circuit 600 acts together with similar circuits in other lanes to scramble data across multiple lanes. Specifically, in cascade mode, muxes 625, 626, 627, and 628 select as input, respectively signals SCRM_IN[10], SCRM_IN[11], SCRM_IN[12], and SCRM_IN[13]. These signals are the “SCRM_NEXT” signals from the outputs of 3-input muxes in a similar LFSR circuit in another lane (not separately shown).
LFSR circuit 600 is also configurable to operate as a different scrambler “type” in a similar manner to that described in the context of
As described in the context of LFSR circuit 600 of
In the examples of
The illustrated arrangement allows any two or more illustrated lanes to be aggregated and to select between LSB and MSB ordering for the aggregated lanes. For example, if all four lanes are aggregated together, then to use circuitry 800 with a protocol using LSB ordering, the circuitry would be configured as follows: muxes 81 and 85 are configured to select their A inputs; muxes 82 and 86 are configured to select their B inputs; muxes 83 and 87 are configured to select their C inputs; and muxes 84 and 88 are configured to select their D inputs. To use circuitry 800 with a protocol requiring MSB ordering (with all four lanes aggregated together), the circuitry would be configured as follows: muxes 81 and 85 are configured to select their D inputs; muxes 82 and 86 are configured to select their C inputs; muxes 83 and 87 are configured to select their B inputs; and muxes 84 and 88 are configured to select their A inputs.
As another example, if just LANE 0, LANE 1, and LANE 2 were aggregated together then, to use circuitry 800 with a protocol using LSB ordering for those lanes, the circuitry would be configured as follows: muxes 81 and 85 are configured to select their A inputs; muxes 82 and 86 are configured to select their B inputs; and muxes 83 and 87 are configured to select their C inputs. To use circuitry 800 with a protocol using MSB ordering for those lanes, the circuitry would be configured as follows: muxes 81 and 85 are configured to select their C inputs; muxes 82 and 86 are configured to select their B inputs; muxes 83 and 87 are configured to select their A inputs.
In some embodiments, A, B, C, and D inputs of each mux receive (and the outputs of each mux transmit) data that is one bit wide. When each lane handles data that is more than one bit wide, then additional bit ordering circuitry 900 will be needed in each lane as further described below in the context of
It should be noted that if a particular application requires data path width conversion (“gearboxing”) to change the width of incoming or outgoing data, it may be necessary to reorder lanes after such gearboxing on a transmit path and before such gearboxing on a receive path and therefore gearboxing would occur between lane reordering and scrambling/descrambling. Thus, although not shown in
If circuitry 900-1 is to be used with a protocol using LSB ordering, then muxes 91-98 are all configured to select their A inputs. If circuitry 900 is to be used with a protocol using MSB ordering, then muxes 91-98 are all configured to select their B inputs. In a typical application, the selected ordering (LSB or MSB) is done on the transmit side at the bit level and then distributed (“striped”) across lanes. Therefore, the settings for circuitry 800 in
Scrambler 100 in
A specific example of an IC that supports transceiver configuration is a PLD. PLDs (also referred to as complex PLDs, programmable array logic, programmable logic arrays, field PLAs, erasable PLDs, electrically erasable PLDs, logic cell arrays, field programmable gate arrays, or by other names) provide the advantages of fixed ICs with the flexibility of custom ICs. PLDs have configuration elements (i.e., programmable elements) that may be programmed or reprogrammed. Placing new data into the configuration elements programs or reprograms the PLD's logic functions and associated routing pathways.
Data processing system 1000 may include one or more of the following additional components: processor 1040, memory 1050, input/output (I/O) circuitry 1020, and peripheral devices 1030 and/or other components. These components are coupled together by system bus 1065 and are populated on circuit board 1060 which is contained in end-user system 1070. A data processing system such as system 1000 may include a single end-user system such as end-user system 1070 or may include a plurality of systems working together as a data processing system.
System 1000 can be used in a wide variety of applications, such as computer networking, data networking, instrumentation, video processing, digital signal processing, or any other application where the advantage of using programmable or reprogrammable logic in system design is desirable. PLD 1001 can be used to perform a variety of different logic functions. For example, PLD 1001 can be configured as a processor or controller that works in cooperation with processor 1040 (or, in alternative embodiments, a PLD might itself act as the sole system processor). PLD 1001 may also be used as an arbiter for arbitrating access to shared resources in system 1000. In yet another example, PLD 1001 can be configured as an interface between processor 1040 and one of the other components in system 1000. It should be noted that system 1000 is only exemplary.
In one embodiment, system 1000 is a digital system. As used herein a digital system is not intended to be limited to a purely digital system, but also encompasses hybrid systems that include both digital and analog subsystems.
A first additional embodiment provides a scrambler configurable to be either an additive or a multiplicative scrambler. In some variations of the first additional embodiment, the scrambler includes a data input, a first selection circuit, an input XOR circuit, a plurality of shift register elements coupled together, and one or more feedback XOR circuits coupled to two or more of the plurality of shift register elements; wherein: the data input is coupled to an input of the input XOR circuit and to a first input of the first selection circuit; an output of the input XOR circuit is coupled to a second input of the first selection circuit; two of the shift register elements are coupled to inputs of the feedback XOR circuits which are in turn coupled to the input XOR circuit and to a third input of the first selection circuit and further wherein: configuring the first selection circuit to select its first input adapts the scrambler for operation as a multiplicative descrambler; configuring the first selection circuit to select its second input adapts the scrambler for operation as a multiplicative scrambler; and configuring the first selection circuit to select its third input adapts the scrambler to operate as an additive scrambler or descrambler. In some variations, the feedback XOR circuit includes a plurality of XOR circuits arranged in a tree, the feedback XOR circuit tree being coupled to more than two of the shift register elements. In some embodiments, a scrambling seed for an additive scrambler may be pre-programmed into configuration elements coupled to configurable circuits for loading individual shift register elements. In other embodiments, the scrambling seed may be provided through a data input as an initial part of a data stream. In some embodiments, selection circuits coupled to each shift register element in the configurable LFSR circuit may be controlled to first load a scrambling seed and then evolve data in an operational mode to provide scrambled data. In some embodiments, the scrambling seed value for a particular shift register element may be provided from a selected one of multiple input sources.
A second additional embodiment provides a scrambler configurable to support any one of a plurality of scrambling polynomials. Some variations of the second additional embodiment include a plurality of programmable taps coupled to outputs of shift register elements in an LFSR circuit. Outputs of the programmable taps are coupled to a feedback XOR circuit tree. In one variation, the programmable taps comprise AND gates with one input of the AND gate being coupled to an output of a shift register element and another input being coupled to a configuration element. In one variation, the number of individual XOR circuits in the XOR circuit tree and/or the number of programmable taps is streamlined such that only the outputs of shift register elements whose place in the LFSR circuit correspond to exponent values appearing in potentially supported scrambling polynomials are coupled to the XOR circuit tree. In one aspect, the configurable scrambler may be programmed for supporting a particular polynomial by programming “1” in each configuration element that is coupled to an AND gate input for AND gates coupling shift register elements whose place in the LFSR circuit correspond to exponent values of terms in the selected scrambling polynomial for which the scrambler is to be configured.
A third additional embodiment includes a method for providing a streamlined multi-protocol LFSR circuit. The method includes providing a number of shift register elements corresponding to the largest exponent value of any term in a scrambling polynomial to be supported; providing programmable taps coupling the output of each ith shift register element—where “i” corresponds to an exponent value of a term in a supported scrambling polynomial—to a XOR circuit in a XOR circuit tree; providing a number of XOR circuits in the XOR circuit tree equal to one less than the number of shift register elements with output coupled (via the programmable taps) to the XOR circuit tree.
While the invention has been particularly described with respect to the illustrated embodiments, it will be appreciated that various alterations, modifications and adaptations may be made based on the present disclosure, and are intended to be within the scope of the invention. While the invention has been described in connection with what are presently considered to be the most practical and preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments but only by the following claims.
Number | Name | Date | Kind |
---|---|---|---|
4713605 | Iyer et al. | Dec 1987 | A |
4852023 | Lee et al. | Jul 1989 | A |
5105376 | Pedron | Apr 1992 | A |
5946473 | Lotspiech et al. | Aug 1999 | A |
5991909 | Rajski et al. | Nov 1999 | A |
6014446 | Finkelstein | Jan 2000 | A |
6040725 | Lee et al. | Mar 2000 | A |
6061417 | Kelem | May 2000 | A |
6181164 | Miller | Jan 2001 | B1 |
6320872 | Asbjorn et al. | Nov 2001 | B1 |
6442579 | Hansson | Aug 2002 | B1 |
6560338 | Rose et al. | May 2003 | B1 |
6738939 | Udawatta et al. | May 2004 | B2 |
7286589 | Toussi et al. | Oct 2007 | B1 |
7487194 | Lablans | Feb 2009 | B2 |
20030103628 | Luc et al. | Jun 2003 | A1 |
20060039558 | Morii et al. | Feb 2006 | A1 |
20070283231 | Hoyle | Dec 2007 | A1 |
20080244274 | Lablans | Oct 2008 | A1 |
20090083833 | Ziola et al. | Mar 2009 | A1 |
20090327382 | Hisakado | Dec 2009 | A1 |
20120030450 | Yu | Feb 2012 | A1 |
Entry |
---|
U.S. Appl. No. 12/288,178, filed Oct. 17, 2008, Vijayaraghavan et al. |
U.S. Appl. No. 12/752,641, filed Apr. 1, 2010, Vijayaraghavan et al. |
“IEEE Standard for Information technology,” IEEE 802.3-2008, Section 4, pp. 474, 475 and 478. |
“Interlaken Protocol Definition,” A Joint Specification of Cortina Systems and Cisco Systems, Revision 1.2, Oct. 7, 2008, pp. 30-31 and 48-50. |
“Synchronous Optical Network (SONET) Transport Systems: CommonGeneric Criteria,” GR-253-CORE Issue 3, Sep. 2000, Telcordia Technologies, pp. 5-6 and 5-7. |
“Base Specification Revision 3.0,” PCI Express®, Nov. 10, 2010, pp. 213-217. |