CPC G06F 7/38 (2013.01) [G06F 7/535 (2013.01); G06F 30/00 (2020.01); G06F 30/30 (2020.01); G06F 30/327 (2020.01)] | 16 Claims |
1. A computer-implemented method for generating a representation of an integrated circuit for performing integer division x/d where x is a variable integer and d is an invariant integer constant, the method comprising:
deriving, using a parameter creator, an integer triple (a,b,k) which satisfies Round(x/d)=(ax+b)/2k for a desired rounding mode; and
generating, using a synthesis tool, the representation of the integrated circuit for manufacture of the integrated circuit, wherein the representation of the integrated circuit is generated using a representation of the logical operation (ax+b)/2k in accordance with the derived integer triple (a,b,k).
|