Fast Prototyping for Hardware Neural Networks