Hi,
Most of the synthesis tools (if not all) expect the divisor to be a power of 2, so that the division can be done by merely shifting the dividend right. The synthesis companies do provide IP-components which support division of any value by an valued-divisor. These are done by using various algorithmns.
In case you still want the code to support full division, then there is no other way than to code it yourself by using algorithmn such as RESTORING and NON-RESTORING methods of division.