Learning-Assisted Techniques for Agile Arithmetic Design on FPGAs