Accurate digital divider
AssigneeQuestech Limited
InventorRobert Billing
Life of this patent
Estimating the term…
Abstract
A digital divider for forming the quotient (Q) of two numbers (A,B) includes means providing values (Q+1, Q-1) of the quotient with possible rounding errors added to or subtracted therefrom. Selector switching means is arranged to select one of the values (Q, Q+1, Q-1) under the control of a logic circuit operating according to the following rules: ##EQU1##
Claims5
A digital electronic divider device for forming the quotient of two numbers a/b of a numerical system having a given base and for providing the remainder of the division of said two numbers, said device comprising:
- a memory means having an address input for receiving the number b and providing a look up table of precomputed quotients k/b where k is a number larger than the largest expected number b and is a power of said base;
- a first multiplier having a first input coupled to an output of said memory means, a second input for receiving the number a, and an output arranged to provide a value with less significant digits discarded to effect a division by the number k;
- first means coupled to the output of said first multiplier and having an output providing a value of the quotient a/b comprising the value from the said first multiplier with a possible rounding error added thereto;
- second means coupled to the output of said first multiplier and having an output providing a value of the quotient a/b comprising the value from said first multiplier with a possible rounding error subtracted therefrom;
- first selector switching means having first, second and third switch inputs respectively coupled to the outputs of said first multiplier, said first means and said second means and having a control input;
- a second selector switching means having a first switch input coupled to the output of said first multiplier, a second switch input coupled to the output of said first means and a control input coupled to receive said number a, whereby said first or second switch input is selected in accordance with the value of a;
- a second multiplier having a first input coupled to an output of said second selector switching means, a second input coupled to receive the number b and and output;
- logic means coupled to receive said numbers a and b, coupled to the output of said second multiplier and arranged to provide an output to said control input of said first selector switching means in order to cause the latter to select an appropriate value of a/b provided at one of said switch inputs;
- a subtractor having a first input coupled to the output of said second multiplier, having a second input coupled to receive the number a and having an output;
- an adder having a first input coupled to the output of said subtractor, having a second input coupled to receive the number b and having an output;
- and a third selector switching means having a first input coupled to the output of said subtractor, having a second input coupled to the output of said adder and having a control input coupled to an output of said logic means, whereby said third selector switching means is caused to select the value at one of its inputs as said remainder value.
A digital electronic device for forming the remainder of the division of two numbers a/b of a numerical system having a given base, comprising:
- a memory means having an address input for receiving the number b and providing a look up table of precomputed quotients k/b where k is a number larger than the largest expected number b and is a power of said base;
- a first multiplier having a first input coupled to an output of said memory means and a second input for receiving the number a, and having an output providing a value with less significant digits discarded to effect a division by the number k;
- first adding means coupled to the output of said first multiplier and having an output providing a value of the quotient a/b comprising the value from said first multiplier with a possible rounding error added thereto;
- first selector switching means having a first switch input coupled to the output of said first multiplier, a second switch input coupled to the output of said first adding means and a control input coupled to receive said number a, whereby said first or second switch input is selected in accordance with the value of the number a;
- a second multiplier having a first input coupled to an output of said first selector switching means, a second input coupled to receive the number b and an output;
- a subtractor having a first input coupled to the output of said second multiplier, a second input coupled to receive the number a and an output;
- a second adding means having a first input coupled to the output of said subtractor, a second input coupled to receive the number b and an output;
- and a second selector switching means having a first input coupled to the output of said subtractor, a second input coupled to the output of said second adding means and a control input coupled to receive an input signal whereby said second selector switching means is caused to select the value at one of its inputs as the said remainder.
Dependencies are inferred from the claim text.