Energy Efficient Hardware Design of Neural Networks