1. Field of the Invention
The present invention relates to a deskew circuit and a deskew method that corrects skews between clock and data, as well as among data on a data bus, in data transfers to transfer large volume data between packages at high-speed and to transfer clock and data in parallel.
2. Related Background Art
A conventional technology that transmits data at high-speed while taking data skew into consideration has been indicated. In such a technology, a delay amount for every bit in data on the receiving side is adjusted using a phase adjustment pattern. However, phases are matched to an external clock supplied to both the transmitting and receiving sides, and the technology therefore is not a method to transfer clock and data in parallel.
The conventional technology involves a method of adjusting only the clock in devices such as disk array control devices in which there is a large skew in a backplane due to the large number of packages and in which a high-speed transfer must be implemented in a data transfer method that transfers clock and data (bus data) in parallel in order to reduce power consumption. Although this method is effective when the transfer speed is slow and data pulse width is wide, it is difficult to correct the clock to a position that allows all data to be read correctly when the transfer speed is fast and the data pulse width is narrow. This becomes even more difficult when taking into consideration the junction temperature fluctuations of an LSI that has a built-in circuit that makes such an adjustment, power source voltage fluctuations, flip-flop set-up time and hold time. Further, the skew is small and the clock can be corrected when the transmission distance is short (e.g., approximately 10 cm–20 cm), such as when sending and receiving within the same substrate (package). However, the skew is larger and correcting the clock becomes very difficult when the transmission distance is long (e.g., approximately dozens to 100 cm), such as in a backplane. Skew adjustment becomes difficult when the transmission distance is long as in a backplane, and this also sets a limit to the transfer speed and makes high-speed transfer impossible.
The present invention relates to a deskew control method and a deskew control system that transfer data and clock in parallel and that make high-speed transfer possible when the transmission line is long and the skew is large, such as when transmitting via a backplane.
In accordance with an embodiment of the present invention, for clock and every bit of data, a variable delay circuit is provided between a receiver that receives data and a flip-flop that first latches the data, a detecting pattern to detect a stable region for receiving data is repeatedly sent before implementing a data transfer, and a delay value that ensures data to be read is set for each variable delay circuit.
Other features and advantages of the invention will be apparent from the following detailed description, taken in conjunction with the accompanying drawings that illustrate, by way of example, various features of embodiments of the invention.
Next, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
In a device such as this, a clock signal is transferred with data only when it is necessary to reduce power consumption. Further, in high-speed data transfers, skews between data and clock in a relatively short distance that were managed until now by a clock margin become a problem.
For this reason, a deskew circuit 101 is provided in each of the bridge LSIs 132, the bridge LSIs 142, the switch control LSIs 161 and the cache memory I/F control LSI 171, which are involved in data transfer through the backplane 150.
First, the overall operation of the circuit will be described. An initial skew correction takes place prior to a data transfer. In the initial skew correction, data for skew correction, which includes a predetermined test pattern as those shown in
After the initial delay value of the variable delay circuit 22 is established, a small delay (the smallest unit of delay adjustment or a larger delay amount) is added to each bit of every signal line for data to find a delay amount that will cause the data's falling edge and rising edge to match the clock's rising edge. More specifically, when a cycle and a delay value with which “1” is detected for the first time become clear, whether “1” can be detected a plurality of times in a stable manner is checked to confirm that an output from a flip-flop 8 is not metastable and that the delay value is not affected by clock jitters. If “1” cannot be received in a stable manner, the delay value is increased or decreased until a delay value with which “1” can be received in a stable manner is found and established as REGD 1. This is done by outputting an adjustment value from a delay control circuit (1) 30, and the value is added to a counter and register 3 in order to control the variable delay circuit 2. Next, the transmitting side sends repeating data 2 and clock of pattern 2. After confirming the transmission of pattern 2, the delay control circuit (1) 30 sets a delay value signal 53 as the delay value REGD 1 and checks whether “0” can be detected in a stable manner in the applicable cycle. If “0” cannot be detected, the delay value is increased until a delay value with which “0” can be received in a stable manner is found, and the delay value REGD 1 is changed and established. This concludes the detection of the starting edge.
Next, in order to detect the ending edge, the transmitting side continues sending the repeating data 2 and clock of pattern 2. The variable delay value for data is increased and a cycle with which “1” can be detected is searched. When a cycle and a delay value with which “1” is detected for the first time become clear, whether “1” can be detected a plurality of times in a stable manner is checked to confirm that an output from a flip-flop 13 is not metastable and that the delay value is not affected by clock jitters. If “1” cannot be received in a stable manner, the delay value is increased or decreased until a delay value with which “0” can be received in a stable manner is found and established as REGD 2.
Next, the transmitting side again sends the repeating data 1 and clock of pattern 1. After confirming the transmission of pattern 1, the delay control circuit (1) 30 sets the delay value signal 53 as the delay value REGD 2 and checks whether “1” can be detected in a stable manner in the applicable cycle. If “1” cannot be detected, the delay value is increased until a delay value with which “1” can be received in a stable manner is found, and the delay value REGD 2 is changed and established. This concludes the detection of the ending edge.
The delay value of a midpoint between the starting edge and the ending edge is calculated through an operation based on the delay value REGD 1 of the starting edge and the delay value REGD 2 of the ending edge detected. The midpoint delay value is set as the delay signal 53. Next, a request to transfer a random pattern is made to the transmitting side in order to check that the transmitting pattern and the receiving pattern match and that the data can be received in a stable and correct manner. This establishes that data can be received in a stable manner with the applicable delay value, and the delay value signal 53 is set as the delay value that can ensure some margin. This completes the delay adjustment and synchronizes a data signal 56 with a clock 58, which makes a delay adjustment completion signal 87 valid. This completes the delay adjustment in one direction.
Based on this result, a delay is added to the data through the variable delay circuit 2 so that the midpoint between falling and rising positions of the data, which is an output 67 from the flip-flop 8, matches the rising of the clock. This delay value is an average value of the delay value with which the falling of the data matches the rising of the clock and the delay value with which the rising of the data matches the rising of the clock. This realizes the initial skew adjustment.
Next, the transmitting side invalidates a skew adjustment beginning signal 81, and if the deskew processing ended normally, the deskew control circuit on the side that first received the skew adjustment beginning signal 81 makes it valid and performs a deskew adjustment in the other direction. If the skew adjustment cannot be made, the skew adjustment beginning signal 81 remains invalid and the deskew control circuit that first received it notifies the side that first transmitted the skew adjustment beginning signal 81 that the deskew did not end normally.
Next, a description will be made as to the processing that takes place when deskew conditions change due to temperature fluctuations and/or power source voltage fluctuations during operation. A clock signal 73, which is an output 73 of the variable delay circuit 22, is provided unaltered to a flip-flop (hereinafter abbreviated “F/F”) 9, the clock signal 73 with a delay 6 added is provided to the F/F 8, and the clock signal 73 with a delay 5 further added is provided to an F/F 7. As a result, outputs 62, 61 and 60 of the F/Fs 9, 8 and 7, respectively, have a relationship as represented by a, b and c, respectively, in
The output 62(a) of the F/F 9 and the output 61(b) of the F/F 8 are provided to an EOR (exclusive OR) 11. When there is a relationship in which a is “0” and b is “1,” an output of the EOR 11 becomes “1” and an output of an F/F 14 becomes “1,” which indicates that the phase of the data is later than that of the clock. In this case, the variable delay circuit 2 is adjusted to increase the delay amount of the data.
On the other hand, the output 60 of the F/F 7 and the output 61 of the F/F 8 are provided to an EOR 10. When there is a relationship in which c is “0” and b is “1,” an output of the EOR 10 becomes “1” and an output of an F/F 12 becomes “1,” which indicates that the phase of the data is earlier than that of the clock. In this case, the variable delay circuit 2 is adjusted to decrease the delay amount of the data.
The above concludes the description of the circuit configuration shown in
The variable delay circuit 2 is placed between the input buffer 1 and the F/Fs 7, 8 and 9 that first latch data, and the data 61 that has been skew-adjusted is outputted from the F/F 8. Since the input data 56 and the input clock 58 are asynchronous until the delay control circuit (1) 30 outputs the correct delay value signal 53, the output signal 61 from the F/F 8 remains in a metastable state (i.e., an unstable state in which it cannot be determined whether data is high level or low level). For this reason, an output 65 of the F/F 13, whose output is stable, is inputted into the delay control circuit (1) 30; this allows the delay control circuit (1) 30 to establish, based on the data made available from the input of the output 65, the correct delay value signal 53 when a skew adjustment control is performed.
Next, the skew adjustment control of the clock 71 and the command data bus 50 by the delay control circuit (1) 30 in the deskew circuit is described.
Tw>3Td+Tset+Thold
Consequently, the maximum delay value Td of the smallest unit of delay adjustment for the variable delay circuit must be less than approximately one-third of the window time Tw.
Patterns for detecting the delay value of the variable delay circuit are indicated in
Next, the flow of operations performed by the delay control circuit (1) 30 will be described with reference to
OR of the detected value for all data bits is obtained (602). If there is even one bit whose data is not “0” (603 No), further delay is added to the clock (604). In this way, detection of “1” continues while the delay value of the variable delay circuit 22 of the clock is increased in the next cycle and is repeated until “1” is no longer detected. As described earlier, the clock's delay value is set in this way (603). The processing to determine the clock's delay value ends at the dotted line in
Next, a request is made to the transmission source to transfer pattern 1 in
If “1” is detected (607 Yes), whether “1” is detected within the one applicable cycle is determined (610). If it is not detected, the processing returns to step 606. If it is detected, it indicates that there is a possibility that the data's phase is too early; consequently, the data delay value is reduced by, for example, 50 ps (which is the smallest unit of delay adjustment in this example) (611). This is repeated until “1” is no longer detected (611, 612). Since no longer detecting “1” indicates that the data's delay has been reduced too much, the data's delay is increased by 50 ps (613); if this causes “1” to be detected (614), it indicates that the clock's edge matches the data's starting edge and the current delay value is retained as the delay value for the data's starting edge (615).
Next, a request is made to transfer the data of pattern 2 in
Next, the processing to detect the ending edge begins. As data of pattern 2 in
After this, a request is made to transfer data of pattern 1 in
The above steps determine the data delay value for one bit on the data bus, and a similar processing takes place for the next data bit starting at {circle around (3)} in
According to the disk array control device in
These skew adjustments are made after a power-on reset is released (i.e., when a processing to reset F/Fs and registers at power-on is completed) or based on an instruction from the CPUs 133 of the channel adapter boards 130 or the CPUs 143 of the disk adapter boards 140. To prevent data transfers from exceeding the margin of difference between a skew-adjusted state and the window time in actual data transfers, skews are readjusted when a CPU fails to end normally and a retry is attempted or when there are environmental changes in temperature or power source due to passage of time.
Further, when there is a possibility that transfer data cannot be received correctly due to an LSI's junction temperature fluctuations and/or power source voltage fluctuations, they can be detected and corrected automatically. Automatic detection and correction are controlled by a delay control circuit (2) 4.
Next, the control method of the delay control circuit (2) 4 will be described.
Clock signals 57, 58 and 73 are inputted in the F/Fs 7, 8 and 9 in
Although an example with a single-phase clock and data consisting of one signal is described for the sake of simplicity in
The data transfer methods shown in
By providing a variable delay circuit between a receiver that first receives data and an F/F that first latches the data, data that can be taken in is provided to the F/F after adjustment, which prevents the first stage F/F from entering a metastable state.
According to the embodiments of the present invention described above, a parallel transfer clock is supplied only when a data transfer is required, skew adjustments of two or more cycles of the clock is possible, and the present invention is applicable to multi-phase clocks. Further, fine adjustments of skews after completing the transfer of one packet is possible; these features make the method according to the present invention superior to conventional methods.
As described above, in devices that require high-speed data transfer such as disk array devices, the present invention provides an effect of achieving a high data transfer through enhanced transfer frequency by performing deskew adjustments in data transfers in parallel with clock.
While the description above refers to particular embodiments of the present invention, it will be understood that many modifications may be made without departing from the spirit thereof. The accompanying claims are intended to cover such modifications as would fall within the true scope and spirit of the present invention.
The presently disclosed embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims, rather than the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Number | Date | Country | Kind |
---|---|---|---|
2002-293276 | Oct 2002 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
4881165 | Sager et al. | Nov 1989 | A |
5122679 | Ishii et al. | Jun 1992 | A |
5432823 | Gasbarro et al. | Jul 1995 | A |
5467464 | Oprescu et al. | Nov 1995 | A |
5486783 | Baumert et al. | Jan 1996 | A |
5726990 | Shimada et al. | Mar 1998 | A |
5796795 | Mussman et al. | Aug 1998 | A |
5825226 | Ferraiolo et al. | Oct 1998 | A |
5898242 | Peterson | Apr 1999 | A |
5926837 | Watanabe et al. | Jul 1999 | A |
6044121 | Nolan et al. | Mar 2000 | A |
6079035 | Suzuki et al. | Jun 2000 | A |
6118297 | Schenck | Sep 2000 | A |
6157229 | Yoshikawa | Dec 2000 | A |
6294937 | Crafts et al. | Sep 2001 | B1 |
6377079 | Fiedler | Apr 2002 | B1 |
6484268 | Tamura et al. | Nov 2002 | B2 |
6499111 | Mullarkey | Dec 2002 | B2 |
6504415 | Robinson et al. | Jan 2003 | B1 |
6535400 | Bridge | Mar 2003 | B2 |
6557066 | Crafts et al. | Apr 2003 | B1 |
6625675 | Mann | Sep 2003 | B2 |
6636993 | Koyanagi et al. | Oct 2003 | B1 |
6757327 | Fiedler | Jun 2004 | B1 |
6765423 | Higuchi | Jul 2004 | B2 |
20020138675 | Mann | Sep 2002 | A1 |
20020184552 | Evoy et al. | Dec 2002 | A1 |
20030014683 | Deas et al. | Jan 2003 | A1 |
20030046598 | Crafts et al. | Mar 2003 | A1 |
20030074609 | Koyanagi et al. | Apr 2003 | A1 |
20030188234 | Casper et al. | Oct 2003 | A1 |
20040030964 | Slutz et al. | Feb 2004 | A1 |
Number | Date | Country |
---|---|---|
11-355258 | Dec 1999 | JP |
2000-196571 | Jul 2000 | JP |
2001-251283 | Sep 2001 | JP |
2002-007322 | Jan 2002 | JP |
Number | Date | Country | |
---|---|---|---|
20040068682 A1 | Apr 2004 | US |