This post has moved to Fractions in FPGA.