Division synthesis
AssigneeImagination Technologies Limited
InventorThomas Rose
Life of this patent
Estimating the term…
Abstract
A binary logic circuit for determining the ratio x/d in accordance with a rounding scheme, where x is a variable integer input of bit length w and d is a fixed positive integer of the form 2n±1, the binary logic circuit being configured to form the ratio as a plurality of bit slices, the bit slices collectively representing the ratio, wherein the binary logic circuit is configured to generate each bit slice according to a first modulo operation for calculating mod(2n±1) of a respective bit selection of the input x and in dependence on a check for a carry bit, wherein the binary logic circuit is configured to, responsive to the check, selectively combine a carry bit with the result of the first modulo operation.
Claims20
A binary logic circuit configured to determine the ratio x/d in accordance with a rounding scheme, where x is a variable integer input of bit length w and d is a fixed positive integer of the form 2n±1, the binary logic circuit comprising:
- fixed function hardware logic configured to form the ratio as a plurality of bit slices, the bit slices collectively representing the ratio;
- fixed function hardware logic configured to generate each bit slice according to a first modulo operation for calculating mod (2n±1) of a respective bit selection of the input x and in dependence on a check for a carry bit, the fixed function hardware logic configured to generate each bit slice being in communication with the fixed function hardware logic configured to form the ratio;
- and
- fixed function hardware logic configured to, responsive to the check, selectively combine a carry bit with the result of the first modulo operation, the fixed function hardware logic configured to selectively combine a carry bit with the result of the first modulo operation being in communication with the fixed function hardware logic configured to generate each bit slice.
A method for determining the ratio x/d in a binary logic circuit in accordance with a rounding scheme, where x is a variable integer input of bit length w and d is a fixed positive integer of the form 2n +1, the method comprising:
- forming each of a plurality of bit slices of the ratio by:
- performing, by fixed function hardware logic, a first modulo operation for calculating mod(2n+1) of a respective bit selection of the input x;
- checking, by fixed function hardware logic, for a carry bit of the first modulo operation;
- and
- responsive to the check, selectively combining, by fixed function hardware logic, the carry bit with the result of the first modulo operation;
- and
- combining the bit slices to form the complete ratio.
A non-transitory computer readable storage medium having stored thereon a computer readable description of an integrated circuit that, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture a fixed function binary logic circuit for determining the ratio x/d in accordance with a rounding scheme, where x is a variable integer input of bit length w and d is a fixed positive integer of the form 2n+1, the binary logic circuit comprising fixed function hardware logic configured to form the ratio as a plurality of bit slices, the bit slices collectively representing the ratio, fixed function hardware logic configured to generate each bit slice according to a first modulo operation for calculating mod(2n +1) of a respective bit selection of the input x and in dependence on a check for a carry bit, and fixed function hardware logic configured to, responsive to the check, selectively combine a carry bit with the result of the first modulo operation.
Dependencies are inferred from the claim text.