The present invention pertains in general to transfer of data between Physical Layer Devices (PHY) and the Media Access Controller (MAC) and, more particularly, to the timing considerations for generation of the clock and the data transferred there between.
In high speed Ethernet controllers, such as gigabit Ethernet controllers, data is transferred at relatively high rates. In one instantiation, the driver/receiver circuitry for facilitating receipt of data from a network and transmission of data to a network for interface to the media side of the controller is contained within a Physical Layer Device (PHY) which is operable to interface with the Media Independent Interface (MII) side through a Media Access Controller (MAC) block. One side of the PHY connects to the physical media (transmission media), while the other side connects to the Media Independent Interface (MII)/Gigabit Media Independent Interface (GMII). Data is received by the PHY from the transmission medium and then transmitted to the MAC for a receive operation. During a transmit operation, data is transferred from the MAC to the PHY and the PHY then transmits the data onto the transmission medium. Each of the MAC and PHY have independent clocks such that a data clock is always transmitted with the data (except for the 10/100 mode). Due to the high data rate in the gigabit controller, some timing compensation is required between chips to ensure that the clock and data are properly aligned at the receiving one of the PHY and MAC blocks. The reason for this is that the clock edge of the data clock in the transmitter is utilized to generate data and then is also utilized at the opposite end, the receive end, to sample the data (for the RGMII mode). To ensure that the sampling is done only during “data valid” windows, there is provided some delay at the transmit end to ensure that data is sampled correctly. One method of doing this is to provide a fixed delay for the data to ensure that the data is positioned relative to the rising edge of the receive clock to ensure that the “data valid” region is disposed within the period of the receive clock at the appropriate position for the purpose of sampling of the data. This requires that there be a separate delay for each data line between the PHY and the MAC at the PHY on the receive path associated therewith. For a typical Gigabit Media Independent Interface (GMII), there are provided ten interface lines for transmitting receive data along the receive path, eight for the actual receive data and two for the receive data error and data valid signals. In another type of interface, a Ten Bit Interface (TBI), there are provided ten bits of data transfer. The number of pins associated with the GMII interface can be reduced with a Reduced GMII (RGMII) interface that requires only five data bits to transfer data and control information. However, there will always be a receive clock transmitted from the PHY to the MAC for received data along with the data for any of the interfaces, such that reconstruction thereof at the MAC by sampling will require some delay to be incorporated, since the data is clocked from the rising edge of the receive clock, due to some timing issues. Further, for accurate sampling of all of the data, this delay must be tightly controlled.
The present invention disclosed and claimed herein, in one aspect thereof, comprises a method for transferring data received on the input of a physical layer device from a transmission medium to an output associated with the physical layer device and to a media independent layer, the transferred data associated with transferred timing information from the physical layer device to the media independent layer. A receive clock is generated and then the data transitions in the received data are synchronized to at least one edge of the receive clock to provide synchronized receive data. The synchronized received data is then transmitted to the media independent layer. The generated receive clock is delayed by a predetermined clock delay to provide a delayed receive clock, and wherein the data transitions in the synchronized receive data is positioned relative to the rising edge of the delayed receive clock at a predetermined position therein following the rising edge thereof. The delayed receive clock transmitting with the transmitted synchronized receive data.
For a more complete understanding of the present invention and the advantages thereof, reference is now made to the following description taken in conjunction with the accompanying Drawings in which:
Referring now to
The PHY 108 and MAC 112 are all associated with operation of an ethernet type controller. This system operates at three potential rates, 10 Mb/s, 100 Mb/s and 1000 Mb/s (gigabit) data rates. In the disclosed embodiment, this system operates on a twisted wire pair (and, therefore, they are referred to as the 10 BASE-T, 100 BASE-T and 1,000 BASE-T controllers). The PHY 108 is operable to receive the data in the appropriate format and then convert it to a format capable of being transmitted to the MAC 112. In the high speed operation, the 1000 BASE-T mode for Gigabit transmission rates, the PHY 106 utilizes full duplex baseband transmission over four pairs of category five (CAT5) balanced cabling or twisted wire. The aggregate data rate of 1000 Mb/s is achieved by transmission at a data rate of 250 Mb/s over each wire pair. The use of hybrids and cancellers enables full duplex transmission by allowing symbols to be transmitted and received on the same wire pairs at the same time. Baseband signaling with a modulation rate of 125 Mbaud is utilized on each of the wire pairs. The transmitted symbols are selected from a four-dimensional five-level symbol constellation. The details of the interface of the PHY 108 with the transmission media are not illustrated in the present disclosure, but can be found in the IEEE standards for this interface, IEEE Std 802 . . . 3ab-1999.
In the illustration of
Referring now to
In the gigabit operation, clocks operate at 125 MHz and, for the 10/100 operation, the clocks will operate at 2.5 MHz and 25 MHz, respectively. The GMII interface utilizes ten data path signals for both transmit and receive data for both data and control. There is provided a transmit clock line 202 that carries the clock from the MAC 112 to the PHY 108. This clock rate will be at the rate of 125 MHz, 25 MHz or 2.5 MHz (clock rates for the TBI interface will be 62.5 Mhz. There are provided eight transmit data paths 204 with two transmit control bits on two data paths 206, one for a data valid transmit bit, TX_EN, and one for a transmit error signal, TX_ER. For a TBI format, the transfer data paths 204 and a transfer data paths 206 will comprise ten bits of data transmitted in this format. There is provided a receive block on a receive clock line 208 from the PHY 108 to the MAC 112 which operates at a rate of 125 MHz, 25 MHz or 2.5 MHz (62.5 Mhz for TBI). Two control data paths 210 provide the receive data valid signal, RX_DV, and the receive error control signal, RX_ER. There are provided eight receive data paths 212 for transmission of receive data from the PHY 108 to the MAC 112. For a TBI interface, the eight receive data paths 212 and the two control data paths 210 will be combined to provide ten data transfer paths for a ten bit data transfer (TBI operation).
Referring now to
In
With the operation described herein above with respect to
Referring now to
Referring now to
Data is received in a ten bit format or a TBI format on a ten bit data bus 734, which can be directly output in a TBI format to the multiplexer 710 or processed through an RTBI block 736 to provide an RTBI input to the multiplexer 710. The bus 734 is also input to a GMII conversion block 738 to provide data in the GMII format on a bus 740, this being a data bus and to control data bits for the error and data valid bits. This is input directly to the multiplexer 710 or to an RGMII conversion block 744 for conversion to an RGMII format for input to the multiplexer 710. Therefore, the multiplexer 710 outputs the receive data and the two receive control bits in either the reduced ten count format or the full format, either GMII or TBI. All of this operation is conventional.
The receive clock for RGMII operation is based on a 250 MHz internal clock with the output clock being a 125 MHz clock. Although not described in detail herein, data is output on the rising edge and the falling edge of the 125 MHz clock. For GMII, the internal clock is a 125 MHz clock with the output being a 125 MHz clock. For TBI operation, the internal clock is 125 MHz with the output clock being 62.5 MHz. A multiplexer 750 is provided that is operable to receive the 125 MHz internal clock and the 250 MHz internal clock, Clk125 and Clk250, respectively. Also, the recovered clock for either GMII or RGMII are output as RClk125 and RClk250, respectively. Also input to the multiplexer 250 are the TBI clock signal. This provides an output on a line 752 which is input to a phase delay block 754 to provide a delay of 0 ns, 1.5 ns, 2.0 ns or 2.5 ns, this being programmable. This provides the delay clock on a line 756.
Additionally, there is provided a multiplexer 758 for the transmit clock which is operable to receive at least the internally generated 125 MHz clock and the TBI clock. This is output on a line 760 for delay by a phase delay block 764 of a programmable value of 0 ns, 1.5 ns, 2.0 ns or 2.5 ns. This provides a delay clock on a line 766.
Referring now to
Referring now to
In operation, transistors 918 and 906 operate as a conventional inverter, such that node 912 going low turns on transistor 918, and node 912 going high turns on transistor 906. However, once either of the transistors 918 or 906 are turned on, the current there through is limited, which current is defined by the respective transistors 914 and 902, which are biased to provide a limited amount of current there through. This current through transistors 914 or 902 is utilized to charge the capacitor 920, the RC time constant associated therewith resulting in a finite rise time to the signal which will trigger the next gate when the threshold thereof is exceeded, resulting in a predefined delay. This delay can be adjusted by the amount of current that is provided by the bias, the bias signals pb and nb generated by the bias circuit 804.
Referring now to
The current from current source 1002 through transistors 1006 and 1008 is mirrored to another mirror leg. This leg is comprised of two series connected n-channel transistors 1016 and 1018, transistor 1016 having the source/drain path thereof connected between the node 1020 and one side of the source/drain path of transistor 1018, the other side of the source/drain path of transistor 1018 connected to ground. The gate of transistor 1018 is connected to node 1010 and the gate of transistor 1016 is connected to Vdd. Node 1020 is connected to one side of the source/drain path of a p-channel transistor 1022, the other side thereof connected to one side of the source/drain path of a p-channel transistor 1024, the other side of source/drain path of the transistor 1024 connected to Vdd. A p-channel transistor 1026 has the source/drain path thereof connected between the Vdd and the gate of transistor 1024 on a node 1028, the gate of transistor 1026 connected to pdnb. Node 1028 comprises the bias output signal pb. Node 1028 is connected to the gate of transistor 1024 and the gate of transistor 1022 is connected to ground. A power down p-channel transistor 1030 has the source/drain path thereof connected between node 1020 and the node 1028 to provide the pb output signal, the gate of transistor 1030 connected to the power down signal pdnbd In general, this current source will provide a 100 μa current for both the pb node 1028 and the nb node 1010.
Although the preferred embodiment has been described in detail, it should be understood that various changes, substitutions and alterations can be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
The present application is related to U.S. Pat. No. 6,604,206, issued Aug. 5, 2003, which is incorporated herein by reference in its entirety.