VHDL rational arithmetic package