This application is related to the following U.S. patent applications filed on the same day as the present application and having the same assignee: U.S. patent application Ser. No. 11/844,393 now U.S. Pat. No. 7,797,131 and U.S. patent application Ser. No. 11/844,402.
1. Technical Field
The present invention relates in general to a circuit and method for providing a numeric indication of the number of leading zeros in a binary data word. In particular, the present invention relates to a circuit and method for providing a corrected data word value for a leading zeros count with a more efficient component structure.
2. Description of the Related Art
Modern data processing systems use binary numbers for the computation of data. This computation includes both integer arithmetic and floating-point arithmetic. One common operation that is used in floating-point arithmetic, is determining the number of leading zeros in a data word for normalization, i.e., for removing the zeroes just past the decimal point such that the first bit after the decimal point is a “1”. Special circuitry has been devised to determine perform this function and is illustrated in U.S. Pat. No. 5,844,826 entitled “Leading Zero Count Circuit.” Another example of a count leading zero specialized circuit will be discussed in this application. Other applications where this function may be useful would be where the data format is monotonic, i.e., where data is a series of consecutive ‘0’s followed by a series of consecutive ‘1’s as may be generated by a mask generator, successive approximation A/D converter, or a chain of inverters as described in this application.
In a co-pending patent application entitled “On-Chip Frequency Response Measurement” U.S. patent application Ser. No. 11/844,393 now U.S. Pat. No. 7,797,131 also assigned to IBM and herein incorporated by reference, the count leading zeros function is used as part of a frequency response measurement circuit. The function of this count leading zeros circuit is the same as the count leading zeros circuit function and floating-point arithmetic applications. Also in a co-pending patent application entitled “Half Width Counting Leading Zero Circuit” U.S. patent application Ser. No. 11/844,402 also assigned to IBM and herein incorporated by reference, a more efficient count leading zero circuit is disclosed which can be used as part of the frequency response measurement circuit.
This frequency measurement circuit is used as part of a larger apparatus that determines certain physical characteristics of an operating integrated circuit. This larger apparatus provides a scaled voltage to the integrated circuited itself and is to the disclosed in co-pending patent applications entitled “Using IR Drop Data for Instruction Thread Direction,” U.S. patent application Ser. No. 11/671,613, “On-Chip Adaptive Voltage Compensation,” U.S. patent application Ser. No. 11/671,485 now U.S. Pat. No. 7,936,153; “Using Performance Data for Instruction Thread Direction,” U.S. patent application Ser. No. 11/671,627 now U.S. Pat. No. 7,779,235; “Using Temperature Data for Instruction Thread Direction,” U.S. patent application Ser. No. 11/671,640; “Integrated Circuit Failure Prediction,” U.S. patent application Ser. No. 11/671,599 now U.S. Pat. No. 7,560,945; “Instruction Dependent Dynamic Voltage Compensation,” U.S. patent application Ser. No. 11/671,579 now U.S. Pat. No. 7,895,454; “Temperature Dependent Voltage Source Compensation,” U.S. patent application Ser. No. 11/671,568; “Fan Speed Control from Adaptive Voltage Supply,” U.S. patent application Ser. No. 11/671,555 now U.S. Pat. No. 7,865,750; and “Digital Adaptive Voltage Supply,” U.S. patent application Ser. No. 11/671,531 now U.S. Pat. No. 7,714,635; each assigned to the IBM Corporation and herein incorporated by reference.
As can be seen by the examination of the U.S. Pat. No. 5,844,826, the circuitry to provide this count leading zeros function is complex. In order to provide a simpler and more efficient count leading zeros circuit, the data input into such a count leading zeros must be corrected to remove any errors caused by circuit timing differences to provide the correct input data.
In accordance with the present invention, a method and apparatus are provided to correct binary values in a data word having N bit positions where each bit position in the data word is compared with adjacent bit positions to provide a corrected bit value.
In one embodiment of the present invention, a data correction circuit is provided for correcting the binary values in a data word having N bit positions, the circuit having a plurality of assemblies, each assembly for a unique one of the data word bits and each assembly including a first logic circuit connected to its unique data word bit and an adjacent data word bit and providing a first output bit and a second logic circuit connected to receive the first output bit and a different adjacent bit of the data word and providing a second output representing a corrected value of the unique bit.
The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings.
The following is intended to provide a detailed description of an example of the invention and should not be taken to be limiting of the invention itself. Rather, any number of variations may fall within the scope of the invention, which is defined in the claims following the description.
It can be appreciated that the circuitry in
There is a non-detectable error condition where the last bit should indicate a propagation of the pulse but because of the timing delay of its latch, the pulse propagation will not be shown (i.e., the resulting bit will indicate that the pulse was not propagated). Since this error is a single bit error, a design decision was made to correct a ‘bubble’ type of error in the same manner. In other words, when a bubble is detected, the correction will include a change of the error bit from indicating no pulse propagated to indicating a pulse propagated and the next adjacent bit position (the next least significant bit position) that indicated that a pulse was propagated will also be changed to indicate that the pulse was not propagated. Therefore both the detected and the non-detected error conditions will be limited to a single bit error in the same manner (an error of the least significant bit position) so to minimize the error effect. Since these measurements are used in a relative manner rather than being used as absolute values, the single bit error is not significant. It should be apparent to those skilled in the art that other alternative techniques may be used to correct the detectable error condition.
The least significant bit correction circuit 612, termed a ‘Plus One’ circuit, includes a series of exclusive NOR and AND gates shown as gates 602, 604 and 606 that are connected to the consecutive bit position contents of a latch 600. While only three gates are shown, the actual number of exclusive NOR gates connected would be half the number of bits in the latch. The outputs of these exclusive NOR gates 602, 604, . . . , 606 are connected to an AND gate 608 that provides a single bit output on line 610.
Therefore,
While particular embodiments of the present invention have been shown and described, it will be obvious to those skilled in the art, based upon the teachings herein, that changes and modifications may be made without departing from this invention and its broader aspects. Therefore, the appended claims are to encompass within their scope all such changes and modifications as are within the true spirit and scope of this invention. Furthermore, it is to be understood that the invention is solely defined by the appended claims. It will be understood by those with skill in the art that if a specific number of an introduced claim element is intended, such intent will be explicitly recited in the claim, and in the absence of such recitation no such limitation is present. For non-limiting example, as an aid to understanding, the following appended claims contain usage of the introductory phrases “at least one” and “one or more” to introduce claim elements. However, the use of such phrases should not be construed to imply that the introduction of a claim element by the indefinite articles “a” or “an” limits any particular claim containing such introduced claim element to inventions containing only one such element, even when the same claim includes the introductory phrases “one or more” or “at least one” and indefinite articles such as “a” or “an”; the same holds true for the use in the claims of definite articles.
Number | Name | Date | Kind |
---|---|---|---|
4417470 | McCracken et al. | Nov 1983 | A |
4712087 | Traa | Dec 1987 | A |
5029305 | Richardson | Jul 1991 | A |
5375146 | Chalmers | Dec 1994 | A |
5451894 | Guo | Sep 1995 | A |
5457719 | Guo et al. | Oct 1995 | A |
5737342 | Ziperovich | Apr 1998 | A |
5818380 | Ito et al. | Oct 1998 | A |
5844826 | Nguyen | Dec 1998 | A |
5852616 | Kubinec | Dec 1998 | A |
5959564 | Gross, Jr. | Sep 1999 | A |
5990725 | LoCascio | Nov 1999 | A |
6034631 | Gross, Jr. | Mar 2000 | A |
6037732 | Alfano et al. | Mar 2000 | A |
6047248 | Georgiou et al. | Apr 2000 | A |
6058502 | Sakaguchi | May 2000 | A |
6070074 | Perahia et al. | May 2000 | A |
6076157 | Borkenhagen et al. | Jun 2000 | A |
6111414 | Chatterjee et al. | Aug 2000 | A |
6125334 | Hurd | Sep 2000 | A |
6141762 | Nicol et al. | Oct 2000 | A |
6172611 | Hussain | Jan 2001 | B1 |
6212544 | Borkenhagen et al. | Apr 2001 | B1 |
6218977 | Friend et al. | Apr 2001 | B1 |
6351601 | Judkins, III | Feb 2002 | B1 |
6429796 | Buckley | Aug 2002 | B1 |
6481974 | Horng et al. | Nov 2002 | B2 |
6591210 | Lorenz | Jul 2003 | B1 |
6625635 | Elnozahy | Sep 2003 | B1 |
6713996 | D. Iorio | Mar 2004 | B2 |
6721581 | Subramanian | Apr 2004 | B1 |
6721892 | Osborn | Apr 2004 | B1 |
6724214 | Manna et al. | Apr 2004 | B2 |
6838917 | Brass et al. | Jan 2005 | B2 |
6859113 | Giousouf et al. | Feb 2005 | B2 |
6897673 | Savage et al. | May 2005 | B2 |
7086058 | Luick | Aug 2006 | B2 |
7093109 | Davis et al. | Aug 2006 | B1 |
7096140 | Norzuyama et al. | Aug 2006 | B2 |
7100061 | Halepete et al. | Aug 2006 | B2 |
7174194 | Chauvel et al. | Feb 2007 | B2 |
7184936 | Bhandari | Feb 2007 | B1 |
7205854 | Liu | Apr 2007 | B2 |
7211977 | Squibb | May 2007 | B2 |
7228446 | Jorgenson et al. | Jun 2007 | B2 |
7256622 | Dronavalli | Aug 2007 | B2 |
7282966 | Narendra et al. | Oct 2007 | B2 |
7307439 | Takamiya et al. | Dec 2007 | B2 |
7321254 | Li | Jan 2008 | B2 |
7330081 | Asa et al. | Feb 2008 | B1 |
7330983 | Chaparro et al. | Feb 2008 | B2 |
7429129 | St. Pierre | Sep 2008 | B2 |
7437581 | Grochowski et al. | Oct 2008 | B2 |
7696917 | Matsuura et al. | Apr 2010 | B2 |
7734939 | Kolinummi et al. | Jun 2010 | B2 |
20020046399 | Debling | Apr 2002 | A1 |
20020065049 | Chauvel et al. | May 2002 | A1 |
20030030483 | Seki et al. | Feb 2003 | A1 |
20030057986 | Amick et al. | Mar 2003 | A1 |
20030067334 | Brass et al. | Apr 2003 | A1 |
20030079150 | Smith et al. | Apr 2003 | A1 |
20030126476 | Greene et al. | Jul 2003 | A1 |
20030184399 | Lanoue et al. | Oct 2003 | A1 |
20040023688 | Bazarjani et al. | Feb 2004 | A1 |
20040025061 | Lawrence | Feb 2004 | A1 |
20040090216 | Carballo et al. | May 2004 | A1 |
20040183613 | Kurd et al. | Sep 2004 | A1 |
20040268280 | Eleyan et al. | Dec 2004 | A1 |
20050114056 | Patel et al. | May 2005 | A1 |
20050116733 | Barr et al. | Jun 2005 | A1 |
20050134394 | Liu | Jun 2005 | A1 |
20050174102 | Saraswat et al. | Aug 2005 | A1 |
20050178133 | Henry et al. | Aug 2005 | A1 |
20050209740 | Vann, Jr. | Sep 2005 | A1 |
20050273290 | Asano et al. | Dec 2005 | A1 |
20050278520 | Hirai et al. | Dec 2005 | A1 |
20050289367 | Clark et al. | Dec 2005 | A1 |
20060066376 | Narendra | Mar 2006 | A1 |
20060149974 | Rotem et al. | Jul 2006 | A1 |
20060197697 | Nagata | Sep 2006 | A1 |
20060247873 | Fung et al. | Nov 2006 | A1 |
20070006007 | Woodbridge et al. | Jan 2007 | A1 |
20070074216 | Adachi et al. | Mar 2007 | A1 |
20070192650 | Shiota | Aug 2007 | A1 |
20070260895 | Aguilar et al. | Nov 2007 | A1 |
20080004755 | Dunstan et al. | Jan 2008 | A1 |
20080071493 | Wang | Mar 2008 | A1 |
20080136400 | Chi et al. | Jun 2008 | A1 |
Number | Date | Country |
---|---|---|
1716161 | Jan 2006 | CN |
WO 2006072106 | Jun 2006 | WO |
Number | Date | Country | |
---|---|---|---|
20090055456 A1 | Feb 2009 | US |