Implementing a neural processor on programmable logic device