Framework for rapid hardware prototyping using custom floating-point arithmetic