Towards high-level synthesis of neural models on FPGAs