Move tfp_to_int from VHDLTools to CoreTools.