Higher-order HDL: Applied to MLP neural network hardware implementation | Synapse