Converting numbers between binary and another base
AssigneeAmdahl Corporation
InventorsStephen J. Rawlinson, Jongwen Chiou
Life of this patent
Estimating the term…
Loading patent…
AssigneeAmdahl Corporation
InventorsStephen J. Rawlinson, Jongwen Chiou
Estimating the term…
Dedicated convert hardware is disclosed for performing bidirectional conversions of numbers between binary and another base b (illustratively decimal) for use in a data processing system. The dedicated convert hardware comprises a special purpose multiply-and-add unit and a convert register. The output of the multiply-and-add unit is coupled to the input of the convert register, and the output of the convert register is recycled to the inputs of the multiply-and-add unit. The multiply-and-add unit is hardwired to multiply the input by b and concurrently add the value at a separate digit input. Means are also provided for initializing the convert register with zero or with any desired number. The convert hardware is operated to convert a number from radix-b to binary by first initializing the convert register to zero and then iteratively clocking the multiply-and-add unit output into the convert register while presenting to the digit input of the multiply-and-add unit successively high- to low-order digits of the radix-b number. The convert hardware is operated to convert a binary number to radix-b by first initializing the convert register with the fractional part of a product N*b.sup.-m, where N is the binary number and m is an integer greater than zero, and then repetitively clocking the output of the multiply-and-add unit into the convert register while the digit input of the multiply-and-add unit is held at zero. The integer part of each successive multiplication constitutes the successive radix-b digits.
Apparatus operative in a first mode for converting a decimal number to a binary number and operative in a second mode for converting a binary number to a decimal number, each of the decimal numbers being represented as a sequence of BCD digits, the apparatus being for use in association with a data processing system having a plurality of functional units for performing arithmetic and logical operations, having a control means for generating a plurality of control signals to operate the functional units and having a clock signal, the control means updating the control signals once each clock cycle, the apparatus comprising:
Apparatus for converting a binary operand to decimal, the decimal number being represented as a sequence of at most n BCD digits, for use in association with a data processing system having a plurality of functional units for performing arithmetic and logical operations, having a control means for generating a plurality of control signals to operate the functional units and having a clock signal, the control means updating the control signals once each clock cycle, the apparatus comprising:
Apparatus operative in a first mode to convert radix-b numbers to binary and in a second mode to convert binary numbers to radix-b, each radix-b number being represented as a sequence of at most n digits occupying c bits each, comprising:
Apparatus for performing bidirectional conversion of numbers between binary and decimal in response to first and second programmed signals, the decimal number being represented as a sequence of at most 10 BCD digits, for use in association with a high speed data processing system having a plurality of functional units for performing arithmetic and logical operations, having a control means for generating a plurality of control signals to operate the functional units and having a clock signal, the control means updating the plurality of control signals once each clock cycle, the apparatus comprising:
Dependencies are inferred from the claim text.