Patent ID: 8977663
Filing Date: 2015-03-10
Classification: G06F

Abstract:
1. A computer-implemented method for converting a binary value to a binary-coded-centimal value, the method comprising: iteratively shifting bits of the binary value into an intermediate value; analyzing a portion of the intermediate value after each shift to determine whether the portion is greater than a first value, and if so, adding a second value to the portion; and after all of the bits of the binary value have been shifted into the intermediate value, using the intermediate value as the binary-coded-centimal value for the binary value, wherein the binary-coded-centimal value encodes two decimal digits that can range in value from zero to 99 in eight bits of data; wherein iteratively shifting bits of the binary value comprises using a combinational circuit comprised of one or more eight-bit conditional adders; wherein an eight-bit conditional adder comprises: